The science beneath it
How this simulation works
The mass obeys m x¨ + c x˙ + kx = 0, solved numerically with a small timestep. A damping force removes mechanical energy while spring force stores potential energy.
Tune a spring and watch kinetic and potential energy exchange.
The mass obeys m x¨ + c x˙ + kx = 0, solved numerically with a small timestep. A damping force removes mechanical energy while spring force stores potential energy.