Conceptcore
Multipole expansion
Also called multipole series.
Writes the far-field potential of a cluster of sources as a series in inverse powers of distance, whose first terms are the monopole, dipole and quadrupole.
A multipole expansion writes the potential of a group of sources, seen from far away, as a sum of terms that fall off faster and faster with distance. For sources of mass at positions inside a ball of radius around a center, and a point at distance from that center, the gravitational potential is
where is the angle between and and is the Legendre polynomial of degree . The term of degree is of size relative to the first one, so a few terms give the potential to a known accuracy. The coefficients depend only on the sources, so they can be computed once and used for many far points. This is the basis of tree codes and of the fast multipole method.
In plain words
From far away, a group of stars pulls almost like one star with the total weight, placed at the center of the group. This is the first and largest part of the pull. The next parts correct for the shape of the group: whether it is stretched out in one direction, or flat, and so on.
Each correction is smaller than the one before it, and it gets smaller faster when the point is farther away. So for a distant point, a few numbers that describe the group give its pull almost exactly. These numbers are the same for every distant point, so they are worked out once and used many times. A computer can then treat a far group as one object instead of adding up each of its stars.
The idea
The expansion. The generating function of the Legendre polynomials gives, for ,
and the series converges absolutely because on (theorem). Summing over the sources gives the expansion above.
The first terms in Cartesian form. With , the dipole and the traceless quadrupole ,
Gravity has only positive masses, so the monopole is never zero. If the center is the center of mass, the dipole is zero, and the first correction is the quadrupole, of relative size . This is why tree codes put the expansion center of a cell at its center of mass.
The truncation error. If all sources lie within radius of the center and the expansion stops after degree , the error is at most (theorem, for positive masses; see the multipole truncation error bound). The error falls geometrically in with ratio , which is what a multipole acceptance criterion controls.
Spherical harmonics and two dimensions. In three dimensions, the addition theorem writes with spherical harmonics, so an expansion to degree has coefficients. In two dimensions, with complex positions and the potential , the expansion is with and , so degree needs coefficients (Greengard 1988).
Translations. An expansion about one center can be moved to another center farther from the far point, and a far expansion can be turned into a local Taylor series near the target (multipole-to-local translation). These two operations make the fast multipole method run in time.
Examples
Two masses on a line. Take unit masses at , , and the point . The exact potential is .
| degree | term | partial sum (sign of dropped) |
|---|---|---|
| 0 (monopole) | 0.666667 | |
| 1 (dipole) | 0.666667 | |
| 2 (quadrupole) | 0.740741 | |
| 3 | 0.740741 | |
| 4 | 0.748971 |
The center is the center of mass, so all odd terms are zero. In Cartesian form, , and the quadrupole term is . The series is . Here , and the bound of degree gives , larger than the true error .
A non-example. The expansion does not converge for a point inside the ball of the sources. At the terms of the series grow like ; this is why a tree code must open a cell that is too close.
Where it is used
- The Barnes-Hut algorithm and other tree codes use the monopole, or the monopole and the quadrupole, of each cell about its center of mass.
- The fast multipole method uses expansions to a degree chosen for the accuracy, with translations between centers.
- Error analysis of tree codes: the multipole acceptance criterion and the bounds of Salmon and Warren (1994) are bounds on the truncated series.
- Potential theory for galaxies: the potential of a smooth density is expanded in spherical harmonics outside and inside each radius (Binney and Tremaine, Chapter 2).
- Electrostatics and the gravity field of the Earth, with the same series.
References
- Leslie Greengard, The Rapid Evaluation of Potential Fields in Particle Systems, MIT Press, 1988, the multipole expansions in two and three dimensions and their error bounds
- Sverre J. Aarseth, Gravitational N-Body Simulations, Tools and Algorithms, Cambridge University Press, 2003, Section 3.4 (multipole expansion)
- James Binney and Scott Tremaine, Galactic Dynamics, 2nd edition, Princeton University Press, 2008, Chapter 2 (potential theory)
- John K. Salmon and Michael S. Warren, Skeletons from the treecode closet, Journal of Computational Physics 111(1), 1994, 136-155, the error bounds of truncated multipole expansions in tree codes
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag FSZE62 Edit this page History Report an error Markdown