Chapter 16 Integration of Ordinary Differential Equations.

Slides:



Advertisements
Similar presentations
Finite Difference Discretization of Hyperbolic Equations: Linear Problems Lectures 8, 9 and 10.
Advertisements

Geometric Integration of Differential Equations 1. Introduction and ODEs Chris Budd.
Geometric Integration of Differential Equations 2. Adaptivity, scaling and PDEs Chris Budd.
Numeriska beräkningar i Naturvetenskap och Teknik 1. Numerical differentiation and quadrature Discrete differentiation and integration Trapezoidal and.
ODE jiangyushan. Pendulum As a example of a system that is nonlinear, consider the swinging pendulum shown above. When the mass of the pendulum is small.
Quantum One: Lecture 3. Implications of Schrödinger's Wave Mechanics for Conservative Systems.
Computational Methods in Physics PHYS 3437
Ordinary Differential Equations
Lecture 18 - Numerical Differentiation
1cs542g-term Notes. 2 Solving Nonlinear Systems  Most thoroughly explored in the context of optimization  For systems arising in implicit time.
PART 7 Ordinary Differential Equations ODEs
CSE245: Computer-Aided Circuit Simulation and Verification Lecture Note 5 Numerical Integration Spring 2010 Prof. Chung-Kuan Cheng 1.
Ch 5.2: Series Solutions Near an Ordinary Point, Part I
Chapter 19 Numerical Differentiation §Estimate the derivatives (slope, curvature, etc.) of a function by using the function values at only a set of discrete.
Computer-Aided Analysis on Energy and Thermofluid Sciences Y.C. Shih Fall 2011 Chapter 6: Basics of Finite Difference Chapter 6 Basics of Finite Difference.
Mechanics.
8-1 Chapter 8 Differential Equations An equation that defines a relationship between an unknown function and one or more of its derivatives is referred.
Ordinary Differential Equations (ODEs) 1Daniel Baur / Numerical Methods for Chemical Engineers / Implicit ODE Solvers Daniel Baur ETH Zurich, Institut.
Numerical Solutions of Ordinary Differential Equations
Chap 1 First-Order Differential Equations
Differential Equations and Boundary Value Problems
MATH 175: NUMERICAL ANALYSIS II CHAPTER 3: Differential Equations Lecturer: Jomar Fajardo Rabajante 2nd Sem AY IMSP, UPLB.
Numerical Solution of Ordinary Differential Equation
MATH 685/ CSI 700/ OR 682 Lecture Notes Lecture 10. Ordinary differential equations. Initial value problems.
Numerical solution of Differential and Integral Equations PSCi702 October 19, 2005.
1 Chapter 6 Numerical Methods for Ordinary Differential Equations.
PART 7 Ordinary Differential Equations ODEs
Ordinary Differential Equations (ODEs) 1Daniel Baur / Numerical Methods for Chemical Engineers / Explicit ODE Solvers Daniel Baur ETH Zurich, Institut.
1 Part 1: Ordinary Differential Equations Ch1: First-Order Differential Equations Ch2: Second-Order Differential Equations Ch3: The Laplace Transform Ch4:
Calculus and Analytic Geometry II Cloud County Community College Spring, 2011 Instructor: Timothy L. Warkentin.
Ch 8.1 Numerical Methods: The Euler or Tangent Line Method
Erin Catto Blizzard Entertainment Numerical Integration.
Chapter 17 Boundary Value Problems. Standard Form of Two-Point Boundary Value Problem In total, there are n 1 +n 2 =N boundary conditions.
EE3561_Unit 8Al-Dhaifallah14351 EE 3561 : Computational Methods Unit 8 Solution of Ordinary Differential Equations Lesson 3: Midpoint and Heun’s Predictor.
Math 3120 Differential Equations with Boundary Value Problems
Computer Animation Algorithms and Techniques
Modelling & Simulation of Chemical Engineering Systems Department of Chemical Engineering King Saud University 501 هعم : تمثيل الأنظمة الهندسية على الحاسب.
Integration of 3-body encounter. Figure taken from
MATH4248 Weeks Topics: review of rigid body motion, Legendre transformations, derivation of Hamilton’s equations of motion, phase space and Liouville’s.
Lecture Fall 2001 Physically Based Animation Ordinary Differential Equations Particle Dynamics Rigid-Body Dynamics Collisions.
7. Introduction to the numerical integration of PDE. As an example, we consider the following PDE with one variable; Finite difference method is one of.
Serge Andrianov Theory of Symplectic Formalism for Spin-Orbit Tracking Institute for Nuclear Physics Forschungszentrum Juelich Saint-Petersburg State University,
Numerical Solutions of ODE
Engineering Analysis – Computational Fluid Dynamics –
Large Timestep Issues Lecture 12 Alessandra Nardi Thanks to Prof. Sangiovanni, Prof. Newton, Prof. White, Deepak Ramaswamy, Michal Rewienski, and Karen.
Sheng-Fang Huang. 1.1 Basic Concepts Modeling A model is very often an equation containing derivatives of an unknown function. Such a model is called.
Ordinary Differential Equations (ODEs) 1Michael Sokolov / Numerical Methods for Chemical Engineers / Explicit ODE Solvers Michael Sokolov ETH Zurich, Institut.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 7 - Chapter 25.
5. Integration method for Hamiltonian system. In many of formulas (e.g. the classical RK4), the errors in conserved quantities (energy, angular momentum)
Chapter 5. Ordinary Differential Equation
Dr. Mujahed AlDhaifallah ( Term 342)
Today’s class Ordinary Differential Equations Runge-Kutta Methods
Lecture 40 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
Sec 21: Generalizations of the Euler Method Consider a differential equation n = 10 estimate x = 0.5 n = 10 estimate x =50 Initial Value Problem Euler.
This chapter is concerned with the problem in the form Chapter 6 focuses on how to find the numerical solutions of the given initial-value problems. Main.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 6 - Chapters 22 and 23.
MA2213 Lecture 10 ODE. Topics Importance p Introduction to the theory p Numerical methods Forward Euler p. 383 Richardson’s extrapolation.
1.1 Basic Concepts. Modeling
Ordinary Differential Equations
Integrators of higher order
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.
Chapter 23.
CSE 245: Computer Aided Circuit Simulation and Verification
Chapter 26.
POLYNOMIAL INTERPOLATION
Numerical Analysis Lecture 38.
MATH 174: NUMERICAL ANALYSIS I
ECE 576 POWER SYSTEM DYNAMICS AND STABILITY
Presentation transcript:

