A Very Fast Symplectic Integrator for Planetary Systems: WHFast512 in x86 Assembly

Abstract Long-term integrations of planetary systems are used in a variety of astrophysical applications, for example, to determine a system’s stability. In this paper, we describe significant speed and accuracy improvements to the WHFast512 integrator. By completely rewriting WHFast512 in x86 assembly, we gain fine-grained control over CPU instructions and are able to keep the entire simulation state in CPU registers, only writing to memory when an output is required. We also reduce the number of branches in the code, improve the Kepler solver’s speed and accuracy with a convergence check, switch the Hamiltonian splitting to Jacobi coordinates, implement symplectic correctors, and add support for ejection and collision detection. As a benchmark, we run simulations of the solar system with all eight planets and general relativistic corrections for 5 Gyr. With our improvements, we can integrate this system in 9 hr, more than 8× faster than the standard version of WHFast . This makes WHFast512 by far the fastest N -body integrator for this kind of simulation. We run extensive tests to verify the integrator’s accuracy, with a particular focus on removing any long-term bias, and show that the accuracy is now 5 orders of magnitude better for typical setups compared to the earlier version of WHFast512 . The new WHFast512 integrator is freely available in the REBOUND integrator package.

Authors

Institutions

Publication Details

Journal
The Astronomical Journal
Published
2026-11-13
DOI
https://doi.org/10.3847/1538-3881/aeaa51
Citations
2
Primary Topic
Stellar, planetary, and galactic studies
Type
article
Field-Weighted Citation Impact
1.54

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

A Very Fast Symplectic Integrator for Planetary Systems: WHFast512 in x86 Assembly

Hanno Rein, Rishit Dagli
2 citations
The Astronomical Journal
Stellar, planetary, and galactic studies
1.54
article

A Very Fast Symplectic Integrator for Planetary Systems: WHFast512 in x86 Assembly

Hanno Rein, Rishit Dagli
article en
2 citations

Abstract

Abstract Long-term integrations of planetary systems are used in a variety of astrophysical applications, for example, to determine a system’s stability. In this paper, we describe significant speed and accuracy improvements to the WHFast512 integrator. By completely rewriting WHFast512 in x86 assembly, we gain fine-grained control over CPU instructions and are able to keep the entire simulation state in CPU registers, only writing to memory when an output is required. We also reduce the number of branches in the code, improve the Kepler solver’s speed and accuracy with a convergence check, switch the Hamiltonian splitting to Jacobi coordinates, implement symplectic correctors, and add support for ejection and collision detection. As a benchmark, we run simulations of the solar system with all eight planets and general relativistic corrections for 5 Gyr. With our improvements, we can integrate this system in 9 hr, more than 8× faster than the standard version of WHFast . This makes WHFast512 by far the fastest N -body integrator for this kind of simulation. We run extensive tests to verify the integrator’s accuracy, with a particular focus on removing any long-term bias, and show that the accuracy is now 5 orders of magnitude better for typical setups compared to the earlier version of WHFast512 . The new WHFast512 integrator is freely available in the REBOUND integrator package.

The Astronomical JournalVol. 172(6)
University of Toronto (CA), University of Toronto Scarborough (CA)
Natural Sciences and Engineering Research Council of Canada
Openalex Percentile: Top 18%
Stellar, planetary, and galactic studies
1.54
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon