Art and Engineering

Spring-Mass Simulator

Animated spring-mass-damper with free and harmonically forced vibration: natural frequency, damping regime, log decrement, steady-state amplitude, phase and the resonance (amplification) curve.

System

kg
N/mm

0 none · <1 oscillates · 1 critical · >1 slow return

Start & forcing

mm
m/s
N
Hz

natural frequency 3.18 Hz

Simulation

x = 0mt = 0.00 s x = 20 mm
Displacement x(t) (mm)-20-100102000.9421.882.833.77Time (s)
Amplification X / (F₀/k) (×)051000.511.522.53Frequency ratio r = f / fn

Natural motion

Underdamped
Natural freq. fn
3.183Hz
Period Tn
0.3142s
ωn
20rad/s
Damping coefficient c
2N·s/m
Damped period Td
0.3146s
Log decrement δ
0.3146
Quality factor Q
10

Forced response

Set a force amplitude to shake the mass and see resonance.

Assumptions & limitations
  • Single degree of freedom; linear spring and viscous damper; massless spring.
  • Horizontal motion (or vertical, measured from the static equilibrium position).
  • Harmonic force F0·cos(ωt); time history by 4th-order Runge–Kutta.
Limitations
  • Animation displacement is scaled to fit; values shown are real.