2.5.shooting Method
2.5.shooting Method
1
Numerical Methods and Computation II MATH375
Now consider a similar beam problem, where the beam is simply supported on the
two ends
υ
q
To find the deflection as a function of x due to the uniform load q , the ordinary
differential equation that needs to be solved is
d 2
2
qx
x L (3)
dx 2 EI
Two conditions are needed to solve the problem, and those are
0 0
L 0 (4a,b)
as it is a simply supported beam at x 0 and x L . These conditions are boundary
conditions as they are given at the two boundaries, x 0 and x L .
2
Shooting Method MATH375
b
a
at the maximum needed pressure. Since the radial displacement and tangential strain are
related simply by
u
t , (7)
r
then
u r a 0.00077462 5 0.0038731' '
u r b 0.00038462 8 0.0030770' ' (8)
Starting with the ordinary differential equation
d 2u 1 du u
0, u 5 0.0038731, u 8 0.0030770
dr 2 r dr r 2
Let
du
w (9)
dr
Then
dw 1 u
w 2 0 (10)
dr r r
giving us two first order differential equations as
w, u 5 0.0038731"
du
dr
2 , w5 not known
dw w u
(11a,b)
dr r r
Let us assume
w5
du
5 u8 u5 0.00026538
dr 85
Set up the initial value problem.
w f1 r , u, w, u5 0.0038731"
du
dr
2 f 2 r , u, w, w5 0.00026538
dw w u
(12a,b)
dr r r
Using Euler’s method,
ui 1 ui f1 ri , ui , wi h
3
Numerical Methods and Computation II MATH375
wi 1 wi f 2 ri , ui , wi h (13a,b)
Let us consider 4 segments between the two boundaries, r 5" and r 8" , then
85
h 0.75"
4
i 0, r0 5, u0 0.0038731", w0 0.00026538
u1 u 0 f1 r0 , u0 , w0 h
0.0038371 f1 5,0.0038371,0.00026538(0.75)
0.0038371 0.00026538(0.75)
0.0036741"
w1 w0 f 2 r0 , u0 , w0 h
0.00026538 f 2 (5,0.0038731,0.00026538)0.75
0.00026538 0.0038371
0.00026538 0.75
5 52
0.00010938
i 1, r1 r0 h 5 0.75 5.75",
u1 0.0036741", w1 0.00010940
u 2 u1 f1 r1 , u1 , w1 h
0.0036741 f1 5.75,0.0036741,0.000109380.75
0.0036741 0.00010938(0.75)
0.0035920 ″
w2 w1 f 2 r1 , u1 , w1 h
0.00010938 f 2 5.75,0.0036741,0.000109380.75
0.00010938 0.00013015(0.75)
0.000011769
4
Shooting Method MATH375
u3 0.0035832", w3 0.000053352
u4 u3 f1 r3 , u3 , w3 h
0.0035832 f1 7.25,0.0035832,0.000053352(0.75)
0.0035832 0.000053352(0.75)
0.0036232"
w4 w3 f 2 r3 , u3 , w3 h
0.000011785 f 2 7.25,0.0035832,0.000053352(0.75)
0.000053352 0.000060811(0.75)
0.000098961
At
r r4 r3 h 7.25 0.75 8"
we have
u4 u8 0.0036232"
Can we use the results obtained from the two previous iterations to get a better estimate of
the assumed initial condition of
du
5 ? One method is to use linear interpolation on the
dr
obtained data for the two assumed values of
du
5 .
dr
With
du
5 0.00026538,
dr
we obtained
u8 0.0036232" , and
with
du
5 0.00053076,
dr
we obtained
5
Numerical Methods and Computation II MATH375
u8 0.0029665"
6
Shooting Method MATH375
4.0E-03
du/dr = -0.00026538
3.8E-03
Radial Displacement, u (in)
3.6E-03
Exact
3.4E-03
du/d r= -0.00048611
3.2E-03
du/dr = -0.00053076
3.0E-03
5 6 7 8
Radial Location, r (in)
Table 1 shows the comparison of the results obtained using Euler’s, Runge-Kutta and exact
methods.