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.

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

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.