Kirkwood Gap Resonant-Angle Phase Portrait (2D)
2D companion to the Kirkwood-gap orbit simulator: the same restricted three-body integration (RK4, Sun + circular Jupiter) drives a live top-down orbit view AND a resonant-angle vs eccentricity phase portrait -- the actual diagnostic astronomers use to tell a librating (trapped) resonance from a circulating (chaotic, gap-carving) one.
This 2D companion to the Kirkwood-gap orbit simulator runs the exact same restricted three-body integration — a massless test asteroid under the Sun's and a circularly orbiting Jupiter's gravity, advanced with RK4 — but adds the diagnostic the 3D free-camera view cannot show: a live σ (resonant angle) versus e (eccentricity) phase portrait. Drop the asteroid on a named Jupiter resonance (4:1, 3:1, 5:2 or 2:1) and watch the phase-space trail either curl into a bounded libration island, meaning the orbit is trapped and stable, or sweep all the way across the σ axis while eccentricity climbs, meaning the orbit has entered the chaotic circulating regime that Jack Wisdom identified as the actual mechanism carving the Kirkwood gaps. Drop it at the stable 2.65 AU radius between gaps instead and the phase trail stays a tight, nearly circular dot cluster with negligible eccentricity growth.
The same restricted three-body integration as the 3D orbit view (RK4, Sun + circular Jupiter) driving a live top-down orbit panel AND a resonant-angle vs eccentricity phase portrait -- the actual diagnostic used to tell a librating (trapped) resonance from a circulating (chaotic, gap-carving) one.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install