Hierarchical N-body solver

Fast Multipole Gravity Lab

Adaptive quadtree fast-multipole solver for softened 2D Newtonian gravity — Cartesian multipole & local expansions, dual-tree traversal, live O(N²) spot checks.

M2M → M2L → L2L → P2P
Particles—
FPS—
Solve—
Tree nodes—
M2L calls—
P2P pairs—
Force err—
M2M 0.0 · M2L 0.0 · L2L 0.0 · P2P 0.0 ms
Click to inject a particle cloud · Shift-click to add a massive body · Space pauses