Skip to main content

Module kepler_orbit

Module kepler_orbit 

Source
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

  1. Equations: E constant, L constant, T² ∝ a³
  2. Failing Tests: E drifts >1e-10, L drifts >1e-12, T error >1e-6
  3. Implementation: Störmer-Verlet symplectic integrator
  4. Verification: All three conservation laws hold
  5. Falsification: Add third body perturbation, laws break

Structs§

KeplerOrbitDemo
Kepler Orbit demo state.
Vec2
2D vector for orbital mechanics.