Runga-Kutta Schemes. Exact evolution over a small time step: Expand both sides in a small time increment: d(δt) F (x(t + δt),t+ δt) Ft + FF x ( t)

Similar documents
Ordinary differential equations. Phys 420/580 Lecture 8

Physics 115/242 The leapfrog method and other symplectic algorithms for integrating Newton s laws of motion

Chaotic motion. Phys 750 Lecture 9

Physics 115/242 The leapfrog method and other symplectic algorithms for integrating Newton s laws of motion

Lecture IV: Time Discretization

Scientific Computing II

Physics 299: Computational Physics II Project II

Chaotic motion. Phys 420/580 Lecture 10

δ Substituting into the differential equation gives: x i+1 x i δ f(t i,x i ) (3)

Ordinary Differential Equations II

Ordinary Differential Equations II

Numerical methods for the Navier- Stokes equations

Chapter 9b: Numerical Methods for Calculus and Differential Equations. Initial-Value Problems Euler Method Time-Step Independence MATLAB ODE Solvers

Particle Systems. University of Texas at Austin CS384G - Computer Graphics

Logistic Map, Euler & Runge-Kutta Method and Lotka-Volterra Equations

Parallel-in-time integrators for Hamiltonian systems

Numerical Methods for Ordinary Differential Equations

Symplectic integration. Yichao Jing

The Finite Element Method for the Analysis of Non-Linear and Dynamic Systems. Prof. Dr. Eleni Chatzi Lecture 6-5 November, 2015

Second Order Transfer Function Discrete Equations

Lecture V: The game-engine loop & Time Integration

Virtual Reality & Physically-Based Simulation

Physics 115/242 Comparison of methods for integrating the simple harmonic oscillator.

Optimising the Computational Simulation of Mechanical Models: Designing a Real-Time Mass-Aggregate Physics Engine

AM 205 Final Project The N-Body Problem

Ordinary differential equations. Phys 750 Lecture 7

Numerical Algorithms as Dynamical Systems

Numerical Methods for ODEs. Lectures for PSU Summer Programs Xiantao Li

Ordinary Differential Equations (ODEs)

Lösning: Tenta Numerical Analysis för D, L. FMN011,

Ordinary Differential Equations

Finite Difference and Finite Element Methods

Ordinary Differential Equations

1. Consider the initial value problem: find y(t) such that. y = y 2 t, y(0) = 1.

Computational Astrophysics

MODELING OF CONCRETE MATERIALS AND STRUCTURES. Kaspar Willam. Class Meeting #5: Integration of Constitutive Equations

EN Applied Optimal Control Lecture 8: Dynamic Programming October 10, 2018

Examination paper for TMA4130 Matematikk 4N

Modified Equations for Variational Integrators

Checking the Radioactive Decay Euler Algorithm

Previous Year Questions & Detailed Solutions

Flood routing. Prof. (Dr.) Rajib Kumar Bhattacharjya Indian Institute of Technology Guwahati

Differential Equations

Runge-Kutta and Collocation Methods Florian Landis

Unit I (Testing of Hypothesis)

Chapter 1 Symplectic Integrator and Beam Dynamics Simulations

Nonlinear Single-Particle Dynamics in High Energy Accelerators

Chap. 20: Initial-Value Problems

Introduction to symplectic integrator methods for solving diverse dynamical equations

Draft TAYLOR SERIES METHOD FOR SYSTEM OF PARTICLES INTERACTING VIA LENNARD-JONES POTENTIAL. Nikolai Shegunov, Ivan Hristov

TABLE OF CONTENTS INTRODUCTION, APPROXIMATION & ERRORS 1. Chapter Introduction to numerical methods 1 Multiple-choice test 7 Problem set 9

The Finite Element Method for the Analysis of Non-Linear and Dynamic Systems: Non-Linear Dynamics Part I

Langevin Methods. Burkhard Dünweg Max Planck Institute for Polymer Research Ackermannweg 10 D Mainz Germany

CHAPTER 2 THE MAXIMUM PRINCIPLE: CONTINUOUS TIME. Chapter2 p. 1/67

Find the slope of the curve at the given point P and an equation of the tangent line at P. 1) y = x2 + 11x - 15, P(1, -3)

