Techniqueadvanced
Multipole-to-local translation
Also called M2L translation, M2L operator.
Converts the multipole expansion of a far cell into a local Taylor expansion about a target cell; it is the costliest step of the fast multipole method.
The multipole-to-local (M2L) translation takes the multipole expansion of the charges in one box and gives a local expansion, a Taylor series, of their field about the center of a second box that is well separated from the first. It is the step of the fast multipole method that connects the two trees: the upward pass builds the multipole expansions, M2L turns them into local expansions, and the downward pass moves the local expansions down to the particles. In 2D, with terms, one M2L costs , and each box takes part in up to 27 of them, against 4 multipole shifts and 4 local shifts. In 3D the interaction list has 189 boxes and a direct M2L costs , so most work on faster FMMs is work on faster M2L.
In plain words
A far group of charges can be described in two ways. The first way is centered on the group: it says how the group pulls on any point far from it. The second way is centered on a region where you want the pull: it says how all far charges pull on points in that region.
The M2L step changes the first description into the second one. It takes the short list of numbers for a source box and gives a short list of numbers for a target box. Many source boxes can then add their lists into one list for the target box. After that, the particles of the target box need only this one list to feel all the sources, instead of one sum for each source box.
When it applies
M2L applies when the field of the sources has a convergent multipole expansion outside a disk (or ball) that holds them, and the target region is a disk (or ball) that lies far enough outside it. In 2D, for charges in the disk of radius about and targets in the disk of radius about , Lemma 4.7 of Beatson and Greengard needs with . In the uniform FMM, two boxes of side in each other's interaction list have centers at least apart and radius , so . It does not apply to near neighbours: there, the series does not converge in the whole target box.
The kernel must have a separable expansion: the logarithm and (Laplace), the Helmholtz and Yukawa kernels with Bessel functions, and in a weaker sense any smooth kernel through interpolation or equivalent densities.
The template
For the 2D logarithmic kernel in complex form, the source expansion about is
- Expand each term about the target center. Move the target center to . For , write and .
- Collect the powers of . This gives with
- Truncate. Keep . The error inside the target disk is less than with (Lemma 4.7, formula (4.20)). It decays like , the same rate as the truncation bound with replaced by .
- Add. M2L is linear in the , so the local expansions from all boxes of the interaction list add into one set of per target box.
- Precompute. In a uniform tree, the M2L operator depends only on the offset of the two boxes in units of the side. In 2D there are offsets. With coefficients scaled by the box size, and , the matrices are the same at every level, apart from a term in .
The cost of one translation by step 2 is multiplications. The matrix is a Hankel matrix in between two diagonal scalings, so an FFT gives the product in .
Classic examples
One charge at the center of the source box. Take at , so and for . Then , with real part , and : , , . At the exact potential is . The local series with gives , an error of . With and the errors are and , close to the factor per term. This case can be checked by hand.
Two charges in an FMM box. Take at and at , in the box of side 1 about , and the target box of side 1 about , so . The multipole coefficients for are , and , and M2L gives and . At the exact potential is . The errors are:
| multipole series at | local series after M2L | bound (4.20) | |
|---|---|---|---|
| 2 | 19.6 | ||
| 4 | 8.9 | ||
| 8 | 1.3 | ||
| 16 |
These were computed with the implementation of the fast multipole method page. The local series is less accurate than the multipole series at the same point, because it must also converge in the whole target disk. The bound is far above the measured error, but it falls at the right rate.
The interaction list. In the 2D FMM, a box at level receives M2L translations from the children of its parent's near neighbours that do not touch it: 27 boxes for an interior box. In 3D the same rule gives boxes.
Variations
- 3D spherical harmonics. A -term 3D expansion has coefficients, and the direct M2L costs (Greengard 1988).
- Rotations. Rotate the frame so that the translation is along the axis, translate along the axis, and rotate back. Each step costs .
- Plane waves. The newer 3D FMM of Greengard and Rokhlin converts multipole expansions to exponential (plane-wave) expansions, for which translation is diagonal. Beatson and Greengard (Section 5) state that this replaces operations per box with about .
- FFT. The Toeplitz or Hankel structure of the operator, in 2D and on a regular grid of equivalent points in 3D, gives per translation; the kernel-independent FMM uses FFTs for its M2L.
- Low rank compression. The black-box FMM stores the M2L operator between Chebyshev nodes and compresses it with the singular value decomposition.
- Adaptive trees. In the adaptive FMM, M2L is used for the V list of boxes of the same size. Boxes of different sizes use direct multipole evaluation (W list) or direct local expansions of the charges (X list) instead.
Pitfalls
- Wrong sign of the offset. The formulas need as the source center minus the target center. With the other sign, the series is that of a box at the mirror position and is wrong without any error message.
- Translating near neighbours. The local series converges only for . If , it can diverge on part of the target box. Use the interaction list exactly.
- Overflow and underflow. For large , the powers and the binomial coefficients become very large or very small. Use scaled coefficients.
- The branch of . Only the real part is the potential. If the imaginary part is used, the branch cuts of all boxes must agree.
- Trusting the bound as an estimate. The bound (4.20) is many orders of magnitude above the actual error for small . Choose from measurements against direct summation, or from a sharper bound.
- Unequal truncation. Keeping terms in the multipole expansion but fewer in the local expansion (or the reverse) wastes work, since the error is set by the smaller order.
Exercises
- Derive the formula for in step 2 from the binomial series of .
- Show that the M2L operator for the scaled coefficients and depends only on , except for the term in .
- For one unit charge at , show that the error of the -term local series at is , and compare it with the numbers above.
- Count the 2D interaction list of a box in a corner of the unit square at level 2, and at level 3.
- Write the M2L operator as with diagonal , and a Hankel matrix , and explain how an FFT computes in .
References
- Leslie Greengard and Vladimir Rokhlin, A fast algorithm for particle simulations, Journal of Computational Physics 73(2), 1987, 325-348, the conversion of a multipole expansion into a local expansion in 2D and its error bound
- Rick Beatson and Leslie Greengard, A short course on fast multipole methods, in Wavelets, Multilevel Methods and Elliptic PDEs, Oxford University Press, 1997, Lemma 4.7, formulas (4.18) to (4.20); Section 5 for the 3D interaction list of 189 boxes and the faster 3D translations
- Leslie Greengard, The Rapid Evaluation of Potential Fields in Particle Systems, MIT Press, 1988, the 3D translation operators in spherical harmonics
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 | W2 basic |
|
Tag 7KQWVZ Edit this page History Report an error Markdown