Abstract

We compare adaptive step size methods which approximately conserve a separable Hamiltonian with variable step size methods designed to integrate accurately the associated Hamiltonian system of ordinary differential equations (ODEs). Particularly, we consider integrating the ODEs describing the planar three body problem. We show that, a second order variable step size Verlet method while approximately conserving the Hamiltonian is unable to reproduce the solution accurately or efficiently. We demonstrate the failure of this method on the Hénon-Heiles problem. Then, we turn to symplectic variable step size implicit Runge-Kutta (IRK) methods and compare them with variable step size implementations of Runge-Kutta Nyström (RKN) methods optimized for accuracy only. Our measure of accuracy is the codes' ability to conserve the Hamiltonian whilst computing a qualitatively correct solution. Also, we show that not solving the (nonlinear) IRK equations exactly can lead to nonconservation.

Full Text
Published version (Free)

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call