KINGS COLLEGE OF ENGINEERING DEPARTMENT OF MATHEMATICS ACADEMIC YEAR / EVEN SEMESTER QUESTION BANK

Lagrangian and Hamiltonian Dynamics

Differential Equations

Review: control, feedback, etc. Today s topic: state-space models of systems; linearization

Deterministic Dynamic Programming

Interpolation. Chapter Interpolation. 7.2 Existence, Uniqueness and conditioning

Lecture 4: Numerical solution of ordinary differential equations

Identification Methods for Structural Systems. Prof. Dr. Eleni Chatzi Lecture March, 2016

There seems to be three different groups of students: A group around 6 A group around 12 A group around 16

Chapter 1 Linear Equations and Graphs

TP 3:Runge-Kutta Methods-Solar System-The Method of Least Squares

Physics 5153 Classical Mechanics. Canonical Transformations-1

Introduction to Hamiltonian Monte Carlo Method

CE 530 Molecular Simulation

Newtonian Mechanics. Chapter Classical space-time

PowerPoints organized by Dr. Michael R. Gustafson II, Duke University

Introduction to Hamiltonian systems

Hamiltonian Dynamics

Energy and Forces in DFT

ENO and WENO schemes. Further topics and time Integration

Estimating Accuracy in Classical Molecular Simulation

Introduction to numerical methods for Ordinary Differential Equations

Revision History Date Version Description Author 03/06/ Initial Version Sergio Miguel Martin. Table of Contents

Path integrals for classical Markov processes

Solution: (a) Before opening the parachute, the differential equation is given by: dv dt. = v. v(0) = 0

PowerPoints organized by Dr. Michael R. Gustafson II, Duke University

arxiv: v1 [math-ph] 9 Jan 2012

CS205B / CME306 Homework 3. R n+1 = R n + tω R n. (b) Show that the updated rotation matrix computed from this update is not orthogonal.

Examination paper for TMA4125 Matematikk 4N

Worksheet 1: Integrators

TAU Solver Improvement [Implicit methods]

(f(x) P 3 (x)) dx. (a) The Lagrange formula for the error is given by

Alexei F. Cheviakov. University of Saskatchewan, Saskatoon, Canada. INPL seminar June 09, 2011

AIMS Exercise Set # 1

Trajectory planning and feedforward design for electromechanical motion systems version 2

CHAPTER 80 NUMERICAL METHODS FOR FIRST-ORDER DIFFERENTIAL EQUATIONS

Math 342 Partial Differential Equations «Viktor Grigoryan

The kinetic equation (Lecture 11)

Computational project: Modelling a simple quadrupole mass spectrometer

PowerPoints organized by Dr. Michael R. Gustafson II, Duke University

Examination paper for TMA4122/TMA4123/TMA4125/TMA4130 Matematikk 4M/N

Geometric methods for orbit integration. PiTP 2009 Scott Tremaine

Math 128A Spring 2003 Week 11 Solutions Burden & Faires 5.6: 1b, 3b, 7, 9, 12 Burden & Faires 5.7: 1b, 3b, 5 Burden & Faires 5.

Course Notes for EE227C (Spring 2018): Convex Optimization and Approximation

Conservation Laws: Systematic Construction, Noether s Theorem, Applications, and Symbolic Computations.

Transcription:

Runga-Kutta Schemes Exact evolution over a small time step: x(t + t) =x(t)+ t 0 d(δt) F (x(t + δt),t+ δt) Expand both sides in a small time increment: x(t + t) =x(t)+x (t) t + 1 2 x (t)( t) 2 + 1 6 x (t)+ = x(t)+f t + 1 ( ) Ft + FF x ( t) 2 2 + 1 Ftt +2FF tx + F 6( 2 F xx + FFx 2 ) + F t F x ( t) 3 +

Runga-Kutta Schemes Exact evolution over a small time step: x(t + t) =x(t)+ t 0 d(δt) F (x(t + δt),t+ δt) Expand both sides in a small time increment: x(t + t) =x(t)+x (t) t + 1 2 x (t)( t) 2 + 1 6 x (t)+ = x(t)+f t + 1 ( ) Ft + FF x ( t) 2 2 + 1 Ftt +2FF tx + F 6( 2 F xx + FFx 2 ) + F t F x ( t) 3 + partial derivatives

