CS205b/CME306. Lecture 4. x v. + t

Similar documents
Lecture V: The game-engine loop & Time Integration

Lecture IV: Time Discretization

Ordinary Differential Equations II

Ordinary Differential Equations II

Ordinary Differential Equations

Dynamics ( 동역학 ) Ch.2 Motion of Translating Bodies (2.1 & 2.2)

Drive train. Steering System. Figure 1 Vehicle modeled by subsystems

ODE Runge-Kutta methods

Consistency and Convergence

Сollisionless damping of electron waves in non-maxwellian plasma 1

Chapter 9 Implicit Methods for Linear and Nonlinear Systems of ODEs

ECE257 Numerical Methods and Scientific Computing. Ordinary Differential Equations

A. Idesman. Keywords: time integration, spurious oscillations, numerical dispersion

Stability of Mass-Point Systems

Quadratic Equation. ax bx c =. = + + =. Example 2. = + = + = 3 or. The solutions are -7/3 and 1.

Semi-implicit Treatment of the Hall Effect in NIMROD Simulations

CS520: numerical ODEs (Ch.2)

Department of Physics PHY 111 GENERAL PHYSICS I

Solving Ordinary Differential equations

Lecture 21: Physical Brownian Motion II

FDM for parabolic equations

Ordinary Differential Equations

Math 660 Lecture 4: FDM for evolutionary equations: ODE solvers

Velocity, Acceleration and Equations of Motion in the Elliptical Coordinate System

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

DYNAMICS. Kinematics of Particles Engineering Dynamics Lecture Note VECTOR MECHANICS FOR ENGINEERS: Eighth Edition CHAPTER

Chapter 2: 1D Kinematics Tuesday January 13th

Exam in TMA4215 December 7th 2012

The Full-rank Linear Least Squares Problem

Numerical Methods for the Solution of Differential Equations

Differential Equations

Introduction to Differential Equations

Time scales. Notes. Mixed Implicit/Explicit. Newmark Methods [ ] [ ] "!t = O 1 %

Exact and Approximate Numbers:

Split explicit methods

Feb 6, 2013 PHYSICS I Lecture 5

Computational Methods CMSC/AMSC/MAPL 460. Ordinary differential equations

Note: the net distance along the path is a scalar quantity its direction is not important so the average speed is also a scalar.

DO PHYSICS ONLINE. WEB activity: Use the web to find out more about: Aristotle, Copernicus, Kepler, Galileo and Newton.

Simulations of bulk phases. Periodic boundaries. Cubic boxes

Stability regions of Runge-Kutta methods. Stephan Houben Eindhoven University of Technology

Lecture 17: Ordinary Differential Equation II. First Order (continued)

NUMERICAL SOLUTION OF ODE IVPs. Overview

Dynamical Systems. 1.0 Ordinary Differential Equations. 2.0 Dynamical Systems

Lecture 4.5 Schemes for Parabolic Type Equations

Solving PDEs with PGI CUDA Fortran Part 4: Initial value problems for ordinary differential equations

Strong Stability-Preserving (SSP) High-Order Time Discretization Methods

Math 411 Preliminaries

Section 4.3: Quadratic Formula

Euler s Method, cont d

Computational Methods CMSC/AMSC/MAPL 460. Ordinary differential equations

THE FIFTH DIMENSION EQUATIONS

Euler s Method, Taylor Series Method, Runge Kutta Methods, Multi-Step Methods and Stability.

Lecture 5: Single Step Methods

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

CS 450 Numerical Analysis. Chapter 9: Initial Value Problems for Ordinary Differential Equations

Section 6: PRISMATIC BEAMS. Beam Theory

CS 205b / CME 306. Application Track. Homework 2

III. Relative Velocity

Ordinary Differential Equations I

General Lorentz Boost Transformations, Acting on Some Important Physical Quantities


MATHEMATICAL MODELLING AND IDENTIFICATION OF THE FLOW DYNAMICS IN

Lecture Notes to Accompany. Scientific Computing An Introductory Survey. by Michael T. Heath. Chapter 9

Lesson 2: Kinematics (Sections ) Chapter 2 Motion Along a Line

What we ll do: Lecture 21. Ordinary Differential Equations (ODEs) Differential Equations. Ordinary Differential Equations

