Introduction to Mathematical Physics/Some mathematical problems and their solution/Evolution, numerical time integration

From Wikibooks, open books for an open world
Jump to: navigation, search


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


Problem: (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[edit]

Euler method consists in approximating the time derivative


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:


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:

, initial conditions inside the attractor.} LABEL figpol03i
, initial conditions out of the attractor.} LABEL figpol03e

Example: 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}


Nonlinear Klein-Gordon equation

where is (Sine-Gordon equation)

or (phi four)

can be integrated using a leap-frog scheme ([#References

Runge-Kutta method[edit]

Runge-Kutta formula \index{Runge-Kutta} at fourth order gives as a function of :


Adams method (multiple steps)[edit]


Find solution of:


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[edit]

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[edit]

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:



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.

Example: 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:


| center | frame |\it Euler method with time-step  for harmonic oscillator.}

LABEL codefigure1 ]]


| 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 ]]


| center | frame |\it Staggered leap--frog method: energy is still well conserved, but
 space phase is less deformed than in previous case.}

LABEL codefigure3 ]]