Orbit propagation as a physics-preservation test
This problem compares Euler, RK4, RK7-style, Symplectic Leapfrog, and Velocity Verlet for ideal two-body orbit propagation.
The goal is not only to see which curve looks smooth. The goal is to check whether the numerical method respects the physical structure of orbital motion.
does the orbit stay physically bounded, or does the integrator create false drift?
No drag, no thrust, no energy loss
In the ideal two-body problem, gravity is the only force. There is no aerodynamic drag, thrust, or perturbation.
Because the system is conservative, specific mechanical energy should remain constant:
Euler does not preserve orbital geometry
Euler integration is easy to understand, but it often injects numerical energy into orbital motion. This can make the orbit spiral outward even though the physical model contains no thrust.
But in an ideal two-body problem, that drift is numerical.
Higher order reduces error, but does not guarantee structure preservation
RK4 and RK7-style methods reduce local truncation error. They often produce much better trajectories than Euler for the same step size.
However, standard RK methods are not designed specifically to preserve the Hamiltonian structure of orbital motion over very long durations.
Symplectic methods: stronger long-term structure preservation
Updating velocity and position in a structure-aware way
Symplectic Leapfrog and Velocity Verlet split the update into velocity and position stages. This makes them especially useful for conservative systems such as orbital mechanics.
Interactive orbit propagation comparison
Adjust altitude, eccentricity, timestep, number of orbits, and method selector. The simulation compares orbit path, energy drift, radius drift, final position error, and step-size sensitivity.
Watch small numerical differences grow
The plots above use the selected number of orbits. Increase the orbit count and timestep to see how long-term differences become more visible.
Generate a timestep sensitivity map
This section sweeps timestep values and compares final position error for all methods.
When structure matters more than solver order
Useful for teaching, but poor for long-term orbit propagation.
Accurate and useful, but not automatically structure-preserving.
Strong for conservative orbital systems because they preserve long-term structure.
A required diagnostic for ideal two-body propagation.
What this problem shows
together reveal whether the numerical result is physically trustworthy.