Presets
Playback
Parameters
Camera
Layers
Quality
Model check
The science
The model. A glider of mass m on a frictionless air track is held by a spring of stiffness k and slowed by a dashpot. Newton's second law gives m x'' = -k (x - ys) + Fd, where x is the glider position from equilibrium and ys = Y sin(W t) is the position of the spring anchor, moved by the crank and Scotch yoke on the left (the crank radius is Y; with Y = 0 the anchor is fixed). The dashpot is referenced to the bench, so it acts on the glider velocity alone.
Viscous damping. With Fd = -c v the free motion is exactly solvable: the natural frequency is w0 = sqrt(k/m) and the damping ratio zeta = c / (2 sqrt(k m)). For zeta below 1 the glider oscillates at wd = w0 sqrt(1 - zeta2) inside an envelope e-zeta w0 t; at zeta = 1 it returns fastest without overshoot; above 1 it creeps back as two decaying exponentials. The integrator is classical fourth-order Runge-Kutta with a 1 ms step, and the dotted blue curve in the position graph is the closed-form answer for comparison.
Other damping laws. Quadratic drag -c |v| v (a turbulent fluid) makes the decay faster at large amplitude and slower at small, so there is no single time constant. Dry friction -mu m g sgn(v) removes a fixed amount of amplitude, 2 mu m g / k, on every half swing, so the envelope falls along a straight line and the glider can stop dead (stiction) away from rest position when the spring force is below the friction limit.
Driven motion. After the start-up transient the glider moves at the drive frequency with amplitude |X| = Y / sqrt((1 - r2)2 + (2 zeta r)2) where r = W / w0. At r near 1 the amplitude peaks at about Y / (2 zeta): resonance. Far above resonance the glider hardly moves, which is how vibration isolation works.
Energy. The page integrates the dissipated heat and the work done by the drive, and shows the residual E - E0 - Wdrive + Q, which is zero up to the integration error.
Simplifications. Ideal massless spring and rod, a linear spring (no stiffening), a damper that is perfectly viscous (a real dashpot also has a compressibility and seal friction), no air drag on the glider, no mechanical play in the yoke. Displacements are drawn at 0.45 scene units per metre so that a 2 m swing fits the track; if the driven amplitude exceeds the 2.4 m of drawn travel the glider stops at the end of the track on screen while the model keeps its true value.