Equation of motion
The model integrates the nonlinear angular equation with a fixed time step:
θ̈ + bθ̇ + (g/L) sin θ = (a/L) cos(2πft)
Here θ is angle (rad), b is angular damping (s⁻¹), g is gravity (m/s²), L is length (m), a is drive acceleration (m/s²), and f is drive frequency (Hz).
Period and energy
T₀ = 2π √(L/g)
This is the textbook small-angle period. For a finite release angle, the ideal period is longer:
T = 4 √(L/g) K(sin(|θ₀|/2))
K is the complete elliptic integral of the first kind. The simulation evaluates it using the arithmetic–geometric mean. Mechanical energy is:
E = ½mL²ω² + mgL(1 − cos θ)
What is simplified?
The bob is treated as a point mass on a rigid, massless rod; the pivot is fixed; the motion stays in one plane; and gravity is constant. Damping is linear in angular speed. The periodic drive is a prescribed tangential acceleration. Real bearings, flexible supports, air flow and motor mechanics are more complicated.
This is an independent educational simulation and is not affiliated with a museum, university, or instrument manufacturer.