← All projectsGitHub
Digital twins & sim-to-real

How many fixed steps per orbit does a twin need before an eccentric orbit stops drifting?

research/free-keplerdrift

How many fixed steps per orbit does a twin need before an eccentric orbit stops drifting? Against the exact Kepler solution RK4 needs 64 to 4096 steps per orbit (e = 0 to 0.9), the symplectic pair 8 to 16 times more, and at e = 0.9 every fixed step fails.

7 tests

What it found

Explicit Euler, semi-implicit Euler, velocity Verlet and RK4 against the exact Kepler solution (Newton on Kepler's equation), eccentricity 0 to 0.9. Explicit Euler never works. The symplectic pair has bounded but large energy excursions at 100 steps per orbit (semi-implicit 12% of |E0| at e = 0.5, 71% at 0.7) and a periapsis direction that wanders (−0.62 rad after 50 orbits at e = 0.5), while RK4 creeps 0.004 rad. For position error under 0.01 a over 10 orbits RK4 needs 64, 128, 512, 4096 steps per orbit at e = 0, 0.3, 0.7, 0.9 against 512, 1024, 8192, >8192 for the symplectic pair, so RK4 is cheaper even at four force evaluations per step. At e = 0.9 every fixed step fails at 100 per orbit. Unit-scale two-body problem, ten-orbit horizon, textbook schemes, not MuJoCo or PyBullet. Every input is exact or swept; nothing is assumed.

A figure from its own output

Figure produced by research/free-keplerdrift: pos_error
free-keplerdrift/experiments/pos_error.svg, written by the project's own experiment code.

Paper, code and results

More in Digital twins & sim-to-real

All 164 Digital twins & sim-to-real projects →

Other research topics

Proper scoring & elicitation28Effort & peer prediction9Verification games & slashing19Detection & tolerances14Markets as routers13Prediction-market design9Paying contributors8Decentralised training systems23Digital twins & sim-to-real164LLM chip design loops40Robot manufacturing loops53Ambient AI assistant46Self-replicating manufacturing34Simulation-first design64Engineered clothing45Task-specific AI accelerators40Algorithmic chip-design loops42Open-source purpose-built robots44The software-engineering loop43Adversarial human imitation41Open-source residential construction41Autonomous multi-angle capture34Sensing, imaging and 3D31Energy supply and dense energy storage39Robot societies among people31Agentic co-design of low-cost robots27Laundry-hanging robots25Machine learning on qualitative data23Robots on the building site27Civilizations & group psychology1History & human sciences1

Produced with AI assistance (Claude). Results are from the code in this repository and are simulated or stylised unless the abstract says otherwise; nothing here implies affiliation with or endorsement by any lab, researcher or company cited. MIT licensed.