Hierarchical N-body solver

Fast Multipole Gravity Lab

A live 2D Newtonian gravity system using Cartesian multipole and local Taylor expansions with exact near-field interactions.
M2M → M2L → L2L → P2P
Particles
—
FPS
—
Solve
—
Tree nodes
—
M2L pairs
—
Sample error
—
Click to inject a particle cloud · Shift-click to add a massive body · Space pauses