Astronomy and Space Exploration ES

Glossary / N / Mathematics and numerical methods

N-body problem

Also: N bodies · N-body · N-body simulation · N-body simulations · Barnes-Hut tree · Barnes-Hut

Illustration: N-body problem

Simulating many bodies that all attract one another: a star cluster, a galaxy, the universe. Since each body feels all the others, the computation grows very quickly with N; the Barnes–Hut trick groups the distant ones together.

Going further

Direct summation: O(N2)O(N^{2}) per step. Barnes–Hut: an octree and a monopole approximation for cells with s/d<θs/d < \theta, O(Nlog⁡N)O(N\log N). The potential is softened, Φ=−Gm/r2+ϵ2\Phi = -Gm/\sqrt{r^{2} + \epsilon^{2}}, to avoid unresolved close encounters.

Where it is explained: Large-scale N-body and the Barnes–Hut tree Higher Education

Related terms

Used in these lessons

← Whole glossaryLessons at this level →