Orrery
Jan 01, 2026 day 0
no alignment

an orrery from first principles

Newtonian Orrery

The planets are not on rails. Each body is seeded with a velocity from the vis-viva equation, then integrated under gravity. From that motion the simulation forecasts the next solar eclipse.

drag to orbit · scroll to zoom · space to pause

How this orrery works

Every planet starts with a position on its orbit and a velocity computed from the vis-viva equation, v = √(μ · (2/r − 1/a)). Nothing follows a drawn ellipse: a velocity-Verlet integrator advances each body under Newton's law of gravitation, and the orbits emerge from the accelerations.

A solar eclipse is detected from geometry alone. Seen from Earth, when the Moon sits within a narrow cone of the Sun and on the sunward side, its shadow falls on Earth. The Moon's ~5° orbital tilt is why this happens only a couple of times per simulated year. The forecast re-integrates a private copy of the system forward and reports the next alignment.