Presentation is loading. Please wait.

Presentation is loading. Please wait.

Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. ~ Ordinary Differential Equations ~ Stiffness and Multistep.

Similar presentations


Presentation on theme: "Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. ~ Ordinary Differential Equations ~ Stiffness and Multistep."— Presentation transcript:

1 Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. ~ Ordinary Differential Equations ~ Stiffness and Multistep Methods Chapter 26 Credit: Prof. Lale Yurttas, Chemical Eng., Texas A&M University

2 Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 2 Stiffness A stiff system is the one involving rapidly changing components together with slowly changing ones. Stiff ODEs have both fast and slow components Both individual and systems of ODEs can be stiff: If y(0)=0, the analytical solution is developed as:

3 Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 3 Insight into the step size required for stability of such a solution can be gained by examining the homogeneous part of the ODE: The solution starts at y(0)=y 0 and asymptotically approaches zero. If Euler’s method is used to solve the problem numerically: The stability of this formula depends on the step size h: solution

4 Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 4 Thus, for transient part of the equation, the step size must be < 2/1000 = 0.002 to maintain stability. While this criterion maintains stability, an even smaller step size would be required to obtain an accurate solution. Rather than using explicit approaches, implicit methods offer an alternative remedy. An implicit form of Euler’s method can be developed by evaluating the derivative at a future time. Backward or implicit Euler’s method: The approach is called unconditionally stable regardless of the step size 

5 Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 5 Figure 26.2 Solution by (a) Explicit (b) Implicit Euler

6 Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 6 Multistep Methods The Non-Self-Starting Heun Method Heun method uses Euler’s method as a predictor and trapezoidal rule as a corrector Predictor is the weak link in the method because it has the greatest error, O(h 2 ) One way to improve Heun’s method is to develop a predictor that has a local error of O(h 3 ).

7 Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 7 General Representation of Non-Self-Starting Heun Method Multistep Methods

8 Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 8 Multistep Methods Example 26.2 Integrate y’ = 4e 0.8x - 0.5y from x=0 to x=4 (Using h=1 and Initial conditions: x -1 = -1, y -1 = -0.393 and x 0 = 0, y 0 = 2) Solution : which represents a relative error of -5.73% (True value is 6.1946). We can apply the Multistep formula iteratively to improve this result: If we continue the iterations, it converges to y=6.36086 when e a =-2.68%. Then, for the second step: With the new method, we get better error rates and faster convergence (compared to the Heun method)


Download ppt "Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. ~ Ordinary Differential Equations ~ Stiffness and Multistep."

Similar presentations


Ads by Google