Restricted three-body dynamics
The star and planet move on circular orbits about their barycentre. The asteroid is a massless test particle, integrated in the frame rotating with the pair.
TEXTBOOK · EQUATIONS OF MOTION
ẍ − 2ẏ = ∂Ω/∂x
ÿ + 2ẋ = ∂Ω/∂y
Ω = ½(x² + y²) + (1−μ)/r₁ + μ/r₂
Here μ = Mplanet / (Mstar + Mplanet); distances are measured in the star–planet separation and time in the inverse mean motion. The tangential offset is applied in the rotating frame. The equations are advanced with fixed-step fourth-order Runge–Kutta.
TEXTBOOK · JACOBI INTEGRAL
C = 2Ω − (ẋ² + ẏ²)
The engine value is compared with the initial value to audit numerical conservation.
TEXTBOOK CONSTANTS · G = 6.67430×10⁻¹¹ m³ kg⁻¹ s⁻² · M☉ = 1.98847×10³⁰ kg · M⊕ = 5.9722×10²⁴ kg · 1 AU = 149,597,870,700 m · sidereal year = 365.256363004 d
Real values vs scaled
- Textbook: solar and Earth masses, 1 AU separation, the gravitational constant, and the Kepler time unit.
- Illustrative: the asteroid's initial offset and resulting trajectory; this is not an ephemeris for a named asteroid.
- Scaled: star, planet and asteroid sizes, glow, and playback speed. The plotted distances and elapsed model time retain physical units.
Simplified: planar, circular, Newtonian point masses; no eccentricity, inclination, other planets, asteroid mass, collisions, or non-gravitational forces.
Illustrative educational model, not affiliated with any real institution or manufacturer.