Presets
Playback
The planet moves round the Sun at its real mean speed; the slider sets which way (relative to this view).
Planet and approach
Sun-frame geometry
Playback
Camera
Layers
Quality
Model check
The science
What is modelled
The 3D scene is a Blender-modelled set (planets with baked textures, a comet nucleus and a probe) for illustration; the motion is the same physics as in the 2D page. A comet or probe flies past a planet. Seen from the planet (the planet frame) nothing but the planet's gravity acts, so the path is an exact two-body hyperbola and the object leaves with the same speed it arrived with. Seen from the Sun, the planet itself is moving, and turning the object's velocity relative to the planet changes its speed relative to the Sun. That change is the gravity assist. The path is integrated in the planet frame with an adaptive fourth-order Runge-Kutta scheme (step about 0.6 % of min(r/v, √(r³/GM))), and the Sun-frame numbers are built from the integrated velocities.
Equations
- Planet frame energy:
½v² − GM/r = ½v∞², so the speed far away is the same before and after (v∞is conserved). - Hyperbola:
e = 1 + rp v∞²/GM, impact parameterb = rp√(1 + 2GM/(rp v∞²)), periapsis speedvp = √(v∞² + 2GM/rp). - Bend angle:
sin(δ/2) = 1/e = 1/(1 + rp v∞²/GM). A closer pass or a slower approach bends the path more. - Sun frame: with the planet moving at
Uand the planet-frame velocitieswin,wout(equal length v∞, rotated by δ):v = U + wand|vout|² − |vin|² = 2 U·(wout − win), where|wout − win| = 2 v∞ sin(δ/2). The largest gain happens when U points alongwout − win(the "Best direction" button); the opposite direction slows the object down. - Where the energy comes from: the planet loses (or gains) a momentum equal and opposite to the object's change, which for a planet a billion billion times heavier is an immeasurably small change of its orbital speed.
Checks run in the page
- The bend angle of the integrated flyby against
sin(δ/2) = 1/e(a separate run from 3000 planet radii, plus the Laplace-Runge-Lenz asymptotes of the plotted run). - Conservation of
v∞, energy and angular momentum along the integrated path. - The periapsis speed against vis-viva.
- The Sun-frame speed change from the integrated vectors against the closed form and against the identity above.
Honest simplifications
The planet is a point mass (no oblateness, rings, moons, atmosphere or drag) and the encounter is planar. Only the planet's gravity acts during the pass: the Sun and the other planets are ignored (the patched-conic idea: a flyby is short compared with an orbit). The planet's velocity U is taken as constant and equal to its mean orbital speed, with the direction a free slider (in real life it is fixed by the geometry of the transfer orbit). The comet or probe is massless and drawn far larger than real. The flyby is started and stopped at a finite distance (at least 14 planet radii), so the asymptote directions are recovered from the Laplace-Runge-Lenz vector of the integrated state instead of the raw velocity. This is a teaching model, not a mission design tool: numbers are not reconstructions of any real spacecraft's trajectory.
What to try
- Press "Voyager-style boost" and watch the Sun-frame speed in the orange graph rise while the blue planet-frame speed returns to where it started.
- Press "Slow down (reverse)": same bend, opposite direction of the planet's motion, and the object is slowed instead.
- Drag closest approach from 20 R to 1 R and follow the dot along the violet bend-angle curve; go below 1 R and the path ends on the planet.
- Switch to Earth or Mars: a small planet bends the path much less at the same speed.