Home▸Algorithms & AI▸Fast Multipole Expansion: Error against Order for a Star Cluster (2D)

Fast Multipole Expansion: Error against Order for a Star Cluster (2D)

A plan view of the star cluster, its circle, the orbiting probe and the multipole error against order, with the rigorous Greengard-Rokhlin bound. Same expansion, direct sum and checks as the 3D table.

Algorithms & AI2DModerate60 FPS📱 Mobile-adapted🟠 Blender⇄ 3D version
Fast Multipole Expansion: Error against Order for a Star Cluster (2D) ↗ Open standalone

The fast multipole method replaces the pull of a whole cluster of stars on a faraway probe by a short series of moments about the cluster centre. Each extra term shrinks the error by about the ratio of cluster radius to probe distance. Choose the number of stars, the cluster shape, the ratio of cluster radius to probe distance and the expansion order, then watch a probe circle the cluster and compare the multipole potential and field with the exact direct sum and with the rigorous error bound. A Blender-built display table with numerical checks, including the exact shift of an expansion to a new centre.

⚙ Under the hood

A plan view of the star cluster, its circle, the orbiting probe and the multipole error against order, with the rigorous Greengard-Rokhlin bound. Same expansion, direct sum and checks as the 3D table.

Fast Multipole MethodMultipole ExpansionError BoundStar Cluster PotentialN-Body AlgorithmLogarithmic PotentialNumerical Analysis

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)