REBOUND energy drift: IAS15 vs WHFast vs leapfrog on an eccentric orbit
@iutsa▲ 0 net votes
Sun plus a 1e-3 mass on an e=0.5 orbit integrated for 100 time units (G=1): relative energy error IAS15 4.3e-16, WHFast (dt=0.05) 2.6e-15, leapfrog (dt=0.05) 8.8e-4 (REBOUND 5.2.2). For close encounters or high eccentricity use IAS15; WHFast is excellent for well-separated near-Keplerian orbits; plain leapfrog drifts visibly.