Integrators of higher order

Slides:



Advertisements
Similar presentations
Numerical Integration
Advertisements

Lecture on Numerical Analysis Dr.-Ing. Michael Dumbser
Courant and all that Consistency, Convergence Stability Numerical Dispersion Computational grids and numerical anisotropy The goal of this lecture is to.
Numeric Integration Methods Jim Van Verth Red Storm Entertainment
Geometric Integration of Differential Equations 1. Introduction and ODEs Chris Budd.
Formal Computational Skills
Chapter 6 Differential Equations
Molecular dynamics in different ensembles
Lecture 13: Conformational Sampling: MC and MD Dr. Ronald M. Levy Contributions from Mike Andrec and Daniel Weinstock Statistical Thermodynamics.
Numeriska beräkningar i Naturvetenskap och Teknik 1. Numerical differentiation and quadrature Discrete differentiation and integration Trapezoidal and.
A Digital Laboratory “In the real world, this could eventually mean that most chemical experiments are conducted inside the silicon of chips instead of.
Integration Techniques
Ordinary Differential Equations
1cs542g-term Notes. 2 Solving Nonlinear Systems  Most thoroughly explored in the context of optimization  For systems arising in implicit time.
CSE245: Computer-Aided Circuit Simulation and Verification Lecture Note 5 Numerical Integration Spring 2010 Prof. Chung-Kuan Cheng 1.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 32 Ordinary Differential Equations.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 31 Ordinary Differential Equations.
Initial-Value Problems
ECIV 301 Programming & Graphics Numerical Methods for Engineers REVIEW III.
Numerical Solutions of Ordinary Differential Equations
NUMERICAL SOLUTION OF ORDINARY DIFFERENTIAL EQUATIONS
Molecular Dynamics Classical trajectories and exact solutions
Chapter 16 Integration of Ordinary Differential Equations.
Ordinary Differential Equations (ODEs) 1Daniel Baur / Numerical Methods for Chemical Engineers / Explicit ODE Solvers Daniel Baur ETH Zurich, Institut.
Numerical Solutions to ODEs Nancy Griffeth January 14, 2014 Funding for this workshop was provided by the program “Computational Modeling and Analysis.
Erin Catto Blizzard Entertainment Numerical Integration.
EE3561_Unit 8Al-Dhaifallah14351 EE 3561 : Computational Methods Unit 8 Solution of Ordinary Differential Equations Lesson 3: Midpoint and Heun’s Predictor.
Javier Junquera Molecular dynamics in the microcanonical (NVE) ensemble: the Verlet algorithm.
Numerical Integration and Rigid Body Dynamics for Potential Field Planners David Johnson.
Computer Animation Algorithms and Techniques
Numerical Methods for Solving ODEs Euler Method. Ordinary Differential Equations  A differential equation is an equation in which includes derivatives.
1 CE 530 Molecular Simulation Lecture 23 Symmetric MD Integrators David A. Kofke Department of Chemical Engineering SUNY Buffalo
Ordinary Differential Equations (ODEs) 1Michael Sokolov / Numerical Methods for Chemical Engineers / Explicit ODE Solvers Michael Sokolov ETH Zurich, Institut.
5. Integration method for Hamiltonian system. In many of formulas (e.g. the classical RK4), the errors in conserved quantities (energy, angular momentum)
Molecular dynamics (1) Principles and algorithms.
Numerical Analysis – Differential Equation
Today’s class Ordinary Differential Equations Runge-Kutta Methods
Lecture 40 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
Lecture 39 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
Solving Ordinary Differential Equations
INTEGRATOR CLASSIFICATION & CHARACTERISTICS
Ordinary Differential Equations
Part 7 - Chapter 25.
Numerical Methods by Dr. Laila Fouad.
Ordinary Differential Equations
ECE 576 – Power System Dynamics and Stability
CSE245: Computer-Aided Circuit Simulation and Verification
Topics in Molecular Modeling: II
Class Notes 18: Numerical Methods (1/2)
SE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM (Term 101) Section 04 Read , 26-2, 27-1 CISE301_Topic8L4&5.
Class Notes 19: Numerical Methods (2/2)
CSE 245: Computer Aided Circuit Simulation and Verification
Ordinary differential equaltions:
Chapter 26.
Try Lam 25 April 2007 Aerospace and Mechanical Engineering
Introduction to Scientific Computing II
Part 7 - Chapter 25.
CSE245: Computer-Aided Circuit Simulation and Verification
WELCOME TO MY CLASS NUMERICAL METHOD Name : Masduki
Numerical Analysis Lecture 37.
SE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM (Term 101) Section 04 Read , 26-2, 27-1 CISE301_Topic8L2.
Numerical Analysis Lecture 38.
MATH 175: NUMERICAL ANALYSIS II
Numerical solution of first-order ordinary differential equations
ECE 576 POWER SYSTEM DYNAMICS AND STABILITY
SE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM Read , 26-2, 27-1 CISE301_Topic8L3 KFUPM.
EE 616 Computer Aided Analysis of Electronic Networks Lecture 12
CISE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM Read , 26-2, 27-1 CISE301_Topic8L7 KFUPM.
Numerical solution of first-order ordinary differential equations 1. First order Runge-Kutta method (Euler’s method) Let’s start with the Taylor series.
Presentation transcript:

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

Hamiltonian

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 to exact solution

Test runs 0.001 0.01 0.1 0.3 Euler (explicit) Verlet Gear4th Method / Step size 0.001 0.01 0.1 0.3 Euler (explicit) 10 80 Verlet Gear4th Runge-Kutta4th 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 Bad conditioned 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 A in N-rep. (Taylor) Predictor matrix A by Taylor expansion

Gear algorithms Predictor step Corrector

Gear algorithms Correction vector a Index 1 2 3 4 1/6 5/6 1/3 5 19/120 1 2 3 4 1/6 5/6 1/3 5 19/120 3/4 1/2 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 runs with high 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 Not symplectic / explicit

Analyzing Runge-Kutta Rule for symmetry Runge-Kutta algorithms Result Not reversible

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 ATP Verlet-Störmer 100.000 steps at 1.3 fs without solvence

References Hairer, Lubich, Wanner Berendsen, Gunsteren 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)