Home▸Physics & Mechanics▸N-Body Gravity 2D: Symplectic Integrators, Figure-Eight Orbit and Star Cluster Lab

🪐 N-Body Gravity 2D: Symplectic Integrators, Figure-Eight Orbit and Star Cluster Lab

Interactive 2D N-body gravity lab: direct-summation Newtonian gravity with leapfrog, Yoshida, RK4 and Euler integrators, presets from the solar system to the figure-eight orbit, live energy and angular-momentum conservation graphs and three numerical checks.

Physics & Mechanics2DModerate60 FPS📱 Mobile-adapted⇄ 3D version
N-Body Gravity 2D: Symplectic Integrators, Figure-Eight Orbit and Star Cluster Lab ↗ Open standalone
⚙ Under the hood

Direct-summation N-body gravity with leapfrog, Yoshida, Runge-Kutta and Euler integrators: solar system, figure-eight three-body orbit, binary with planet, Plummer cluster, live energy drift graphs and numerical checks.

N-Body GravityNewtonian MechanicsSymplectic IntegratorsOrbital DynamicsCanvas 2D

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)