Definitioncore
Multipole acceptance criterion
Also called opening angle criterion.
The rule that lets a tree code use a cell's expansion instead of opening it, such as s/d < theta for cell size s, distance d and opening angle theta.
A multipole acceptance criterion (MAC) is the test that a tree code applies to a cell and a target point to decide whether the multipole expansion of the cell is accurate enough at that point. If the cell is accepted, its expansion gives its whole contribution to the force; if not, the cell is opened and its children are tested. The criterion sets both the accuracy and the cost of the Barnes-Hut algorithm and of related tree codes. The original form compares the angle under which the cell is seen with a fixed opening angle .
Definition
Setting. A tree code stores the bodies in a hierarchy of cells, such as an octree. Each cell has a size (the side of its cube), a geometric center , a total mass , a center of mass and the moments of its expansion about . Let be the target point and .
Definition. A multipole acceptance criterion is a predicate . The tree walk for the target starts at the root; a cell with true contributes its truncated expansion, a leaf with the predicate false contributes its bodies by direct summation, and any other cell with the predicate false is replaced by its children.
The Barnes-Hut criterion. With an opening angle (often 0.5 to 1),
With no cell is accepted, and the walk reduces to direct summation.
Common refinements.
- Offset criterion. Let be the distance from the center of mass to the geometric center. Accept if . This forbids the acceptance of a cell that contains the target or nearly touches it.
- Error-bound criteria (Salmon and Warren 1994). Let be the radius of the smallest ball about that holds all bodies of . A truncated expansion of degree has an a priori error bound that depends on , , and higher moments of . Accept if the bound is below a tolerance . For the monopole of the potential the bound is for (theorem; the proof is in the Barnes-Hut proof file).
- Relative criterion (Springel 2005). Let be the acceleration of the target at the previous step and a tolerance. Accept if . The quadrupole error of a cell scales as the left side, so the criterion asks for a fixed relative error of the force. GADGET-2 adds a test that opens any cell whose slightly enlarged box contains the target.
Examples and non-examples
Example. A cell of side has its center of mass at distance from the target. Then , and the cell is accepted for and opened for . If its bodies lie within of the center of mass, the relative error of the monopole potential is at most of .
Non-example: a target inside the accepted cell. Take the cell , with almost all of its mass near the corner , and the target inside the cell. Then and , so the Barnes-Hut criterion with accepts the cell. If the cell also holds a small mass at distance from the target, its true force is replaced by a part of the monopole, so the error has no bound as . The same holds for any , because can reach inside the cell (theorem). Salmon and Warren (1994) show that this failure of the criterion occurs in realistic mass distributions, not only in constructed ones. The offset criterion opens this cell: and .
Non-example: a criterion on the geometric center only. Accepting when ignores where the mass is. For it keeps the target outside the cell, because the half diagonal of the cube is . But the error bound needs , which can be up to when the center of mass is at a corner, so the test does not bound the error by itself.
Related definitions
- The multipole expansion and the multipole truncation error bound give the error that the criterion controls.
- In the fast multipole method the analogue is the well-separated condition between two cells, which decides when a multipole-to-local translation is used.
- In a hashed oct-tree the criterion decides which cells a processor must fetch from other processors.
- The cost of the walk grows as falls, about as for a uniform distribution in three dimensions (heuristic: the number of cells of size seen under angle in each level is of order ).
References
- Josh Barnes and Piet Hut, A hierarchical O(N log N) force-calculation algorithm, Nature 324, 1986, 446-449, the opening criterion l/D < theta
- John K. Salmon and Michael S. Warren, Skeletons from the treecode closet, Journal of Computational Physics 111(1), 1994, 136-155, the unbounded errors of the Barnes-Hut criterion and the criteria built on error bounds
- Volker Springel, The cosmological simulation code GADGET-2, Monthly Notices of the Royal Astronomical Society 364(4), 2005, 1105-1134, Section 3.1.1, Equation (18), the relative opening criterion
- Sverre J. Aarseth, Gravitational N-Body Simulations, Tools and Algorithms, Cambridge University Press, 2003, Chapter 6 (tree codes), Section 6.2 (basic formulation)
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 CK9WZM Edit this page History Report an error Markdown