Chapter 16 Integration of Ordinary Differential Equations

Examples of Differential Equations ODE: –Newton’s equation of motion F=md 2 r/dt 2 –Chemical reaction dynamics dC/dt = -C –Population dynamics in ecology PDE: –Maxwell equations for electricity and magnetism –Structure and fluid mechanics –Schrödinger equation in quantum mechanics

Higher ODE Reduces to 1 st Order In general, it is sufficient to solve first-order ordinary differential equations of the form

Initial Value Problem It is convenient to consider independent variable x as time t. The solution to the equations is uniquely determined if the initial value at t=0, y i (0), is given. The equation can be written in vector form

Some General Properties of Autonomous Systems F(t,Y) = F(Y) independent of time t The space spanned by Y (a set of all possible Y) is called phase space F forms a vector field (a vector at each point Y) y1y1 y2y2 Intersection of trajectories cannot happen, why? Solution of dY/dt = F(Y) produces a parametric curve Y(t) in phase space. F

Fixed Points A location in phase space such that F(Y)=0. Attractor, repellor Saddle point or hyperbolic fixed point

Chaos Extremely sensitive to initial conditions [dY(t) = exp( t)dY(0)]. E.g., Lorenz’s weather model: y1y1 y2y2 y3y3

Finite difference Forward difference: Backward difference: Central difference: Euler Method:

Euler and Midpoint h

4-th Order Runge-Kutta Method

rk4( )

Some General Concepts Discretized equations, such as y n+1 =y n +hf(x n,y n ), is consistent, if as h->0, it approaches the original differential equation The error |y(x n+1 )-y n+1 | =O(h k ) in one step from x n to x n+1 is called local truncation error The error |y(x)-y n | for some finite x and initial condition y(0) = y 0 is the global error The method is convergent if the global error goes to zero as h -> 0 and n -> ∞.

Adaptive Stepsize Control Estimate local truncation error from difference between one h step and two steps of h/2 Or difference of 4 and 5-th order Runge- Kutta Increase h if error is small than tolerance, decrease h if error is bigger than tolerance. See NR p.721, odeint() for details.

Richardson Extrapolation and Bulirsch-Stoer Method Take a “large” step size H, consider the answer as an analytic function f(h) of h=H/n. Fit the function by polynomial or rational function interpolation. Choose a method (e.g., midpoint) such that f(h) is even in h. And finally extrapolate to h=0.

Multi-step, Explicit, Implicit, etc Solving equation y’=f(x,y) is to compute In general, this results in

Hamiltonian System The system of equations has special properties. It is equivalent to Newton’s equation with a potential energy.

Verlet or Störmer Algorithm Solve By central difference

2-Form and Symplectics The Hamiltonian dynamics, beside having a conserved energy, also has additional conserved quantities (  2 ) n,n=1,2,..,N: A canonical transform is a mapping from (p,q) to (P,Q) such that the form of  2 is the same. I.e. wedge product:

Canonical Transformation Equivalent condition for canonical mapping z to Z is where  2N means volume element in phase space – Hamiltonian dynamics preserves the volume – Liouville’s theorem.

Example of Symplectic Algorithm Euler method is not symplectic But the following is

Second-Order Symplectic or Velocity Verlet Combine two half-step size first-order symplectic algorithms, one can obtain: Symplectic algorithm preserves the symplectic properties of the Hamiltonian system exactly.

Problem set 10 1.Show that the last 2 nd order symplectic algorithm is indeed symplectic! 2.Show that the 4-th order Runge-Kutta is equivalent to Simpson rule if y’=f(x,y)=f(x) independent of y. 3.Verify that the 4-th order Runge-Kutta formula is indeed accurate to 4-th order [Taylor expanding both side of equation (16.1.3)]. Do this with Mathematica.