Loading the 3D scene…

A what-if, computed with Newton's gravity from today's real positions. Not the real Solar System.A what-if, not the real Solar System

● LIVE

Moons

Earth

Mars

Jupiter

Saturn

Uranus

Neptune

Pluto

Eris

Haumea

Guide to the buttons

Solar System Sandbox: a Gravity Simulator in 3D, Free

Away from its real place…Earth
a second every second

Nothing is changed: see how long the what-if stays on the real places, the ghosts. Then pick a change.

From the start
0 secs

Fitting the start to the real positions…

Ghosts: where each body really is

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.

Bodies are drawn as markers, not to size; distances are true.

Throw a body

Tap a body to read how far it has drifted.

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

  1. 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.
  2. 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.
  3. Tap any body to read how far it is from where it really is, in kilometres and as an angle.
  4. 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