Lecture #9: Harmonic Oscillator: Creation and Annihilation Operators

Geostrophy & Thermal wind

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

A possible mechanism to explain wave-particle duality L D HOWE No current affiliation PACS Numbers: r, w, k

The family of Runge Kutta methods with two intermediate evaluations is defined by

Name of the Student: Unit I (Solution of Equations and Eigenvalue Problems)

Applied Math for Engineers

NUMERICAL METHODS FOR ENGINEERING APPLICATION

Motion in Two and Three Dimensions

Reading. Particle Systems. What are particle systems? Overview

Bindel, Fall 2011 Intro to Scientific Computing (CS 3220) Week 12: Monday, Apr 18. HW 7 is posted, and will be due in class on 4/25.

Investigation on Ring Valve Motion and Impact Stress in Reciprocating Compressors

Solving Ordinary Differential Equations

Second Order Transfer Function Discrete Equations

4-1 Graphing Quadratic Functions

An example of Lagrangian for a non-holonomic system

MA 266 Review Topics - Exam # 2 (updated)

Scientific Computing: An Introductory Survey

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

High Order Well-Balanced Schemes and Applications to Non-Equilibrium Flow with Stiff Source Terms

Supplementary Information Microfluidic quadrupole and floating concentration gradient Mohammad A. Qasaimeh, Thomas Gervais, and David Juncker

MecE 390 Final examination, Winter 2014

SUPPLEMENTARY MATERIAL. Authors: Alan A. Stocker (1) and Eero P. Simoncelli (2)

[ ] is a vector of size p.

Ordinary Differential Equations (ODEs)

Main points of today s lecture: Example: addition of velocities Trajectories of objects in 2 dimensions: Physic 231 Lecture 5 ( )

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

q t = F q x. (1) is a flux of q due to diffusion. Although very complex parameterizations for F q

Chapter 1: Kinematics of Particles

Multistep Methods for IVPs. t 0 < t < T

Some notes about PDEs. -Bill Green Nov. 2015

Math Numerical Analysis Homework #4 Due End of term. y = 2y t 3y2 t 3, 1 t 2, y(1) = 1. n=(b-a)/h+1; % the number of steps we need to take

Ordinary Differential Equations I

Synchronization procedures and light velocity

Transcription:

CS05b/CME306 Lecture 4 Time Integration We now consider seeral popular approaches for integrating an ODE Forward Euler Forward Euler eolution takes on the form n+ = n + Because forward Euler is unstable when the system contains pure imaginary eigenalues, it is unstable without damping In particular, a < 0 Forward Euler is stable when λ + < A time step restriction of λ is required As problems get stiffer, ma λ becomes larger, and consequently the time step that can be taken becomes smaller The stability region for forward Euler is shown in Figure a If the system has eigenalues near the imaginary ais, we would be much better off using using a different method such as one of the higher order Runge-Kutta methods Runge-Kutta Methods There are a number of Runge-Kutta methods in common use The Runge-Kutta methods were discussed in more detail in CS05A, so they are only highlighted here The second order Runge- Kutta method is technically linearly unstable without damping since its stability region does not include the imaginary ais Roundoff with a < 0 may be sufficient, and nonlinear effects can sometimes rectify the problem The third order Runge-Kutta method is stable without damping, since its stability region includes part of the imaginary ais It is suitable for system with a = 0 Stability regions for arious Runge-Kutta methods are shown in Figure 3 Backward Euler The need for a time step restriction is true of all eplicit methods By contract, implicit methods often hae a much better time step restriction that makes them more suitable een though they require a linear system sole and are thus much more epensie per step Backward Euler is the simplest of the implicit methods Its stability region Figure a looks ery different from those of the eplicit integrators It takes the form n+ = n + a a n n+

a Forward Euler First Order Runge-Kutta b Second Order Runge-Kutta c Third Order Runge-Kutta d Fourth Order Runge-Kutta Figure : Stability regions for Runge-Kutta The scheme is stable with time step size if λ, a comple number in general, is located within the shaded region of the comple plane Note that the third and fourth order schemes hae stability regions that encompass the imaginary ais, making them stable on undamped problems The first and second order schemes do not hae this property

