geometric numerical integrationhairer/poly_geoint/intro.pdf · geometric numerical integration...

8
Geometric Numerical Integration (Ernst Hairer, TU M¨ unchen, winter 2009/10) Development of numerical ordinary differential equations Nonstiff differential equations (since about 1850), see [4, 2, 1] Adams (1855), multistep methods, problem of Bashforth (1883) Runge (1895) and Kutta (1901), one-step methods. Stiff differential equations (since about 1950), see [5, 2, 1] Dahlquist (1963), A-stability of multistep methods Gear (1971), backward differentiation code. Geometric numerical integration (since 1986), see [3, 7, 6] structure-preserving integration of differential equations, Hamiltonian, reversible, divergence-free, Poisson systems. Provisional contents of the lectures Hamiltonian systems symplectic transformations, theorem of Poincar´ e generating functions Symplectic numerical integrators St¨ ormer–Verlet method symplectic Runge–Kutta methods composition and splitting methods Backward error analysis long-time energy conservation perturbed integrable Hamiltonian systems Hamiltonian systems on manifolds constrained mechanical systems (DAE’s) numerical integrator RATTLE Differential equations with highly oscillatory solutions Fermi–Pasta–Ulam type problems modulated Fourier expansion 1

Upload: others

Post on 23-May-2020

8 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Geometric Numerical Integrationhairer/poly_geoint/intro.pdf · Geometric Numerical Integration (Ernst Hairer, TU Munchen, winter 2009/10)¨ Development of numerical ordinary differential

Geometric Numerical Integration(Ernst Hairer, TU Munchen, winter 2009/10)

Development of numerical ordinary differential equations• Nonstiff differential equations (since about 1850), see [4, 2, 1]

Adams (1855), multistep methods, problem of Bashforth (1883)Runge (1895) and Kutta (1901), one-step methods.

• Stiff differential equations (since about 1950), see [5, 2, 1]Dahlquist (1963), A-stability of multistep methodsGear (1971), backward differentiation code.

• Geometric numerical integration (since 1986), see [3, 7, 6]structure-preserving integration of differential equations,Hamiltonian, reversible, divergence-free, Poisson systems.

Provisional contents of the lectures• Hamiltonian systems

– symplectic transformations, theorem of Poincare– generating functions

• Symplectic numerical integrators– Stormer–Verlet method– symplectic Runge–Kutta methods– composition and splitting methods

• Backward error analysis– long-time energy conservation– perturbed integrable Hamiltonian systems

• Hamiltonian systems on manifolds– constrained mechanical systems (DAE’s)– numerical integrator RATTLE

• Differential equations with highly oscillatory solutions– Fermi–Pasta–Ulam type problems– modulated Fourier expansion

1

Page 2: Geometric Numerical Integrationhairer/poly_geoint/intro.pdf · Geometric Numerical Integration (Ernst Hairer, TU Munchen, winter 2009/10)¨ Development of numerical ordinary differential

1 Hamiltonian system (double well potential)Consider a differential equation

q = −∇U(q)

which can also be written as

q = p

p = −∇U(q)or

q = ∇pH(p, q)

p = −∇qH(p, q)with H(p, q) =

12pTp+ U(q).

We have energy conservation along exact solutions:

H(p(t), q(t)

)= Const

Numerical experiment with U(q) = (q2−1)2 , taken from http://sma.epfl.ch/∼vilmart/

11/22/09 2:18 PMA quartic Hamiltonian system (double well)

Page 1 of 2file:///Users/hairer/cours/geo_int/javaanim/martinet.html

init 0.0p(0)= H?0.01q(0)= 0.05stepsize h=

Start x 1speed= 30 mssleep= order 1: Symplectic Euler

Explicit Eulerqn+1 = qn + h pn

pn+1 = pn − h∇U(qn)

Symplectic Euler

qn+1 = qn + h pn

pn+1 = pn − h∇U(qn+1)or

qn+1 = qn + h pn+1

pn+1 = pn − h∇U(qn)

2

