1 / 22

Scientific Computing

Scientific Computing. Multi-Step and Predictor-Corrector Methods. Overview. One-Step Methods – use only info from previous step Euler Runge-Kutta Multistep Methods- use info from several prior steps Adam Bashforth Adam Moulton Method Predictor-Corrector Method. Multi-Step Principle.

jera
Download Presentation

Scientific Computing

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Scientific Computing Multi-Step and Predictor-Corrector Methods

  2. Overview • One-Step Methods – use only info from previous step • Euler • Runge-Kutta • Multistep Methods- use info from several prior steps • Adam Bashforth • Adam Moulton Method • Predictor-Corrector Method

  3. Multi-Step Principle • To solve • We use an iteration scheme to find xi+1 in terms of previous values of xi, xi-1, xi-2, etc, and/or values of fi=f(ti, xi), fi-1, fi-2 , etc.

  4. Multi-Step Principle The method comes from integrating the derivative to get x(t).

  5. One-Step vs Multi-Step

  6. Multi-Step Example • Midpoint rule: • Another weighted average rule:

  7. Multi-Step General Form • The general form for a multi-step method is • The parameters ak and bk are determined by polynomial interpolation. • If bm =0, the method is called explicit, as this formula gives xi+1 explicitly in terms of previously found values. • If bm ≠0, the method is called implicit, as xi+1 appears on both sides of the equals sign.

  8. Multi-Step Explicit Adams Method • In this method we approximate the value of by interpolating f(t,x(t)) at the points (ti, xi), (ti-1, xi-1), …, (ti+1-m , xi+1-m). We then integrate this polynomial exactly to use in the formula for the next iterate:

  9. Example: 3-Step Adams-Bashforth Want a formula of the type: We use the three previous values of (ti, xi) for a Lagrange interpolating polynomial for f

  10. Example: 3-Step Adams-Bashforth Then, After a change of variables: u=(ti+1 - t)/h we get

  11. Example: 3-Step Adams-Bashforth Then, Now, Likewise,

  12. Example: 3-Step Adams-Bashforth So, we get, Thus,

  13. Example: 4-Step Adams-Bashforth

  14. Implicit Multi-Step Methods • Implicit multi-step methods use the value of xi+1 to find the value of xi+1. • Of course, this is impossible if we do not know xi+1, so in practice we use an explicit method to approximate (predict) xi +1 and then use an implicit method to improve (correct) the value of xi+1. • These methods again rely on polynomial interpolation approximation of f(t,x(t))

  15. Adams-Moulton Implicit Methods Three-Point: Four Point:

  16. Predictor-Corrector Methods • The Predictor-Corrector technique uses an explicit scheme (like the Adams-Bashforth Method) to estimate the initial guess for xi+1 and then uses an implicit technique (like the Adams-Moulton Method) to correct xi+1.

  17. Predictor-Corrector Example • Adams third order Predictor-Corrector scheme: • Use the Adams-Bashforth three point explicit scheme for the initial value. • Use the Adams-Moulton three-point implicit method to correct.

  18. Predictor-Corrector Example • Consider Exact Solution • Initial condition: x(0) = 1 • Step size: h = 0.1 • We will use the 3 Point Adams-Bashforth and 3 point Adams-Moulton. Both require 3 points to get started!

  19. Predictor-Corrector Example • From the 4th order Runge Kutta • 3-point Adams-Bashforth Predictor Value:

  20. Predictor-Corrector Example • To correct, we need f(t3 , x3*) • 3-point Adams-Moulton Corrector Value:

  21. Predictor-Corrector Example The values for the Predictor-Corrector Scheme

  22. Predictor-Corrector Example The predictor-corrector method produces a solution with nearly the same accuracy as the RK order 4 method. Generally, the n-step method will have truncation error of order at least n.

More Related