Mechanical 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
1 Direct Method of Interpolation Electrical Engineering Majors Authors: Autar Kaw, Jai Paul
Differentiation-Discrete Functions
5/19/ Runge 4 th Order Method Mechanical Engineering Majors Authors: Autar Kaw, Charlie Barker
5/20/ Multidimensional Gradient Methods in Optimization Major: All Engineering Majors Authors: Autar Kaw, Ali.
7/2/ Differentiation-Discrete Functions Industrial Engineering Majors Authors: Autar Kaw, Sri Harsha Garapati.
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/ Differentiation-Discrete Functions Major: All Engineering Majors Authors: Autar Kaw, Sri Harsha Garapati.
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/19/2015http://numericalmethods.eng.usf.edu1 Introduction to Scientific Computing Major: All Engineering Majors Authors: Autar Kaw, Luke Snyder
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
11/30/ Romberg Rule of Integration Mechanical 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
Newton-Raphson Method Computer Engineering Majors Authors: Autar Kaw, Jai Paul Transforming Numerical Methods Education.
1 Direct Method of Interpolation Mechanical 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 Newton’s Divided Difference Polynomial Method of Interpolation Mechanical Engineering Majors Authors: Autar Kaw,
1 Spline Interpolation Method Mechanical Engineering Majors Authors: Autar Kaw, Jai Paul
Civil Engineering Majors Authors: Autar Kaw, Charlie Barker
Gauss Quadrature Rule of Integration
Computer Engineering Majors Authors: Autar Kaw, Charlie Barker
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
Binary Representation
Industrial Engineering Majors Authors: Autar Kaw, Charlie Barker
Direct Method of Interpolation
Binary Representation
Newton’s Divided Difference Polynomial Method of Interpolation
Binary Representation
Lagrangian Interpolation
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 Mechanical Engineering Majors Authors: Autar Kaw, Charlie Barker http://numericalmethods.eng.usf.edu Transforming Numerical Methods Education for STEM Undergraduates 4/16/2017 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 A solid steel shaft at room temperature of 27°C is needed to be contracted so it can be shrunk-fit into a hollow hub. It is placed in a refrigerated chamber that is maintained at −33°C. The rate of change of temperature of the solid shaft q is given by Find the temperature of the steel shaft after 24 hours. Take a step size of h = 43200 seconds. http://numericalmethods.eng.usf.edu

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

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

Solution Cont The solution to this nonlinear equation at t=86400s 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 86400 43200 21600 10800 5400 −58466 −2.7298×1021 −24.537 −25.785 −26.027 58440 2.7298×1021 −1.5619 −0.31368 −0.072214 223920 1.0460×1011 5.9845 1.2019 0.27670 (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 86400 43200 21600 10800 5400 −153.52 −464.32 −29.541 −27.795 −26.958 −58466 −2.7298×1021 −24.537 −25.785 −26.027 −774.64 −0.33691 −24.069 −25.808 −26.039 −12163 −19.776 −24.268 −25.777 −26.032 (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 86400 43200 21600 10800 5400 448.34 737.97 14.426 7.0957 3.5755 122160 5.7292 1.1993 0.27435 1027.6 76.360 7.0508 1.0707 0.22604 23844 42.571 6.6305 1.2135 0.25776 (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