🪐 Restricted Three-Body Problem — Roche Lobes
A test particle moves under two massive primaries orbiting their barycentre. Explore zero-velocity curves, five Lagrange equilibria L1-L5, and chaotic trajectories in the corotating frame.
About this simulation
This simulation follows a massless test particle moving under the gravity of two primaries (masses 1−μ and μ) in the corotating frame of the restricted three-body problem. Trajectories use fourth-order Runge–Kutta integration, while the conserved Jacobi integral C_J checks accuracy live. Shaded equipotentials and a zero-velocity curve show which regions are forbidden at a given energy, and paths near L1–L3 reveal the chaos of three-body motion.
🔬 What it shows
A test particle drifts through the effective potential U* of two orbiting primaries. Shaded bands mark equipotential contours, the yellow zero-velocity curve bounds the region reachable at the chosen Jacobi constant, and coloured crosses mark the five Lagrange equilibria L1–L5.
🎮 How to use
Drag the μ slider to change the mass ratio, and C_J to reshape the zero-velocity curve. Trail length and step size set how long each path is drawn and how finely RK4 advances. Click or tap the canvas to launch a new particle from rest.
💡 Did you know?
JWST orbits the Sun–Earth L2 point in a halo orbit rather than sitting exactly on it, since L1–L3 are unstable. Jupiter's L4 and L5 host over a million known Trojan asteroids, trapped by the same effective-potential geometry modelled here.
Frequently asked questions
What is the restricted three-body problem?
A massless test particle orbits under the gravity of two primaries that themselves orbit their barycentre in circles. Because it has no mass, it cannot perturb the primaries, keeping the equations tractable while still producing chaos.
What are the Lagrange points L1–L5?
The five positions in the corotating frame where gravitational and centrifugal forces cancel. L1–L3 lie on the line through both primaries and are unstable; L4 and L5 form equilateral triangles with the primaries and are stable for small mass ratios.
What does the Jacobi constant control?
C_J = 2U* − v² is conserved along every trajectory, fixing the boundary of the zero-velocity curve — the frontier a particle cannot cross without negative kinetic energy.
Why does the motion become chaotic?
Near the saddle points L1, L2 and L3, nearby trajectories separate exponentially fast — a hallmark of positive Lyapunov exponents. Small differences in launch position are amplified rapidly, so long-term prediction becomes impossible.
What does the mass ratio μ represent?
μ = m₂/(m₁+m₂) sets how lopsided the system is, from 0.01 (a small moon) to 0.5 (equal binary stars). Earth–Moon has μ ≈ 0.012; Sun–Jupiter has μ ≈ 0.00095.
A test particle moves under two massive primaries orbiting their barycentre. Explore zero-velocity curves, five Lagrange equilibria L1-L5, and chaotic trajectories in the corotating frame.
3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install