Abstract
Simulation of a physical system means to calculate the time evolution of a model system in many cases. We consider a large class of models which can be described by a first order initial value problem for the state vector Y (possibly of very high dimension) which contains all information about the system. Our goal is to calculate the time evolution of the state vector numerically. For obvious reasons this can be done only for a finite number of time values and we have to introduce a grid of discrete times which for simplicity are assumed to be equally spaced. Advancing time by one step formally involves the calculation of an integral which can be a formidable task since the integrand depends on time via the time dependence of all the elements of the state vector. In this chapter we discuss several strategies for the time integration. The explicit Euler forward difference has low error order but is useful as a predictor step for implicit methods. A symmetric difference quotient is much more accurate. It can be used as the corrector step in combination with an explicit Euler predictor step and is often used for the time integration of partial differential equations. Methods with higher error order can be obtained from a Taylor series expansion, like the Nordsieck and Gear predictor-corrector methods which have been often applied in molecular dynamics calculations. Runge–Kutta methods are very important for ordinary differential equations. They are robust and allow an adaptive control of the step size. Very accurate results can be obtained for ordinary differential equations with extrapolation methods like the famous Gragg-Bulirsch-Stoer method. If the solution is smooth enough, multistep methods are applicable, which use information from several points. Most known are Adams-Bashforth–Moulton methods and Gear methods (also known as backward differentiation methods), which are especially useful for stiff problems. The class of Verlet methods has been developed for molecular dynamics calculations. They are symplectic and time reversible and conserve energy over long trajectories.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsNotes
- 1.
Control of the step width will be discussed later.
- 2.
In fact the derivatives of the interpolating polynomial which exist even if higher derivatives of f do not exist.
Author information
Authors and Affiliations
Corresponding author
Problems
Problems
Problem 13.1 Circular Orbits
In this computer experiment we consider a mass point moving in a central field. The equation of motion can be written as the following system of first order equations:
For initial values
the exact solution is given by
The following methods are used to calculate the position x(t), y(t) and the energy
-
The explicit Euler method (13.3)
-
The 2nd order Runge–Kutta method (13.7.1)
which consists of the predictor step
and the corrector step
To start the Verlet method we need additional coordinates at time \(-\varDelta t\) which can be chosen from the exact solution or from the approximation
-
The leapfrog method (13.11.8)
(13.189)(13.190)(13.191)(13.192)
where the velocity at time \(t_{n}\) is calculated from
To start the leapfrog method we need the velocity at time which can be taken from the exact solution or from
Compare the conservation of energy for the different methods as a function of the time step \(\varDelta t\). Study the influence of the initial values for leapfrog and Verlet methods.
Problem 13.2 N-body System
In this computer experiment we simulate the motion of three mass points under the influence of gravity. Initial coordinates and velocities as well as the masses can be varied. The equations of motion are solved with the 4th order Runge–Kutta method with quality control for different step sizes. The local integration error is estimated using the step doubling method. Try to simulate a planet with a moon moving round a sun!
Problem 13.3 Adams-Bashforth Method
In this computer experiment we simulate a circular orbit with the Adams-Bashforth method of order \(2\ldots 7\). The absolute error at time T
is shown as a function of the time step \(\varDelta t\) in a log-log plot. From the slope
the leading error order s can be determined. For very small step sizes rounding errors become dominating which leads to an increase \(\varDelta \sim (\varDelta t)^{-1}\).
Determine maximum precision and optimal step size for different orders of the method. Compare with the explicit Euler method.
Rights and permissions
Copyright information
© 2017 Springer International Publishing AG
About this chapter
Cite this chapter
Scherer, P.O.J. (2017). Equations of Motion. In: Computational Physics. Graduate Texts in Physics. Springer, Cham. https://doi.org/10.1007/978-3-319-61088-7_13
Download citation
DOI: https://doi.org/10.1007/978-3-319-61088-7_13
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-61087-0
Online ISBN: 978-3-319-61088-7
eBook Packages: Physics and AstronomyPhysics and Astronomy (R0)