Hierarchical N-body solver

Fast Multipole
Gravity Lab

Explore the hidden structure of gravity. Nearby bodies interact exactly while distant groups are summarized by multipole expansions.

M2M → M2L → L2L → P2P

Live telemetry

Particles1,024
FPS—
FMM solve— ms
Tree nodes—
M2L pairs—
Sample force error—
Click to inject a particle cloud · Shift-click to add a massive body · Space pauses