Professional Documents
Culture Documents
CFD I
Hochschule Magdeburg-Stendal
Fachbereich Wasser und Kreislaufwirtschaft
Universidad de A Corua
Escuela Tcnica Superior de Ingenieros de Caminos, Canales y Puertos
CFD I
Computational Fluid Dynamics I
Lecturers
Acacia Naves
Jaime Fe Marqus
CFD I
Computational Fluid Dynamics I
Main Bibliography
Taylor, C.C., Hughes T.G., Finite element programming of the Navier-Stokes equations.
Pineridge, 1981
CFD I
Computational Fluid Dynamics I
Main Bibliography
P. Gresho, R Sani, Incompressible flow and the finite element method, Wiley, 2000
O. C. Zienkiewicz, R.L. Taylor& P. Nithiarasu, The Finite Element Method for Fluid
Dynamics, Elsevier 2005
CFD I
Computational Fluid Dynamics I
0.
1.
MATLAB (8h)
2.
2.
2.
Introduction to CFD
3.
Mathematical preliminaries
2.
3.
1.
1.
4.
3.
4.
CFD I
Computational Fluid Dynamics I
i I y
1 Fr 2 y
5
4
3
2
1
0
-12000
-10000
-8000
-6000
x
-4000
2 2
2 2 0
x
y
2
-2000
Example 1
0
CFD I
Computational Fluid Dynamics I
u v w
0
x y z
2u 2u 2u
u
u
u
u
1 p
fx
2 2 2
u
v w
y
z
t
x
x x y z
2v 2v 2v
v
v
v
v
1 p
2 2 2
u v w fy
t
x
y
z
y x y z
2w 2w 2w
1 p
w
w
w
w
2 2 2
fz
w
v
u
z
z
y
z
y
x
t
x
CFD I
Computational Fluid Dynamics I
CFD I
Computational Fluid Dynamics I
CFD I
Computational Fluid Dynamics I
In previous subjects we have regarded the Open Channel and Pipe flows
In the pipe flow the geometry is given and the unknowns are the pressure p(x,t)
and the velocity v(x,t). Some computational approaches apply (e.g. EPANET)
p(z)
y
CFD I
Computational Fluid Dynamics I
Non-uniform
Steady flow
/ t 0
Uniform (i=I)
/ x 0
CFD I
Computational Fluid Dynamics I
The open channel flow takes place into natural channels and also in irrigation,
navegation, spillways, sewers, culverts and drainage ditches
Prismatic channels are assumed (all the cross sections are equal)
Basic notation
B
y(x,t)
h
v(x,t)
Depth (y), Stage (h) height from datum, Area (A), Wetted perimeter (P), Surface
width (B), Ground height from datum (z)
Hydraulic radius (R), (R=A/P)
Hydraulic mean depth (Dm), (D=A/B)
CFD I
Computational Fluid Dynamics I
y
y A v
v
0
t
x B x
The dynamic equation is given by the conservation of momentum as
v
v
y
v g g I i 0
t
x
x
In these differential equations the unknowns are the velocity v and the depth y for a given horizontal
direction x
i is the geometric slope (i=-dz/dx)
I is the friction slope (I=- dE/dx)
E is the Energy per unit weight given by Bernoullis eq as, E=z+y+v2/2g= z+pgv2/2g
CFD I
Computational Fluid Dynamics I
Finding the value of dv/dx in the steady continuity equation and substituting it in the
steady dynamic equation we obtain
dy
iI
iI
2
dx 1 Bv / gA 1 v 2 / gy
That can also be written as
i I y
1 Fr 2 y
CFD I
Computational Fluid Dynamics I
The equation
i I y
1 Fr 2 y
yn
yc
M2
M3
CFD I
Computational Fluid Dynamics I
CFD I
Computational Fluid Dynamics I
f f
df x
k 1 k
x
dx
where
and
Frk
i I y
1 Fr 2 y
basis, to obtain
1 Fr *2
xk 1 y
xk
iI*
I * I k 1 I k / 2
Q
yk B gyk
I k n 2Q 2
2 yk B 4 / 3
Byk 10 / 3
yn
y9
yn=y10
x10
y0
x9
x8
x7
x6
x5
x4
x3
x2 x1 x0=0
CFD I
Computational Fluid Dynamics I
First proposed in XIX c. by Boudine (1861) and further developed by Bakhmeteff (1932)
Assuming that the initial condition is given downstream (y0 ) and that he stretch is long
enough for the normal depth to be reached, the iterative expression can be used N times
varying the value of y from y0 up to yn at vertical equidistant intervals, and finally obtaining
the x for which the depth is the normal one
2009_10
Tramo 3
k
fr
fr*
I*
0
1
2
3
4
5
6
7
8
9
10
1,54
1,632
1,724
1,816
1,908
2
2,092
2,184
2,276
2,368
2,46
1,0023876
0,9188329
0,8462737
0,7827859
0,7268574
0,6772855
0,6331028
0,5935233
0,5579026
0,5257075
0,4964941
0,00364198
0,00309299
0,00265301
0,00229591
0,00200275
0,0017596
0,00155607
0,00138424
0,00123806
0,00111282
0,00100482
0,9606102
0,88255329
0,8145298
0,75482162
0,70207141
0,65519413
0,61331306
0,57571295
0,54180505
0,51110081
0,003367485
0,002873
0,002474459
0,002149326
0,001881175
0,001657836
0,001470155
0,001311153
0,001175445
0,001058825
0
-3,00106646
-13,8612733
-34,8600141
-69,2997436
-122,243592
-202,060268
-324,134734
-521,80908
-892,257412
-2047,68149
Tramo 4
Calado
2,7
2,5
2,3
2,1
1,9
1,7
1,5
1,3
1,1
0,9
0,7
-2500
-2000
-1500
-1000
Distancia
-500
Tra
CFD I
Computational Fluid Dynamics I
2u 2u 2u
u
u
u
u
1 p
u
v w
fx
t
x
y
z
x x 2 y 2 z 2
2v 2v 2v
v
v
v
v
1 p
u v w fy
t
x
y
z
y x 2 y 2 z 2
2w 2w 2w
1 p
w
w
w
w
2 2 2
fz
w
v
u
z
y
z
z
y
x
t
x
the unknowns in these equations will be the velocities u(t,x,y,z), v(t,x,y,z), w(t,x,y,z)
and the presure p(t,x,y,z)
CFD I
Computational Fluid Dynamics I
That is
u v w
0
x y z
u i ,i 0
2u 2u 2u
u
u
u
u
1 p
u
v w
2 2 2 f x
t
x
y
z
x x y z
2v 2v 2v
1 p
v
v
v
v
u v w
2 2 2 f y
y
z
y x y z
t
x
ui ,t u j ui , j f i
p,i ui , jj
2w 2w 2w
w
w
w
w
1 p
u
v
w
2 2 2 f z
y
z
y
z
t
x
z
x
ui x j ,0 ui 0 x j
CFD I
Computational Fluid Dynamics I
Anyway, in most of the cases some other equations are used to provide a
simplified but meaningful solution to the flow problems. Among these we can
quote as some of the most important
CFD I
Computational Fluid Dynamics I
The potential flow equation is a simplification that uses the potential variable to
solve the continuity equation
The Shallow Water equations are the result of the integration in depth of the
three dimensional equations, therefore a two dimensional model is obtained
CFD I
Computational Fluid Dynamics I
Once the velocity field is obtained, we can use it as an input value to resolve the
transport equation that gives the concentration of a given species in the flow
The equations of the transport of sediments are also needed for the case in
which non-soluble substances are included in the flow
CFD I
Computational Fluid Dynamics I
This situation takes place for a Reynolds number Re(=UL/ > 2000
The Reynolds number indicates the weight of the convection with respect to
the viscous losses
CFD I
Computational Fluid Dynamics I
When the Reynolds number is large enough, the velocity unknown is split
into a mean velocity U and a fluctuating term that depends on time u(t),
leading to u(t)=U+u(t)
The most common models are the algebraic, de one equation models
(Prandtl's, Baldwin-Barth, etc...) and the two eq. (k k,...)
CFD I
Computational Fluid Dynamics I
Advantages:
Suitable to model complex geometries
Consistent treatment of b.c.
Possibility of being programmed in a flexible and general way
CFD I
Computational Fluid Dynamics I
CFD I
Computational Fluid Dynamics I
In order to do avoid these oscillations, some techniques have been developed since the
70s which are known as stabilization techniques. The most important of which are
SUPG (Streamline Upwind Petrov-Galerkin)
GLS (Galerkin Least Squares)
FIC (Finite Increment Calculus),...
A correct coupling in the selection of the pressure and velocity variables is required for
convergence
The heterogeneity of the unknowns require the use of the so-called mixed and penalized
methods
The mesh refinement also leads to the stabilization (but means high computational
costs)
introduction to CFD
derivative operators
computational fluid dynamics I
= scalar product
Index notation
Gradient , divergence
Laplacian
ui , j
ui
x j
, ,
x y z
2 2 2
2 , 2 , 2
x y z
introduction to CFD
Reference System
computational fluid dynamics I
introduction to CFD
eulerian coordinates
computational fluid dynamics I
In the Lagrangian coordinates there are no convective effects and the material
derivative is just a temporal derivative
df f f x j
dt t x j t
df f
uf
dt t
df ( xi , t ) f f dx f dy f dz f
f
uj
t x dt y dt z dt t
dt
x j
introduction to CFD
eulerian coordinates
computational fluid dynamics I
df i f i f i x j
dt t x j t
df f
u f
dt t
df1 ( xi , t ) f1 f1 dx f1 dy f1 dz f1
f1
uj
dt
x j
t x dt y dt z dt t
df 2 ( xi , t ) f 2 f 2 dx f 2 dy f 2 dz f 2
f
uj 2
dt
x j
t x dt y dt z dt t
df 3 ( xi , t ) f 3 f 3 dx f 3 dy f 3 dz f 3
f 3
uj
dt
x j
t x dt y dt z dt t
introduction to CFD
eulerian coordinates
computational fluid dynamics I
a(u, v ) u :v d
( w, q ) w q d
b(u, q ) qv d
c( v; w, u ) w( vu ) d
( w, h)N w h d
N
where
u i u
xi
u v
u v
xi xi
c( v; w , u ) w (v )u d
u ij ui
x j
u : v
ui vi
x j x j
w v u wi v j
ui
x j
CFD I
Computational Fluid Dynamics I
0.
1.
MATLAB (8h)
2.
Saint-Venant equations.
2.
HEC-RAS (4h)
2.
Introduction to CFD
3.
SMS//RMA2 (8h)
3.
Mathematical preliminaries
2.
1.
1.
4.
governing equations
computational fluid dynamics I
governing equations
stress() and strain() of fluids
computational fluid dynamics I
du
dn
where
m2
and
is the cinematic viscosity
governing equations
continuity equation
computational fluid dynamics I
The principle of conservation of mass states that in any time interval and for any
control volume the volume of mass entering must equal the volume of mass
leaving, i.e.
udydz
u x u dx dydz
governing equations
continuity equation
computational fluid dynamics I
dxdydz ,
t
u v w
t x
y
z
For incompressible fluids is a constant and the continuity equation results into
u v w
u ui ,i 0
x y z
governing equations
dynamic equation
computational fluid dynamics I
d mv dm
v ma
dt
dt
dFi dxdydzai
The equilibrium of forces gives
yx
yx
dy dxdz
y
zx dxdy
xx
xx x dx dydz
xx dydz
yx dxdz
zx
dz dxdy
zx
z
governing equations
dynamic equation
computational fluid dynamics I
yx
dy dxdz
yx dxdz yx
x
zx
dz dxdy
zx dxdy zx
x
y
x
z
a y B y xy yy zy
y
x
z
a z Bz xz yz zz
x
y
z
a x Bx
governing equations
stresses in solids
computational fluid dynamics I
1
xx yy zz ,...
E
xy
xy
,...
G
where E is the Young Modulus or Elasticity Modulus, is the Poisson Ratio and G
is the Modulus of Rigidity or Shear Modulus
governing equations
stresses in solids
computational fluid dynamics I
V 1 xx 1 yy 1 zz dxdydz dxdydz
V
dxdydz
e xx yy zz
1 2
xx yy zz 1 2 3
E
E
1
1
1
xx yy zz xx xx yy zz xx xx 3 xx
E
E
E
xx
E
3
xx
1
1
governing equations
stresses in solids
computational fluid dynamics I
xx
E
E
Ee
3
xx
xx
1 1 2
1
1
1
Noting that Youngs and shear modulus and Poissons ratio are related as
G
it is obtained
E
21
xx 2G xx
2G
e
1 2
governing equations
stresses in solids
computational fluid dynamics I
2G
2G
E
e
e 2G xx
1 2
1
2
3
1
2
2G 2G 1
2G 1
2G 2 1
e 2G xx
e
e 2G xx
1
2
3
1
2
1
2
3
1
2
3 3
xx 2G xx
e
3
e
3
e
3
Or
xx 2G xx
Similarly
yy 2G yy
zz 2G zz
governing equations
stresses in fluids
computational fluid dynamics I
Up to this point we have been concerned with solids. It has been shown
empirically that stresses in fluids are related not to strain but to time rate of strain
We have just shown that
e
xx 2G xx
Replacing the rigidity modulus by a quantity in terms of its dimensions (kg/s/m), the
stresses in fluids would be of the form
xx 2kg/(s m)
e
xx
t
3
Where the proportionality constant is known as the dynamic viscosity and has
the dimensions (kg/(s m))
The equations result into
xx 2
xx 2 e
,...
t
3 t
xy
xy
t
,...
governing equations
stresses in fluids
computational fluid dynamics I
xx p 2
yy p 2
zz p 2
xx 2 e
t
3 t
yy
xy
2 e
t
3 t
yz
zz 2 e
t
3 t
zx
xy
t
yz
t
zx
t
Let us now find out the value of the time derivatives of xy and e in terms of
u,v and w
governing equations
stresses in fluids
computational fluid dynamics I
yy
zz
xy
y x
yz
z y
zx
x z
u v
,...
t y x y t x t y x
e
u v w
xx yy zz
u
t t
x y z
governing equations
dynamic equation
computational fluid dynamics I
u 2
2 e
xx p 2 xx p 2 u
3 t
t
x 3
v 2
yy p 2 u
y 3
zz p 2
w 2
u
z 3
v u
t
x y
w v
y z
xy
yz
xy
u w
zx
1 xx 1 yx 1 zx
u
u
u
u
Bx
v w
u
x
y
z
z
y
x
t
1
u 1 v u 1 u w
u
u
u
u
Bx
v w
u
p 2
x
x y x y z z x
z
y
x
t
governing equations
dynamic equation
computational fluid dynamics I
p 2
x
x y x y z z x
z
y
x
t
1 p
2v
2u
2u
2w
u
u
u
2u
u
Bx
2 2
2 2
u
v w
x
x
yx
y
z
zx
t
x
y
z
u
u
u
u
2u
2u
2u
u v w
1 p
u
v w
Bx
2 2 2
t
x
y
z
x
y
z
x x y z
x
2u 2u 2u
u
u
u
u
1 p
Bx
u
v w
y
z
t
x
x x 2 y 2 z 2
Proceeding in the same way for for y and z, the 3D Navier equations are finally
ui ,t u j ui , j f i
p,i ui , jj
1
u
u u p u f
t
governing equations
dynamic equation
computational fluid dynamics I
That is
u v w
0
x y z
2u 2u 2u
u
u
u
u
1 p
fx
u
v w
x x 2 y 2 z 2
t
x
y
z
2v 2v 2v
1 p
v
v
v
v
fy
u v w
y x 2 y 2 z 2
t
x
y
z
2w 2w 2w
1 p
w
w
w
w
2 2 2 f z
u
v
w
z
t
x
y
z
y
z
x
ui x j ,0 ui 0 x j
When the flow is non-isothermal, the temperature of the fluid has to be solved making use of
the energy equation, which represents the conservation of energy
governing equations
stokes flow
computational fluid dynamics I
The Stokes flow simplification is obtained when the flow is taken as steady and
the convective term is dropped. For the two dimensional case leads to
u v
0
x y
1 p
u f x 0
x
1 p
v f y 0
y
governing equations
potential flow
computational fluid dynamics I
A flow is said to be inviscid (or non-viscous) when the effect of viscosity is small
compared to the other forces (convection). The viscosity is therefore assumed to be
null. No fluid is really inviscid, but this can be assumed for instance in flow through
orifices, over weirs or in channels
A flow is said to be irrotational when its particles do not rotate and maintain the same
orientation wherever along the streamline
irrotational
rotational
governing equations
potential flow
computational fluid dynamics I
rot u
x
u
y
v
k
w v u w v u
i
j k 0
z y z z x x y
w
w v
0
y z
u w
0
z x
v u
0
x y
Far from the boundaries, most of the flows of fluids with low viscosity (such as air and
water) behave as irrotational and these simplification can be assumed, that is why the
inviscid flow can be considered in certain occasions as irrotational
governing equations
potential flow
computational fluid dynamics I
The potential flow equations are a simplified version of the N-S equations in which the
potential function is used to solve the continuity equation
We define in such a way that its partial derivatives with respect to the space, give the
velocity in that direction
u
v
v
y
x
Substituting this expression into the 2-D continuity equation it is obtained
u v
0
x y
2 2
2 2 0
y
x
2
u v
y x
y x x y
governing equations
potential flow
computational fluid dynamics I
With this formulation we can solve problems such as flow around a cylinder, flow out of an
orifice or around an airfoil
The flow through a saturated homogeneous porous media results as well in a
Laplacian, as the Darcys law is given by u k dh dx , where h is the water level, can be
written as
u k
where k is the hydraulic conductivity
Taking this equation to the continuity equation it is obtained
k k f
assuming k as a constant
governing equations
potential flow
computational fluid dynamics 1
The governing equations of the two dimensional potential flow are therefore given by
2 2
2 2 0
y
x
2
Vn
lx
l y V0
n x
y
in
in
in 2
were lx and ly are the direction cosines of the outward unit vector n to 2
governing equations
stream function
computational fluid dynamics 1
The streamline is a line that connects points at a given instant whose velocity
vectors are tangent to the line
The path line connects points through which a fluid particle of fixed identity passes
as it moves in space
Since the velocity vector meets the streamlines tangentially no fluid can cross the
streamline
u
y
v
x
governing equations
stream function
computational fluid dynamics I
d udy vdx
governing equations
stream function
computational fluid dynamics I
Therefore
v
x
u
y
x y x y
y
x
0
x y
Substituting u and v by its values in terms of it is obtained
u
0
x x y x
And therefore
2 2
2 2 0
y
x
2
governing equations
shallow waters
computational fluid dynamics I
0
x y
u
u
u
1 p
u
v
u f x
t
x
y
x
v
v
v
1 p
u v
v f y
t
x
y
y
or identically
u
1
u u f p u
t
ui ,i 0
i 1,2
But this is just a theoretical example in which the flow is assumed to have
null thickness
If we want to make a more adequate approach that takes into account the
third dimension we have to use the Shallow Water equations (SSWW)
governing equations
shallow waters
computational fluid dynamics I
governing equations
shallow waters. continuity eq.
computational fluid dynamics I
h
hb
u
v
dz
h x h y dz wh whb 0
h
As the Leibniz rule to bring the derivatives into the integral sign gives
u
h
h
h
h x dz x h udz uh x uhb xb 0
h
it is obtained
h
h
hb h
h
hb
udz
u
h
u
h
vdz
v
h
v
h
wh whb 0
b
b
x h
x
x y h
y
y
b
H=h+hb
governing equations
shallow waters. continuity eq.
computational fluid dynamics I
dh h h
h
u h vh
dt t x
y
0
udz
vdz
x h
y h
t t
b
Noting that
hb
0 , and taking and renaming the main velocities as
t
h
h
u
1
udz u
H hb
1
vdz v
H hb
0
t
x
y
governing equations
shallow waters. dynamic eq.
computational fluid dynamics I
2 2 2 f z
z
y
z
y
z
t
x
x
can be written as
1 p
fz 0
z
hb
dz
f z h hb ph phb p
h
1 p
x
x
fz
h
1 p
y
y
governing equations
shallow waters. dynamic eq.
computational fluid dynamics I
this is
as
2u 2u 2u
h
u u 2 uv uw
fx fz
2 2 2
z
t x
y
z
x
y
x
u u 2 uv uw u
u u
v u
w
2u
vu
wu
t x
y
z
t
x y
y z
z
governing equations
shallow waters. dynamic eq.
computational fluid dynamics I
2u 2u 2u
h
u u 2 uv uw
2 2 2
fx fz
y
z
y
z
x
t x
x
hb
h h 2
h
h
2
2
u
h
udz
u
h
u
dz
u
h
b
t hb
t x hb
x
x
h
hb
h
h
h
uvdz
u
h
v
h
u
h
v
h
u
h
w
h
u
h
w
h
f
H
udz
x
b
b
b
b
z
hb
y hb
y
y
dh h h
h
u h vh , it is obtained
dt t x
y
hb
h
h
h h 2
2
2
udz
u
h
u
dz
u
h
u
h
h
h
b
b
t
t x
x
x
h
h h
h h
h
h
h
h
h
h
uvdz u h vh u hb vhb b u h u h vh u hb b b u hb b vhb f x f z H udz
hb
y
x
y
x
y hb
y
y
t x
Cancelling terms
h
h
h 2
h
h
udz
u
dz
uvdz
f
H
udz
x
h
h
h
h
b
b
b
b
t
x
y
x
governing equations
shallow waters. dynamic eq.
computational fluid dynamics I
f x f z H udz
hb
x
y
x
t
Cw a W Wi
b H
i
gn 2 V ui
H h4 3
governing equations
shallow waters. dynamic eq.
computational fluid dynamics I
2u
y
y
t
x
x
y
t
x
y
t
H u
H v
0
x
y
t x
y
t
x y
H v
) vH
t
x
t x
x y
y
y
t
x
y
uH u 2 H uvH u
u
u
H u
H 0 vH
t
x
y
t
x
y
governing equations
shallow waters. dynamic eq.
computational fluid dynamics I
x
x
x
Carrying out the same operations for the y dimension, and developing the
derivatives taking into account the last expression it is obtained
2u 2u Cw a W Wx gn 2 V u
u
u
u
h
f c v 2 2
u
v
g
x
y
H
H h4 3
t
x
y
x
2 v 2 v Cw a W W y gn 2 V v
v
v
v
h
f c u 2 2
u v g
x
H
H h4 3
t
x
y
y
governing equations
shallow waters
computational fluid dynamics I
0
t
x
y
2u 2u Cw a W Wx gn 2 V u
u
u
u
h
f c v 2 2
u
v
g
x
y
H
H h4 3
t
x
y
x
2 v 2 v Cw a W W y gn 2 V v
v
v
v
h
f c u 2 2
u v g
x
y
H
H h4 3
t
x
y
y
governing equations
convection-diffusion equation
computational fluid dynamics I
U
V
W
k 2 2 2 f
y
z
y
z
t
x
x
,t U j, j k, jj Q 0
or in 1D
U
k
Q 0
x x x
t
CFDI
Some important names in the finite element history are Courant, Turner,
Clough, Zienkiewicz, Brookes, Hughes,
sms.avi
largo modulos.avi
250
VEL
1.78125
1.6625
1.54375
1.425
1.30625
1.1875
1.06875
0.950002
0.831252
0.712501
0.593751
0.475001
0.356251
0.237501
0.11875
1.69975E-06
9.60324E-07
4.19696E-07
8.11084E-08
200
150
100
50
0
0
100
200
2D H (water level).avi
The main way of solving continuum problems in the finite element method are the
following
The direct approach (matrix analysis), by using a direct physical reasoning to establish
the element properties. Requires very simple basic elements (bars, pipelines,)
Variational approach (e.g. Rayleigh-Ritz based method), in this method the stiffness
matrix is obtained as a result of the resolution of a variational problem
Weighted residual approach (e.g. Galerkin Method), as a result of weighting the
differential equations and integrating them in the domain
Following, the fem solution of the one simple 1-D problem is to be considered
on a 6-step basis
'...as the nature of the universe is the most perfect and the work of the
Creator is wiser, there's nothing that takes place in the universe in
which the ratio of maximum and minimum does not appear. So there is
no doubt whatsoever that any effect of the universe can be explained
satisfactorily because of its final causes, through the help of the method
of maxima and minima, as can be by the very causes taking place
Leonhard Euler
(Basel,1707- Saint Petersburg,1783)
When using a variational approach, the aim is to find the vector function of
unknowns, that makes a minimum or a maximum of the functional I (typically
the energy)
I F , ,...dV g , ,... dS
x
x
After the discretization has been carried out in terms of E smaller parts the
piecewise approximation is introduced so that
aprox
e N11 N 2 2
where i are the values of the unknowns at the nodes
I
I 2
0
i
I
M
0
i e 1 i
K P
K K and
E
where
e 1
P P e
e 1
After applying the boundary conditions the system is solved for the nodal
unknowns i
Once i are known, we can obtain other variables as a post-processing value
1 L d
I A dx
2 0
dx
2
with the boundary condition u(x=0)=u0, where the cross section area is
A0
A1
u0
A2
2
l(1)
3
l(2)
A A0 e x L
x a bx
and can be evaluated at each element as
e x 1e 2e 1e
where l(e) is the length of the e element
l e
3rd step. Derivation of stiffness matrices K(e) and load vectors P(e) by using
a variational principle
Deriving the interpolating function with respect to x it is obtained
e
1 l e 2e 1e
A 2e 1e 2 2e 1e
d
e 1 l
l e
I A dx A
dx
x
o
2
2 0
2 0
l e
dx
2l e
A 2e 1e 2 2e 1e
2
2l e
1
2
e
1
1 1e 1 e T e e
1 1 e 2 K
A 1
e
where the cross sectional areas can be taken for the first and second element
as
A0 A1
2
and
A1 A2
2
2
1 and
( 2)
3
2
2l
1 Q2 2
2
2
2
I e
A
A
e
2e 1e 2 2e 1e
Q1( e ) 1e Q2( e ) 2e e 1e 2e Q1( e ) 0
1 2l 1
1
l
2
2
I e
A
A
e
2e 1e 2 2e 1e
Q1( e ) 1e Q2( e ) 2e e 2e 1e Q2( e ) 0
2 2l 2
2
l
or in matrix form
T
T
I e 1
e K e e e Q e K e e Q e 0
i 2 i
A1 1
l 1
1
1 1
A2 1
l 2
A1u1
Q 1
1
1 1
0
Q 2
A3u2
A1
l 1
A1
l 1
A2
l 2
A2
l 2
A0u0
2 1
A
2 2 0
l
A2 3 A2u2
l 2
0
1 1.65u0 L
2 1.027u0 L
d 2 1
dx
l 1
u 1 1.25u0
u 2 2.05u0
In this method the FE equations can be directly obtained from the governing
equations (or equilibrium equations)
F G
The discretization is made and the field variable is approximated as
n
x i N i x
~
i 1
where i are constants and Ni(x) are linearly independent functions chosen
such that the boundary conditions are satisfied
A quantity R known as the residual or error is defined as
~
~
RG F
wf R dV 0
There are several approaches to the weighted residuals method such as the
collocation method, the Least Squares method and the most commonly used of
all, the Galeking method
In the Galerkin method the weighting functions are chosen to be equal to the
trial functions and f(R) is taken as R
N RdV 0
i
with i=1,2,,n
d 2
0
dx 2
with the boundary condition u(x=0)=u0, where the cross section area is
A1
A2
u0
A3
2
l(1)
3
l(2)
A A1e x L
x a bx
and can be evaluated at each element as
x 1e 2e 1e
where l(e) is the length of element e
l e
This can also be obtained through the shape functions which have to be 1 at its
node and zero at the others, that is
N1 1
1
l(e)
x 1 N1 x 2 N 2 x
1
l(e)
this is
x
x
x
x 1 1 e 2 e 1 2 1 e
l
l
l
(the same as obtained before)
N2
l e
l e
3rd step. Derivation of stiffness matrices K(e) and load vectors P(e) by using
equilibrium. Obtaining of a weak form
The integral of the weighted residual is
l e
integrating by parts
l e
d 2
wi 2 dx 0
dx
d 2
dv 2 dx
dx
u wi
du dwi
d
dx
l e
e
l e d
d
d 0 l e d dwi
d
e d l
wi 2 dx wi
dwi wi l
dx 0
wi 0
0
0
dx
dx
dx
dx
dx
dx
dx 0
l e
dwi d
dx wi l e u2 wi 0 u1
dx dx
This is
l e
l e dw dN
dwi d
i
1
N11 N 2 2 dx 0
dx dx
dx dx
dN 2 1
e
dx
w
l
u 2 wi 0 u1
i
dx 2
As
where
dN1
dN
K e dx 1
dN
2 dx
dx
dN1
dN 2
dx dx
dx
dN 2
dx
dN1
dx
dN1
dx
dN1
1
dx
L
2
e l e
K
1
e 2
l
dN1
dx
dN 2
dx
dN 2
dx dx
dN 2
dx
dN 2 1
dx
L
1
2 e
l e l dx 1 1 1
1 0
l e 1 1
2
l e
u
P e 1
u2
(1) 1
2
( 2 ) 2
3
1 1 1
l 1 1 1
K 2
1 1 1
l 2 1 1
u
P 1 0
0
l 1
1
l
l 2
1
l 2
0
1 u 0
1
2 2 0
l
1 3 u2
l 2
0
P 2
u2
The areas are not present in the second formulation as the system is solved in
velocities and not in flow rates. To avoid this fact a two dimensional model
should be considered.
In higher order elements the midside and/or interior nodes have to be used in
addition to the corner nodes in order to match the number of nodal degrees of
freedom with the number of constants
Triangular linear
Quadrilateral linear
Triangular quadratic
The FEM is an approximation that converges to the exact solution as the element
size is reduced if:
i. The field variable and its derivatives must have representation as the element
size reduces to zero
For example, second derivatives cannot be represented with linear functions
Then the elements are said to be complete
ii. The field variable and its derivatives should be continuous within the element (Cr
piecewise differentiable, where r is the maximum order of derivatives within the
integrand)
r
d
dx r dx
Still, there are many fem basic elements that not verifying the former properties
still provide meaningful solutions (such as the checker board pressure mode)
100.00
55.00
90.00
50.00
80.00
45.00
70.00
40.00
60.00
35.00
50.00
30.00
40.00
25.00
20.00
30.00
15.00
20.00
10.00
10.00
5.00
0.00
0.00
10.00
20.00
30.00
40.00
50.00
60.00
70.00
80.00
90.00
100.00
5.00
10.00
15.00
20.00
25.00
30.00
35.00
40.00
45.00
50.00
55.00
x , y 1 2 x 3 y
3
1
x2 , y 2
x
x3 , y3
x1 , y1
1 1 2 x1 3 y1
2 1 2 x2 3 y 2
3 1 2 x3 3 y3
(1)
where
1
a11 a22 a33
2A
1
b11 b22 b33
2A
1
c11 c22 c33
3
2A
1 x1
1
A 1 x2
2
1 x3
y1
y2
y3
(2)
a1 x2 y3 x3 y2
b1 y2 y3
c1 x3 x2
a2 x3 y1 x1 y3
b2 y3 y1
c2 x1 x3
a3 x1 y2 x2 y1
b3 y1 y2
c3 x2 x1
where
N1 x , y
1
a1 b1 x c1 y 1 x2 y3 x3 y2 x y2 y3 yx3 x2
2A
2A
N 2 x, y
1
a2 b2 x c2 y 1 x3 y1 x1 y3 x y3 y1 yx1 x3
2A
2A
N 3 x, y
1
a3 b3 x c3 y 1 x1 y2 x2 y1 x y1 y2 yx2 x1
2A
2A
(3)
The shape functions take the value of 1 at its node and cero at the rest
These expressions are complicated and depend on x and y
x
y y
x
A e Aij
x
N
A e 2
x
e
N 3
x
N1 N1 N1
x
y y
N1 N 2 N1
y y
x
N1 N 3 N1
x
y y
N1
x
N 2
x
N 3
x
N 2 N1 N 2
x
y y
N 2 N 2 N 2
y y
x
N 2 N 3 N 2
x
y y
N1 N 3 N1 N 3
x x
y y
N 2 N 3 N 2 N 3
dxdy
y y
x x
N 3 N 3 L3 N 3
x x
y y
A e
e 2
4A
sim
y2 y3 y3 y1 x3 x2 x1 x3 y2 y3 y1 y2 x3 x2 x2 x1
y3 y1 2 x1 x3 2
y3 y1 y1 y2 x1 x3 x2 x1 dxdy
y1 y2 2 x2 x1 2
A e
4 A e
sim
y2 y3 y3 y1 x3 x2 x1 x3 y2 y3 y1 y2 x3 x2 x2 x1
y3 y1 2 x1 x3 2
y3 y1 y1 y2 x1 x3 x2 x1
y1 y2 2 x2 x1 2
2
9
1 f1
f
2 2
3 f3
4 f4
5 f5
6 f6
f
7 7
8 f8
f
9 9
10 f10
The need of integrating the shape functions and their derivatives over
the domain in connection with the use of quadratic basic elements
leads to the use of the natural (local) coordinates, which allows for an
element based integration that simplifies the calculations
The natural triangular system of reference is defined with the linear
dependent coordinates L1, L2, and L3
3
L1
A1
A
L2
A2
A
L3
L1 L2 L3 1
A2 A1
P
A3
A3
A
where Ai is the area defined by the point P and the opposite side
(The shape functions for the triangular linear element would be)
N i Li
i 1,2,3
4
6
x2 , y 2
x
x3 , y3
x1 , y1
It is more convenient to express the shape functions in terms of the local (or
natural) coordinates which are referred to every single basic element.
L1 L2 L3 1
L1+L2=1
L1
(1,0)
1 1 L1
f x, y dxdy
0 0
1 1 L1
J f x, y dL2 dL1
0 0
g L1 , L2 dL2 dL1
x, y N11 N 2 2 N 6 6
The shape functions for this triangular quadratic elements result
N i Li 2 Li 1
N 4 4 L1 L2
i 1,2,3
N 5 4 L2 L3 4 L2 (1 L1 L2 ) 1
N 3 1 L1 L2 1 2 L1 2 L2 N 6 4 L1 L3 4 L1 (1 L1 L2 )
4
4
4
4
4
4
4
3
8
If we had used the natural coordinates for the linear elements, the
shape functions would have been
1 xj
N i Li
1
1 xk
2A
1 x
N i x, y Li x, y
yj
2A
yk i
2A
y
1
x j yk xk y j xy j yk yxk x j
2A
A2 A1
P
A3
Or in matrix form
L1
x2 y3 x3 y2
1
L
2 2 A x3 y1 x1 y3
L3
x1 y2 x2 y1
y2 y3 x3 x2 1
y3 y1 x1 x3 x
y1 y2 x2 x1 y
1 1
x x
1
y y1
1
x2
y2
1 L1
x3 L2
y3 L3
1 x1
1
A 1 x2
2
1 x3
y1
y2
y3
x
( x2 x3 )
L2
y
( y1 y3 )
L1
y
( y 2 y3 )
L2
2A
x y
x y
2A
L1 L2 L2 L1
N N j N i N j
N i N j N i N j
J dL2 dL1
dxdy i
A Aij
y y
y y
x x
x x
Ne Ne Ne Ne Ne Ne Ne Ne
1 1
1 2 1 2
1 1
y y
x x y y
x x
e
e
e
e
N N N N Ne Ne Ne Ne
2 1 2 1
2 2 2 2
A J
x x
y y
x x y y
e e
e
e
e
e
e
e
N6 N1 N6 N1 N6 N2 N& N2
x x y y
y y
x
x
Ne Ne Ne Ne
1 6 1 6
x x y y
Ne Ne Ne Ne
2 6 2 6
dL dL
x x y y 2 1
e
e
e
e
N N N N
6
6
6
6
x x y y
)
x
J L1 L2 L2 L1
N i 1
N x N i x
( i
)
J
L1 L2 L2 L1
y
Because
N i N i x N i y
x L1 y L1
L1
N i N i x N i y
x L2 y L2
L2
)
x
J L1 L2 L2 L1
N i 1
N x N i x
( i
)
J
L1 L2 L2 L1
y
f L , L , L d w f L , L , L
n
Triang. Coord.
Weights
Linear (O(h2))
1 1 1
, ,
3 3 3
Quad, (O(h3))
1 1
, ,0
2 2
1
3
1 1
0, ,
2 2
1 1
,0 ,
2 2
1
3
1
3
i 1
i
1
i
2
i
3
11
1
1
1 1
1 1
0
0
f
L
,
L
,
L
f
,
,
f
,0 ,
1
2
3
2 3
2
2
2
2
2 2
N i N j N i N j
dL2 dL1
A e Aij
dxdy 2 A i
x
x x
x
y
y
y
y
x
1 1 L1
L
A e 2 Ae 2
x
0 0
L3
x
L1 L1 L1
x y y
L1 L2 L1
x y y
L1 L3 L1
x y y
L1
x
L2
x
L3
x
L2 L1 L2
x y y
L2 L2 L2
x
y y
L2 L3 L2
y y
x
L1
x
L2
x
L3
x
L3 L1 L3
x y y
L3 L2 L3
dL2 dL1
x
y y
L3 L3 L3
x y y
4 A2
sim
y2 y3 y3 y1 x3 x2 x1 x3 y2 y3 y1 y2 x3 x2 x2 x1 1 1 L
y3 y1 2 x1 x3 2
y3 y1 y1 y2 x1 x3 x2 x1 dL2 dL1
0 0
y1 y2 2 x2 x1 2
dL dL L
1
1 L1
2 0
L12
1
dL1 1 L1 dL1 L1
0
2 0 2
A
4 A e
sim
y2 y3 y3 y1 x3 x2 x1 x3 y2 y3 y1 y2 x3 x2 x2 x1
y3 y1 2 x1 x3 2
y3 y1 y1 y2 x1 x3 x2 x1
y1 y2 2 x2 x1 2
which, as can be seen gives the same result as the one obtained with
the global linear coordinates
(-1,1)
(-1,-1)
(1,1)
(1,-1)
, N , j
h
j 1
where the quadrilateral natural coordinates are given by the lines that
join the midpoints of opposite lines
The shape functions for this triangular quadratic elements result
1
N 1 1 1
4
N2
1
1 1
4
1
N 3 1 1
4
N4
1
1 1
4
(-1,1)
(-1,-1)
(1,1)
(1,-1)
f x, y dxdy f x, y J dd g , dd
where the jacobian determinant is
J
x y x y
J
x
N i 1 N i x N i x
J
y
where Cartesian and natural coordinates are related as follows
4
x N k xk
i 1
y N k yk
k 1
N k
x
xk
N k
x
xk
N k
y
yk
N k
y
yk
A Aij
N i N j N i N j
dxdy
x
y y
x
N e N e
1 1
x x
N e N e
2 1
x x
A J
e e
N3 N1
x x
N e N e
4 1
x x
N i N j N i N j
J dd
y y
x x
N e N e N e N e N e N e N e N e N e N e N e N e N e N e
1 1
1 2 1 2
1 3 1 3
1 4 1 4
y y
x x
y y
x x
y y
x x
y y
N e N e N e N e N e N e N e N e N e N e N e N e N e N e
2 2 2 2
2 3 2 3
2 4 2 4
2 1
y y
x x
y y
x x
y y
x x
y y
dd
N e N e N e N e N e N e N e N e N e N e N e N e N e N e
3 2 3 2
3 3 3 3
3 4 3 4
3 1
y y
x x
y y
x x
y y
x x
y y
N e N e N e N e N e N e N e N e N e N e N e N e N e N e
4 2 4 2
4 3 4 3
4 4 4 4
4 1
y y
x x
y y
x x
y y
x x
y y
1
J
N i
N i
yk
k 1
x
k 1
N k N i
N k N i
x
K 1
yk
K 1
N k
N k N j
N j
x
k 1
yk
k 1
N k N j
N k N j
x
K 1
N k
y
K 1
dd
N k
f , dd H H f
1
1 1
j i
Hi=Hj
2.0
0.57735
1.0
0
0.77459
0.88888
0.55555
i 1 j 1
,i
-1
-1
The governing equation of the two dimensional potential flow is therefore given by
2 2
2 2 0
x
y
2
in
Newman Vn nx n y V0
n
in
in 2
were nx and ny are the direction cosines of the outward unit vector n to 2
x, y N i x, y ie
i 1
3.- Set the integral of the weighted (with weights equal to the interpolation
functions (Galerkin)) residue over the regions of the elements equal to zero
2 e 2 e
I Ni
d 0
2
2
x
y
i=1,2,,p
N i e N i e
e
e
nx
n y d 0
d N i
x x
y y
y
x
e
e
x 2
xL
dxdy udv dy
x x
yT
N i
I
N
dy
this results in
i
yB x x
x x dxdy
L
and therefore
yT
yB
xR
I Ni
dy
d
xR
v dx
x x
x
u Ni
with
dy nx d
N i
nx d
d
x x
x
2 e
N i e
e
e N i x 2 d e x x d e N i x nx d 0
or
Carrying out the same procedure for the derivatives with respect to y
y
e
e
e
x
1 2
2
N i e N i e
e x x y y d e N iV0 d2
2
therefore, the Newman boundary conditions are naturally introduced
K e
In matrix form
with
B B d
T
V0 N d2
2
where
N1
x
B N
1
y
N 2
x
N 2
y
N 3
x
N 3
y
N 2 N 2
1 1
x y
T
B B
sim.
N1 N 2 N1 N 2
x x
y y
N 2 N 2
x
y
K P
N1 N 3 N1 N 3
x x
y y
N 2 N 3 N 2 N 3
x x
y y
2
2
N 3 N 3
x
y
for a linear triangular basic element the elementary stiffness matrix results in
1
ai bi x ci y
Ni
2A
bi2 ci2
1
K e B T B d
4 Ae
sim
b b
b
i
j
2
j
ci c j
c 2j
bibk ci ck
b b
b
j
c
c
k
j k
2
2
k ck
1
V
s
e
0 ij
P V0 N d2
1
2
2
0
T
when the fluid is entering the edge ij of length sij with a velocity V0 normal to the
edge
If the fluid is entering the edges jk or ik the elementary vectors are
0
V
s
e
0 jk
1
P
2
1
1
e V s
P 0 ik 0
2
1
Let us apply the so-obtained formulation to the obtaining of the confined flow
around a cylinder. Due to its symmetry, the domain can be chosen to be a forth
of the total area
n 0
2
3
4
2
3
1
n 1
11
12
13
10
12
8
9
8
13
10
11
n 0
For the nodes coordinates shown the node-1 basic stiffness matrices are
obtained as
5
Nodo
9.17
12
9.17
5.5
12
5.5
10
11
12
9.17
2.83
13
12
5
6
1
5
6
1
Notes
As the potentials 4= =0, the corresponding rows and columns can be
eliminated from the system of equations to be solved for 1, 5, ,
9, , 12.
The velocity can be obtained as a post-process value making
ui j
j i
x j xi
x
vi j
j i
y j yi
y
Up to this point some simple flow problems have been solved, but there are
many flow problems in which the Navier-Stokes equations have to be solved
The Navier-Stokes equations present two important problems that did not
arise before i.e.:
The presence an heterogeneous set of unknowns (velocity and pressure) that
requires special treatment.
This has to do with the verification of the continuity equation and causes
instabilities in the pressure field, no matter the Reynolds number is.
Therefore a proper combination of the velocity and pressure field is required
unless special formulation to circumvent this is added
The non-linear convective term appears, turns the stiffness matrix into a nonsymmetric one and leads to a certain amount of instability.
The Galerkin formulation lacks stability when convective effects dominate (this
is for large Reynolds numbers, Re=uL/v) and alternative stabilizing techniques
have to be used (Petrov-Galerkin, Characteristics Galerkin, GLS, SUPG, Finite
Increment Calculus, Bubble functions,...)
u p
Some kind of functions to which the velocity and pressure fields must belong
to are presented
L2
H k
L20
H 01
where Ni are the shape functions defined on a local basis for each element
and where the coefficients i are the unknowns for each of the nodes
G ud g ud
m
e 1
G j d e g j d
u i ,t u j u i , j
p,i ui , jj f i 0
ui ,i 0
Multiplying the equation by the weighting functions and integrating within the
domain, it is obtained
1
wi u i ,t u j u i , j p,i u i , jj f i d 0
qu
i ,i
d 0
if these integral expressions are verified for any wi, q, then, the differential
equations will be satisfied within the whole domain
2 ui 2 ui
wi ui , jj d wi 2 2
y
x
ui
dxdy udv dy
x x
u wi
ui
u
dx i
x x
x
ui
wi
dy
yB
x
xL
xR
yT
wi
ui
n x d
x
n
xL
d
xR
wi ui
dxdy
x x
wi ui
d
x x
dy
yT
yB
dy n x d
wi
ui
y y
wi
ui
n y d
y
wi ui
d
y y
therefore
wi ui , jj d wi , j ui , j d wi ui , j n j d
wi p,i d
wi ,i pd
w pn d
i
The stationary formulation that also ignores the convective terms gives
wi , j ui , j d
wi ,i pd wi f i d ti wi d2
2
qu
i,i
d 0
ui 1 bi
q Q
wi V
ij n j ti
2
or in vectorial notation
u : wd
pwd w f d t wd2
qud 0
B x T
B x u f x
B y v f y
p
where
Aij
wi N j wi N j
d
x x y y
Bxij
f xi wi f xi d wi t xi d
e
wi
j d
x
B yij
wi
j d
y
f yi wi f yi d wi t yi d
e
As stated before, the selection of the basic functions N and is not trivial, as it
involves different types of equations and unknowns
The matrix expression of the stationary flow results into
K
T
B
B u f
0 p 0
nxn
nxm
mxn
dim Q dim V
in other case the range of matrix B would be n (its range cannot be bigger than
n) there would be more equations than unknowns, and the system would be
non-compatible
The sufficient condition is the so called LBB (Ladyzhenskaya -BabuskaBrezzi) condition, that sets that for a given value of regardless of the
mesh size, the existence of an approximate solution (uh, ph), requires an
election for subspaces Vh, Qh, so that
inf sup
q Q
h
wih V h
q h wih,i d
h
i 1
Ku Bp f
BT u 0
solving first equation for u gives
u K 1 f Bp
that once introduced at the second one gives
B K B p B K
T
If the velocity-pressure pair verifies the LBB condition, that is, it ensures
that ker B = 0, the matrix BTK-1B is positive definite, the stiffness matrix
is regular (non-null determinant) and the problem of finding u h V h p h Q h
verifying the equations is univocally determined
We are going to illustrate this condition with some particular examples
of velocity-pressure pairs. After that, the most popular pairs for fluid
problems will be presented
In order to do so the particular case of a square domain of n by n nodes
(like the one being used to evaluate the cavity flow) will be presented
400
Level
19
18
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
350
300
250
200
150
100
vel
0.95
0.9
0.85
0.8
0.75
0.7
0.65
0.6
0.55
0.5
0.45
0.4
0.35
0.3
0.25
0.2
0.15
0.1
0.05
50
0
50
100
150
200
250
300
350
400
450
500
1
2
3
:
..
..
2
3
:
..
2
3
:
..
2
3
:
wi ui ,t u j ui , j f i d wi , j ui , j d
qu
i,i
wi ,i pd t i wi d2 0
2
d 0
wi V
q Q
u i x j ,0 u i 0 x j
ui 1 bi
or in vector notation
1
w
u
u
f
d
u
:
w
d
qud 0
pw d ti wi d2 0
2
When the transient convective flow is being used, a finite different approach can
be considered to integrate the differential equation. The derivatives with respect to
time can be taken as
n n 1
M
M
t
t
where n 1 are the velocities obtained for the previous temporal step
1
1
n
n
n
n 1
M C u n , v n A Bp n f
M
t
t
BT 0
n
When the convective term is included a non-linear convective term is obtained that
can be evaluated making use of Newton-Raphson or a successive approximation
technique, the former leading to
C u n , v n C u n 1 , v n 1
n
where u n 1 , v n 1 are the velocities obtained for the previous convection step and
can be estimated as zero for the first step
1
1
n
n
n
n 1
M C u n 1 , v n 1 A Bp n f M
t
t
BT 0
n
For each time step the iterations for convection should be carried out
When the transient and convective flows are taken into account it is obtained
n
n 1
n 1
M u C u , v
1
vn
t
p n
B x T
C u n 1 , v n 1
u n
v n
p n
n 1
B x u n f x
M u
1
v n1
M
B y v n f y
t
n
n
1
p
p
where
M ij wi N j d
e
N j
N j
d
N k vk
Cij wi N k uk
x
y
The direct solvers are one-step methods that give an exact solution to the
systems. Nevertheless, the memory requirements involved are very high even
with skyline storing and specially for fluids
The sparse storage allows to drop all the non-zero elements but cannot be used
in combination with a direct solver due to the fact that some elements could be
thrown out of the sparse stencil
The row-indexed sparse storage mode requires a memory space of only twice the
number of the non-zero matrix elements uses an integer pointer vector (p) and a
real vector (v), where the sparse elements are loaded
An iterative solver of the Kryliov type, such as the (PBCG or the GMRES) can be
used in connection with the sparse matrix storing
400
400
350
350
300
300
250
250
200
200
150
150
100
100
50
50
50
100
150
200
250
300
350
400
450
500
Level
19
18
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
50
100
150
200
250
300
350
400
450
vel
0.95
0.9
0.85
0.8
0.75
0.7
0.65
0.6
0.55
0.5
0.45
0.4
0.35
0.3
0.25
0.2
0.15
0.1
0.05
500
Re = 10000
55
66
66
66
55
14
61732
15
111
54
5
55
400
16
1101
9
8 9
33
300
350
5 5
44
200
5
4
100
3
5
1.2
1
0.8
Ghia 129x129
Present 41x41
0.6
0.4
0.2
50
55
150
66
6
6
07
0
250
Level
h
19
0.0380309
18
0.0350167
17
0.0320026
16
0.0289885
15
0.0259744
14
0.0229602
13
0.0199461
12
0.016932
11
0.0139179
10
0.0109037
9
0.00788962
8
0.0048755
7
0.00186137
6
-0.000170322
5
-0.00115275
4
-0.00286752
3
-0.00416688
2
-0.00550366
1
-0.0062906
100
200
300
400
500
-0.5
0.5
1.5
5
4
3
2
1
0
10
15
20
25
30
35
40
45
50
8
7
VEL
0.937568
0.875064
0.812559
0.750055
0.68755
0.625046
0.562541
0.500036
0.437532
0.375027
0.312523
0.250018
0.187514
0.125009
0.0625046
5
4
3
2
1
0
10
20
30
40
50
8
7
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
5
4
25
30
15
11
11
11
10
99 9
7
88
99
10
4 4
5
15
20
14
8
99
13
10
11
1515
14
13 13
15
12 12 12 12
10
4
3
11
10
4
5
3344 5
5
3
2 3 4
2
1
35
40
45
50
-0.00618127
-0.0126782
-0.0191752
-0.0256722
-0.0321692
-0.0386661
-0.0451631
-0.0516601
-0.0581571
-0.064654
-0.071151
-0.077648
-0.084145
-0.0906419
-0.0971389
s3
s2
s1
Reattachment length s3
30
25
20
s3 Armaly exp
s3 Armaly cal
15
Present
10
5
0
0
200
400
600
800
1000
1200
1400
ui ,i p
where tends to zero, and drive it into the dynamic equation to obtain
1
(
u
w
f
w
i , j i , j i i ui ,i wi ,i )d 0
equation that does not depend upon the pressure unknown, so avoiding the
problems found in the mixed formulation
c max ,Re
with c=107
h
h
h h
h
h
h
w
u
u
u
w
u
i
i
t
j
i
j
i
i
j
i
,
,
,
, j d
or in matrix notation
M
1
C u, v A B f
t
u A u 1 B x
M u Cu, v
T
M t v
Cu, v v A v D
D u f x
B y v f y
M u n C u n , v n
M n
u n A u n 1 B x
T
C u n , v n v n A v n D
M ij wi N j d
e
Aij
wi N j wi N j
d
x x y y
Bxij
wi N j
d
y y
f xi wi f xi d wi t xih d
e
D u n f x 1 M u n 1
B y v n f y t M v n 1
N j
N j
d
N k vk
Cij wi N k uk
B yij
wi N j
d
x x
Dij
wi N j
d
x y
f yi wi f yi d wi t yih d
e
0
t
x
y
2u 2u C w a W Wx gn 2 V u
u
u
h
u
u
v
g
f c v 2 2
H
H h4 3
t
x
y
x
2 v 2 v Cw a W W y gn 2 V v
v
v
h
v
u v g
f c u 2 2
H
H h4 3
t
x
y
y
Following a similar procedure as the one carried out for the 2D laminar equations
in the continuity equation it is obtained
h uH vH
0
t
x
y
qh Hu d 0
,t
i ,i
qh d q Hu d qHu d
,t
,i
qh
,t
Hq,i ui d qHu N d
u
v
x
y
H
H h4 3
y
x
t
x
2 v 2 v Cw a W W y gn 2 V v
v
v
v
h
u v g
f c u 2 2
t
x
y
y
H
H h4 3
w u
h
i
h
i ,t
B x u f x
u A
Cu, v
A
B
C
u
v
y v f y
h D x h D y h h f h
N j
N j
d
Cij wi N k u k
N k vk
e
Bxij g
f xi wi S xi d wi t xi d
e
wi
j d
x
Dxij H k k
e
Aij
wi N j wi N j
d
x x y y
B yij g
i
N j d
x
wi
j d
y
D yij H k k
e
f yi wi S yi d wi t yi d
e
i
N j d
y
f hi qi Hu N d
e