Leapfrog method

from Wikipedia, the free encyclopedia

The Leapfrog method is a simple method of numerically integrating an ordinary differential equation of the type

.

or more generally of conservative systems that follow Newton's second axiom of classical dynamics and describe, for example, the movement of one or more objects in a potential field:

Leapfrog integration is a second order method and therefore generally delivers more accurate results than, for example, Euler's polygon method , which is only of first order. In addition, it is invariant under time reversal and, in physical problems, receives quantities such as momentum and angular momentum , which are also conserved quantities of the original system, exactly. Furthermore, a disturbed energy function in order 3 is obtained, while the method has the global convergence order 2 .

Representation as a leapfrog method

The leapfrog integration calculated alternately, the positions and the velocities at different times, similar to the Leapfrog (engl. Leapfrog). The step equations for the procedure are:

with the start values and .

Representation as a one-step process

By linear interpolation of intermediate values , the Leapfrog method can be viewed as a combination of the two variants of the symplectic Euler method :

Every single step and thus the composition is a symplectic transformation and therefore receives volumes in the phase space . This also results in the exact conservation of momentum and angular velocity, insofar as the exact system receives them.

Inserting (SE1) and (SE2) into one another leads to:

That means that the new location is projected by Taylor expansion up to the second order starting from the old location in the phase space and the new speed up to the first order; however, with a modified acceleration which is the mean value of the two accelerations at times and .

Representation as a multi-step process

If you eliminate the speed calculations from the Leapfrog version, the result is

the Verlet method, which can also be derived directly from as a symmetrical discretization . This discretization has a local error of and thus (because of the double integration) a global error of the size for the difference between the exact and approximate solution at the end time . Another variant is known under the name Velocity-Verlet.

history

A first description of this process was found by Richard Feynman in Isaac Newton's Principia of 1687 in an argument to derive Kepler's laws from the equations of motion. Variants of this process were used by JF Encke in 1860 and by C. Störmer in 1907, among others.

example

If you consider the oscillation equation with the exact solution , you get the transition for in the one-step formulation

It turns out that the modified energy functional is exactly obtained. More precisely , the error in the energy has a global limit of order . The approximate solution runs for all times on the ellipses defined by the constant modified energy level.

swell

  1. Michael Griebel, Stefan Knapek, Gerhard Zumbusch, Attila Caglar: Numerical Simulation in Molecular Dynamics . Springer, 2004.
  2. ^ Ernst Hairer, Christian Lubich, Gerhard Wanner: Geometric numerical integration illustrated by the Störmer / Verlet method . In: Acta Numerica . 12, 2003, pp. 399-450. doi : 10.1017 / S0962492902000144 .