a Backward Euler b Trapezoid Rule Figure : Stability regions for two implicit time integration schemes The scheme is stable with time step size if λ, a comple number in general, is located within the shaded region of the comple plane Note that the new alues being obtained occur on both sides of the equation, so a sole is typically necessary at each time step Backward Euler has no time step restriction for stability, but large time steps do result in poor accuracy The sole required for backward Euler can be relatiely easy in the case of linear ODEs For eample, if the only force is drag, F = k and a = k/m Then, n+ = n k n+ /m so that n+ = + k/m n and n+ = n + n+ = n + + k/m n are relatiely easily obtained Note that this damps elocity each time step, and it damps more with larger time steps This is in contrast to forward Euler, where n+ = k/m n Damping here occurs if < m/k = ma λ but amplification occurs for larger time steps More generally, backward Euler requires soling a linear system If the ODE is nonlinear, it will typically be more difficult and epensie to sole and requires that the nonlinear system first be linearized 4 Trapezoid Rule Forward Euler eolution takes on the form n+ = n + a n + a n+ Because forward Euler is unstable when the system contains pure imaginary eigenalues, it is unstable without damping In particular, a < 0 Forward Euler is stable when λ + < A time step restriction of λ is required As problems get stiffer, ma λ becomes larger, and consequently the time step that can be taken becomes smaller The stability region for forward 3

= e t = 4 = = = 4 0 0 3 Figure 3: Effects of large time step sizes on numerical simulation of y = y with backward Euler Euler is shown in Figure b If the system has eigenalues near the imaginary ais, we would be much better off using using a different method such as one of the higher order Runge-Kutta methods 5 Newmark Method Newmark methods are the most famous of the multialue methods in computation solids Multialue methods are those that take adantage of the fact that higher order deriaties can be computed at lower accuracy to be more efficient The Newmark method is a two-parameter family of methods: n+ = n + n + βan + βa n+ n+ = n + γa n + γa n+ The specific method depends on the choice of β and γ chosen Constant acceleration equations, β = γ = 0 Implicit acceleration, β = / and γ = n+ = n + n + an n+ = n + a n n+ = n + n + an+ n+ = n + γa n+ The elocity update is the first order backward Euler update The position update can be written as n+ = n + n + n+, which is just the second order accurate trapezoid rule This choice is still only first order accurate oerall There is a theorem that states that second order accuracy is obtained if and only if γ = / The following two methods are second order Newmark methods 4

Trapezoid rule, β = /4 and γ = / n+ = n + n + a n + a n+ n+ = n + an + a n+ This method gets its name since the position equation can also be rewritten as a trapezoid rule update as n+ = n + n + n+ Central differencing, β = 0 and γ = / n+ = n + n + an n+ = n + an + a n+ The name of this method comes from the ability of its updates to be epressed as the central differences n+ n = n n+ n + n = a n These equations can be obtained by n+ + n = n+ n n+ n n+ n n+ n = n+ n + n n+ n + n n+ n + n n+ n + n n + n + an = n + an + n + an + = n + n + an + a n = n n + n + an = n + an n an = n n + an a n = n + an + a n = a n n + n + an n + n + an n + an a n 6 Staggering the Position and Velocity Define elocity halfway between time steps so that the update n+/ = n+ n 5

is second order accurate Note that n is still defined at the normal times We can then define n by aeraging nearby elocities as n = n/ + n+/ = n+ n, which is also central differencing for elocity The update formula for positions is then just Acceleration is also at grid points so the update a n = a n, n = a n+ = n + n+/ n, n/ + n+/ n+/ = n/ + a n is also second order accurate We also hae the second order accurate central difference formula n+ n + n = a n We can combine these formulas to obtain the eplicit formula for a half time step n+/ n = n/ + n+/ n = n+/ a n + n+/ = n + an which is then used to update positions Note that these two steps are equialent to n+ = n + n + an Finally, elocities are updated another half step using the implicit update The oerall elocity update is n+ = n+/ + n+3/ n+ = n+/ + n+/ + a n+ n+ = n+/ + an+ = n+/ + an+, n+ n+ = n+/ + an+, n+ = n + an, n + an+, n+ which is just the trapezoid rule The dependence of acceleration on elocity is often symmetric eg, damping forces, so that a fast soler like preconditioned conjugate gradient can be employed 6