Loading the engineShared by all simulations, so the next one opens instantly.
The physics

Put several satellites on the same elliptical orbit, each a rotated copy of the others, and start them all at periapsis at the same moment. The satellites are too light to disturb each other, and gravity has no preferred direction, so the arrangement stays symmetric: at every instant the satellites form a regular polygon. Navigation constellations apply the same idea in three dimensions; GPS was designed around 24 satellites in six orbital planes.

What you see

N colored satellites orbit a star of mass 1, with G=1. Every orbit has semi-major axis a=1.5 and the same eccentricity e, and satellite i starts at the periapsis of its own ellipse, rotated by 2πi/N from the first.

On circular orbits the polygon simply turns at constant speed. On elliptical orbits it breathes: it shrinks to radius a(1−e) and spins quickly through periapsis, then grows to a(1+e) and turns slowly at apoapsis. This is Kepler’s second law, acting on all satellites at once. The trails trace N rotated copies of the ellipse, a rosette that leaves an empty disk of radius a(1−e) around the star. The view reaches 2.5 units from the star, or farther when the apoapsis lies beyond that, so every orbit stays whole.

Governing equation

The satellites have mass 10−10, so each one moves in the field of the star alone:

𝐫¨=−GM𝐫(r2+ε2)3/2.

Each starts at periapsis with the vis-viva speed

vp=GM(1+e)a(1−e),

so every satellite has the period T=2πa3/GM≈11.5, whatever e is. The equation does not change under a rotation about the star, so satellite i at time t is satellite 0 at time t, rotated by 2πi/N.

Presets

6 circular orbits: a regular hexagon turning rigidly on one circle.

6 elliptical orbits (e=0.6): the hexagon pulses between radius 0.6 and 2.4, and the trails draw a six-petaled rosette.

20 satellites (crowded): twenty satellites evenly spaced on one circle, the most the slider allows.

8 high-eccentricity (e=0.85): an octagon that collapses to radius 0.225 at periapsis and swings out to 2.775 at apoapsis. The view widens to 3 units to hold it.

Parameters

Satellites: the number of satellites N, 2 to 20 (default 6).

Eccentricity: shared by all orbits, 0 to 0.9 (default 0).

Time step dt: the integration step, 0.0005 to 0.04 (default 0.005). Steps per frame: 1 to 32 (default 8).

Integrator and Softening: leapfrog and 10−4 by default.

The remaining controls change only the drawing.