Computational, Survey & Data Astronomy › Computational astrophysics
N-body simulations
An N-body simulation follows millions to billions of particles - stars, dark matter or planets - as they pull on each other by gravity, evolving step by step. It is the main way to test ideas about galaxy formation and star cluster dynamics.
Key takeaways
- Each particle feels every other's gravity; direct summation costs N squared, tree or mesh methods cut it to N log N.
- Gravity-only runs reproduce how dark matter halos weave the cosmic web.
- Star clusters, planetary systems and galaxy mergers are all studied this way.
- Resolution sets the smallest resolved mass and length, so results must be checked for convergence.
What N-body simulations means
An N-body simulation follows the motion of many particles - stars, dark matter clumps or planets - as they pull on each other through gravity. The computer solves the equations of motion step by step, letting millions to billions of particles evolve over cosmic time. It is the main tool for testing ideas about galaxy formation, dark matter structure and star cluster dynamics that cannot be solved on paper.
Try it — interactive simulation
A true Kepler orbit around a 1 M☉ star (a = 1 AU, T = 365.25 d): the planet sweeps equal areas in equal times, so it moves fastest at periapsis. The orbit plane is tilted by inclination i and rotated by ω against the dashed plane of the sky.
History & methods
How it is measured or modeled
Modern work combines instruments with data reduction and inference. Observers correct instrumental and selection effects; theorists and simulators explore parameter ranges; statistical methods compare competing explanations. Repeating the measurement with a different instrument or technique is especially valuable because it exposes hidden systematic errors.
Historical development
Ideas related to N-body simulations evolved as angular measurement, clocks, optics, spectroscopy, photography, electronics, spacecraft and computation improved. Historical models should be read in the context of the evidence available at the time: later observations often preserved useful mathematics while replacing the underlying physical picture.
Editorial note
Anchor: N-body methods integrate the mutual gravitational evolution of many particles or bodies, usually with approximations that trade exact pair forces for computational speed at large N.
References & further reading
- About the Astropy Project (The Astropy Project)
- Gravitational-Wave Science (LIGO Scientific Collaboration)
- Large Scale Structures (NASA Science)
- Astropy Project (Astropy)
- NASA Astrophysics Data System (SAO/NASA)
- Data Products, Pipelines, and Services (Vera C. Rubin Observatory)
- Alerts and Brokers (Vera C. Rubin Observatory)
- International Virtual Observatory Alliance (IVOA)
- Educational Resources in the Virtual Observatory — IVOA Recommendation 1.0 (International Virtual Observatory Alliance)