Page 3: Geometric Numerical Integrationhairer/poly_geoint/intro.pdf · Geometric Numerical Integration (Ernst Hairer, TU Munchen, winter 2009/10)¨ Development of numerical ordinary differential

2 N-body problem (planetary motion)For pi, qi ∈ R3 we consider the Hamiltonian (kinetic plus potential energy)

H(p, q) =1

2

N∑i=1

1

mi

pTi pi +

∑1≤i<j≤N

Uij

(‖qi − qj‖

)with the gravitational potential

Uij(r) = −G mimj

r

Illustration: sun – jupiter – saturn (http://sma.epfl.ch/∼vilmart/)

11/22/09 5:46 PMThe three body problem Sun-Jupiter-Saturn

Page 1 of 2file:///Users/hairer/cours/geo_int/javaanim/sunjupitersaturn.html

3stepsize h= order 1: Explicit Euler

Start restart x 50speed= 40 mssleep=

Conserved quantities (first integrals):

• Hamiltonian (total energy) H(p, q)

• linear momentum P (p, q) =N∑

i=1

pi

• angular momentum L(p, q) =N∑

i=1

qi × pi

3

Page 4: Geometric Numerical Integrationhairer/poly_geoint/intro.pdf · Geometric Numerical Integration (Ernst Hairer, TU Munchen, winter 2009/10)¨ Development of numerical ordinary differential

3 N-body problem (molecular dynamics)N-body problem as before, but with Lennard–Jones potential

Uij(r) = 4 εij

((σij

r

)12

−(σij

r

)6)

Numerical simulation with initial configuration (left picture) and solution aftersufficiently long time (right picture), see http://sma.epfl.ch/∼vilmart/

11/22/09 6:20 PMMolecular dynamics simulation: Lennard-Jones potential

Page 1 of 2file:///Users/hairer/cours/geo_int/javaanim/lennardjones.html

0.05stepsize h= order 2: Stormer-Verlet

Start restart x 1speed= 40 mssleep=

11/22/09 5:47 PMMolecular dynamics simulation: Lennard-Jones potential

Page 1 of 2file:///Users/hairer/cours/geo_int/javaanim/lennardjones.html

0.05stepsize h= order 2: Stormer-Verlet

Start restart x 1speed= 40 mssleep=

4 Idea of backward error analysisFor a differential equation y = f(y) consider a numerical solution obtained by aone-step method yn+1 = Φh(yn).

Find a modified differential equation y = fh(y) of the form

y = f(y) + hf2(y) + h2f3(y) + . . . ,

such that its solution y(t) satisfies (formally) yn = y(nh) .

4

Page 5: Geometric Numerical Integrationhairer/poly_geoint/intro.pdf · Geometric Numerical Integration (Ernst Hairer, TU Munchen, winter 2009/10)¨ Development of numerical ordinary differential

Numerical experiment with double well potential.

The following pictures show the exact solution (in phase space (q, p)) and solu-tions of the modified equation for various numerical integrators.

exact solution explicit Euler

symplectic Euler symplectic Euler

explicit in p, implicit in q explicit in q, implicit in p

Modified differential equation for explicit Euler:(qp

)=

(p

−U ′(q)

)+h

2

(U ′(q)U ′′(q)p

)+h2

4

(−2U ′′(q)p

2U ′U ′′ − U ′′′p2

)+ . . .

Modified differential equation for symplectic Euler (expl. in q, impl. in p):(qp

)=

(p

−U ′(q)

)+h

2

(−U ′(q)U ′′(q)p

)+h2

12

(2U ′′(q)p

−2U ′U ′′ − U ′′′p2

)+ . . .

this modified equation is Hamiltonian with

H(p, q) =1

2p2 + U(q)− h

2U ′(q)p+

h2

12

(U ′(q)2 + U ′′(q)p2

)+ . . .

5

Page 6: Geometric Numerical Integrationhairer/poly_geoint/intro.pdf · Geometric Numerical Integration (Ernst Hairer, TU Munchen, winter 2009/10)¨ Development of numerical ordinary differential

5 Constrained mechanical system

Graphics: J.-P. Eckmann & M. Hairer

Position of cornersqi ∈ R3, i = 0, . . . , 5

(6× 3 = 18 variables)

Constraints

• motion of one piece (red) isprescribed, i.e., q0, q1, q2 arefixed (9 conditions),

• distances between neighborcorners is unity (4 conditions),

• orthogonality between neigh-bor edges (qn−1 − qn) ⊥(qn+1 − qn) (5 conditions).

Dynamics (red piece is fixed, corners have equal mass one, massless edges)

H(p, q) =1

2

5∑i=3

pTi pi +

5∑i=3

qiz,

where qiz is the vertical component of qi.

We obtain a differential-algebraic equation (DAE)

qi = ∇piH(p, q)

pi = −∇qiH(p, q)−GT(q)λ

0 = g(q)

Here, q is the vector composed by q3, q4, q5 , p = q is the velocity, g(q) = 0represents the 9 constraints for q, and G(q) = g′(q) (matrix of dimension 9× 9).

6

Page 7: Geometric Numerical Integrationhairer/poly_geoint/intro.pdf · Geometric Numerical Integration (Ernst Hairer, TU Munchen, winter 2009/10)¨ Development of numerical ordinary differential

6 Euler’s equations of motion for a free rigid bodyThe angular momentum vector y = (y1, y2, y3)

T satisfies

y1 = (I−13 − I−1

2 ) y3 y2

y2 = (I−11 − I−1

3 ) y1 y3

y3 = (I−12 − I−1

3 ) y2 y1

or

y1

y2

y3

=

0 −y3 y2

y3 0 −y1

−y2 y1 0

y1/I1

y2/I2

y3/I3

Hamiltonian: H(y) =

1

2

(y21

I1+y2

2

I2+y2

3

I3

), Casimir: C(y) =

1

2

(y2

1 +y22 +y2

3

)

1st picture: integration with explicit Euler2nd picture: trapezoidal rule with projection onto the sphere3rd picture: implicit midpoint rule

7

Page 8: Geometric Numerical Integrationhairer/poly_geoint/intro.pdf · Geometric Numerical Integration (Ernst Hairer, TU Munchen, winter 2009/10)¨ Development of numerical ordinary differential

References[1] J. C. BUTCHER, Numerical Methods for Ordinary Differential Equations,

John Wiley & Sons Ltd., Chichester, 2nd ed., 2008.

[2] P. DEUFLHARD AND F. BORNEMANN, Numerische Mathematik 2, deGruyter Lehrbuch. [de Gruyter Textbook], Walter de Gruyter & Co., Berlin,revised ed., 2008. Gewohnliche Differentialgleichungen. [Ordinary differen-tial equations].

[3] E. HAIRER, C. LUBICH, AND G. WANNER, Geometric Numerical Integra-tion. Structure-Preserving Algorithms for Ordinary Differential Equations,Springer Series in Computational Mathematics 31, Springer-Verlag, Berlin,2nd ed., 2006.

[4] E. HAIRER, S. P. NØRSETT, AND G. WANNER, Solving Ordinary Differen-tial Equations I. Nonstiff Problems, Springer Series in Computational Mathe-matics 8, Springer, Berlin, 2nd ed., 1993.

[5] E. HAIRER AND G. WANNER, Solving Ordinary Differential Equations II.Stiff and Differential-Algebraic Problems, Springer Series in ComputationalMathematics 14, Springer-Verlag, Berlin, 2nd ed., 1996.

[6] B. LEIMKUHLER AND S. REICH, Simulating Hamiltonian Dynamics, Cam-bridge Monographs on Applied and Computational Mathematics 14, Cam-bridge University Press, Cambridge, 2004.

[7] J. M. SANZ-SERNA AND M. P. CALVO, Numerical Hamiltonian problems,vol. 7 of Applied Mathematics and Mathematical Computation, Chapman &Hall, London, 1994.

8