Governing dynamics
Each moon is integrated in a Saturn-centred, non-rotating equatorial frame. The acceleration includes Saturn's monopole and equatorial J₂ field, the other moon's gravity, and the indirect acceleration of Saturn.
r̈ᵢ = −(1 + mᵢ) rᵢ / rᵢ³ − 3J₂R² rᵢ / (2rᵢ⁵) + mⱼ[(rⱼ − rᵢ)/d³ − rⱼ/rⱼ³]
textbook equation · dimensionless form
Integration and the orbit swap
A fixed-step velocity-Verlet integrator advances the coupled equations with a scaled numerical step of about 120 s. The display removes the reference mean motion, revealing the slow horseshoe-shaped motion. Close encounters exchange orbital angular momentum: the inner moon moves outward and the outer moon inward.
n² = GM/r³ [1 + ³⁄₂ J₂(R/r)²]
textbook equatorial circular-frequency check
Real values vs scaled
Textbook constants: G = 6.67430 × 10⁻¹¹ m³ kg⁻¹ s⁻²; Saturn mass = 5.6832 × 10²⁶ kg; equatorial radius = 60,268 km; J₂ = 0.016298; Janus mass = 1.90 × 10¹⁸ kg; Epimetheus mass = 5.30 × 10¹⁷ kg. The reference radii are about 151,472 km and 151,422 km. Illustrative: the initial 50 km offset and 180° longitude gap create a clean starting snapshot, not a dated ephemeris. Scaled: the rotating-frame camera fits the orbit to the screen, the moon discs are enlarged, and the time-scale slider changes playback only.
The model is planar and starts circular. It omits Saturn's higher gravity harmonics, ring forces, other moons, orbital inclinations and eccentricities, and the moons' irregular shapes. Saturn's rings are stylised scenery, not a force source. The displayed close-approach cycle is therefore an educational approximation, not a precision ephemeris.
Illustrative educational model, not affiliated with any real institution or manufacturer.