Physics · Simulator 003
Pull a mass on a spring and let go. Change the mass, stiffness and damping to see under-damped, critically damped and over-damped motion, and watch energy move between kinetic and elastic forms.
A mass m on a spring of stiffness k with a viscous damper b obeys Newton's second law:
m·x'' = −k·x − b·x'
Without damping it oscillates at angular frequency ω₀ = √(k/m), with period T = 2π√(m/k). The damping ratio ζ = b / (2√(km)) sets the character of the motion:
Energy: kinetic ½mv², elastic ½kx², and the energy the damper has turned into heat. Their sum stays constant, which is a useful check on the numerical method (RK4).
Ideal massless spring obeying Hooke's law, horizontal motion, and no friction other than the linear damper.
A car suspension has m = 300 kg per wheel and k = 30 000 N/m. Which damping coefficient b makes it critically damped? Would you choose slightly less or slightly more in practice?
b = 2√(km) = 2√(30000 × 300) = 6000 N·s/m. Real suspensions are usually somewhat under-damped (ζ ≈ 0.2–0.4) for comfort, accepting a little overshoot in exchange for a softer response to bumps. In the simulator, scale down to m = 3 kg and k = 300 N/m, where b = 60 N·s/m is critical.