θ̈ + γθ̇ + (g/L) sin θ = 0
The bob is treated as a point mass on a massless, inextensible string. The angle θ is measured from the downward vertical; γ is a linear angular damping coefficient.
E = ½mL²θ̇² + mgL(1 − cos θ)
With no damping, mechanical energy is conserved. With damping, the model accumulates the energy removed by the term mL²γθ̇² and checks the corrected energy balance.
T₀ = 2π√(L/g)
This textbook period is the small-angle approximation, using sin θ ≈ θ. The nonlinear reference uses T = 4√(L/g) K(sin(θ₀/2)), with the complete elliptic integral K evaluated by the arithmetic–geometric mean.
The simulation advances with fixed-step fourth-order Runge–Kutta integration. Its measured period comes from successive downward crossings through the vertical. The illustration is scaled to fit the display and is not a physical length measurement.
An independent educational model; not affiliated with a pendulum instrument or equipment manufacturer.