SpaceHub: A high-performance gravity integration toolkit for few-body problems in astrophysics

Relative energy error and performance tests on a two body system with extreme eccentricity e=0.9999 and semi-major axis a = 1 AU. The central object has a mass of 1 solar mass and the test particle has a mass of 1 earth mass. We integrate the system for 1000 orbits. This test is designed to quantify how the different integration methods are able to handle extremely eccentric orbits and very close pair-wise approaches between particles.

Abstract

We present the open source few-body gravity integration toolkit {\tt SpaceHub}. {\tt SpaceHub} offers a variety of algorithmic methods, including the unique algorithms AR-Radau, AR-Sym6, AR-ABITS and AR-chain+ which we show out-perform other methods in the literature and allow for fast, precise and accurate computations to deal with few-body problems ranging from interacting black holes to planetary dynamics. We show that AR-Sym6 and AR-chain+, with algorithmic regularization, chain algorithm, active round-off error compensation and a symplectic kernel implementation, are the fastest and most accurate algorithms to treat black hole dynamics with extreme mass ratios, extreme eccentricities and very close encounters. AR-Radau, the first regularized Radau integrator with round off error control down to 64 bits floating point machine precision, has the ability to handle extremely eccentric orbits and close approaches in long-term integrations. AR-ABITS, a bit efficient arbitrary precision method, achieves any precision with the least CPU cost compared to other open source arbitrary precision few-body codes. With the implementation of deep numerical and code optimization, these new algorithms in {\tt SpaceHub} prove superior to other popular high precision few-body codes in terms of performance, accuracy and speed.

Publication
mnras