Computer Program FEM1DF15 (Ch7)
Computer Program FEM1DF15 (Ch7)
An Introduction to
The Finite Element Method
Fall Semester 2015
J. N. Reddy
e-mail: [email protected]
Read: Chapter 7
Computer
Implementation of
1-D Problems and the use
of Program FEM1D
Read
geometry and material data
finite element mesh data
boundary (and initial) conditions
PROCESSOR
Generate finite element mesh
Calculate element matrices
Assemble element equations
Apply boundary conditions
Solve the equations
Check error tolerance and maximum
number of allowable iterations
JN Reddy
POSTPROCESSOR
Compute the solution
and its derivatives at
desired points of the
domain
Print/plot the results
Computer Implementation: 12
ECHODATA
and
MESH1D
ASSEMBLE
PROCESSOR
BOUNDARY
EQNSOLVR
or
EIGNSLVR
POSTPROCESSOR
JN Reddy
COEFFCNT
or
TRANSFRM
SHAPE1D
POSTPROC
or
REACTION
Computer Implementation:
13
Print
solution
STOP
Computer Implementation:
14
NPE
- nodes per element, n
ELX(i ) - Global coordinate of the ith node of element e, xie
ELK(i, j) - Element coefficient, K ije
ELF(i ) - Element coefficient, fie
AX 0, AX 1 Coefficients in the definition of a( x ) : a( x ) = AX 0 + AX 1 * x
SFL(i ) Element shape (or approximation) funtion, yie
DSFL(i ) Derivative of the ith shape function with respect to
dyi
the local (normalized) coordinate x :
dx
GDSFL(i ) Derivative of the ith shape function with respect
dyi dyi dx
1 dyi
to the global coordinate x :
J
=
dx dx dx
dx
15
e
j
e
j
j =1
xb
dyi dy j
1 dyi 1 dy j
x yi ( x )y j ( x ) + dx dx dx = 1 yi (x )y j (x ) + J e dx J e dx J e dx
a
NGP
Fij ( xI )wI =
I =1
NGP
ij
1 dyi 1 dy j
Fij ( x ) = yi ( x )y j ( x ) +
Je ,
J e dx J e dx
(U K +1 , U K +2 , U K +3 )
I
K = ( I - 1) * NDF
NDF = 3
6
18
19
* Data Card 6:
* Data Card 7:
BX0, BX1
* Data Card 8:
CX0, CX1
NNM
21
24
bP
= 400
Ak
L = 0.05, c = 400,
= 100, k = 50
(all with proper units)
Insulated
c = m2 =
0 = 300
(a)
L
x
Convection heat transfer
through surface
x = x0 = 0.0
(b)
DX(2)
DX(3)
U1 = (0) = 300
DX(4)
DX( 1 ) = x 0 = 0 .0
DX(I) = h = 0 .0125
I = 2 , 3, 4 , 5
DX(5)
Q24 =
d
=0
dx x=L
32
Material 2, k2
Material 3, k3
k1 = 70 W/(m C)
k2 = 40 W/(m C),
T= 50C
T0= 200C
k3 = 20 W/(m C)
h1 = 2 cm
h3
h2
T = 50 C
= 10 W/(m2 C)
Q2(3) + b (U 4 T ) = 0
34
0.0 0.0
0.0
0.0
0.0 0.0
Data for
Element 1
Data for
Element 2
35
0.0
0.0
0.0
0.0
0.0
0.0
1
1 1 200.0
0
1
4 1 10.0 50.0
0
VNBC(1) = b ,
UREF(1) = T
36
d = 2 in.
d = 2 in.
P
Al
P
8 in
Al
12 in
St
4 in
Q2(3) + kU 4 = 0
U1 = 0
Q2(1) + Q1(2) = 2P
Q2(2) + Q1(3) = 0
37
DX(I)
Element 1
Element 2
38
1
1 1 0.0
1
2 1 2.0E05
1
4 1 1.0E10 0.0
0
NSPV
ISPV(1,1),ISPV(1,2),VSPV(1)
NSSV
ISSV(1,1),ISSV(1,2),VSSV(1)
NNBC
INBC(1,1),INBC(1,2),VNBC(1),UREF(1)
NMPC
Element 3
39
U1 = 0
U2 = 0
k = 10-4 EI (N/m)
5m
x 5m
2.5 m
2
U3 = 0
Q4(1) + Q2(2) = 1,250
Q3(2) + kU 5 = 2,500
Q4(2) = 0
40
0.0
2.0E6
0.0
1.0E3
0.0
2.0E6
0.0
0.0
0.0
0.0
0.0
0.0
0.0 0.0
0.0
0.0
0.0
0.0
0.0 0.0
Data for
Element 1
Data for
Element 2
41
1 0.0
2 0.0
1 0.0
NSPV
ISPV(1,1), ISPV(1,2), VSPV(1)
ISPV(2,1), ISPV(2,2), VSPV(2)
ISPV(3,1), ISPV(3,2), VSPV(3)
2 1250.0
1 -2500.0
NSSV
ISSV(1,1), ISSV(1,2), VSSV(1)
ISSV(2,1), ISSV(2,2), VSSV(2)
1 2.0E02 0.0
42
SUMMARY
We have discussed the following topics in this presentation:
Review of FE Models of Chapters 3 6
Numerical integration in 1-D
Logical units of a FEA program
Flow chart of a typical processor unit
Element calculations
Computer program FEM1D
Input data to FEM1D
Example problems for FEM1D
Summary
Computer Implementation: 43