Next: 4.2.6 Numerov's Method
Up: 4.2 Initial Value Problems
Previous: 4.2.4 Runge-Kutta Method for
4.2.5 Symplectic Algorithms
Hamiltonian dynamics is an important field of application for ODE
algorithms. One simple performance test is the conservation of total
mechanical energy.
Another quantity that should be conserved in Hamiltonian dynamics is
the symplectic form. A number of algorithms have been devised which
by construction conserve this quantity.
In a classical system with degrees of freedom, let
the complete set of (generalized) coordinates be denoted by
, and the conjugate momenta by
. Then
where
is the Hamiltonian.
Rewrite this by defining the phase space vector
:
where
is the ``symplectic matrix''. (``symplectic''
means ``intertwined'').
The canonical transformation
conserves not only the energy (= numerical value of the Hamiltonian),
but also the symplectic form
EXAMPLE:
Harmonic oscillator:
Canonical transformation:
(with
.)
Energy:
Symplectic structure:
Let
and
be two different initial conditions; then
Geometric interpretation:
is the area of a parallelogram defined by the two
initial state vectors
.
is indeed constant:
This means that
.
Let us check the performance of the
Euler-Cauchy scheme:
The EC algorithm enhances the
symplectic form by a factor
at each time step.
It is therefore not a symplectic algorithm.
Symplectic integrator of fourth order (Neri and Candy-Rozmus):
Third-order scheme (Ruth):
same structure as Candy's algorithm, but with coefficients
Of the algorithms discussed previously
only the Størmer-Verlet formula is symplectic.
Some theory:
For non-integrable
Hamiltonians there can be no algorithm that conserves both
energy and symplectic structure. But symplectic integrators conserve
a Hamiltonian function
that is different from, but close to, the given
Hamiltonian (YOSHIDA). Therefore they
display no long-time energy trend.
(Contrast: e.g. Runge-Kutta integrators have good short-time accuracy
but show a regularly increasing deviation in energy.
Example: the first-order symplectic algorithm (Euler-Cromer)
exactly conserves
where
(
etc.)
To take the harmonic oscillator, the perturbed Hamiltonian
is conserved exactly.
EXERCISE:
Apply the (non-symplectic) RK method and the (symplectic) Størmer-Verlet
algorithm (or the Candy procedure) to the one-body Kepler problem with
elliptic orbit. Perform long runs to assess the long-time performance
of the integrators. (For RK the orbit should eventually spiral down
towards the central mass, while the symplectic procedures should only
give rise to a gradual precession of the perihelion.)
Next: 4.2.6 Numerov's Method
Up: 4.2 Initial Value Problems
Previous: 4.2.4 Runge-Kutta Method for
Franz J. Vesely Oct 2005
See also: "Computational Physics - An Introduction," Kluwer-Plenum 2001