Solar System Sandbox: a Gravity Simulator in 3D, Free
The Solar System as it really is right now, and then as it would be: every body here pulls on every other by Newton's law of gravity, starting from the real positions at the clock's moment. Take Jupiter away, make the Sun a tenth lighter, slow Earth down, send a star past, or throw a body of your own. The faint ghosts stay where the real bodies are, so you can see how far your Solar System has drifted from the real one.
What you can do
- Pick a change from the list, then run the clock: a month a second shows the inner planets, a year a second the outer ones.
- Throw a body: press on the scene where it should start, drag the way it should go, and let go. The dashed line shows the orbit it will take before you release.
- Tap any body to read how far it is from where it really is, in kilometres and as an angle.
- Start again puts everything back to the real Solar System at the clock's moment.
How this simulator works
The start is the real Solar System: the Sun, the eight planets, the Moon and Pluto, where the ephemeris (astronomy-engine, checked against NASA JPL's Horizons) puts them at the clock's moment, with each body's GM from JPL's tables; a planet's moons are counted in its mass, and the Moon is a body of its own. The start is then fitted so that the integration runs through the ephemeris's own positions for four years either side (half a year for the Moon), which takes out the noise in the ephemeris's velocities.
From there, every body pulls on every other as a point mass, and the equations are integrated in a background thread by a symplectic integrator of fourth order (Yoshida's composition of three leapfrog steps) with a step of 2.4 hours, forwards or backwards; a thrown body that comes close to another shrinks the step for the encounter, and two bodies that touch become one.
Left out, and said so: relativity (43 arcseconds a century on Mercury's perihelion), the tides, the planets' flattening, the asteroids and every other small body, and the oblateness of Earth that slowly turns the Moon's orbit. Bodies are drawn as markers, not to size; the distances are true.
The passing star has the Sun's mass, comes in through the plane of the planets at 30 km/s, and passes about 100 AU from the Sun twenty years after the start; its path is the two-body hyperbola, which brings it closest at about 98 AU. A thrown body has no mass unless you give it Earth's or Jupiter's; its first orbit is drawn from its speed and direction alone.
The what-if runs a thousand years either side of its start. It is not a prediction of the real Solar System: the real one is the ghosts.
With nothing changed, the what-if stays within 10′ of the planets' real places (seen from the Sun) and within 10′ of the Moon's (seen from Earth) for 100 years, measured against the ephemeris; the build's test holds it there.
Sources
- astronomy-engine 2.1.19, © Don Cross, MIT licence: the start (every body's place and speed at the clock's moment) and the ghosts, checked against NASA/JPL Horizons
- Astrodynamic Parameters and Planetary Satellite Physical Parameters, NASA/JPL Solar System Dynamics (the GM of each body; a planet's with its moons, DE440)
- H. Yoshida, Construction of higher order symplectic integrators, Physics Letters A 150 (1990) 262–268 (the fourth-order composition of leapfrog steps, step 2.4 h)
- Planetary Physical Parameters, NASA/JPL (the radii at which two bodies touch)