Industrial Engineering Majors Authors: Autar Kaw, Charlie Barker

Slides:



Advertisements
Similar presentations
6/1/ Runge 4 th Order Method Industrial Engineering Majors Authors: Autar Kaw, Charlie Barker
Advertisements

5/1/ Finite Difference Method Civil Engineering Majors Authors: Autar Kaw, Charlie Barker
Newton’s Divided Difference Polynomial Method of Interpolation
Mechanical Engineering Majors Authors: Autar Kaw, Charlie Barker
5/19/ Runge 4 th Order Method Mechanical Engineering Majors Authors: Autar Kaw, Charlie Barker
7/2/ Backward Divided Difference Major: All Engineering Majors Authors: Autar Kaw, Sri Harsha Garapati
8/8/ Euler Method Major: All Engineering Majors Authors: Autar Kaw, Charlie Barker
8/15/ Binary Representation Major: All Engineering Majors Authors: Autar Kaw, Matthew Emmons
9/14/ Trapezoidal Rule of Integration Major: All Engineering Majors Authors: Autar Kaw, Charlie Barker
1 Spline Interpolation Method Computer Engineering Majors Authors: Autar Kaw, Jai Paul
9/22/ Runge 2 nd Order Method Major: All Engineering Majors Authors: Autar Kaw, Charlie Barker
10/8/ Propagation of Errors Major: All Engineering Majors Authors: Autar Kaw, Matthew Emmons
1 Lagrangian Interpolation Major: All Engineering Majors Authors: Autar Kaw, Jai Paul
1 Newton’s Divided Difference Polynomial Method of Interpolation Chemical Engineering Majors Authors: Autar Kaw, Jai.
10/20/ Runge 2 nd Order Method Chemical Engineering Majors Authors: Autar Kaw, Charlie Barker
1 Newton’s Divided Difference Polynomial Method of Interpolation Major: All Engineering Majors Authors: Autar Kaw,
5/30/ Runge 4 th Order Method Chemical Engineering Majors Authors: Autar Kaw, Charlie Barker
11/16/ Euler Method Electrical Engineering Majors Authors: Autar Kaw, Charlie Barker
11/17/ Shooting Method Major: All Engineering Majors Authors: Autar Kaw, Charlie Barker
12/1/ Trapezoidal Rule of Integration Civil Engineering Majors Authors: Autar Kaw, Charlie Barker
1 Lagrangian Interpolation Computer Engineering Majors Authors: Autar Kaw, Jai Paul
1 Direct Method of Interpolation Major: All Engineering Majors Authors: Autar Kaw, Jai Paul
1/16/ Runge 4 th Order Method Civil Engineering Majors Authors: Autar Kaw, Charlie Barker
1/19/ Runge 4 th Order Method Major: All Engineering Majors Authors: Autar Kaw, Charlie Barker
1 Direct Method of Interpolation Computer Engineering Majors Authors: Autar Kaw, Jai Paul
2/28/ Runge 4 th Order Method Computer Engineering Majors Authors: Autar Kaw, Charlie Barker
1 Spline Interpolation Method Major: All Engineering Majors Authors: Autar Kaw, Jai Paul
1 Spline Interpolation Method Mechanical Engineering Majors Authors: Autar Kaw, Jai Paul
Trapezoidal Rule of Integration
Civil Engineering Majors Authors: Autar Kaw, Charlie Barker
Gauss Quadrature Rule of Integration
Computer Engineering Majors Authors: Autar Kaw, Charlie Barker
Differentiation-Discrete Functions
Newton’s Divided Difference Polynomial Method of Interpolation
Spline Interpolation Method
Civil Engineering Majors Authors: Autar Kaw, Charlie Barker
Spline Interpolation Method
Mechanical Engineering Majors Authors: Autar Kaw, Charlie Barker
Chemical Engineering Majors Authors: Autar Kaw, Charlie Barker
Spline Interpolation Method
Spline Interpolation Method
Direct Method of Interpolation
Spline Interpolation Method
Lagrangian Interpolation
Civil Engineering Majors Authors: Autar Kaw, Charlie Barker
Newton’s Divided Difference Polynomial Method of Interpolation
Trapezoidal Rule of Integration
Trapezoidal Rule of Integration
Spline Interpolation Method
Lagrangian Interpolation
Lagrangian Interpolation
Gauss Quadrature Rule of Integration
Binary Representation
Major: All Engineering Majors Authors: Autar Kaw, Luke Snyder
Direct Method of Interpolation
Simpson’s 1/3rd Rule of Integration
Binary Representation
Industrial Engineering Majors Authors: Autar Kaw, Luke Snyder
Newton’s Divided Difference Polynomial Method of Interpolation
Binary Representation
Lagrangian Interpolation
Lagrangian Interpolation
Simpson’s 1/3rd Rule of Integration
Simpson’s 1/3rd Rule of Integration
Simpson’s 1/3rd Rule of Integration
Electrical Engineering Majors Authors: Autar Kaw, Charlie Barker
Spline Interpolation Method
Chemical Engineering Majors Authors: Autar Kaw, Charlie Barker
Newton’s Divided Difference Polynomial Method of Interpolation
Lagrangian Interpolation
Presentation transcript:

