English

Switching integrators reversibly in the astrophysical $N$-body problem

Earth and Planetary Astrophysics 2023-03-08 v2 Astrophysics of Galaxies Instrumentation and Methods for Astrophysics Computational Physics

Abstract

We present a simple algorithm to switch between NN-body time integrators in a reversible way. We apply it to planetary systems undergoing arbitrarily close encounters and highly eccentric orbits, but the potential applications are broader. Upgrading an ordinary non-reversible switching integrator to a reversible one is straightforward and introduces no appreciable computational burden in our tests. Our method checks if the integrator during the time step violates a time-symmetric selection condition and redoes the step if necessary. In our experiments a few percent of steps would have violated the condition without our corrections. By eliminating them the algorithm avoids long-term error accumulation, of several orders magnitude in some cases.

Keywords

Cite

@article{arxiv.2301.06253,
  title  = {Switching integrators reversibly in the astrophysical $N$-body problem},
  author = {David M. Hernandez and Walter Dehnen},
  journal= {arXiv preprint arXiv:2301.06253},
  year   = {2023}
}

Comments

10 pages, 8 figures. Matches accepted MNRAS version

R2 v1 2026-06-28T08:12:17.536Z