Docsity

Numerical Methods for PDEs: Solving 2nd Order ODEs with Ritz-Galerkin & Linear FEM - Prof., Assignments of Mathematics

Toggle sidebar
bg1
MATH 610-600 Numerical Methods for PDEs
Programming assignment #1
FEM for Two-Point Boundary Value Problems Using Linear Elements
Write a program for solving two-point boundary value problems for second order ordinary differ-
ential equations by Ritz-Galerkin method using linear finite elements. Submit a report with graphs
of the results, table with the error in discrete L2- and maximum-norms, and comments.
Specifications
(1) Use double precision. For solving the corresponding system of linear equations use the
program from LAPACK that you discussed on your lab. (or any other program you have).
(2) Use 25,50,100,200 linear finite elements. Plot the solution. Plot the error.
(3) In a table give the error in L2,H1, and maximum-norms.
Computational examples - solve the following problems:
(1) The deflection of a uniformly loaded, long rectangular plate under axial tension force and
fixed ends, for small deflections, is governed by the second order differential equation. Let
Srepresent the axial force and qthe intensity of the uniform load. The deflection Walong
the elemental length is given by:
(1) W00(x)−S
DW(x) = −qx
2D(l−x),0< x < l, W (0) = W(l) = 0,
where lis the length of the plate, and Dis the flexural rigidity of the plate. Take q=
200 lb/in2,S= 100 lb/in.,D= 8.8 107lb in, and l= 50 in. Consider also the cases S=
1000 lb/in and S= 10000 lb/in. The exact solution is given by: a=Sl2
D, b =ql4
2D, t =x/l
and
W(t) = b
a−t2+t−2
a+2
asinh(√a)[sinh(√at) + sinh(√a(1 −t))].
(2) Consider the problem (1) when the r.h.s. qx
2D(l−x) is replaced by the constant q
2D. The
exact solution for Q=ql2
2Dis:
W(t) = Q
a1−1
sinh√asinh(√at) + sinh(√a(1 −t)).
(3) Consider the problem (1) in the case when the right end of the plate is free, i.e. instead of
the boundary condition W(l) = 0 now we have the condition W0(l) = 0. The exact solution
in this case is:
W(t) = b
a−t2+t−2
a+1
acosh(√a)[√asinh(√at) + 2cosh(√a(1 −t))].
If the r.h.s. qx
2D(l−x) is replaced by the constant q
2Dthen the exact solution is (with
Q=ql2
2D):
W(t) = Q
a1 + sinh√a
cosh√asinh(√at)−cosh(√at).
(4) A thin rod made of three different materials with insulated lateral surface has ends kept at
temperature 0 and 4 degrees respectively. The steady state distribution of the temperature
u(x) is a solution to the problem: −(ku0)0= 0, x ∈(0,1), u(0) = 0, u(1) = 4,where
k(x) = 1 for x∈(0, .3); k(x) = 2,for x∈(0.3,0.7),and k(x) = 3 for x∈(0.7,1). The exact
solution u(x) is a piece-wise linear function defined as 20x/3,20x/6+1,and 20(x−1)/9 +4
in the corresponding intervals of definition of k(x).
There will be a penalty for delaying the programming assignment - 5 points per day (out of 100).
1

Partial preview of the text

Download Numerical Methods for PDEs: Solving 2nd Order ODEs with Ritz-Galerkin & Linear FEM - Prof. and more Assignments Mathematics in PDF only on Docsity!

MATH 610-600 Numerical Methods for PDEs Programming assignment # FEM for Two-Point Boundary Value Problems Using Linear Elements Write a program for solving two-point boundary value problems for second order ordinary differ- ential equations by Ritz-Galerkin method using linear finite elements. Submit a report with graphs of the results, table with the error in discrete L^2 - and maximum-norms, and comments.

Specifications

(1) Use double precision. For solving the corresponding system of linear equations use the program from LAPACK that you discussed on your lab. (or any other program you have). (2) Use 25 , 50 , 100 , 200 linear finite elements. Plot the solution. Plot the error. (3) In a table give the error in L^2 , H^1 , and maximum-norms.

Computational examples - solve the following problems:

(1) The deflection of a uniformly loaded, long rectangular plate under axial tension force and fixed ends, for small deflections, is governed by the second order differential equation. Let S represent the axial force and q the intensity of the uniform load. The deflection W along the elemental length is given by:

(1) W ′′(x) −

S

D

W (x) = −

qx 2 D

(l − x), 0 < x < l, W (0) = W (l) = 0,

where l is the length of the plate, and D is the flexural rigidity of the plate. Take q = 200 lb/in^2 , S = 100 lb/in., D = 8.8 10^7 lb in, and l = 50 in. Consider also the cases S = 1000 lb/in and S = 10000 lb/in. The exact solution is given by: a = Sl

2 D , b^ =^

ql^4 2 D , t^ =^ x/l and

W (t) =

b a

−t^2 + t −

a

asinh(

a)

[sinh(

at) + sinh(

a(1 − t))]

(2) Consider the problem (1) when the r.h.s. 2 qxD (l − x) is replaced by the constant 2 qD. The exact solution for Q = ql

2 2 D is:

W (t) =

Q

a

sinh

a

sinh(

at) + sinh(

a(1 − t))

(3) Consider the problem (1) in the case when the right end of the plate is free, i.e. instead of the boundary condition W (l) = 0 now we have the condition W ′(l) = 0. The exact solution in this case is:

W (t) =

b a

−t^2 + t −

a

acosh(

a)

[

asinh(

at) + 2cosh(

a(1 − t))]

If the r.h.s. 2 qxD (l − x) is replaced by the constant 2 qD then the exact solution is (with Q = ql

2 2 D ): W (t) =

Q

a

sinh

a cosh

a

sinh(

at) − cosh(

at)

(4) A thin rod made of three different materials with insulated lateral surface has ends kept at temperature 0 and 4 degrees respectively. The steady state distribution of the temperature u(x) is a solution to the problem: −(ku′)′^ = 0, x ∈ (0, 1), u(0) = 0, u(1) = 4, where k(x) = 1 for x ∈ (0, .3); k(x) = 2, for x ∈ (0. 3 , 0 .7), and k(x) = 3 for x ∈ (0. 7 , 1). The exact solution u(x) is a piece-wise linear function defined as 20x/ 3 , 20 x/6+1, and 20(x−1)/9+ in the corresponding intervals of definition of k(x). There will be a penalty for delaying the programming assignment - 5 points per day (out of 100).

1