Vertical Spring-Mass-Damper Simulator

This tool simulates a mass hanging from a spring, with a damper (dashpot) resisting its motion and an optional external force pushing on it. Its motion follows the ODE below, where y is the displacement from the hanging equilibrium at time t, y′ is the velocity, y″ is the acceleration, m, b and k are the mass, damping and stiffness parameters, and f(t) is an external forcing function you choose from a family of common functions.

equation of motion
External Force

Set the parameters and the forcing, then watch the motion, the position–velocity phase portrait, and the time series move together. Gravity does not appear in the equation because y is measured from the point where the spring already balances the weight (see Physics & Mathematics).

Motion

vertical spring–mass–damper
Playback
positive y direction
show forces
t = 0.00
Parameters m, b, k
ODE
Initial condition y(0), y′(0)
External forcing f(t)
Solution
Signatures
natural frequency —
damping ratio —
eigenvalues—
natural (quasi) period—
forcing period—
amplitude of —
phase lag —
practical resonance —
—
Parameter presets
External force presets