Download the Python RK4 reference script
Inspect orbit_reference.py and test how step size changes energy conservation across 10 revolutions.
Lab 03 · NASA Earth Constants + Live RK4 Integrator
Your spacecraft trails the Space Station by 30° in a 400 km orbit. Instinct says fire your thrusters forward toward it — try it and watch orbital mechanics ruin your plan. Then switch on Earth’s equatorial bulge (J2) to hunt the exact retrograde angle that keeps spy and weather satellites locked to noon sunlight.
Part 1 · The Rendezvous Paradox
Both spacecraft start at 400 km altitude. The Space Station (gold) is 30° ahead of you (cyan). Notice what happens when you burn Prograde (+Δv) vs. Retrograde (−Δv). Catch up inside 3° phase separation and match altitude within 40 km to dock!
Part 2 · Earth’s Equatorial Bulge (J2 Gravity)
Earth isn’t a perfect sphere — it bulges ~21 km wider at the equator. That extra gravity tugs inclined orbits sideways every day (nodal precession). Turn J2 on and hunt the exact inclination where your orbit drifts +0.986°/day — matching Earth’s 360°/year trip around the Sun!
The orbital ring rotates around Earth’s north pole at the real J2 drift rate (accelerated so 1 second = 5 simulated days).