Techniqueadvanced
Kustaanheimo-Stiefel regularization
Also called KS regularization.
Maps the Kepler problem to a harmonic oscillator in four dimensions with a new time variable, so close binaries can be integrated without singularity.
Kustaanheimo-Stiefel (KS) regularization removes the singularity of the two-body force. It replaces the relative position of a close pair by a vector with , and the physical time by a fictitious time with . In these variables the unperturbed Kepler motion becomes a harmonic oscillator, , where is the two-body energy per unit reduced mass. The equations are smooth and linear even through a collision, so a step in of fixed size follows a binary of any eccentricity with the same relative accuracy. Direct N-body codes for star clusters use KS for hard binaries and close encounters, where an ordinary step would have to shrink by many orders of magnitude.
In plain words
When two stars pass very close, the pull between them becomes huge and changes very fast. A normal integrator must then take tiny steps, and at a collision it fails.
KS regularization changes the variables of the pair. The position is written as the "square" of a new vector with four entries, and the clock is slowed in proportion to the distance, so the close passage takes many small physical moments but a normal amount of new time. With both changes, the orbit of the pair becomes the motion of a weight on a spring, which has no bad points at all. The pair is integrated in the new variables, and the result is changed back when the positions are needed.
When it applies
- Two bodies are much closer to each other than to all other bodies, so their motion is a Kepler orbit plus a small perturbation from the rest of the system.
- The forces are point-mass gravity, without softening, and collisions or very eccentric binaries must be followed accurately.
- The integrator can use its own time variable for the pair, as in the NBODY codes with block time steps, where the KS pair is a single body for the rest of the system.
It does not apply to three or more bodies at once, unless they are put in a chain of pairs; and when the pair is far from isolated, the perturbation dominates and the regularized equations lose their advantage.
The template
Write , , and .
- The map. For let
and set , that is, , and . The matrix satisfies , so .
-
The inverse map. If , take , , and . Otherwise take , , and . Each has a circle of preimages; this choice is one of them.
-
The new time and the velocity. Set and write . Then , and from take . This satisfies the bilinear relation , which is the fourth row of and which the equations of motion keep.
-
The equations of motion. With and a perturbing acceleration on the relative motion,
These ten equations have no singularity at . Integrate them with any accurate method in , for example Runge-Kutta or a Hermite scheme in .
- Back to physical variables. When the positions of the pair are needed at a physical time, map and back with steps 1 and 3 and place the two bodies about their center of mass.
Classic examples
A circular orbit. Take , and , so . Step 2 gives , and step 3 gives . The equation has the solution , and the map gives . Here , so , and the orbit closes after while makes only half a turn. In the plane the map is the square of a complex number, which is the Levi-Civita map.
Kepler's third law. For any bound orbit, and . Since is quadratic in , the orbit closes after , and
with , because and . For , and , the oscillator returns to its start at to rounding, and a numerical quadrature of gives , equal to with (measurement).
Binaries in star cluster codes. The NBODY codes of Aarseth treat each hard binary and each close encounter as a KS pair, with its perturbation from the neighbors, and they switch the pair back to ordinary bodies when it separates (Aarseth 2003, Section 4.4).
Variations
- Levi-Civita regularization. The same idea in the plane, with and the complex square (Aarseth 2003, Section 4.3). There is no quadratic map of this kind from to with and a matrix with orthogonal columns, which is why KS goes to four dimensions (theorem of Hurwitz on composition of quadratic forms).
- Sundman time transformation alone. Only , or , without the change of position. It spreads the steps more evenly around the pericenter but does not remove the singularity of the equations.
- Stumpff function solutions. For a weakly perturbed pair, the oscillator part can be advanced exactly with Stumpff functions, and only the perturbation is integrated (Aarseth 2003, Section 4.7).
- Chain and many-body regularization. For three or more close bodies, regularize each pair along a chain of the closest neighbors (Mikkola and Aarseth), or use a time transformation with the Lagrangian, as in the algorithmic regularization of Mikkola and Tanikawa.
- Hamiltonian form. KS can also be written as a canonical transformation of an extended Hamiltonian, so that a symplectic integrator applies in the new variables.
Pitfalls
- The bilinear relation. The equations keep only if it holds at the start. Starting with any other gives a velocity that is not the derivative of . Always take from step 3.
- Energy as a variable. The coefficient must be integrated with its own equation , not recomputed from and , or the oscillator equation picks up errors near pericenter where is small.
- Physical time output. The step is fixed in , not in . To get the state at a given , iterate on with the equation , for example by Newton's method.
- Strong perturbations. When a third body comes close, becomes as large as the pair force, the oscillator form gives no gain, and the pair must be ended or put into a chain.
- Unbound pairs. For the oscillator becomes with exponential solutions; the equations stay regular, but the closed-form solutions use and .
Exercises
- Show that , and conclude that and .
- Show that and map to the same for every .
- Starting from , and the bilinear relation, derive .
- A radial orbit starts at rest at with . Show that , that passes through 0 smoothly at , and that the time to the collision is . What happens to after the collision?
References
- Paul Kustaanheimo and Eduard Stiefel, Perturbation theory of Kepler motion based on spinor regularization, Journal fur die reine und angewandte Mathematik 218, 1965, 204-219, the four-dimensional map and the regularized equations of motion
- Sverre J. Aarseth, Gravitational N-Body Simulations, Tools and Algorithms, Cambridge University Press, 2003, Section 4.3 (Levi-Civita regularization), Section 4.4 (Kustaanheimo-Stiefel regularization), Section 4.7 (Stumpff functions)
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 5DRDH3 Edit this page History Report an error Markdown