Search arXivSearch

arXiv · 2609.25339

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 hours, more than 8x 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 five 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.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Rishit Dagli, Hanno Rein. 2026-09-21. A Very Fast Symplectic Integrator for Planetary Systems: WHFast512 in x86 Assembly. https://arxiv.org/abs/2609.25339

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related papers

Large-scale chaos in restricted hierarchical triples driven by short-range forces

Context: The eccentric von Zeipel-Lidov-Kozai effect, which is widely applied to diverse astrophysical settings, can drive the inner binary to extremely high eccentricities, where short-range forces such as general relativity (GR) become prominent. Aims: Poincare surfaces of section show that GR effects reshape phase-space structures, giving rise to a widespread and large-scale chaotic sea. This work aims to uncover the underlying mechanism of GR-enabled chaos. Methods: The dynamical structures are studied within an adiabatic framework, where an adiabatic invariant is constructed. Phase portraits, defined by the level curves of this invariant, establish analytical boundaries for the chaotic domains. Numerical simulations are subsequently performed to map orbital flips, maximum eccentricities, and Fast Lyapunov Indicators (FLI) across the initial eccentricity-inclination parameter space. Results: Phase portrait analysis demonstrates that GR precession introduces an uncertainty zone near polar inclinations, where trajectories crossing this zone inherently become chaotic. Leveraging this framework, the chaotic boundaries across the full parameter space are analytically derived, yielding excellent agreement with numerical maps of flipping orbits, maximum eccentricity, and FLI. Conclusions: In the presence of short-range forces, flipping orbits accompanied by extreme eccentricity excitation are fundamentally chaotic, and the underlying mechanism of large-scale chaos originates from the periodic passage of trajectories through the uncertainty zone in phase space over secular timescales.

astro-ph.EP

Possible Observational Survey Strategies to Maximize Exoplanet Yields: A Report from the Survey Strategies Task Group in the Exoplanet Science Yields Working Group

We present a variety of possible observational sequences from planet detection to characterization (i.e., survey strategies) for the initial exoEarth detection and characterization survey phase of the Habitable Worlds Observatory. An array of survey strategies were collated by the HWO Exoplanet Survey Strategies Task Group; by investigating and comparing expected resultant exoEarth yields for multiple survey strategies, we can better understand the most efficient strategy to characterize multiple planets in unconventional ways. We present eight varied survey strategies, presented as steps of Detection, Photometry, Orbit Measurement, and/or Characterization, including discussion of possible shortcomings and benefits of each strategy. We present exoEarth yield calculations from the Altruistic Yield Optimizer (AYO) and the Exoplanet Open-Source Imaging Mission Simulator (EXOSIMS) for select strategies, with initial considerations of thermal emission and detector noise. Herein, a yield is the expectation value given the astrophysical assumptions of the number of planets that meet the observational criteria during the survey. We find that AYO and EXOSIMS find the highest yields for H2O at 0.9 microns, although the calculated yields vary. When allowing for wavelength optimization within AYO, we find that H2O is most optimal to observe at 0.9 microns when given the full range of VIS and NIR values, with an expected exoEarth yield of 29.1. H2O and O2 dual characterization is possible at the expense of yield planet loss, with a calculated possible yield of 20.9 in the VIS. The characterization of CH4 and CO2 in the NIR result in the lowest exoEarth yields at 19.9 and 6.4 possible expected planets, respectively. Future work updating AYO and EXOSIMS is necessary to explore further survey strategies that follow different observation procedures, some of which is currently underway.

astro-ph.EP

Molecular mapping of an exoplanet with JWST: NH3 detection in the temperate super-Jupiter Epsilon Indi Ab

Epsilon Indi Ab is currently the coldest, and one of the closest, directly imaged exoplanets (T_eff = 275 K, d=3.6 pc), offering a unique opportunity to test our understanding of the physical and chemical properties of gas giants across the full temperature range spanned by hotter directly imaged exoplanets and the cooler giants of the Solar System. We aim to characterize the atmosphere of Epsilon Indi Ab using infrared spectroscopic observations. We present JWST spectroscopic observations of Epsilon Indi Ab obtained with MIRI in the Medium Resolution Spectrograph mode (4.9-27.9 microns, October 2025) and NIRSpec in the Integral Field Unit mode (2.87-5.27 microns, May 2026). The data are highly contaminated by the stellar light from the bright host star. We therefore adopt a high-pass filtering and cross-correlation approach based on petitRADTRANS atmospheric models to detect the planetary signal and specific molecules. The cross-correlation analysis enables a robust detection of the planet with both instruments (up to S/N = 15.2). Using molecular mapping, we securely identify the presence of NH3 (maximum S/N = 15.6), H2O (maximum S/N = 10.8), CH4 (S/N = 3.8) and marginally detect CO2 (S/N = 2.5). These first results confirm the potential of infrared spectroscopy combined to cross-correlation techniques to characterize the atmosphere of directly imaged exoplanets with JWST, even the in case where the contamination by the host star is critical.

astro-ph.EP