The Finite Element Method For Flow and Heat Transfer Analysis
The Finite Element Method For Flow and Heat Transfer Analysis
ABSTRACT
The finite element method (FEM) is discussed
and a specific formulation for flow problems is
outlined that can encompass non-Newtonian inelastic and viscoehtic fluids. A temperature for-
INTRODUCTION
he finite element method (FEM) is a numerical analysis technique for obtaining approximate solutions to a wide variety of engineering problems (Huebner & Thornton, 1982). Like
the better known finite difference method (FDM),
the FEM is used to solve the appropriate differential equations that describe these problems. The
term finite element analysis is sometimes used
incorrectly to describe macroscopic mass and
energy balances performed for a specified number
107
+ 7.,j
(44
T, =
+uYj
(4b)
q = q,i + q,j
(44
with
= -p&.
(I..
11
+ 7..
(5)
11
where
(I,,, a,,,
bx,b,
-
7,,, 7yy,7xy=
stress components
TMT,
T
qx,qy
= temperature
= applied heat
VXYYY
i ,j
6ij
In the finite difference method (FDM) we proceed by writing the above equations as difference
equations for an array of grid points. Therefore in
the FDM we have a pointwise approximation
to the governing equation. In the FEM we divide
the domain A in subdomains (finite elements) (see
VOL. 4, NO. 2
VELOCITY-PRESSURE FORMULATION
FIGURE 2
Twc-dimensional domain
divided into triangular ele-
sy
I
(01
= [DIG1 + (rol
(10)
where <> denotes a row vector, [I denotes a column vector and N, are the interpolation (shape)
functions. These are related to the natural
(area) coordinates Li for a triangle by the expressions
N, = Ll(2L, - l), N4= 4LlL2
N2 = L2(2L2- l),
N,
= 4L2L3
N3 = L3(2L3 - I),
N6 = 4L3Ll
NP = Li .
(13a)
( 13b)
(14)
It follows that
thus
L1+L,+L3=1.
(15)
Therefore, only two of the area coordinates L,, L,
and L, are independent.
The relation between area coordinates Li and
global coordinates x and y at any point P is given
Inverting
(17)
The above choice of interpolation for u and v dictates a linear interpolation for the derivatives of
velocities. The rate-of-strain vector {i) is then
approximated by
I
FIGURE 3
A six-node triangular element for u-v-p
formulation.
[KlnlXI, = [F),
or
where
TEMPERATURE FORMULATION
In the above, [K] is a symmetric stiffness matrix,
(XIis the vector of nodal unknowns and (FI a load
vector containing body forces, surface tractions,
forces due to extra stresses {701 and the boundary
conditions. The matrix integrations that appear in
Eqs. (20) are performed numerically. Equation
(19) is derived for the nfhelement. By assembling
the contributions from all the N elements and by
imposing the appropriate compatibility of the
nodal unknowns we derive the global stiffness
matrix and global load vector. The final set of
equations can be solved by a standard matrix solver (e.g., Choleski decomposition). For non-Newtonian problems, the nonlinear set of equations
must be solved by using some iterative technique
(e.g., Newton-Raphson). For a generalized Newtonian fluid, a direct substitution method is
recommended (Picard method) rather than the
Newton-Raphson method. The latter is superior
for fluids with a constant [D] matrix and a nonzero (701In Appendix A the reader may find an illustrative example of the application of the finite element method for the simple case of Poiseuille flow
between two flat plates. The differential equation
is cast in an integral form and the derivation of the
stiffness matrix and load vector is demonstrated
for a simple linear element.
ADVANCES IN POLYMER TECHNOLOGY
"1'
-7
+ pC,(GT)vi-
ax,
dA
(21)
where T is the temperature, 6T is the virtual temperature, k is the thermal conductivity, p is the
density, C, is the heat capacity, vi is the velocity
vector, Q is the rate of heat dissipated (Q = T:VT),
and q is the heat input per unit area on boundary
rq.Note that 6T = 0 on the part of the boundary
where T is specified.
The flow field can be discretized into three-node
triangular elements using linear interpolation
functions for temperature
T = NTT, + NTT,
+ NTT, = <NT>(T)
(22)
angle can be subdivided into four temperature triangles (see Fig. 4).
The finite element equation for energy is obtained by substituting Eq. (22) into Eq. (21)
yielding for the nthelement (Huebner & Thornton,
1982)
([H,] + [C,IJ(T) + IQ,) = (0)
(23)
Qi= -SNiQdA
A
NiqdI.
(24a)
(2W
(25)
where [KT]is the global heat stiffness matrix (nonsymmetric), IFT)is the global heat load vector containing boundary conditions and viscous dissipation, and (TI is the vector of the unknown nodal
temperatures. The linear system of equations can
112
where V is a characteristic velocity and H is a characteristic length. The Peclet number represents the
ratio of heat transferred by convection to the heat
transferred by conduction. For polymer melt processing the Peclet number will be high (in the order
of 102-105).
Oscillations are exhibited at moderate to high
Pe and are due to different mathematical characteristics of the first and second order operators
(i.e., viaT/axi and VT) involved in the energy
equation.
To suppress the undesirable oscillations, either
the grid density must be increased wherever rapid
temperature changes are expected or upwind finite
elements should be used (Mitsoulis, 1984; Stolle,
1982; Christie, Griffiths, Mitchell, & Zienkiewicz,
1976; Heinrich, Huyakorn, Zienkiewicz, &
Mitchell, 1977; Hughes, 1979). The method of
upwinding has also been used in finite differences (Roache, 1976). In the FEM method, upwinding consists of numerically integrating Eq.
(24b) at specially selected upwinding integration
points A, B, C instead of the usual GaussQuadrature integration points, a, b, c as illustrated in Figure 5 . The optimum distance of points
A, 3, C depends on the local Peclet number. The
method can be seen as a weight factor approach
VOL. 4. NO. 2
FIGURE 5
Upwinding
scheme for triangular elements.
= -w .
(29)
The above equation is valid for any two-dimensional flow of any fluid. Its usefulness lies in the
fact that enables us to visualize the flow field by
constructing streamlines from the stream function
*.
(30)
h(x) = h,
+ 0 LVvxd x
(33)
45O-tapered
entry flow of a
power-law fluid
through a slit
die.
.on0
I
8.000
7.000
6.000
5.000
4.000
3.000
2.000
---
-D
Weissenberg number Ws = A-
-w
A d - -
V
H
S, = W
(36)
27,
=
c
-=
*
-
----- --
-__)
_.)-
#
*
(35)
-__)
(34)
Stress ratio
VISCOELASTIC FLUIDS
De = -
PS : xXy=5000
FIGURE 7
Streamline pattern for entry
-.8
-.I
planar sudden
fiowina10:l
contraction of
a polystyrene
melt.
.8
-6
.4
.2
.O
-.Z
-.I
-a6
-.8
-1.0
-2.0
-1.6
-1.2
.O
.4
.8
1.2
1.6
2 .o
X-COORDINRTE* 1 CM I
ADVANCES IN POLYMER TECHNOLOGY
115
FINITE ELEMENT METHOD FOR FLOW AND HEAT TRANSFER ANAL YSIS
FIGURE 8
Final finite element grid for
the exit flow
from a slit die
and the determination of extrudate swell
for a polystyrene melt.
3 .O
2 .O
1.0
I
0.0
-1.0
-2 .O
-3 .O
-2.0
-1.0
0.0
1.0
2.0
3.0
4.0
5.0
I
6.0
7.0
8.0
OISTFlNCE I X/H
FIGURE 9
Velocity vectors for a polystyrene melt
exiting from a
slit die.
3 00
PS
De=2.7
2 .O
'162.7
3 .O
4 -0
1.0
: 0.0
-1.0
SLIT
-2 a 0
-3 m O
116
-3 .O
-2 .O
-1.0
DIE
0 00
1.0
DISTFINCEP X/H
2 00
5 .O
VOL. 4, NO.2
3 .O
2 .o
0.0
1.0
2.0
FIGURE 10
Streamline pattern for a polystyrene melt
exiting from a
slit die.
PS
De=2.7
1.0
-2
.o
+
lJ0
:
I
-3.0
-2.0
-1.0
3.0
4.0
5.0
DISTFlNCE I X/ H
6.0
7.0
8.0
FIGURE 11
Streamline pattern in the melt
bank for PVC
calendering
(from Mitsoulis, Vlachopoulos, Mirza,
Calendering
Analysis).
1.0
.I
.C
.4
.z
.O
-.2
8u
-.4
ROLL 3
-.c
R i g i d PVC
-.I
-1.0
-1.2
FIGURE 12
Isotherms in
the melt bank
for PVC calendering (from
Mitsoulis,
Vlachopoulos,
Mirza, Calendering Analysis).
1.0
.I
.c
I
.g
c
P
..
.z
.o
-.I
.I
-.c
-.I
-1.0
-1.2
-5.7
-5.5-5.3-5.1-~.Y-~.7-~.5-~.1-~.1-1.Y-1.7-~.5-1.1-1.1-2.-2.7-2.1-2.1-2.1-1.Y-1.7-1.5-1.~-1.1
X-COOROIWTEI
-.
-.7
-.5
-.I
-.I
.I
.I
.5
CM
117
CONCLUDING REMARKS
While there are still many problems to be
ironed out, the finite element method is a very
powerful tool for solving flow and heat transfer
problems. It appears to be the only rational
method of solution for problems involving complicated geometrical boundaries and complex
interactions of flow and temperature fields. The
development of user-friendly computer packages
will make the method accessible to persons that
have a limited background in variational calculus
or matrix algebra. The wide use of such a
powerful tool will enhance our understanding of
polymer flow, mixing and melting and may spearhead new dramatic developments in polymer processing.
TABLE I
Typical Requirements for Problems Solved by the FEM (MACVIP Program) Using a CDC 64OO/CYBER 170
Problem
Fluid
Inelastic
Power-Law
Isothermal
No
64
153
317
260
70
0.15
Inelastic
Power-Law
Isothermal
No
200
459
881
350
200
0.4
Viscoelastic
Isothermal
No
200
459
88 1
350
200
0.3.
Viscoelastic
Isothermal
Yes
184
423
858
360
225
0.5*
Inelastic
Power-Law
Non-isothermal
Slip at wall
Yes
118
28 1
588
345
120
2.5
Free
Surface
Number
of
Elements
Number
of
Nodes
Number
of
Unknowns
Computer
Memory
Required
(k)
Run
Time per
Iteration
(5)
Overall
Run
Time
(hr)
118
VOL. 4, NO. 2
APPENDIX A
-d_p dx
d2u
dyz
(A21
u(L) = u2
(A31
LL
0
.-
1
119
(AS)
Q = -p
2
4
~ j . ; -u;
3L
4
4
+ -u:
+ -L+;
+
3L
3
- -j-r1u2 + +,ul]
Differentiation yields
We find now a , b and c in terms of the nodal unknowns
(A74
(A7b)
UI
- j.1L)/L2 ( A ~ c )
where we have introduced an extra degree of freedom f l , the unknown velocity gradient. Equations
(AS) and (A6) are then written in terms of the
nodal unknowns as
+ = du/dy =
+ 21LZ(u2- uI - j.,L)y
(A8)
ar,
(A9)
Noting that in Eq. (A4) one of the terms is associated with viscosity while the other with the pressure gradient we may write
J=Q+W
++8L +
---,[2Lf1
a Q - 21
(A101
where
and
or in shorthandnotation
or
(Fi) = [KIIxi) -
W=pL
By differentiating we have
2
-pL
3
1
-p L
3
-Fi
Z
1E
1
-pL2
6
or
(A251
[:
-
=-plLi\
and finally
pLz
2p
=--=---
L2 dp
2p dx
i ,= o
(stiffness matrix)
(A27a)
(A27b)
(load vector)
or in shorthand notation
[KlIxiJ = (FJ.
(A24b)
u
I
L2 dp
2p dx
=---
(A29a)
f, = o
(A29b)
121