Skip to contentScholarGate
LibraryBookshelfDeskReview StudioAssistant
Sign in
On this page
IntuitionHow it worksWhen to use itStrengths & limitationsCommon pitfallsApplicationsFrequently asked🔒 Read the full methodSourcesRelated methods
Cite this pageSpotted an issue on this page? Report or suggest a fix →
Home›Applied Physics›N-Body Simulation
Process / pipelineComputational Physics

N-Body Simulation

Also known as: gravitational N-body problem, many-body simulation

N-body simulation is a computational method for modeling the dynamics of a system of particles under mutual gravitational forces. Originating from Newton's laws of motion and gravitation, it solves the fundamental equations of celestial mechanics. This technique is essential for understanding planetary orbits, star cluster evolution, and cosmological structure formation.

ScholarGate
  1. Process / pipeline
  2. v1
  3. 3 Sources
  4. PUBLISHED
Cite this page →
Tools & resources
Download slides
Learn & explore

Read the full method

Members only

Sign in with a free account to read this section.

Sign in

Method map

The neighbourhood of related methods — select a node to explore.

N-Body Simulation
Cosmological Perturbatio…Gravity AssistHohmann TransferLight Curve AnalysisOrbit Determination (Lam…Gravitational Wave Match…Radial Velocity Method

When to use it

Use N-body simulation when studying planetary systems, stellar dynamics, galaxy formation, or spacecraft trajectory design. It applies when the system is too complex for analytical solutions and when direct integration of Newton's equations is feasible. Avoid when extremely long timescales (Gyr) are needed without approximations, or when relativistic effects dominate.

Strengths & limitations

Strengths
  • Directly implements physical laws; results are physically transparent
  • Flexible for arbitrary number of bodies and configurations
  • Can detect orbital chaos and resonances
  • Suitable for hierarchical integration (using adaptive timesteps)
Limitations
  • Computational cost scales O(N²) or worse; impractical for >10⁶ bodies without approximations
  • Numerical errors accumulate over long timescales; long-term stability is questionable
  • Cannot easily handle collision or close approaches without special handling

Frequently asked

What integration method should I use?

Verlet or leapfrog methods conserve energy well and are popular. For high precision, use Runge–Kutta or symplectic integrators. For large systems, adaptive timestepping (using cluster methods) is more efficient.

How do I handle close approaches or collisions?

Use softening (add a small softening length to the denominator in the force law) to smooth near-singularities, or use collision detection and merging rules if realistic collision is desired.

Why does my simulation show energy loss over time?

Timestep too large, poor integration scheme, or accumulation of rounding errors. Reduce timestep, upgrade to a symplectic integrator, or use double-precision arithmetic.

Sources

  1. Poincaré, H. (1892). Les méthodes nouvelles de la mécanique céleste. Gauthier-Villars. link ↗
  2. Newton, I. (1687). Philosophiæ Naturalis Principia Mathematica. Royal Society. link ↗
  3. Aarseth, S. J. (1985). Direct methods for N-body simulations. In Multiple Time Scales (pp. 377-418). Springer. DOI: 10.1016/b978-0-12-123420-1.50017-3 ↗

How to cite this page

ScholarGate. (2026, June 3). N-Body Simulation. ScholarGate. https://scholargate.app/en/applied-physics/n-body-simulation

Related methods

Cosmological Perturbation TheoryGravity AssistHohmann TransferLight Curve AnalysisOrbit Determination (Lambert's Problem)

Which method?

Set this method beside its closest kin and read them side by side — the library lays the books on the table; the choice is yours.

  • Cosmological Perturbation TheoryApplied Physics↔ compare
  • Gravity AssistApplied Physics↔ compare
  • Hohmann TransferApplied Physics↔ compare
  • Light Curve AnalysisApplied Physics↔ compare
  • Orbit Determination (Lambert's Problem)Applied Physics↔ compare
Compare side by side →

Referenced by

Cosmological Perturbation TheoryGravitational Wave Matched FilteringGravity AssistHohmann TransferLight Curve AnalysisOrbit Determination (Lambert's Problem)Radial Velocity Method

Similar methods

Molecular DynamicsCosmological Perturbation TheoryFast Multipole MethodRunge-Kutta MethodGravitational MicrolensingOrbit Determination (Lambert's Problem)Smoothed Particle HydrodynamicsNFW Halo Profile

Related reference concepts

N-Body Problem and Orbital StabilityN-Body and Particle-Mesh MethodsCentral Force and Orbital MotionVerlet IntegrationKepler Problem and OrbitsGravitational Growth of Structure

Spotted an issue on this page? Report or suggest a fix →

ScholarGate — N-Body Simulation (N-Body Simulation). Retrieved 2026-07-21 from https://scholargate.app/en/applied-physics/n-body-simulation · Dataset: https://doi.org/10.5281/zenodo.20539026
Quick facts
Originator
Isaac Newton
Subfamily
Computational Physics
Year
1687
Type
Computational simulation algorithm
Related methods
Cosmological Perturbation TheoryGravity AssistHohmann TransferLight Curve AnalysisOrbit Determination (Lambert's Problem)
ScholarGate

A content-first reference library for research methods — what each one is, how it works, and where it comes from.

Open data (CC-BY)

Explore

  • Library
  • Search the library…
  • Browse by field
  • Fields
  • Journey
  • Compare
  • Which method?

Reference

  • Subjects
  • Atlas
  • Glossary
  • Methodology
  • Philosophy

Your tools

  • Bookshelf
  • Desk
  • Chat

Company

  • About
  • Pricing
  • Contact
  • Suggest a method

Entries are compiled from published sources for reference. Verifying the accuracy and suitability of any information for your own use remains your responsibility.

© 2026 ScholarGate · A research-method reference library
  • Privacy
  • Cookies
  • Terms
  • Delete account