🌙 Moon Accretion Lab: Debris Disc, Roche Limit and Moonlet Mergers

2D interactive simulation · educational model

Watch debris around a planet clump into moons - but only outside the dashed Roche limit. Change disc mass, extent and density, or restart for a new random disc.

The science

Accretion. Debris from a giant impact orbits a planet (mass M). Each body feels the planet, a = −GM r / |r|³, and every other body with softened gravity, ai = Σ G mj (rj−ri)/(|rij|²+ε²)3/2. Integration is kick-drift-kick leapfrog (symplectic, so orbits do not spiral numerically). Two bodies that touch merge into one, conserving mass and linear momentum; the orbital angular momentum that was in their relative motion is turned into spin and tracked in a "spin" account, so the total stays exact.

Roche limit. Inside aR ≈ 2.44 Rp (ρp/ρm)1/3 (fluid body) the planet's tidal gradient across a clump exceeds its own self-gravity, so clumps are torn apart. Here, merging is simply forbidden inside aR; this is why Saturn's rings stay rings while its distant moons grew. Outside it, shear is weak enough for clumps to collect.

Time unit. One orbit at 3 planetary radii: T = 2π√(a³/GM). Units are G = 1, planet mass 1000, planet radius 1. For an Earth-like planet (Moon = 1.23 % of Earth's mass) the readout "Moon masses*" rescales the largest body accordingly.

Honest simplifications. A flat 2D disc (real discs have thickness and an inclination spread); about 360 particles instead of billions; collision radius is a fixed multiple of the Hill-radius scale (∝ m1/3) instead of true sizes, and every contact is a perfectly sticky merger (no bouncing or fragmentation); no gas, no planet spin or tidal evolution, no heating. It shows the qualitative sequence (ring inside, moonlets outside, growth by mergers), not the true timescale of lunar formation.