411 REFERENCE · Wikibooks
Introduction to Mathematical Physics/Some mathematical problems and their solution/Evolution, numerical time integration
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
__toc__
Introduction
There exist very good books
(see ([#References|references]))
about numerical integration of PDE evolution problem. Note that all methods
(finite difference, finite element, spectral methods) contains as a final step
the time integration of a ODE system. In this section this time integration is
treated. Problem to be solved is the following
probmathevovec
(Cauchy problem)
Find functions
obeying the ODE system
where is known.
We will not present here details about stability and precision calculation of
the numerical integration schemes, however the reader should always keep in
mind this crucial problem. Generally speaking, knowledge
of mathematical properties of solutions should always be used to verify
numerical results. For instance, if the solution of problem probmathevovec is known to be bounded, and that the solution obtained
numerically diverges, then numerical solution will be obviously considered as
bad. This problem of stability is the first that the numerician meet. However,
more refined considerations have to be considered. Integrals of movement are a
classical way to check accuracy of solutions. For hamiltonian systems for
instance, energy conservation should be checked at regular time intervals.
Euler method
Euler method consists in approximating the time derivative
by
However, the way the right-hand term is evaluated is very important for the
stability of the integration scheme ([#References|references]). So, explicit scheme:
is unstable if . On another hand, implicit
scheme:
eqimpli
is stable. This last scheme is called "implicit" because
equation eqimpli have to be solved at each time step. If is linear,
this implies to solve a linear system of equations (see ([#References|references])).
One can show that the so-called Cranck-Nicholson scheme:
is second order in time.
Another interesting scheme is the leap-frog scheme:
Let us illustrate Euler method for solving Van der Pol equation:
which can also be written:
center | frame |, initial conditions inside the attractor.}
LABEL figpol03i
center | frame |, initial conditions out of the attractor.}
LABEL figpol03e
Let us consider the reaction diffusion system:
Figure figreacd shows results of integration of this system using Euler method (space
treatment is achieved using simple finite differences, periodic boundary
conditions are used). The lattice has sites.
\begin{figure}
\begin{tabular}[t]{ccc}
\epsffile{reacdt1ga5e_04ite2}
\epsffile{reacdt1ga5e_04ite4}
\epsffile{reacdt1ga5e_04ite6}
\epsffile{reacdt1ga5e_04ite8}
\epsffile{reacdt1ga5e_04ite10}
\epsffile{reacdt1ga5e_04ite12}
\epsffile{reacdt1ga5e_04ite14}
\epsffile{reacdt1ga5e_04ite16}
\epsffile{reacdt1ga5e_04ite18}
\epsffile{reacdt1ga5e_04ite20}
\end{tabular}
center frame Simulation of reaction diffusion system on a lattice of sites. A site in black corresponds to a value of greater than
. When time evolves, structures that can model blots on
some animals skin.}
LABEL figreacd
]]
Numerical value of parameters were , , , ,
. Initial conditions were random, more precisely and
where and are random numbers between and
. Such systems allow to describe spatio temporal systems where two
quantities and play a different role: the first is activator of a
change in characteristic of the site , the
second is inhibitor. They can be used to model evolution of forest fires or
blots on the skin of certain animals.
Nonlinear Klein-Gordon equation
where is (Sine-Gordon equation)
or (phi four)
can be integrated using a leap-frog scheme ([#References references]) :
Runge-Kutta method
Runge-Kutta formula \index{Runge-Kutta} at fourth order gives as a
function of :
where
Adams method (multiple steps)
Problem:
Find solution of:
with
can be solved by
open Adams\index{Adams formula} method order two:
or open Adams method order three:
Open Adams method are multisteps: they can not initiate an integration
process. Examples of closed Adams method, are at order two:
and order three:
Closed Adams methods are also multisteps. They are more accurate but are
implicit: they imply the solving of equations systems at each time
step. Predictor--corrector method provides a practical way to use closed Adams
formulas.
Predictor--corrector method
Predictor--corrector methods\index{predictor-corrector}
are powerful methods very useful in the case where right--hand side is
complex. An first estimation is done (predictor) using open
Adams formula, for instance open Adams formula order three:
Then, is re-evaluated using closed Adams formula where computed previously is used to avoid implicity:
Evaluation of in the second step is stabilizing. Problem
where is a linear operator and a nonlinear operator will be
advantageously integrated using following predictor--corrector scheme:
Symplectic transformation case
Consider\index{symplectic} the following particular case of
evolution problem:
Find solution
where is known (Cauchy problem) and where functions and
come from a hamiltonian :
Dynamics in this case preserves volume element . Let us define
symplectic \index{symplectic}transformation:
Transformation defined by:
is symplectic if its Jacobian has a determinant equal to one.
Euler method adapted to case:
eqsymple1
eqsymple2
consists in integrating using the following scheme:
and is not symplectic as it can be easily checked.
Let us giev some examples of symplectic integrating schemes for system
of equation eqsymple1 and eqsymple2.
Verlet method:
is symplectic (order 1).
Staggered leap--frog scheme
is symplectic (order 2).
Figures codefigure1, codefigure2, and codefigure3 represent
trajectories computed by three methods: Euler, Verlet, and staggered leap--frog
method for (linear) system describing harmonic oscillator:
\begin{figure}[tbh]
EulerOscillo001
| center | frame |\it Euler method with time-step for harmonic oscillator.}
LABEL codefigure1
]]
\begin{figure}[tbh]
VerletOscillo1
| center | frame |\it Verlet method with time step for harmonic
oscillator. Despite a larger time-step than time step used to plot previous
figure, energy is well conserved.}
LABEL codefigure2
]]
\begin{figure}[tbh]
VerletRecOscillo09
| center | frame |\it Staggered leap--frog method: energy is still well conserved, but
space phase is less deformed than in previous case.}
LABEL codefigure3
]]