Newtonian three-body dynamics
r̈ᵢ = G Σⱼ≠ᵢ mⱼ (rⱼ − rᵢ) / |rⱼ − rᵢ|³
Saturn, Janus and Epimetheus are integrated together in an inertial barycentric frame. The engine uses kick–drift–kick velocity-Verlet with a fixed 300 s illustrative time step; display speed changes only how many fixed steps are advanced per frame.
vₙ₊½ = vₙ + ½Δt a(rₙ) · rₙ₊₁ = rₙ + Δt vₙ₊½ · vₙ₊₁ = vₙ₊½ + ½Δt a(rₙ₊₁)
Initial conditions
Published 1 June 2007 osculating elements are converted using Kepler's equation, E − e sin E = M, with M = λ − ϖ. The barycentre is then shifted to the origin, including Saturn's small reflex motion.
Live diagnostics
ε = v²/2 − μ/r · a = −μ/(2ε)
Instantaneous osculating semi-major axes and mutual separation are calculated from the integrated state. The independent baseline check measures successive yearly-window minima in a separate eight-year velocity-Verlet integration and compares their interval with the published approximately four-year exchange cycle.
Real values vs scaled view
Textbook values: Saturn GM 3.7931207066 × 10⁷ km³/s²; Janus mass 1.896 × 10¹⁸ kg; Epimetheus mass 5.262 × 10¹⁷ kg; mean orbital radius about 151,450 km. In Scaled mode, orbital radial exchange is magnified ×40 and moon markers ×30; the Saturn-to-orbit distance remains proportional. True mode removes radial magnification and uses physical marker sizes with a minimum visibility dot. All telemetry stays in physical units.
What is simplified
Planar point masses; Saturn is spherical. Saturn's J₂ and higher harmonics, moon inclinations, ring torques, solar perturbations, non-spherical moon shapes and long-term ephemeris corrections are omitted. This is a teaching model, not a precision ephemeris.
Illustrative educational model, not affiliated with any real institution or manufacturer.
Reference data: NASA Saturnian Satellite Fact Sheet; JPL Planetary Satellite Physical Parameters; Cooper et al. (2015) orbital elements; published Janus–Epimetheus co-orbital studies.