FINITE DIFFERENCE METHODINTERACTIVE E-BOOK |
Ordinary Differential Equations |
MAJORGENERAL |
On non Internet
Explorer browsers, the equations may not show up.
As an alternative or if you
prefer,
you can see the pdf version of the ebook instead
Title |
An interactive e-book for illustrating Finite Difference Method of solving ordinary differential equations |
|
Creator |
Autar K Kaw |
|
Subject and Keywords |
Finite Difference Method, Ordinary Differential Equations, Mathcad, Maple, Mathematica, Matlab, Simulations. |
|
Description |
interactive E-book for illustrating the Finite Difference Method for solving ordinary differential equations. It includes links to examples, simulations in Mathcad, Maple, Mathematica, and Matlab for the algorithm, and a PowerPoint presentation. |
|
Publisher |
Holistic Numerical Methods Institute, |
|
Contributors |
Autar Kaw |
|
Format |
Text/HTML |
|
Last Revised |
May 4, 2006 |
|
Identifier |
http://numericalmethods.eng.usf.edu/ebooks/finitediff_08ode_ebook.pdf |
|
Language |
English |
|
Rights |
|
What are ordinary differential equations? A Primer on Ordinary Differential Equations Finite Difference Method for Ordinary Differential Equations Example Simulation of the Finite Difference Method ([MAPLE] [MATHCAD] [MATHEMATICA] [MATLAB]) |
||||||||||||||||||||||||||||||||||||||||||||
|
Background This is an example of how an instructor of a Numerical Methods course can develop an E-book on a single topic by using resources that are only available at the Holistic Numerical Methods Institute (HNMI) Website. Although one of the primary advantages of a web-based resource is that one can use documents outside of its own domain, we are particularly using this example as a way to illustrate the holistic nature of the resources available at HNMI. You are welcome to modify and edit this e-book to suit your purpose. Using the textbook document written in MS Word 2000 as a foundation, it was made interactive within MS Word 2000 by putting bookmarks and hyperlinks to background information, PowerPoint presentations, Mathcad simulations, historical anecdotes, multiple choice tests, problem sets, etc. Then the MS Word 2000 file was saved as a webpage and that is what you are about to read here.
Finite Difference Method for Ordinary Differential Equations An example of a boundary value ordinary differential equation is
The value of condition is given at the boundaries, that is, at r= 5 and r=8. This method is used to solve boundary value ordinary differential equations. The derivatives in such ordinary differential equation are substituted by finite divided differences approximations, such as
Such substitutions convert the ordinary differential equation into a linear equation (but with more than one unknown). By writing the resulting linear equation at different points at which the ordinary differential equation is valid, we get simultaneous linear equations that can be solved by using techniques such as Gaussian Elimination, Gauss-Siedel method, etc. The method is best illustrated by a physical example. Take the case of a pressure vessel that is being tested in the laboratory to check its ability to withstand pressure. For a thick pressure vessel of inner radius a and outer radius b, the differential equation for the radial displacement u of a point along the thickness is given by
Assume that the inner radius a= 5″ and the outer radius b= 8″, and the material of the pressure vessel is ASTM36 steel. The ultimate strength of this type of steel is 36 ksi. Two strain gages that are bonded tangentially at the inner and the outer radius measure normal tangential strain as
at the maximum needed pressure. Since the radial displacement and tangential strain are related simply by
then
The two boundary conditions will allow us to solve the boundary value
ordinary differential equation to find radial displacement as a function of
radial location. How will this help us in determining if it will safely
withstand the pressure. The maximum normal stress in the pressure vessel is
at the inner radius
where
Having calculated the maximum stress we can calculate the factor of safety, FS as
At node
Substituting these approximation from equations (9) and (10) in equation (3)
Let us break
the thickness, We can write the above equation
for nodes
This gives a total of
Let us show the calculations for
At node At node
At node
At node
At node
At node
Writing Equation (13) to (19) in matrix form gives The above equations are a tridiagonal system of equations and special algorithms such as Thomas’ algorithm can be used to solve such a system of equations.
To find the maximum stress, it is given by equation (7) as
The maximum stress in the pressure vessel then is
So the factor of safety
The differential equation has an exact solution and is given by the form
where
giving
Thus
The true error,
The absolute relative true
error,
The approximation
is first order accurate, that
is , the true error is of The approximation
is second order accurate, that
is , the true error is
Mixing these two approximations will result in the order of accuracy of So it is better to approximate
because this equation is second order accurate. Repeating the problem with this approximation, At node i in the pressure vessel,
Substituting Equations (23) and (24) in Equation (3) gives
At node
At node
At node
At node
At node
At node
Writing Equation (26) to (31) in matrix form gives The above equations are a tridiagonal system of equations and special algorithms such as Thomas’ algorithm can be used to solve such equations.
Therefore, the factor of
safety
Table 1. Comparisons of radial displacements from two methods.
Simulation of the Finite Difference Method ([MAPLE] [MATHCAD] [MATHEMATICA] [MATLAB])
|