Adaptive Runge-Kutta addresses the problem of functions that change rapidly at a point.

Slides:



Advertisements
Similar presentations
1-8 Solving Equations Using Inverse Operations Objective: Use inverse operations to solve equations.
Advertisements

Integration Techniques
#1 Factor Each (to prime factors): #2 #3 #4 Solve:
Solving Equations = 4x – 5(6x – 10) -132 = 4x – 30x = -26x = -26x 7 = x.
Computational Methods in Physics PHYS 3437
Ordinary Differential Equations
Solving Equations with the Variable on Both Sides Objectives: to solve equations with the variable on both sides.
1cs542g-term Notes  Notes for last part of Oct 11 and all of Oct 12 lecture online now  Another extra class this Friday 1-2pm.
1cs542g-term Notes  Even if you’re not registered (not handing in assignment 1) send me an to be added to a class list.
Total Recall Math, Part 2 Ordinary diff. equations First order ODE, one boundary/initial condition: Second order ODE.
UNC Chapel Hill M. C. Lin Disclaimer The following slides reuse materials from SIGGRAPH 2001 Course Notes on Physically-based Modeling (copyright  2001.
Initial-Value Problems
CSE245:Lecture12 Advisor: C.K. Cheng Date: 02/13/03.
Higher order ODE’s and systems of ODE’s Recall: any higher ODE a system of first order ODEs How to solve? - same as before only more steps.
Ordinary Differential Equations (ODEs) 1Daniel Baur / Numerical Methods for Chemical Engineers / Implicit ODE Solvers Daniel Baur ETH Zurich, Institut.
Finite Difference Methods to Solve the Wave Equation To develop the governing equation, Sum the Forces The Wave Equation Equations of Motion.
Chapter 16 Integration of Ordinary Differential Equations.
1Chapter 2. 2 Example 3Chapter 2 4 EXAMPLE 5Chapter 2.
A) Find the velocity of the particle at t=8 seconds. a) Find the position of the particle at t=4 seconds. WARMUP.
1Chapter 2. 2 Example 3Chapter 2 4 EXAMPLE 5Chapter 2.
Chapter 2 Solution of Differential Equations
Exact differentials and the theory of differential equations Let’s consider the first order differential equation with We can find F(x,y) that generates.
Numerical Solution of Ordinary Differential Equation
1 Chapter 6 Numerical Methods for Ordinary Differential Equations.
Ordinary Differential Equations (ODEs) 1Daniel Baur / Numerical Methods for Chemical Engineers / Explicit ODE Solvers Daniel Baur ETH Zurich, Institut.
© Where quality comes first! PowerPointmaths.com © 2004 all rights reserved.
Numerical Solutions to ODEs Nancy Griffeth January 14, 2014 Funding for this workshop was provided by the program “Computational Modeling and Analysis.
First Order Linear Equations Integrating Factors.
Boyce/DiPrima 9th ed, Ch 8.4: Multistep Methods Elementary Differential Equations and Boundary Value Problems, 9th edition, by William E. Boyce and Richard.
Numerical Integration Methods
Modeling and simulation of systems Numerical methods for solving of differential equations Slovak University of Technology Faculty of Material Science.
Modelling & Simulation of Chemical Engineering Systems Department of Chemical Engineering King Saud University 501 هعم : تمثيل الأنظمة الهندسية على الحاسب.
Integration of 3-body encounter. Figure taken from
S.A.T. Math Testing Tactics Tactic 10: Don’t Do More Than You Have To.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. ~ Ordinary Differential Equations ~ Stiffness and Multistep.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. by Lale Yurttas, Texas A&M University Chapter 261 Stiffness.
5.5 Objectives Apply the base properties of logarithms. Use the change of base formula.
Improper Integrals. Examples of Improper Integrals Integrals where one or both endpoints is infinite or the function goes to infinity at some value within.
© Imperial College London Numerical Solution of Differential Equations 3 rd year JMC group project ● Summer Term 2004 Supervisor: Prof. Jeff Cash Saeed.
Numerical Analysis – Differential Equation
1. solve equations with variables on both sides. 2. solve equations containing grouping symbols. Objectives The student will be able to:
Solving a Trigonometric Equation Find the general solution of the equation.
Notes Over 5.6 Quadratic Formula
4.8 “The Quadratic Formula” Steps: 1.Get the equation in the correct form. 2.Identify a, b, & c. 3.Plug numbers into the formula. 4.Solve, then simplify.
1. solve equations with variables on both sides. 2. solve equations with either infinite solutions or no solution Objectives The student will be able to:
ECE 576 – Power System Dynamics and Stability Prof. Tom Overbye Dept. of Electrical and Computer Engineering University of Illinois at Urbana-Champaign.
Game Technology Animation V Generate motion of objects using numerical simulation methods Physically Based Animation.
Ordinary Differential Equations
6.6Euler’s Method Leonhard Euler Leonhard Euler made a huge number of contributions to mathematics, almost half after he was totally blind.
1/14  5.2 Euler’s Method Compute the approximations of y(t) at a set of ( usually equally-spaced ) mesh points a = t 0 < t 1
Lecture 39 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
Dr. Mubashir Alam King Saud University. Outline Ordinary Differential Equations (ODE) ODE: An Introduction (8.1) ODE Solution: Euler’s Method (8.2) ODE.
7.2* Natural Logarithmic Function In this section, we will learn about: The natural logarithmic function and its derivatives. INVERSE FUNCTIONS.
Solving Equations with Variable on Both Sides Objective: Students will solve equations with variables on both sides. Section 3.4.
3.4 Solving multi-step inequalities. Is the following correct or incorrect? Explain your reasoning. x -4 >
2( ) 8x + 14y = 4 -12x – 14y = x = x = 4 8x + 14y = 4 8(4) + 14y = y = y = -28 ___ ___ y = -2 The solution is (4, -2)
ECE 576 – Power System Dynamics and Stability
Notes Over 9.6 An Equation with One Solution
Class Notes 19: Numerical Methods (2/2)
Class Notes 11.2 The Quadratic Formula.
Finding A Better Final Discretized Equation
Disclaimer The following slides reuse materials from SIGGRAPH 2001 Course Notes on Physically-based Modeling (copyright  2001 by David Baraff at Pixar).
Chapter 26.
Bases Other than e and Applications
Disclaimer The following slides reuse materials from SIGGRAPH 2001 Course Notes on Physically-based Modeling (copyright  2001 by David Baraff at Pixar).
Bellwork~Solve 1.) x - 2 = 5 2.) 2x - 7 = 9 3.)(2x-7) - 5 = 4.
MATH 1310 Session 2.
Implicit and Explicit Runge-Kutta methods
Trial & Improvement Friday, 24 May 2019.
Presentation transcript:

