Hierarchical N-body solver

Fast Multipole Gravity Lab

Adaptive quadtree + Cartesian kernel Taylor expansion: far-field multipoles and exact neighbouring forces, solved in near-linear time. Softened 2-D Newtonian gravity.

M2M → M2L → L2L → P2P
Click to inject a particle cloud · Shift-click to add a massive body · Space pauses