430 likes | 707 Views
Integrators of higher order. Aysam Gürler. Overview. Molecular Dynamics Simulations Methods Explicit/Implicit/Symplectic Euler, Midpoint Rule, Strömer/Verlet, Gear 4th, Runge-Kutta 4th Results ATP-Video. Molecular Dynamics. Computing the equilibrium
E N D
Integrators of higher order Aysam Gürler
Overview Molecular Dynamics Simulations Methods Explicit/Implicit/Symplectic Euler, Midpoint Rule, Strömer/Verlet, Gear 4th, Runge-Kutta 4th Results ATP-Video
Molecular Dynamics Computing the equilibrium Classical physics ignoring quantum effects
Molecular Dynamics Computation of force is very time consuming Consequently Methods involving more force calculations per step could be critical Increase the step size Reduce the number of pairs e.g. pharmacologically important atoms only or by a cut off value
Harmonic oscillator Oscillation with period = 2π Symplectic No energy drift / long term stable Accuracy Calculating the distance toexact solution
Test runs PERIODS
Euler’s method Simplest approach by a short Taylor series Explicit Euler (error of 2nd order) No use of force derivatives
Euler’s explicit method • Not symplectic • Not reversible • Not area preserving • Extreme energy drift Note Method is not recommend
Verlet-Störmer Taylor expansion in both directions Note Reversible, because of symmetry
Verlet-Störmer Summing both equations yields the verlet integrator Local error of 4th order Disadvantages Badconditioned Velocity for energy calculation through simple approx.
Verlet-Störmer • Symplectic • Reversible • Little long term drift • Moderate short term energy conservation Note Accurate for long term runs
Gear algorithms Open or predictor methods Predicting q(n+1) directly. Closed or predictor-corrector methods 1) Predicting a value y(n+1) 2) Use f(y(n+1)) to make a better prediction of q(n+1) Repeatable (more force calculations per step) Only one force per step called Gear algorithms
Gear algorithms N-Representation Nordsieck (4,1)
Gear algorithms • Predictor matrix A by Taylor expansion Predictor A in N-rep. (Taylor)
Gear algorithms Predictor step Corrector
Gear algorithms Correction vector a Numerical Initial Value Problems in Ordinary Differential Equations (C.W.Gear)
Gear 4th algorithms • Highly accurate • Not Symplectic • Not Reversible • “Does not seem to improve for higher order” Note Very good for short term runswithhigh precision
Runge-Kutta Solving analytical Approximation implicit trapezoidal rule
Runge-Kutta implicit trapezoidal midpoint rule
Runge-Kutta Main formula
Runge-Kutta Represention by coefficients
Runge-Kutta Implementation of 4th order explicit method Error of 5th order
Runge-Kutta 4th order k2 k4 k3 k1 qi qi + h/2 qi + h
Analyzing Runge-Kutta Rule for symplectic Runge-Kutta Algorithms Result Notsymplectic / explicit
Analyzing Runge-Kutta Rule for symmetry Runge-Kutta algorithms Result Notreversible
Runge-Kutta • Not Symplectic • Not Reversible • Extremely good for moderate step size • Very stable up to large step sizes But error is either permanently growing Note Very good for short term runs
Notes Symplectic algorithms of higher order are time consuming Non symplectic algorithms of higher order drift Different approach by optimizing the coefficients numerically possible
Video ATPVerlet-Störmer 100.000 steps at 1.3 fs without solvence
References • Hairer, Lubich, Wanner Geometric Numerical Integration • Berendsen, Gunsteren Practical Algorithms for Dynamic Simulations • Dullweber, Leimkuhler, McLachlan Split-Hamiltonian Methods for Rigid Body Molecular Dynamics • Schmidt, Schütte Hamilton’sche Systeme und klassische Moleküldynamik • Allen, Tildesley Computer simulation of liquids • Frenkel, Smit Understanding Molecular Simulation • Ratanapisit, Isbister, Ely Symplectic integrators and their usefulness • McLachlan On the numerical integration of ordinary dierential equations by symmetric composition methods. SIAM J. Sci. Comput. • Ordinary Differential Equations – IVP (Lecture 21) • http://www.personal.psu.edu (CSE455-NumericalAnalysis)