Runge 2nd Order Method http://numericalmethods.eng.usf.edu Industrial Engineering Majors Authors: Autar Kaw, Charlie Barker http://numericalmethods.eng.usf.edu Transforming Numerical Methods Education for STEM Undergraduates 1/16/2019 http://numericalmethods.eng.usf.edu

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

Runge-Kutta 2nd Order Method For Runge Kutta 2nd order method is given by where http://numericalmethods.eng.usf.edu

Heun’s Method Heun’s method resulting in where x y xi xi+1 yi+1, predicted yi Here a2=1/2 is chosen resulting in where Figure 1 Runge-Kutta 2nd order method (Heun’s method) http://numericalmethods.eng.usf.edu

Midpoint Method Here resulting in where is chosen, giving resulting in where http://numericalmethods.eng.usf.edu

Ralston’s Method Here is chosen, giving resulting in where http://numericalmethods.eng.usf.edu

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

Example The open loop response, that is, the speed of the motor to a voltage input of 20 V, assuming a system without damping is If the initial speed is zero; use the Runge-Kutta 2nd order method and a step size of to find the speed at http://numericalmethods.eng.usf.edu

Solution Step 1: http://numericalmethods.eng.usf.edu

Solution Cont Step 2: http://numericalmethods.eng.usf.edu

Solution Cont The exact solution of the ordinary differential equation is given by The solution to this nonlinear equation at t=3 minutes is http://numericalmethods.eng.usf.edu

Comparison with exact results Figure 2. Heun’s method results for different step sizes http://numericalmethods.eng.usf.edu

Effect of step size Table 1 Effect of step size for Heun’s method 0.8 0.4 0.2 0.1 0.05 −160.00 243.20 295.61 301.70 302.79 463.09 59.894 7.4823 1.3929 0.30613 152.79 19.761 2.4687 0.45954 0.10100 (exact) http://numericalmethods.eng.usf.edu

Effects of step size on Heun’s Method Figure 3. Effect of step size in Heun’s method http://numericalmethods.eng.usf.edu

Comparison of Euler and Runge-Kutta 2nd Order Methods Table 2. Comparison of Euler and the Runge-Kutta methods Step size, h Euler Heun Midpoint Ralston 0.8 0.4 0.2 0.1 0.05 800 320 324.8 314.11 308.58 −160.00 243.20 295.61 301.70 302.79 (exact) http://numericalmethods.eng.usf.edu

Comparison of Euler and Runge-Kutta 2nd Order Methods Table 2 Comparison of Euler and the Runge-Kutta methods Step size, h Euler Heun Midpoint Ralston 0.8 0.4 0.2 0.1 0.05 163.94 5.5792 7.1629 3.6359 1.8113 152.79 19.760 2.4679 0.45861 0.098981 (exact) http://numericalmethods.eng.usf.edu

Comparison of Euler and Runge-Kutta 2nd Order Methods Figure 4. Comparison of Euler and Runge Kutta 2nd order methods with exact results. http://numericalmethods.eng.usf.edu

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_kutta_2nd_method.html

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