Mass-Spring-Damper

Explore free and forced vibration through numerical integration, synchronized animation, response plots, phase trajectories, and energy flow.

Model and Simulation

Set the physical system, initial state, forcing, and integration method.

Physical parameters
Initial state and time
Excitation
Numerics

Ready to simulate.

Mechanical Animation

The plot cursor and mechanism share the same simulation time.

t = 0.000 s
Natural frequency
Damping ratio
Response class
Max |x|
Max |a|
Steps / runtime

Response Figures

Drag the time-history plots to inspect a time; scroll over them to zoom horizontally.

Selected solverAnalytical
Displacement x(t)
Velocity, acceleration, and force
Phase portrait: v(x)
Energy

Numerical Diagnostics

Free vibration includes an analytical displacement reference. Large Euler energy growth indicates numerical instability.

QuantityValueInterpretation

Model Reference

Equation of motionm ẍ + c ẋ + kx = F(t)
Natural frequencyωₙ = √(k/m)
Damping ratioζ = c / (2√km)
Damped frequencyωd = ωₙ√(1 − ζ²)
Mechanical energyE = ½mv² + ½kx²
Dissipated energyEd = ∫ cv² dt

RK4 evaluates four slopes per step and is generally much more accurate than Forward Euler at the same Δt. Euler is included to illustrate time-step sensitivity and numerical instability.