Presentation is loading. Please wait.

Presentation is loading. Please wait.

1/16/2016 1 Runge 4 th Order Method Civil Engineering Majors Authors: Autar Kaw, Charlie Barker

Similar presentations


Presentation on theme: "1/16/2016 1 Runge 4 th Order Method Civil Engineering Majors Authors: Autar Kaw, Charlie Barker"— Presentation transcript:

1 1/16/2016 http://numericalmethods.eng.usf.edu 1 Runge 4 th Order Method Civil Engineering Majors Authors: Autar Kaw, Charlie Barker http://numericalmethods.eng.usf.edu Transforming Numerical Methods Education for STEM Undergraduates

2 Runge-Kutta 4 th Order Method http://numericalmethods.eng.usf.edu http://numericalmethods.eng.usf.edu

3 3 Runge-Kutta 4 th Order Method where For Runge Kutta 4 th order method is given by

4 http://numericalmethods.eng.usf.edu4 How to write Ordinary Differential Equation Example is rewritten as In this case How does one write a first order differential equation in the form of

5 http://numericalmethods.eng.usf.edu5 Example A polluted lake with an initial concentration of a bacteria is 10 7 parts/m 3, while the acceptable level is only 5x10 6 parts/m 3. The concentration of the bacteria will reduce as fresh water enters the lake. The differential equation that governs the concentration C of the pollutant as a function of time (in weeks) is given by Find the concentration of the pollutant after 7 weeks. Take a step size of 3.5 weeks.

6 http://numericalmethods.eng.usf.edu6 Solution Step 1:

7 http://numericalmethods.eng.usf.edu7 Solution Cont is the approximate concentration of bacteria at

8 http://numericalmethods.eng.usf.edu8 Solution Cont Step 2:

9 http://numericalmethods.eng.usf.edu9 Solution Cont is the approximate concentration of bacteria at

10 http://numericalmethods.eng.usf.edu10 Solution Cont The exact solution of the ordinary differential equation is given by the solution of a non-linear equation as The solution to this nonlinear equation at t=7 weeks is

11 http://numericalmethods.eng.usf.edu11 Comparison with exact results Figure 1. Comparison of Runge-Kutta 4th order method with exact solution

12 Step size 7 3.5 1.75 0.875 0.4375 6.5715×10 6 6.5705×10 6 −1017.2 −53.301 −3.0512 −0.18252 −0.011161 0.015481 8.1121×10 −4 4.6438×10 −5 2.7779×10 −6 1.6986×10 −7 http://numericalmethods.eng.usf.edu12 Effect of step size (exact) Table 1 Value of concentration of bacteria at 3 minutes for different step sizes

13 http://numericalmethods.eng.usf.edu13 Effects of step size on Runge- Kutta 4 th Order Method Figure 2. Effect of step size in Runge-Kutta 4th order method

14 http://numericalmethods.eng.usf.edu14 Comparison of Euler and Runge- Kutta Methods Figure 3. Comparison of Runge-Kutta methods of 1st, 2nd, and 4th order.

15 Additional Resources For all resources on this topic such as digital audiovisual lectures, primers, textbook chapters, multiple-choice tests, worksheets in MATLAB, MATHEMATICA, MathCad and MAPLE, blogs, related physical problems, please visit http://numericalmethods.eng.usf.edu/topics/runge_kutt a_4th_method.html

16 THE END http://numericalmethods.eng.usf.edu


Download ppt "1/16/2016 1 Runge 4 th Order Method Civil Engineering Majors Authors: Autar Kaw, Charlie Barker"

Similar presentations


Ads by Google