Docsity

Rayleigh-Ritz Method-Finite Element Method-Assignment Solution, Exercises of Mathematical Methods for Numerical Analysis and Optimization

Toggle sidebar
bg1
Finite Element Methods
Assignment No. 4
Problem No. 5.9
Problem No. 5.9:
Solve the differential equation
2
20
dx
dx
0 < x <1 (E1)
Subject to the boundary conditions
(0) =
(1) = 0 using the Rayleigh-Ritz method.
Solution:
The functional I corresponding to Eq. (El) is given by
122
0
1( / ) 2
2
I d dx x dx


(E2)
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.
docsity.com
pf3
pf4
pf5
pf8

Partial preview of the text

Download Rayleigh-Ritz Method-Finite Element Method-Assignment Solution and more Exercises Mathematical Methods for Numerical Analysis and Optimization in PDF only on Docsity!

Finite Element Methods

Assignment No. 4

Problem No. 5.

Problem No. 5.9:

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    ddx     x dx

 

(E

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

N N N

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

values of ( ) x at nodes i (x = x

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

T

x N dx

x

i

By substituting

j

i

x x

x x

N N N

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

K

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

K K

P

P

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

K K K

P

P

P

Step 4- We assemble the element characteristic matrices and vectors and obtain the

overall equations as

 

K   P ………………………………….………..(15)

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

 x 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.