Runga-Kutta Schemes Runge-Kutta ansatz at order m: x(t + t) =x(t)+α 1 c 1 + α 2 c 2 + + α m c m Function evaluation at many points in the interval c 1 =( t)f (x, t) c 2 =( t)f (x + ν 21 c 1,t+ ν 21 t) c 3 =( t)f (x + ν 31 c 1 + ν 32 c 2,t+(ν 31 + ν 32 ) t) c 4 =( t)f (x + ν 41 c 1 + ν 42 c 2 + ν 43 c 3,t+(ν 41 + ν 42 + ν 43 ) t). m equations and m + m(m 1)/2 unknowns {α i, ν ij }

We have discussed the Euler, Picard, and Runga-Kutta schemes for integrating the first-order initial value problem: x (t) =F (x(t),t) x(0) = x 0 Similar considerations can be applied to the second-order problem: x (t) =F (x(t),x (t),t) x(0) = x 0 x (0) = v 0

Convenient to reinterpret the second-order system as two coupled first-order equations x (t) =F (x(t),x (t),t) x(0) = x 0 x (0) = v 0 v (t) =A(x(t),v(t),t) x (t) =v(t) x(0) = x 0 v(0) = v 0 Obvious connection to classical mechanics: velocity v and acceleration model A

Naive generalization of Euler method to the pair of first order equations Some ambiguity in the labelling of time steps Set x 0 and v 0 to their initial values Step through each t i (i 0): compute a i = A(x i,v i,t i ) v i+1 = v i + a i t x i+1 = x i + v i t t i+1 = t i + t

Naive generalization of Euler method to the pair of first order equations Some ambiguity in the labelling of time steps Set x 0 and v 0 to their initial values Step through each t i (i 0): compute a i = A(x i,v i,t i ) v i+1 = v i + a i t x i+1 = x i + v i t t i+1 = t i + t Could equally read v i+1 and still be correct to O( t) (Euler-Cromer)

Can achieve higher order algorithms systematically at the cost of having more time steps involved in each update x i+1 = x i + v i t + 1 2 a i( t) 2 + O( t) 3 x i 1 = x i v i t + 1 2 a i( t) 2 + O( t) 3 Adding and subtracting the forward and reverse forms x i+1 =2x i x i 1 + a i ( t) 2 v i = x i+1 x i 1 (Verlet method) t

Verlet method is more numerically stable than Euler It is not self-starting: it needs both and (x 0,v 0 ) (x 1,v 1 ) Accuracy can be arbitrarily improved in this way at the cost of more starting points: (x 2,v 2 ), etc. Fortunately, there is an update rule mathematically equivalent to Verlet that is self-starting: x i+1 = x i + v i t + 1 2 a i( t) 2 (self-starting Verlet) v i+1 = v i + 1 2 (a i+1 + a i ) t

Runga-Kutta is always self-starting 4th order Runga-Kutta for Newton s equations: k 1v = A(x i,v i,t i ) t k 1x = v i t k 2v = A(x i + 1 2 k 1x,v i + 1 2 k 1v,t i + 1 2 t) k 3v = A(x i + 1 2 k 2x,v i + 1 2 k 2v,t i + 1 2 t) k 3x = ( v i + 1 2 k 2v) t k 4v = A(x i + k 3x,v i + k 3v,t i + t) k 4x = ( ) v i + k 3x t ( ) v i+1 = v i + 1 6 k1v +2k 2v +2k 3v + k 4v ( ) x i+1 = x i + 1 6 k1x +2k 2x +2k 3x + k 4x

Finite difference equation approximates a differential equation as an iterative map (x i+1,v i+1 )=M[(x i,v i )] Evolution given by orbits of the map (as in Game of Life) (x n,v n )=M (n) [(x 0,v 0 )] = M[M[ M[(x 0,v 0 )] ]] }{{} ntimes

Backward analysis theorem: the iterative map is solving exactly some other equation M v (t) =A(x(t),v(t),t)+ɛ Are additional terms ɛ relevant? Do they break important conservation laws?

Hamiltonian Systems System that can be describe by a Hamiltonian of generalized coordinates (p n,q n ) H in terms Equations of motion: ṗ n dp n dt = H q i q n dq n dt = H p i

Hamiltonian Systems Key property of Hamiltonian systems: symplectic symmetry = conservation of phase space volume p p t = t 1 t = t 2 q q