Problemintro
Gravitational N-body problem
Also called N-body simulation.
Given the masses, positions and velocities of N bodies that attract by gravity, compute their positions and velocities at later times.
The gravitational N-body problem asks for the motion of point masses that attract each other by Newton's law of gravity. It is an initial value problem for ordinary differential equations. For it reduces to the Kepler problem, which has a closed-form solution. For the motion is in general chaotic, and the problem is solved by numerical integration. A solver has two parts: a force method, which computes the accelerations at one instant (for example direct summation or a tree code), and a time integrator, which moves the bodies (for example leapfrog, the Hermite scheme or the Wisdom-Holman map). The problem is the model of star clusters, galaxies, planetary systems and the dark matter of the universe.
In plain words
You have a number of stars or planets. You know how heavy each one is, where it is and how fast it moves. Each one pulls on every other one, more strongly when they are close. The task is to find where all of them will be later.
With two bodies the answer is a known curve, such as an ellipse. With three or more bodies there is no simple answer, and very small changes at the start lead to large changes later. So computers find the answer step by step: compute all the pulls, move each body a little, and repeat. The two hard parts are to compute the pulls fast when there are many bodies, and to take steps that stay accurate when two bodies come very close.
Definition
The input is masses , initial positions , initial velocities and an end time . The gravitational constant is ; most codes use units with . The output is and for , the solution of
The system is Hamiltonian, with momenta and
The energy , the total momentum and the angular momentum are constant, and the center of mass moves on a straight line at constant speed (theorem). A numerical solution is judged by the relative energy error and by how well it keeps and . The solution exists until two or more bodies collide, or until a non-collision singularity occurs, where bodies go to infinity in finite time; Xia proved in 1992 that such solutions exist for .
Variants
- Collisional systems. Star clusters and planetary systems, where close encounters change the orbits and must be followed exactly. These use direct summation, individual or block time steps and regularization.
- Collisionless systems. Galaxies and dark matter, where the bodies of the code are samples of a smooth mass distribution. The force is softened, and the limit is the Vlasov-Poisson system.
- Planetary problem. One mass dominates, and the others are small. The motion is close to Kepler ellipses around the dominant mass, which the Wisdom-Holman map uses.
- Restricted three-body problem. One body has zero mass and moves in the field of two bodies on circular or elliptic orbits.
- Cosmological problem. The bodies are in an expanding periodic box; the long-range force is computed with particle-mesh, P3M or TreePM and periodic boundary conditions.
Examples
Circular two-body orbit. Take , two bodies of mass at with velocities . The separation is , the total mass is and the relative speed is , so the bodies move on a circle with period . The kinetic energy is , the potential energy is , and . Here at each instant, which is the virial relation for a bound system on average.
The figure-eight orbit. Three equal masses can follow one figure-eight curve, each one a third of a period behind the next. Chenciner and Montgomery proved in 2000 that this periodic solution exists. It is a common test for integrators because it is stable and its period is known to many digits.
A star cluster. A Plummer sphere of equal masses in the standard units (, total mass , ) has a crossing time of a few time units. It evolves by two-body encounters over many crossing times, and after many relaxation times its core collapses.
Known algorithms
The force part:
- Direct N-body summation: per evaluation, exact.
- The Barnes-Hut algorithm and other tree codes: for non-pathological distributions, with an error set by the multipole acceptance criterion.
- The fast multipole method: for a fixed accuracy.
- Particle-mesh, P3M and TreePM: a mesh and an FFT for the long-range part.
The time part:
- Leapfrog with a shared step: symplectic, second order, for collisionless systems.
- The fourth-order Hermite integrator with block time steps: the standard for collisional systems.
- The Wisdom-Holman map: a symplectic splitting for planetary systems.
- Kustaanheimo-Stiefel regularization: smooth equations for close pairs.
Bounds
- No useful closed form (theorem). Sundman found in 1912 a convergent power series for the solution of the three-body problem with nonzero angular momentum, and Wang extended it in 1991 to for solutions without singularities. The series converge so slowly that they are of no use in practice (Diacu 1996).
- Force cost. One exact evaluation of all accelerations costs operations by direct summation. The approximate methods reach or with a controlled error.
- Sensitivity (measurement). In numerical experiments, two nearby solutions of a system of many bodies separate at an exponential rate, with an e-folding time of the order of the crossing time. So a single solution can not be computed accurately for long times, and the results of a simulation are statistical.
- Relaxation time (estimate). Two-body encounters change the orbits of a system of equal stars in about (Binney and Tremaine, Chapter 1). For this is about 1100 crossing times, and for a galaxy with it is about crossing times, so galaxies are collisionless.
Reductions
- to the Kepler problem. The relative position obeys , and the center of mass moves uniformly. The orbit is a conic section.
- to the Vlasov-Poisson system. With the total mass fixed and the masses , the distribution of the bodies in phase space tends to a solution of the collisionless Boltzmann equation coupled to the Poisson equation for the potential.
- Softened problem. Replacing by gives a smooth Hamiltonian system with no collisions, at the cost of a wrong force at distances below about .
Applications
Star clusters and the growth of black holes in their cores; the stability of planetary systems over billions of years; the formation of galaxies and of the large-scale structure of the universe; the orbits of spacecraft and asteroids. The same structure, with a different pair force, is the basis of molecular dynamics and of smoothed particle hydrodynamics.
References
- Sverre J. Aarseth, Gravitational N-Body Simulations, Tools and Algorithms, Cambridge University Press, 2003, Section 1.2 (historical developments), Section 1.3 (basic concepts)
- James Binney and Scott Tremaine, Galactic Dynamics, 2nd edition, Princeton University Press, 2008, Chapter 1 (relaxation time), Chapter 4 (collisionless systems)
- Florin Diacu, The solution of the n-body problem, The Mathematical Intelligencer 18, 1996, 66-70, the convergent series of Sundman and Wang
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag HBN91K Edit this page History Report an error Markdown