Expand description
Demo 5: Kepler Orbit Conservation Laws
Two-body orbital mechanics verifying all three Kepler laws plus conservation.
§Governing Equations
Newton's Gravitation: F = -GMm/r² r̂
Specific Energy: E = v²/2 - μ/r = -μ/(2a) (constant)
Angular Momentum: L = r × v (constant vector)
Kepler's Third Law: T² = (4π²/μ) a³§EDD Cycle
- Equations: E constant, L constant, T² ∝ a³
- Failing Tests: E drifts >1e-10, L drifts >1e-12, T error >1e-6
- Implementation: Störmer-Verlet symplectic integrator
- Verification: All three conservation laws hold
- Falsification: Add third body perturbation, laws break
Structs§
- Kepler
Orbit Demo - Kepler Orbit demo state.
- Vec2
- 2D vector for orbital mechanics.