N-Body Gravity & Habitable Zone Simulator

AstroSimLab

๐ŸŒŒ N-BODY GRAVITY & HABITABLE ZONE

4th-Order Symplectic Engine Habitable Zone (CHZ) Momentum Conserving
Click & Drag: Launch Body Click Body: Inspect Telemetry Scroll: Zoom Right-Click/Drag: Pan Space: Pause

About the N-Body Gravity & Habitable Zone Simulator

This is a two-dimensional gravity sandbox for up to four bodies. Every body pulls on every other body with the exact Newtonian inverse-square force, with no softening, and the orbits are advanced by an adaptive fourth-order symplectic integrator that keeps energy and angular momentum stable over long runs.

You can start from presets such as the Sun with Venus, Earth and Mars, a binary star with planets, the figure-8 three-body choreography or a chaotic three-body system, or build your own in empty space. Bodies merge only when they physically touch, conserving mass and momentum. The habitable zone around each star is drawn from its luminosity.

How to use it

  1. Pick a preset system or the empty space sandbox.
  2. Launch a new body with Direct Aim or Slingshot mode and set the launch speed.
  3. Turn on orbit prediction, velocity vectors, the grid and the habitable zone, and watch the live orbital telemetry.

Frequently asked questions

What is the three-body problem?

Two bodies under gravity follow exact, repeating orbits, but three or more generally have no closed-form solution. Small changes in the starting positions lead to very different outcomes, so the motion has to be computed step by step, as this simulator does.

What is a habitable zone?

The habitable zone is the range of distances from a star where a planet with a suitable atmosphere could keep liquid water on its surface. It lies farther out and is wider around more luminous stars.

How accurate is this gravity simulator?

For Earth around the Sun it reproduces the Kepler period and conserves energy and angular momentum over 30 simulated years, it holds the shape of a highly eccentric orbit with eccentricity 0.9, and the integration is time reversible. It is a Newtonian model without relativity.