Adaptive Runge-Kutta addresses the problem of functions that change rapidly at a point

Would like to use small size steps in the area of rapid change - normal size steps in area of normal change Two approaches behind adaptive step size look at difference between predictions with different step sizes but same order RK look at difference between predictions with different order RK

Step-halving or adpartive Runge-Kutta let y 1 be single-step prediction let y 2 be prediction using two half steps The correction is fifth order accurate

Example:

Integrate y’ from x=0 to 2 using h=2, and improve using adaptive RK Complete step results are Half step results are

The correction is The corrected value is Compare to true value y(2)=

Runge-Kutta-Fehlberg Uses two different RK predictions of different order Special choice of methods lets you use results from 4th order in 5th order RK - then combine them

Fourth order RK Fifth order RK

Formula for k’s

Example Use h=2, and the RKF method

The results are RK4= RK5= and Ea=RK5-RK4= = Now adjust stepsize

If Ea is too small, increase step size If Ea is too large, decrease step size

Stiffness stiff equation involves rapidly changing parts and slowly changing parts Solution is

Look at homogeneous part of equation In general Explicit Euler’s method

Look at what happens to y over long time - stability Ifthen y goes to infinity Sofor explicit method to work - small h

Need to use implicit methods, rather than explicit Implicit form of the Euler method Can solve to get

Implicit Euleris always stable - as i increases y goes to 0

Example: Explict solution: since a is 2000, let h=0.0001

Stability limit is h= Try h=0.0007

Try h=0.001

h=0.002

Implicit approach:

h=0.002