Presets
Playback
Orbit
Camera
Layers
Quality
Model check
The science
What is modelled
Two point masses m1 (the primary) and m2 attract each other by Newtonian gravity and move around their common centre of mass, the barycentre. Neither body is fixed: the heavier one wobbles on a small orbit while the lighter one sweeps a large one. Pick a real pair or change the mass ratio and eccentricity yourself. The original page that held this id only showed a Sun, Earth, Moon and Mars drawing; here the Earth-Moon idea is made quantitative.
Equations
- Relative position
r = r2 - r1obeysr'' = -G(m1+m2) r / |r|³, a Kepler problem with total mass M = m1+m2. The page integrates it with RK4 and a step that shrinks near periapsis. - Barycentre at the origin:
r1 = -q r,r2 = (1-q) r, withq = m2/M. For a circular orbit the primary circles at distancea q; for an eccentric one the time-average of |r1| isa q (1 + e²/2). - Kepler III with the total mass:
T = 2π √(a³ / G M). - Radial-velocity signal seen by an observer on the +x axis, orbit tilted so the line of sight makes angle i with the orbit normal: semi-amplitude
K = q √(G M / a) sin i / √(1 - e²). This is how the Doppler method detects planets by the wobble of their star. - The barycentre lies inside the primary when
a q < R1.
Checks run in the page
- A separate integration of both bodies with the direct force law (SI units) against the closed-form solution from Kepler's equation after 3 orbits.
- Period measured from that integration against Kepler III with m1+m2.
- Semi-amplitude of the live radial-velocity curve against the closed-form K.
- Time-averaged barycentre distance against
a q (1 + e²/2), plus energy and angular-momentum drift of the direct run.
Honest simplifications
- Only two bodies: the real Moon's orbit is perturbed by the Sun (it is not a closed ellipse), Charon and Pluto have four small moons, and Jupiter's wobble of the Sun is mixed with Saturn's. The Earth-Moon, Pluto-Charon and Sun-Jupiter rows use mean orbital elements as isolated pairs.
- Bodies are point masses for the dynamics. Spheres are drawn to scale only at exaggeration 1; the yellow ring always shows the primary's true radius. Phobos is not a sphere.
- Tides, rotation, relativity and the Sun's own motion in the galaxy are ignored. The numeric values for masses, radii and semi-major axes are rounded literature figures typed from memory and should be treated as approximate.
- The equal-mass pair is a toy, not a known system.
What to try
- "Earth and Moon": the barycentre is about 4,670 km from Earth's centre, roughly 0.73 Earth radii, so it is inside Earth.
- "Pluto and Charon": the barycentre is outside Pluto, so both bodies circle a point in empty space.
- "Sun and Jupiter": the barycentre sits just above the Sun's surface; the radial-velocity curve is the signal a distant astronomer would measure (about 12.5 m/s).
- Drag the tilt slider toward 5 degrees and watch K shrink: face-on orbits hide the wobble from Doppler surveys.
Loading model...
Loading Blender model...