




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





Solve the differential equation
2
2
d
x
dx
0 < x <1 (E 1
Subject to the boundary conditions
(0)
(1)
= 0 using the Rayleigh-Ritz method.
Solution:
The functional I corresponding to Eq. (El) is given by
1
2 2
0
I d dx x dx
2
Step 1: We discretize the domain (x = 0 to 1) using three nodes and two elements of equal length
as shown in Figure 1.1.
Figure1. Discretization for Problem 5.
Step 2 : We assume a linear interpolation model within an element, e as
e e e
x x i x i j x j
Where, from Eq. (3.26)
e
N x x l
i x j
e
N x xi l
j x
( )
( )
( )
e
e
i
e
j
is the vector of nodal degrees of freedom:
( ) e
is the length:
( ) e
i
and
( ) e
j
are the
i
) and j (x = x j
), respectively: and i and j are the first and the
second (global) nodes of the element e.
x
j T
dN dN T
N N dx
dx dx
x
i
And
( ) e
P =element characteristic vector and is given by
x
j
x N dx
x
i
By substituting
j
i
x x
x x
x i x j x e e
l l
into Eqs. (E-ll) and (E-l2). We obtain
( )
( ) ( ) ( )
( )
j
e
j
e e e i
e
i
x x
x
j e x x
l x x
l
K l l dx
e e
l
x x
l l x
i
e
l
e
l e
e
l
And
2 2
( )
2 2
j
j i j i
e
i j i j i
x x
x
j x x x x e
l
P x dx
x x x x x x
x
i
e
l
We shall compute the results for the cases of two and three elements.
For E= 2
Assuming the elements to be of equal length, we have
(1)
(2)
=0.5 x
i
= 0.0 and
x j
= 0.5 for e = 1; x
i
= 0.5 and x
j
= 1.0 for e = 2. Equations (E13) and (El4) yield
For E= 3
Assuming the elements to be of equal length, we have
(1)
(2)
(3)
= 1/3: x
i
And x j
= 1/3 for e= 1; x
i
= 1/3 and x
j
=2/3 fore= 2: x
i
=2/3and. x
j
= 1 for e=3.
Equations (E13) and (El4) give
Step 4- We assemble the element characteristic matrices and vectors and obtain the
overall equations as
Where
Step 5: We can solve these “stem equations (E15) after incorporating the boundary conditions.
For E - 2, the boundary conditions are
1
3
The incorporation of these boundary conditions in Eq. (E15) leads to (after deleting the rows and
columns corresponding to
1
and
3
in [K], and P.
Or
For E = 3, the boundary conditions are
1
4
After incorporating these boundary conditions, Eq. (El5) reduces to
the solution of which is given by
There is no necessity of Step 6 in this Problem.
And
The exact solution of this problem is
sin
sin
x
Which gives,
And
Thus, the accuracy of the two- and three-element discretizations can be seen by comparing
Eqs. (El6) and (E18), and Eqs. (E17) and (E19). respectively.