N-body simulations

An N-body simulation computes how a group of bodies move when every body pulls every other body by gravity, like the planets of a solar system, the stars of a star cluster or the stars of colliding galaxies. With a few bodies, every pull can be computed exactly, and three bodies are already enough for chaos. With thousands of bodies, computing every pair becomes too slow, so the Barnes-Hut algorithm groups distant bodies in a tree, and the Fast Multipole Method goes further by grouping both sides of the interaction. The graphics card can also compute every pair directly for hundreds of thousands of bodies, with no approximation.

Below you can find all online tools with the tag: N-body simulations

Three-Body Problem Simulation

Three-Body Problem Simulation

Create simulations of the Three-Body problem.
Barnes-Hut Simulation

Barnes-Hut Simulation

Simulate galaxies and thousands of bodies attracting each other by gravity, with the Barnes-Hut algorithm.
Fast Multipole Method Simulation

Fast Multipole Method Simulation

Simulate galaxies with tens of thousands of bodies attracting each other by gravity, with the Fast Multipole Method (FMM).
GPU N-Body Simulation

GPU N-Body Simulation

Simulate galaxies with hundreds of thousands of bodies attracting each other by gravity, on your graphics card with WebGPU.