RIT Scholar Works
Theses
Thesis/Dissertation Collections
1977
Finite Element Analysis and Program for Stokes
Fluid Flow
Jeffrey Steele
Follow this and additional works at:
http://scholarworks.rit.edu/theses
This Thesis is brought to you for free and open access by the Thesis/Dissertation Collections at RIT Scholar Works. It has been accepted for inclusion
in Theses by an authorized administrator of RIT Scholar Works. For more information, please contact
Recommended Citation
FOR STOKES FLUID FLOW
Approved by:
by
Jeffrey M. Steele
A Thesis Submitted
in
Partial Fulfillment
of the
Requirements for the Degree of
MASTER OF SCIENCE
in
Mechanical Engineering
Prof.
Martin P. Sherman
---Illegible Signature
Prof.
Neville F. Rieger
---Prof.
Illegible Signature
--~(~D-e-p-a-r~t-m-e-n-t~H-e-a-d~)---DEPARTMENT OF MECHANICAL ENGINEERING
ROCHESTER INSTITUTE OF TECHNOLOGY
ROCHESTER, NEW YORK
Y
I
ACKNOWLEDGEMENTS
The
author wouldlike
to
expresshis
appreciationto
those
whohave
assistedhim
in
the
development
ofthe
Stokes flow
finite
element program.To
professorNeville P.
Rieger,
his
thesis
advisor,
for
his
guidance andinterest
during
this
project.To
Dr.
Lowell
Wilcox,
Ron Auble
andKen
Arnold
ofthe
Gleason
Works
for their
assistancein
the
elementderivation
andprogramming.
To
Paul
G. Warner
for
the
use ofhis
notes onhis
potential
flow finite
element program and automaticThe
theory
and computer programfor
finite
elementanalysis
ofStokes
(creeping)
fluid
flow is
presented.The
elementis
an eightnode,
two
dimensional
isoparametric
quadrillateral.
The
elementis formulated
directly
from
the
Stokes
equations ofmotion,
a special caseof
the
Navier-Stokes
equations whereinertia
terms
aredropped,
using
the
method of weighted residuals withGalerkin's
criterion applied.Velocities
in
two
directions
are solved
for
at all eight nodes while pressureis
solved
simultaneously
atthe
four
corner nodes only.Several
test
caseshave
been
run withthe
program.Very
goodaccuracy
was achievedin
modeling
velocity
profiles
for
Couette
andPoiseulle
.f
low
andfor
pressuredistribution
oftwo
lubrication models.In
these
four
cases error was
less
than
l\%.
Limitations
have
been
pointed outfor
the
types
offlow
whichmay
be
successfully
modeled.Flow
between
two
concentric cylindershad
an error of31%
between
the
finite
element and exact solutions.Cascades
of cylinders andturbine
blades
are modeledby
modeling
only
one cylinder orblade.
The
cascade ofturbine
blades
servesto
illustrate
the
potential usesof
this
technique.
PAGE
List
ofFigures
List
ofTables
Nomenclature
1.0
INTRODUCTION
2.0
LITERATURE
SURVEY
AND
PRIOR
WORK
2.1
Stream
andPotential
Function
2.2
Stream
Function
-Stokes
Flow
2.3
Direct
Formulation
-Stokes
Flow
*3.0
NAVIER
STOKES
EQUATIONS
4.0
DERIVATION
OF
THE
STOKES
FLOW
ELEMENT
4.1
Discretization
ofthe
Domain
4.2
Two
Derivation
Approaches
4.3
Interpolation
Functions
4.4
Stokes
Equations
in Finite
Element
Matrix
Form
5.0
ASSEMBLY
OF
ELEMENTS
6.0
SOLUTION
OF
NODAL
VARIABLES
7.0
MODELING
8.0
EXAMPLE
PROBLEMS
8.1
Couette
Flow
8.2
Poiseulle
Flow
8.3
Flow
BetweenConcentric
Cylinders
8.4
Plane
Slider
8.5
Stepped
Slider
8.6
Flow
Around
aCylinder
CONCLUSIONS
u$
10.0
RECOMENDATIONS
116
H-O
REFERENCES
117
12-
APPENDIX
A
-INPUT INSTRUCTIONS
119
J-3.0
APPENDIX B
-PROGRAM LISTING
122
Figure
Title
Page
2.1
Potential
andStream
Function
7
Element
2.2
Martin's
Flow Around
A
Cylinder
g
2.3
Cascade
ofJoukowski
Airfoils
12
2.4
Potential
Flow
Through
Cascade
13
ofJoukowski
Airfoils
3.1
Forces
onFluid
Particle
20
4.1
Finite
Element
Discretization
28
4.2
Shape
Function
Mapping
32
4.3
Shape-Interpolation-Weighting
33
Functions
4.4
Linear
Element
35
4.5
Quadratic
Element
36
5.1
Degrees
ofFreedom
I4.7
7.1
Modeling
Example
58
7.2
Nodal
Loadings
-Single
Element
62
7.3
Nodal
Loading
-Multiple
Elements
63
3,.1
8,
.28.
.38,
.48,
.58,
.6Couette
Flow
-Model
70
Couette
Flow
-Results
73
Poiseulle
Flow
-Model
(5
Poiseulle
Flow
-Finite
Element
76
Model
Poiseulle
Flow
-Results
79
Flow
Between
Concentric
Cylinders
8l
Model
8.7
Flow
Between
Concentric
Cylinders
-8I4.
Results
8.8
Plane
Slider
-Model
86
8.9
Plane
Slider
-Pressure
Results
89
8.10
Plane
Slider
-Velocity
Results
90
8.11
Stepped
Slider
-Model
92
8.12
Stepped
Slider
-Pressure
Results
9i|.
3.13
Flow Around
Cylinder
97
8.14
Flow
Around
Cylinder
-No
Circ.
-99
Potential
Flow
8.15
Flow
Around
Cylinder
-No.
Circ.
-100
Stokes
Flow
8.16
Flow Around
Cylinder
-Circ.
-ioi
Stokes
Flow
8.17
Flow Around
Cylinder
-Circ.
=2Tf
-102
Stokes
Flow
8.18
Flow
Around
Cylinder
-Pressure
103
Distribution
-Stokes
Flow
8.19
Cascade
ofCylinders
-Potential
loij.
Flow
Cascade
ofCylinders
-Stokes
Flow
105
Cascade
ofTurbine
Blades
-Stokes
107
Flow Model
Cascade
ofTurbine
Blades
-Potential
Flow
Model
108
Cascade
ofTurbine
Blades
-Stokes
no
Flow
Results
Cascade
ofTurbine
Blades
-Potential
Flow
Results
in
Cascade
ofTurbine
Blades
-Stokes
112
Flow Pressure
Distribution
Cascade
ofTurbine
Blades
Stokes
113
Flow
CompositeResults
Cascade
ofTurbine
Blades
Potential
iii)
Flow Composite
Results
8,
,208,
,218,
.228,
.238,
.248,
.258.
.268
.27Table
Title
viii
Page
2.1
Types
ofFluid
Flow
5
4.1
Linear
Shape
Functions
35
4.2
Quadratic
Shape
Functions
36
Re
Reynolds
Number
^
Potential Function
1
Stream
Function
u,
vComponents
offluid
velocity
acting
in the
x andj directions
V
Laplace
vector operator or vector gradient(Grad)
^X
Vector
Curl
^7
Vector
divergence
(div)
Element
stiffness
matrixGlobal
stiffness matrixK
Stiffness
coeficientM
Integration
over aregion,
R
V
Integration
around aboundary,
p
Rl
Loading
(right
hand
side) vectorf
Fluid
dynamic
viscosity
^
Fluid
density
DV
Material
derivative
Dt
Bx,By,
Bz
Components
ofbody
force
acting
in
x,y
and zdirections
P
Surface
force
Px, Py,
Pz
Components
of surfaceforce
acting
in
x,
y,
and z
directions.
Pt
Total
surfaceforce
acting
on afluid
particleP
Total
surfaceforce
per unit volume .f
acting
on afluid
particleSurface
force
stresstensor
p
Fluid
pressureb
Body
forces
per unit volumeacting
on afluid
particle-^
Normal
stressesacting
on afluid
particle\
Shear
stressesacting
on afluid
particleV/
Arbitrary
weighting function
at node xN.
Interpolation function
at nodei
directions
at nodei
n , n
Direction
cosinesacting
in
the
x -andy
directions
V
Velocity
vectorV
= ui*vj^
U
Free
streamvelocity
vectorX
General
position vectorX
=xi
+jj
P Pin
rRadial distance
(scalar)
r =(
x +y
)
The
finite
element methodis
a mathematicaltechnique
which represents an
equation,
or set ofequations,
over a particularregion as a
linear
combination of afinite
number of equationvariable values within
the
region.The
finite
element methodhas
traditionally
been
usedin
solid mechanicsfor
stress anddeflection
analysis.In
recent yearsthe
finite
element methodhas
been
expandedto
otherfield
problems.Several
approacheshave
been
taken
to
modelfluid
flow
by
the
finite
element method.The
objective ofthis
thesis
is
to
presentdetails
andresults of a
finite
element programto
modelStokes
(creeping)
fluid flow.
A
fluid finite
element modelhas
a number of practicalapplications.
Among
them
areairfoil,
lubrication
andturbo-machinery
analysis.The
immediate
needis
for
a modelfor
turbine
analysis;
the
ultimate model wouldbe
for
compressible,
viscous
flow
withRe=0-*C0-1
%-Warner
in
1973
developed
a potentialflow finite
elementprogram.
While
potentialflow
(Re=00)
may be
abetter
modelfor
turbine
analysisthan
Stokes
flow
(Re-^0)
the
potentialflow
approach
is
limited
with respectto
adding
viscosity,
compressibility
and variableinertia
(varying
density)
effects.The
potential
flow
program solvesfor
specific values offlow
potential,
<ba
, at a number of nodal points andtakes
numericalderivatives
to
obtainfluid
velocities.The
Stokes
flow
programdescribed
in
this
papersolves,
directly,
for
values offluid velocity
and pressure at
the
nodal points.The
direct
approachtakes
viscosity
into
account and makesit
easierto
addinertia
andcompressibility
effects.should
include
inertia
andcompressibility
effectsit
is
necessary,
as afirst
step,
to
develop
a programfor
incompres
sible,
viscousflow
withoutinertia,
Stokes
flow.
This
typ:c
of
flow
is
governedby
the
Stokes
equations,
a special caseof
the
Navier-Stokes
equations whereinertia terms
aredropped.
The
program withits
two
dimensional
Stokes
flow
elementdescribed in
this
paper areonly
anintermediate
step
in the
development
. of a completefluid flow
model.Several
example problems are presentedhere;
the
mostpractical of which arfe
two
lubrication
models.A
cascade ofturbine
blades
is
modeled withboth
the
Stokes
flow
and potential
flow
programs.Stokes
flow,
itself,
is
not a good modelfor
flow
through
a cascade ofturbine
blades.
Inertia
terms
should
be
addedto
the
modelto
better
modelflow
through
aturbine.
The
results ofthe
Stokes
flow
model,
however,
arepresented
to
illustrate
the
potentialfor
this
technique
andAlthough
the
finite
element methodhad
its
beginning
in
solidmechanics,
in
1965
Zienkiewicz
andCheung
discussed
the
finite
element method appliedto
generalfield
problems.To
date
there
are severaltechniques
for
describing
varioustypes
offluid
flow
as shownin
Table
1.
2.1
STREAM
andPOTENTIAL
FUNCTION
Martin^
in
1968,
deVries
andNorrie
in
1971
andWarner
in
1973
outlinedfinite
elementformulation
of stream and potential solutions ofincompressible,
irrotational
flow
(Re=00).
The
relationshipsbetween
potential and streamfunctions,
andfluid
velocities are givenby
the
Cauchy-Riemann
equations.In
cartesian coordinatesthese
are,
=d
=JL$0
(2.1
a)
*=-<&
=ii
(2.1 b)
tt
9$
Pao5
outlines
the
conditionsfor
incompressible,
ir
rotational
flow.
When
the
velocity,
in
two
dimensional
cartesian coordinatesis
givenby,
V
=^
+ T(2.2)
Then
irrotationality
^x
V
=0
(23)
incompressibility
\7
v
=0
(2.4)
If
velocitiesderived
from
potential and streamfunctions
meetthe
irrotational
andincompressible
criterionthen
the
CO _J UJ o o ao <c OL O CD z o h-u ex. h-oo Ul a: cs co z z o 77 D- h-Ld <t > ld O a es Ld co CD _l < <t a cc o < DD _l < CO z CO o Ld cc h-Q_ <: SL i o o o cc z cc Ld C_> < _J CL <C <r h-Ld CJ cc z I- ID CO Ll 0 rvj M O <*J o <-> LC
-=r OO
co 3>- z LSI .- ei
Ld Ld CC o Ld CCr-CC Ld Ld CO
-y < or Ld nr ^: z z i^ 2 Q O 2 > CC
zm-ZCD< J cc cc Ld Ld ^ Ld Ld -T >-< LJ o => 1
3 <t < 3 O Z rvi X <t i"-J X >-
1-CD _J < CO 2 co o Ld cc h-CL < 5: I o o u cc 2 cc c_> Q_ <C
^^
o CL DD O _J CO L-CO Ld o Ct Z a. O 2 .0. O#
Ld CJ I Ld z uq: cc<s> cn >" Ld CJ CC --co u_ CJ CD O8
Ld O O Q_ tx 0-O Ld CJ Ld lj rz. cc cc o:*: ^
o z O Z
I-Cf h- QT CD Ld CO'Ld
co
co % uu 7 o oc -Jl "1 Ld
5
o Z
Ll. CO _) LD
Z <
La-Ll. |
G
2'
Ul co
O Z 2L *
(-O LD 2 =3 H-Ld <t
h-z O <C O O Ld
-"
LdO Ld I
CJ Ld CJ Ld Q_ Ld o: z I CD
co a: co o:
>-_l
H-LD O 2
h-I
Ld CO Ll. CL LD Ll.
V*V
=0
(2.6)
Q
.4 1
Martin
,deVries
andNome
andWarner
all generatematrix equations
based
on either equations2.5
or2.6.
Similar
to
the
finite
element methodfor
solidmechanics,
sets ofmatrix equations are generated
for
each element and combinedinto
a global set of equations which are solvedfor
the
nodalvariables,
either0
. or(jj
. .Numerical
diferentiation
pro vide velocitiesfor
each element as shownin
Big.
2.1.
The
governing
equationfor
Martin's
streamfunction
formulation
is,
a\
+9
=0
(2-7)
3%X
^tf-Using
a variational principle afunctional
is
formed
from
egn2.7,
I
=U
rh/lvW^_\
dx
dy
(2.8)
-K
*fev($]
Minimizing
yields,
^SH&N^
dx
dy
(2.9)
The
governing
equations arefunctions
ofthe
nodalElement
"
i
th
"Element
In
matrixform
these
equationsbecome,
3
i
,
=
o
(2.10)
NW=o
(2.11)
Here,
K
I
is
anindividual
element "stiffness" matrix.Individual
element stiffness matricies are assembledinto
aglobal stiffness
matrix,
Ik
|
,based
onthe
arrangement
ofthe
global variablevector,
C
-a*>
.[KJi^]
=(2'12)
.
3
Martin
discusses
severaltest
casesin
his
paper;
among
them
are entranceflow into
a channel andflow
arounda cylinder
between
parallel walls(Fig.'
2.2).
Martin
specifiesboundary
conditionsin
two
ways,
(l)
specifying
nodal streamfunction
valves,
V4' ,directly
atthe
boundary
or(2)
indirectly
specifying
by
the
relationship,
u =
3_
orV=(
udy
(2.13)
This
indirect
technique
is
simplified whenthe velocity,
u,
is
constant andthe
lov/er
limit
ofintegration
is
y=0.Warner's
approachis
similarto
Martin's
but
usesthe
potential
function
ratherthe
streamfunction.
The
governing
a
Cylinder
Warner's
formulation
was similarto
that
ofMartin.
Warner's
functional
was^H^iy*)}
*
ay
-H*
1
*ds
(2.15
a)
Minimizing
yields,
VJ
The
maindifference
between
Martin's
streamfunction
andWarner's
potentialfunction formulation is
the
"outflow"term
in
the
potentialflow
functional.
This
term,
in
Warner's
formulation,
does
not affectthe
element "stiffness" matrixKJ
but
is
included
in
the
righthand
side,
"loading"vector,
[Re]
=\
<l(s)ds
(2'16)
The
generalform
ofthe
matrix stiffness equationsbecomes
,HM-W
(2.17)
Warner
ran severaltest
cases withhis
potentialflow
finite
element program and gotvery
good resultsin
comparison with exact potentialflow
solutions.Warner's
test
casesin
cludedflow
around a single cylinder andflow
through
acascade of cylinders.
Results
ofthe
flow
through
a cascade ofThe
cascade of cylinders was expandedinto
a cascade ofJoukowski
airfoils.
The
gridwork usedis
shownin
Fig.
2.3.
The
results are shownin
Fig.
2.4.
The Warner
potentialflow
program code providedthe
basis
for
the
Stokes
flow
finite
element programdescribed
in
this
paper although extensive modificationshave
been
made.2.2
STREAM
FUNCTION
-STOKES
FLOW
Zienkiewicz6,
Huebner-7,
andAtkinson
et al allhave
described
streamfunction
solutionsto
viscous,
incompressible,
Stokes
(creeping)
flow
whereinertia
is
neglected(Re-^O).
These
formulations
arebased,
indirectly,
onthe
Stokes
equationsand
the
continuity
(incompressibility)
e\qiation.Stokes
uf? xl
3*u\
_3Pu/Laiv +_aiv\ =^_p
(2.18a)
(2.18b)
Continuity
Ju
q
y
(2.19)
3*
+$y
=.8
A
functional
is
formed from
these
equations.Atkinson's
functional
is,
I
=Pig.
2.3
CASCADE
OF
JOUKOWSKI
AIRFOILS
Minimization
ofthis
functional
gives an equationfor
the
minimum rate ofenergy
dissipation
ofthe
fluid.
Zienkiewicz6points out
the
analogy
between
viscous streamfunction
fluid
formulation
and conventional solid mechanicsfinite
element methods.The
solid mechanics approachis
based
onminimizing
the
strainenergy
in
the
structure at equlibrium.The
fluid
approach
is
based
onminimizing
the
rate ofenergy dissipation
for
asteady
state velocity.2.3
DIRECT
FORMULATION
-STOKES
FLOW
^^^^ ! ^ ^ I II ^ || I .Direct
formulation
is
the
technique
described
in
this
paper.
V/ith
this
technique
valves ofvelocity,
u, v,
andpressure,
p,
are solvedfor
directly
atthe
nodal points.The
Stokes
andcontinuity
equations are putdirectly
into
finite
element matrixusing
the
method of weighted residuals withGalerkin's
criterion as opposedto
a variational approach.The
direct
approachhas
several advantages overthe
stream
function
approach:1.
Different
interpolation
functions
canbe
usedin
the
direct
finite
elementformulation
for
the
variousterms
ofthe
Stokes
andcontinuity
equations.The
secondderivatives
of
velocity
appearing
in
the
Stokes
equationsmay be
re presentedby
second orderinterpolation
while alinear
interpolation
function
canbe
usedfor
the
pressureterms
ofthe
Stokes
equations andvelocity
terms
ofthe
continuity
equation.
This
is
moreaccurate,
according
to
the
Taylor
2.
Pressure
is
directly
solvedfor.
Stream
function
formulation
solves
for only
velocities,
directly.
Pressure
distribution
must
be
indirectly
solvedfor from
the
Bernoulli
equation.3.
Because
the
Stokes
andcontinuity
equations aredirectly
formulated
into
finite
elementform,
extensions such asthe
addition of
compressibility
andinertia
terms
are easier.Along
withTaylor
and Hood9'10
this
technique
has
alsobeen
discussed
by
Yamada,
etal11,
Huebner7 andZienkiewicz6.
Some
ofthe
more common example problemsillustrated
by
these
authorshave
been
runusing
the
Stokes
flow
finite
elementprogram
described
in
this
paper.The
results ofthese
exampleproblems are shown
in
section3.Q
-ofthis
paper.MODEL
AUTHOR
FLOW
COUETTE
POISEULLE
LUBRICATION
AROUND
FLOW
FLOW
MODELS
CYLINDER
Taylor
&
Hood
X
Yamada
Huebner
X
X
X
X
Both
Taylor
andHood
andYamada
have
extendedthe
basic
Stokes
equationsto
the
full
Navier-Stokes
equationsby
including
inertia
effects.Inertia
effects cannotbe
included
directly
in
the
finite
element matrix equationsbecause
these
effects are non-linear.
An
iterative
technique
is
usedto
in
have
illustrated
the
addition ofinertia
effects with examples3.0
NAVIER
-STOKES
EQUATIONS
Fluid
modelsdiscussed
here
canbe
generally be
divided
into
four
catagories.MODEL
Irrotational
Incompressible
Re
=GO
Viscous
Incompressible
Inertia
Effects
Ignored
Re
=0
GOVERNING
EQUATION
Euler's
Momentum
Equation
?
Stokes
(creeping)
Flow
i0
=b
-vp +
f*V
V
(3.1)
(3.2)
Viscous
Incompressible
Inertia
Effects
Included
Re
=0
**<GD4
Viscous
Compressible
Inertia
Effects
IncludedNavier
-Stokes
DV
Dt
=
b
-vp
+/*?V
Navier
-Stokes
with
Compressibility
Effects.
(3.3)
S-^T
=b-vP
+i^frv)
+-VW
*.
(3.4)
Dt
Even
though
the
finite
element modeldescribed in
this
paperis
for
two-dimensional
Stokes
flow
aderivation
ofthe
full
Navier-Stokes
equationsin
three
dimensions
is
given withappropriate
deletions
made atthe
end.A
derivation
ofthe
Navier-Stokes
equationsbegins
withNewton's
secondlaw
ofmotion,
F
= ma(3.5)
For
afluid
particlethis
meansthat
the
netforces
acting
onit
must equalthe
product ofthe
mass ofthe
particleand
its
acceleration.Forces
acting
on afluid
particle canbe
broken
down
into
body forces,
B,
and surfaceforces,
P.
The
equation of motionfor
afluid
particle of massin
is
then,
^
-B'P
(3-6)
where
(3.7)
V
=u. +v1+,wk
DV
and
Hi
is
the
material(substantive)
acceleration.The
materialacceleration consists of
local,
unsteady
acceleration,
3
v
, andd
t
convective acceleration
(translation),
flY,
.dt
DV
i_V
+ _dV_(3.8)
1ST
T^T
dt.
local
convectivewhere
-gjf
The
forces
are,
Body
forces
B
=Bx,
+By.
+Bz.
(3.10)
Surface
forces
p
=px.
+Py4
+Pz,
(3.11)
i
*j
k
Surface
forces
acting
in
the
xdirection
on atypical
fluid
particle are shown
in
Fig.
3.1.
As
shownin Fig.
3.1
the
force
acting
onthe
righthand
yzface
is,
(Px
+^dx)dy
dz
(3.12)
The
force
acting
onthe
left
hand
yzface
is,
Px
d7
dz
(3.13)
Therefore
the
netforce
acting
onthe
yzfaces
is,
(Px
+^dx)
dy
dz
-Px
dy
dz
=|^
dx
dy
dz
(3.14)
By
a similar procedureit
canbe
shownthat
the
netforces
acting
onthe
otherfaces
are,
xz
face
---dy
dx
dz
(3.15)
XJ
face
|_P2.dz
dx
dy
(3.16)
The
total
force
per unit volume onthe
particleis
?
PX
._ , . .aj?Z
Air A-r A* ,3
P?
Av A^r Air - _
(3.17)
Y5T
<3xdy
dz
+ 1^-dy
dx
dz
-f-y-g*-dz
dx
dy
-^53;.
dx
dy
dz
Ass
+2z +U*= P'
(3*18)
ax
ay
^z
As
shownin Fig.
3.1
the
surfaceforces
acting
onthe
yzForces
Acting
on aFluid
Particle
Fig.
3.1
Volume
=dx
dy
dz
I
-a
y
normal and parallel
to
the
faces.
Px
=CT'xxi
+Tx7j
+Txzk
(3.19a)
Again,
for
the
xz andxy
faces
the
surfaceforces,
Py
an
Pz
canbe
broken
down
in
a similarmanner,
Py
=Tyx. +ffyy
+Tyz
x
J
k
Pz
=7
zx
+Tzy,
+(Tzzk
(3.19b)
(3.19c)
The
nine scalar componentsin
equation3.
19
canform
astre
tensor,
5xx
Txy
Txz""JI
-Tyx
(Tyy
Tyz
^zx
I
zy
Czz
Because
the
fluid "is
assumedto.
be
isotropic
the
stresstensor
is
symmetric and canbe
written asfollows.
(3.21)
"2
3kx
f
xy
&y
<Tyy
Tyz
txz
Yyz
^*zz
(3.22)
Because
1
(3.23)
and
from
eqn.3.18,
p
=J&J* +
%EL
+3
Pz
3
xy
d
z(3.18)
Then
the
surfaceforce
per untivolume,
P,
canbe
expressedV*1
(3.19)
For
afluid
particle of unit volumethe
equation ofmotion,
eqn3.6
Hit-
=B
+P
(3.6)
becomes
or
-$.
-b
-V
(3.20)
HIT
=**V1
(3.21)
In
the
case of aninviscid fluid
all shear stresses,
Txy
J
yz,
Ixz
, vanish andthe
three
normal stress must equal eachother.
The
negetiveis
defines
aspressure, p
, at a pointinside
the
fluid
particle,
Txy
=Tyz
=Txz
=0
(3.22)
-<Txx = -<Tyy =
-Tzz =
p
(3.23)
Therefore
V*Tt
=Vp
<3-24)
and
the
equation of motion reducesto Euler's
equation,
<-
"T5T
=b "VP(3-D
by
relating
stress
componentsto
velocity
gradients
by
Stoke 's
law
ofviscosity.
Stokes
law
ofviscosity
assumesthe
fluid
to
be
isotropic
and saysthat
viscous stresses arelinearly
proportional
to
rates-of-strain
in
afluid.
These
relationships as summarizedby
Pao^are,
(Txx
=-p +
2mu
.2div V
(3.25a)
3
*Cyy
--p +
2i4_av
-2div
v
(3.25b)
<Tzz
=-p +
2t-jw
-2
div V
(3.25c)
_
'Tz
3
Tyz
=T
zy
=yui/3v +J
w\(3.25d)
Tzx
=Txz
=*/pw + 3U\(3.25e)
Txy
=Tyx
=f/a
u +y\
(3.25f)
-Xd?
ax;
Before
substituting
these
relationshipsinto
the
equationof
motion,
eqn.3.21
is
expanded(3.26
b)
(3.26
e)Substituting
equations3.25
into
equations3.26
yields,
ft-*-H*frM5-*^*
(3*27a)
lirfc?
?**S
?Afafc
?-1*
W
-^K-fif
-1 Awvfl
?
h
[)-(%
*
*)]
+fx
Wi^ts)]
(3-27b)
^aV>*-^[K^-i^v)]
**fc
^
dr^3(3
27c)
In
vectorform;
for
constantviscosity
these
equationsbecome
\-X*
.b-vr+ipv(w)+
/-
VV
<328)
For
incompressible
flow
the
restriction,
from
Section
2.0,
is,
VV"
2.4
Applying
this
restriction reducesthe
equation ofmotion
to,
^"^
=.V> -vy
^p-v*^
(3-29)
Expand
equation3.29
yieldsthe
full
Navier-Stokes
equations
for
incompressible
flow
with constantvelocity
*(W|*
*vu.+*>2&
+&A
a(3
30a)
\
JX
^^
^fc
atJ
U.Joa;
q/u-jiy
-,
v^vf
4-uj3Ly
+
.2jfV(3.30b)
V
3*
*$
*l
Pt
)
q(u.2^
*v3w ...
co3u-.,
JuaN
-(3.30c)
Dropping
inertia
terms
resultsin
Stokes
equations.
In
vector
form,
.
2a
'
(3.31)
Dropping
body
forces
leaves,
V?SfVN
(3.32)
The
Stokes
equations,
in
two
dimensions
in
expandedform
are,
'
\3%--
^
T^y
T)C
(3.33a)
These
two
equations,
along
withthe
continuity
equation,
iv ju
(3. 34)
form
the
basis
for
the
finite
element matrix equationsderived
in
Jection
4-This
derivation
parallels that givenby
Pao
and
4.0
DERIVATION
OF
THE
STOKES
FLOW
FINITE
ELEMENT
The
derivation
ofthe
Stokes
flow
finite
elementfollows
basic
steps not unlikethose
followed
in
the
derivation
of a solidforce-displacement
element.The
four
steps are asfollows:
1
Discretization
ofthe
physicalcontinuum,
orthe
mathematically
continuousdomain,
into
a network ofdiscrete
finite
elements.These
elements are continuously
joined
along
their
commonboundaries
and related
to
each otherby
their
common nodal points.*
2
Selection
of atechnique
to
approximatethe
continuous,
governing,
differential
equations(Stokes
and continuity
equations)
with equations madeup
of alinear
combination of a
finite
number of numerical valvesof
the
variables ofthe
originaldifferential
equations(ui'
vi'
Pi)-3
Selection
ofthe
properinterpolation
functions
consistent with
the
variation ofthe
variables ofthe
differential
equations.4
Derivation
of element "stiffness" matriciesrelating
variables(u^,
vj_
,p^)
withfluid
properties andboundary
conditions.These
four
steps are outlinedin
the
remainder ofsection
4.0
Once
the
stiffness matricieshave
been
obtainedfor
each elementtwo
more steps arenecessary
to
obtainthe
solution of allthe
variables(uj_,
vj,
p^
)
in
the
domain,
5
Assembly
ofthe
individual
stiffness matriciesinto
a global stiffness matrixto
form
a global set of matrix equations.Section
5.0.
6
Solution
of allthe
nodal variables(u-_,
v^,
pi)
in
the
domain
from
the
global set of matrix equations4.1
DISCRETIZATION
OF
THE
DOMAIN
The
finite
element method provides severaltechniques
for
the
solution ofthe
Stokes
andcontinuity
equation,
(3.33a)
Stoke
3^^--J
3^
(3.33b)
within a
continuous,
finite
domain.
continuity( 3
.34)
The
finite
element methoddoes
not obtain an exact solutionto
these
equations.In
generalthe
method callsfor
the
domain
to
be
discretized
into
an equivalent setof
finite
elementsinterrelated
by
their
common nodal points.It
is
atthese
nodalpoints-that
numericalvalves of
velocity
and pressure are solvedfor.
Assume
that
0
(x,
y)
is
any
generalfunction,
L(x,y)
is
its
numerical approximation over some continuousdomain,
R,
NjXx.y)
areinterpolation
functions
and jzf. are numerical valves of$
(x,y)
at ndiscrete
nodal points withinthe
domain,
R.
The
function
0
(x,y)
is
then
approximated
by,
,?<.Vt^
%>
^aC%<
Finite Element
Discretization
Fig.
k.i
Domain
Over Which
Stokes
Equations
areValid
Equivalent
Finite
Element
Kodel
4.2
TWO
DERIVATION
APPROACHES
Individual
element stiffness matricies are obtainedin
two
general ways:1
Variational
Approach
-This
technique
is
based
onthe
principle of minimumenergy
dissipation.
A
functional
is
derived based
onthe
rate ofenergy
dissipation
from
the
governing
differential
equations.Using
variationalalgebra,
the
minimization ofthis
functional
gives expressionsfor
the
nodal variablesconsistent with
the
minimum rate ofenergy dissipation.
In
section2.0
the
variational approachto
potential and streamfunction
formulation.
YamacJa
etal51,
in
addition,
have
putthe
Stokes
equationsin
afunctional
7
"^-l5**
+"vVr
(4.2)
wherejj
indicates
integration
aroundthe
boundary
ofthe
domain
R.
Method
of WeightedResiduals
-With
this
method anerror
(residual)
resulting
from
the
substitution ofthe
numerical approximation of somefunction
0a^(x,y)
in
place ofthe
exactfunction
0(x
y)
is
assumed
to
exist.This
error(residual)
is
weightedand
integrated
overthe
entiredomain.
If
D(0)=O
is
somedifferential
equation ofthe
function
0
usedin Eqn.
4.1.
(4.1)
TH^-o-f
W^C^Cx,^
Ax^
(4.3)
Where
W
is
somearbitrary weighting function.
Zienkiewicz
lists
three
general methodsfor
arriving
at a suitableweighting
function,
w+
.1
Point
collocation -This
method saysthat
W.
=1
ata
point,
i,
and zero everywhere else.If
i
=1,
n
then
the
governing
differential
equationis
satified at n pointsin
the
region.2
Subdomain
collocation -With
this
method
W^
=;1 over some subdomain ofR
and zero everywhere else.3
Galerkin's
process -Galerkin's
process usesthe
interpolation
functions,^
of equation4^1
asthe
weighting
functions,
Wi
=Ni
Zienkiewicz"feels
that
the
Galerkin
process givesthe
best
approximation,Taylor
and Hood1 also usethe
Galerkin
processin
their
formulation.
The
Galerkin
method of weighted residuals was adoptedas
the
method offormulation
for
the
following
reasons:1
The
Galerkin
method of weighted residuals allowsfor
different
weighting
-interpolation functions
for
the
variousterm
ofthe
Stokes
andcontinuity
equations.A
higher
orderinterpolation
function
canbe
usedfor
the
secondderivative
velocity
terms
of
the
Stokes
equationsthan
for
the
first
derivative
pressure
terms
ofthe
Stokes
equations andthe
first
derivative
velocity
terms
ofthe
continuity
equation.This
leads
to
more consistent error approximationthan
using
a singleinterpolatiorigfunction.
Both
Zienkiewicz6
and Taylor and Hood" v point out
the, im
portance of error consistency.
Taylor
andHood
'also
illustrate
the
advantages of separateinterpola
tion
functions
with some comparativetests.
2
Pressure
terms canbe
directly
solvedfor.
This
makesfor
better
efficiency
thenhaving
to
solvefor
pre4.3
INTERPOLATION
FUNCTIONS
As
shownin
Eqn.
4.1
interpolation
functions,
N-j_,
relate a continuous
function,
0(x,y)
to
adiscrete
number offunction
valves,
Shape
functions,
NI,
are requiredto
map
the
element shapefrom
cartesian(global)
x,y
coordinatesinto
local
(s,t)
coordinatesfor
the
purpose ofintegration
ofthe
function
0
overthe
element.Shape
functions
areillustrated
in
Fig.
k.2.
Shape
functions
aremathematically
defined
by:
x =
Njx,
+n|
x2
+ . . . +Ng
x8
(4.4a)
y
=N^y,
+n|
y2+ . . . + NQay8
(4.4b)
for
an element with eight nodes.Shape
functions
have
the
property
that
when x = x, andy
=yi
then
Nj
=1
and|
=N?
*. . . =
n|
=0
Zienkiewicz6
defines
an "isoparametric" element ason whose
interpolation
functions
and shapefunctions
are onein
the
same,
n|,
=N
(4.5)
The
Stokes
elementderived
here
is
anisoparametric
element;
hereafter
interpolation
or shapefunctions
willbe
called shapefunctions
,Mj_ .Fig.
4.3
illustrates
that
the
samefunctions,
Ni,
has
three
duties,
weighting
function,
interpolation
function
Element
Happing
From Global
to
Local
Coordinates
Pig.
k.2
XQ
J3
x3
J3
*k7k
?
x7
y7
zs
Js\
xeH
"tS1
^2
y2
Global
Coordinates
-1,0
A
-1,-1
fcl.O
0,-1
1,-1
Local
ro -r-t
Ui
z
o
co Il HW
COc
Wi
=Nl
=Ni
(4.6)
7
Huebner
givestwo
requirementsfor
shapefunctions:
1
The
field
variable,
0,
andits
derivatives
up
to
order n-l must
be
continuous atthe
elementinter
faces
where nis
the
highest
orderderivative
in
the
element.
This
is
defined
as acompatability
requirement.
2
All
states of0
andits
partialderivatives
up
to
order n must
be
representedby
somelinear
form
of01,
4*
t whenthe
element shrinksto
zeroin
size.This
is
known
asthe
completeness requirement.
Zienkiewicz
gives afamily
ofisoparametric
shapeelements which
he
callsthe
" seredipity"family.
This
family
of shapefunctions
is
so namedbecause
they
canderived
by
inspection.
Linear
and quadratic elements are shownin Figs.
4.4
and
4.5.
Linear
and quadratic shapefunctions
are givenin Table
4.1
and4.2.
The
generalform
oflinear
shapefunctions
is:
Ni
=i
(
1
+SS-_Ml
+tt-)
(4.7)
The
generalforms
of quadratic shapefunctions
are:Corner
nodesi
=1,4
Ni
=i(l+SS-)(l+tt
)(SS.+tt
-1)(4.8a)
Midside
nodesi
=5,7
Sl
=0Ni
=^(l-S2)(l+tti)
(4.8b)
i
=6,8
t.-t
=0 p q1
Ni
=2g(l-.t2)(l+3S2)
Linear
shapefunctions
and elements are so namedbe
LINEAR
ELEMENT
Fig.
k.k
y
v4%
t
=1
us =
1
i
=1
ul
vl
* v3
1
s =
1
t
=1
U2
v2
Table
4.1
Ni
LINEAR
SHAPE
FUNCTIONS
3
Ni
4^~Q.Ni
Ot
id-s)(i-t)
-id-t)*(l+s)(l-t)
*(l+s)(l+t)
i(l-t)
*u+t)
-i(l-s)
-i(l+s)
i(l+s)
U4
V4
P4
u5
v5
u:
ViQUADRATIC
ELEMENT
ufiv8
t
=1
. "
4
8
t
3
r
5
s 7<>*
6
2
<^6
v3P3
u7
v7
u2
v2
t
=1
P2
Pig.
k.S
Ni
TABLE
4.2
QUADRATIC
SHAPE
FUNCTIONS
3Ni
5H
3
Ni
St
1
2
3
5
6
7
8
i(l-s)(l-t)
(-s-t-1)
%(l-t)(2s+t)
i(l+s)(l-t)(s-t-l)
^(l-t)(2s-t)
^(l+s)(l+t)(s+t-l)
%(l+t)(2s+t)
^(l-s)(l+t)(-s+t-l)
%(l+t)(2s-t)
3g(l-s)(l-t2)
-3g(l-t2)ig(l-s2)(l-t)
-s(l-t)3g(l+3)(l-t2)
i-(l-t2)
3g(l-s2)
-s(l+t)%(l-t)(2t+s)
^(1+s) (2t
s)
variation of
0
canbe
representedQuadratic
shapefunctions
and elementshave
anadditional midside nodal .point
to
givethree
valves of0
an each
side,
hence
a second order or quadratic variationin
0
canbe
represented.Derivatives
of0
(x,y),
.0
(x,y)
and
Sgf(x,y)
are obtained asfollows,
g(x,y)
^
3gA
(x,y)
=iNj
01
9X
^x
^^
^.x
3t(x,y)
ay
3^A(x,y)
=5-|Ni
01
ay
4l
*y
(4.9a)
(4.9b)
Ni
is
afunction
ofs-and
t
and not x andy,
hence
the
chain rule ofdif
erentiationin
the
form
ofthe
Jacobian
mustbe
usedto
obtainthe
derivatives
3-N^
andc)Nj
This
relationship
is,
22
L
9
V
at
(4.10)
Derivatives
with respect
to
s andt
(local
coord.)
Jacobian
Derivatives
with respect
to
x andy
(global
coord.)
11
11
9t
-1
4.4
STOKES
EQUATIONS
IN
FINITE
ELEMENT
MATRIX
FORM
It
is
necessary,
atthis
point,
to
expressthe
Stokes
andcontinuity
differential
equations aslinear
combinations of u* ,Vj_
,
pj-.
The
generalform
ofthese
approximationshas
been
givenby
Eqns.
4.1
and4.9.
0
(x,y)S
0fc(x,y)
=^
Hi0
(4.1)
5_(x,y)^
5j2Ux,y)
=^Ei-d
(4.9a)
dX
5*
fly
X
^3^(x,y)^
a^A(xy)
=T.
Mi^i
(4.9b)
ay
Ay
r*\
3y
The
Stokes
andcontinuity
equations areagain,
r'V.TT'- a^lJ
Tv
(3.33a)
U(2h
+2iyN
*S2
(3.33b)
ii^^cO
(3'34)
In
orderto
apply
the
method of weighted residualsWJ
andW
\
are assumedto
be
two
weighting
functions.
The
method of
'weighted
residuals appliedto
the
Stokes
andcontinuity
equationsyields,
\
ViX[^^]^^
(4.12a)
(4.12b)
^L-V*
3^
^5r-sTji^(4.l4B)
-(
w/xir50
VIA**
**
-,
.;
Aj,
tl
*
(4-l4b)
where
"
(
Vl/^J
4
*andnx and
ny
representdirection
cosinesto
the
surfacear
Integration
by
partsis
not carried out overthe
continuity
equation atthis
point.The
following
numerical approximations are made.(4.16a)
(4.16 b)
.
[Klfv
**"*<]
N
Following
the
form
of equations4.9
derivatives
are expressed as:
|H=|xMju]
(4.17a)
^
=L_
M^ul
(4.17b)
^y
ay
L
J (.
J
aoc
=3_
W^M?
(4.17c)
ax
axLJ
vj
12
=*_&-*]
W?
(4.17d)
dy
dy
L
J
Where
1^
j
and1^
jmay
be
shapefunctions
ofdifferent
order.
Along
withmaking,
these
substitutionsin
equations4.13
and4.14
Galerkin's
criterionis
also applied sothat
W;XC?,A*
N-;xCy,<
(4.l8a)
vl;xc>^
*rt;xx^)
(4.18b)
The
resulting
set of equationare,
-\
WJ^X
i
^
=0
(4.19a)
\5.
N(4.1
Let,
'p
9c)
(4.20a)
(4.20b)
r
Integrations
are performedusing
Gaussian
quadratureintegration.
This
numericaltechnique
is
only
validwhere
the
limits
ofintegration
are -1to
+1,
hence
the
necessity
ofmapping
the
elementsfrom
their
irregular
global coordinates
into
s andt
coordinates.The
Gaussian
quadrature
integration
is
performeddirectly
in
the
local
(s
andt)
coordinate system.In
matrixform
the
indicies
i
andj
representthe
row and column
number,
respectively.Yamada
givesthe
matrix equationsin
shorthandform.
wi
=(
^
r^^^o%^r^jxi<i^(4.22a)
(4.22b)
(4.22c)
The
matrix equationsthen
become,
*1
AfcW
O
fcs.
fc3T
Ui
"
*
U-v
=-t
O
(4.23)
This
representation requiresthat
equation4.19c,
the
continuity
equation,
be
expressedin
adifferent,
but
equivalentmanner,
-f
u-x|^^A^-f
Ki;x|>
]^i^\v]
-o
The
stiffness matrix of equation4.23
is
symetric.This
is
important
for
minimizing
storage space and computational
time
in
the
computer.In
the
final
matrix equationsthere
is
the
option ofhaving
two
sets of shapefunctions,
N
andN11,
OF
different
order.In
section4.2
advantages ofusing
two
different
shapefunctions
for
different
orderderivatives,
were
discussed.
For
this
element N1 wastaken
to
be
linear
and N11 quadratic.Therefore,
the
elementis
quadratic with respect
to
velocities,
u andv,
but
linear
with respect
to
velocity,
p.The
elementis
quadrillateralhaving
eight nodes.Velocities
are solvedfor
at alleight nodes while pressure
is
solvedfor
only
atthe
corner nodes.
In
expression4.23
n would equal eight and m5.0
ASSEMBLY
OF
THE
GLOBAL
STIFFNESS
MATRIX
Once
individual
element stiffnessmatricies,
[ke]
, are generatedthey
are assembledinto
a globalstiffness
matrix,
Tk^
.The
global stiffness matrixis
modifiedduring
assembly
due
to
boundary
conditions.The
assembly
routine usedhere
is
basically
the
same as
Warner
's-*-.
Modifications
have
been
madeto
account
for
multipledegrees
offreedom
(u,
v,
p)
atthe
nodes.Degrees
offreedom
(D.O.F.)
canbe
putin
one ofthree
groups,
1
Real
D.O.F.
-Unknown
nodal variableto
be
solvedfor.
2
Fixed
D.O.F.
-Boundary
condition -Degrees
offreedom
for
which eitheru,
v orp
is
specified.3
Nodal
Relations
-Boundary
Condition
-Two
nodes whosedegrees
offreedom
areidentical
but
notspecified.
This
is
usedin modeling
a cascade of cylinders or airfoils.TYPES
0? DEGREES
<P
FREEDOM
FIXED D.
0.
F.
Fig.
5.1
|j N- f (
^
f,1
Xa^
<*^ -/-
6
& --->n
UNIT
FREE
STREAM VELOCITY
REAL
D.
0.
Fi
NODAL
RELATIONS
5.1
BOUNDARY CONDITIONS
Fixed
D.O.F.
Fixed D.O.F.
are removedfrom
the
D.O.F.
vector,
multiplied
by
the
appropriate
stiffness coeficieht and subtractedfrom
the
loading
vector.--11
K12
--13L
14
K31
K32
K33
K
34
Stiffness
Matrix
0
0
.K21
K22
K23
K24
0
0
.35
0
.-41
K42
K43
K44
K45
K53
K54
K55
K
66
u-Pl
U2
n
D.O.F.
Vector
xl
yi
x2
y2
Loading
Vector
(5.1)
Eqn.
5.1
shows a complete set of matrix equationswithout modifications.
If,
for
example,
v-L
was afixed
D.O.F.
the
set of matrix equations wouldbe
modified asll
31K
41
K
51
Kl3
Kl4
0
--33
K34
0
0
K43
K44
K45-0
E53
K54
K55
0
0
660
ul
Pi
U2
v2
nRxl"K12Vl
0-K32V1
Rx2-K42V1
Ry2
0
2
(5.2)
B
NODAL
RELATIONS
Here
D.O.F.
are specified asbeing
identical
without explicit valvesbeing
given as withfixed D.O.F..
There
fore
their
commonD.O.F.
valves must stillbe
solvedfor.
If
two
nodesi
andj
andtheir
respectiveD.O.F.
and
m
are related
then
the D.O.F.
ofthe
second ofthe
two
nodes,
j,
are replaced withthe
D.O.F.
ofthe
first
node of
the
pair,
i.
n
n
Because
(5.3)
must
be uniquely
solvedfor,
the
stiffness matrix and
loading
vector mustbe
modified.illustrate
this
conceptconsider,
again,
Eqn.
5.1
Kll
K12
K13
K14
0
0
. .K21
K22
K23
K24
0
0
. .K31
K32
K33
K34
K35
0
. .K41
K42
K43
K44
K45
0
. .0
0
K53
K54
K55
0
. .K66
'ui
RX1
vl
Ryl
pl
0
u2
=Ex2
v2
V
P2
0
_pn_
0
(5.1)
To
simplify
this
illustration
assumethat
only
two
D.O.F.,
u^
andU2,
are related.In
actual practice allD.O.F.
of a particular node are related.Because
ui
andU2
are relatedu2
is
removedfrom
the
set of equations and
u,
willbecome
the
common variable.The
modified set of equationsis,
Kii+Ki4
K12
K13
0
0
. .J-21+K24
K22
K23
0
0
. .K31+K34
K32
K33
K35
0
. .K54
0
K53
K55
0
. .