Tuned Mass Damper (2D)
A 2D companion: a skyscraper modeled as a driven damped oscillator sways under periodic wind/quake forcing while a secondary tuned mass on a spring and damper dissipates the vibration — mistune it and watch the amplitude climb back up.
This 2D companion models a skyscraper's top floor as a driven, damped mass-spring oscillator shaken by periodic wind or earthquake-like forcing, then attaches a secondary tuned mass — a spring-and-damper system dialed near the building's own natural frequency, the same principle behind the 660-tonne pendulum atop Taipei 101 — that dissipates vibrational energy and cuts the sway. A tuning-mismatch slider detunes the secondary mass's frequency away from the building's, showing how quickly the cancellation weakens as the ratio drifts from 1.0, while a toggle locks the TMD out entirely so a live amplitude-vs-time chart can compare the damped and undamped sway side by side.
A 2D companion to the 3D tuned mass damper demo: two coupled damped oscillators (building + secondary mass) are integrated with RK4 every frame, alongside a parallel single-degree-of-freedom "ghost" building for comparison, so toggling the TMD or mistuning it shows its effect on sway amplitude live.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install