Runge 2nd Order Method - PowerPoint PPT Presentation

About This Presentation
Title:

Runge 2nd Order Method

Description:

Title: Runge-Kutta 2nd Order Method for Solving Ordinary Differential Equations Subject: Runge-Kutta 2nd Order Method Author: Autar Kaw, Charlie Barker – PowerPoint PPT presentation

Number of Views:999
Avg rating:3.0/5.0
Slides: 20
Provided by: AutarKaw122
Category:
Tags: 2nd | method | order | runge | step

less

Transcript and Presenter's Notes

Title: Runge 2nd Order Method


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

2
Runge-Kutta 2nd Order Method
http//numericalmethods.eng.usf.edu
3
Runge-Kutta 2nd Order Method
For
Runge Kutta 2nd order method is given by
where
4
Heuns Method
Heuns method
Here a21/2 is chosen
resulting in
where
Figure 1 Runge-Kutta 2nd order method (Heuns
method)
5
Midpoint Method
Here
is chosen, giving
resulting in
where
6
Ralstons Method
Here
is chosen, giving
resulting in
where
7
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
8
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
9
Solution
Step 1
10
Solution Cont
Step 2
11
Solution Cont
The exact solution of the ordinary differential
equation is given by
The solution to this nonlinear equation at t3
minutes is
12
Comparison with exact results
Figure 2. Heuns method results for different
step sizes
13
Effect of step size
Table 1 Effect of step size for Heuns method
Step size,
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)
14
Effects of step size on Heuns Method
Figure 3. Effect of step size in Heuns method
15
Comparison of Euler and Runge-Kutta 2nd Order
Methods
Table 2. Comparison of Euler and the Runge-Kutta
methods
Step size, h
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 -160.00 243.20 295.61 301.70 302.79 -160.00 243.20 295.61 301.70 302.79
(exact)
16
Comparison of Euler and Runge-Kutta 2nd Order
Methods
Table 2 Comparison of Euler and the Runge-Kutta
methods
Step size, h
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 152.79 19.760 2.4679 0.45861 0.098981 152.79 19.760 2.4679 0.45861 0.098981
(exact)
17
Comparison of Euler and Runge-Kutta 2nd Order
Methods
Figure 4. Comparison of Euler and Runge Kutta
2nd order methods with exact results.
18
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_k
    utta_2nd_method.html

19
  • THE END
  • http//numericalmethods.eng.usf.edu
Write a Comment
User Comments (0)
About PowerShow.com