Professional Documents
Culture Documents
Chapter 6 PDF
Chapter 6 PDF
Chapter 6 PDF
Ib hi Sezai
Ibrahim S i
Department of Mechanical Engineering
Eastern Mediterranean University
Fall 2010-2011
Introduction
The convection of a scalar variable depends on the
magnitude and direction of the local velocity field.
How to find flow field?
Momentum equations can be derived from the
general transport equation (2.39)
( )
+ div( u) = div( grad ) + S (6.1)
t
by replacing the variable by u, v and w.
Let us consider the equations governing a two-
dimensional, steady flow:
ME555 : Computational Fluid Dynamics 2 I. Sezai Eastern Mediterranean University
1
Introduction
X-momentum equation
u u
( uu ) + ( vu ) = + + su (6.2)
x y x x y y
Y-momentum equation
v v
( uv) + ( vv) = + + sv (6.3)
x y x x y y
Continuity equation
( u ) + ( v) = 0 (6.4)
x y
su = p / x for x-momentum equation
q
sv = p / y for y-momentum equation
The convective terms contain non-linear quantities.
All three equations are intricately coupled.
There is no equation for pressure.
ME555 : Computational Fluid Dynamics 3 I. Sezai Eastern Mediterranean University
A checker-board
pressure field
2
pE + pP pP + pW
p pe pw
2 2
= =
x x x
p pW
= E
2 x
p pN pS
=
y 2 y
The pressure at the central node (P) does not appear in above
equations. This gives zero pressure gradients at all nodal points
indicating uniform pressure field. Not realistic.
Solution: Use a staggered grid system for the velocity components.
That is: evaluate scalar variables (p, , T) at ordinary nodal points.
But calculate velocity components (u, v) at cell faces which are
staggered relative to nodal points.
p pP pS
=
y yv
3
Non-staggered (Collocated) Grid System
The non-staggered grid system is complicated for unstructured or
body-fitted mesh systems.
Also, the storage of u,v,w and Pressure to four different locations is
inefficient.
In non-staggered grid system all variables are stored at the same
location (point P).
e y wy
aE = + max [ Fe , 0] , aW = + max [ Fw , 0]
xe xw
n x s x
aN = + max [ Fn , 0] , aS = + max [ Fs , 0]
yn ys
aP = aE + aW + aN + aS sP xy + F ,
F = Fe Fw + Fn Fs ,
S = sc xy + Sdc
Sdc = max [ + Fe , 0] (e P ) + max [ Fe , 0] (e E ) (6.6)
max [ Fw , 0] (w P ) + max [ + Fw , 0] (w W )
max [ + Fn , 0] (n P ) + max [ Fn , 0] (n N )
max [ Fs , 0] (s P ) + max [ + Fs , 0] (s S )
Fe = ( u )e y, Fw = ( u )w y, Fn = ( v )n x, Fs = ( v ) s x,
4
The momentum equations
bP = SM momentum source term
The coefficients aP, aE, aW aN and aS may be
calculated by upwind, hybrid or QUICK methods.
Sdc is the source term resulting from the adoption of
the deferred correction method when any high order
convection scheme, such as QUICK, is used in
estimating the cell face value f.
The coefficients aE, aW etc. contain:
1) Convective flux per unit mass F
2) Diffusive conductance D
at control volume faces.
ME555 : Computational Fluid Dynamics 9 I. Sezai Eastern Mediterranean University
new = + (1 ) n 1 (6.7)
5
Separating the pressure gradient term from the source term,
S = b + P
where
b = source term excluding the pressure gradient term
p
P = V = [( pe pw ) / x]V = ( pe pw )y ffor x-momentum
t equation
ti
x
p
P = V = [( pn ps ) / y ]V = ( pn ps ) x for y-momentum equation
y
Equation (6.8) becomes
P
P = ( aEE + aW W + aNN + aSS + bP ) + (1 ) Pn1 +
aP aP
P (6.9)
(6 9)
= ( aEE + aW W + aNN + aSS + BP ) +
aP aP
BP = bP +
(1 ) a
n 1
(6.10)
P P
(a )u
P P (a )
u
P P
u ( i ai ui + B p ) E u y ( pe pw ) E (6 12)
(6.12)
uE =
(a )
u
P E (a )
u
P E
6
Momentum interpolation method (MIM)
i ai ui + B p +
i ai ui + B p +
i ai ui + B p
a u = fe
a u + 1 fe (
aPu
) (6.14)
P e P E P
1 1 1
= f e+ (
+ 1 f e+ )
( ) aPu
e
(a )u
P E ( )
aPu
P
(6.15)
y ( e w )P
p p
E
(6.16)
(6 16)
linear interpolation term + 1 f e
+ u
( )
14444444
aPu
P
4244444444
( ) 3
correction term
The correction term has the function of smoothing the pressure field
(remove the unrealistic pressure field).
ME555 : Computational Fluid Dynamics 13 I. Sezai Eastern Mediterranean University
Fe = ( uA)e , Fw (i, j ) = Fe (i 1, j )
ue = from MIM, e = f e+ E + (1 f e+ ) f P
e = f e+ E + (1 f e+ ) P n = f n+ N + (1 f n+ ) P
e Ae e Ae
De = , Dn = , Dw (i, j ) = De (i 1, j ), Ds (i, j ) = Dn (i, j 1)
xe xe
7
If a property is unknown at a cell face then a suitable two-
point average is used.
ue,vn, etc. in fluxes Fe, Fn,at cell faces are calculated
using MIM
MIM.
The variables e, n, etc. at cell faces in the deferred
correction term Sdc (Eqn.(6.6) ) are calculated using a
convection scheme such as UPWIND or QUICK.
During each iteration the u and v velocity component in F
are those
th obtained
bt i d ffrom previous
i iteration.
it ti
Hence, coefficients ae, an, are calculated using the u and
v values from previous iteration.
8
The SIMPLE Algorithm
SIMPLE (Semi-Implicit Method for Pressure-Linked
Equations)
For a guessed pressure field p* the corresponding face
Eq (6.13)
velocity can be written using Eq. (6 13) as
u ( i ai ui* + B p ) u y ( pE* pP* )
u =
* e
+ (1 u )uen 1 (6.17)
e
(a ) u
P e (a )
u
P e
Let p', u', v' be the correction needed to correct the guessed pressure
and velocity fields, i.e.
p = p* + p (6.19)
ue = ue* + ue ((6.20))
vn = vn* + vn (6.21)
Subtraction of eqn. (6.17) from (6.13) gives
u ( i ai ui + B p )e u y ( pE pP )
ue = (6.22)
(a )
u
P e (a )u
P e
As an approximation,
approximation in SIMPLE method the first term in the above
equation is neglected giving
ue = deu ( pP pE ) (6.23)
where u Ae
d eu = , Ae = y (area of CV at face e)
(a )
u
P e
ME555 : Computational Fluid Dynamics 18 I. Sezai Eastern Mediterranean University
9
Similarly
v An
vn = d nv ( pP pN ) d nv =
(a )
v
P n
(6.24)
Then the corrected velocities become
ue = ue* + deu ( pP pE ) (6.25)
vn = vn* + d nv ( pP pN ) (6.26)
Discretizing the continuity equation (6.4) gives
( ue )y ( uw )y + ( vn )x ( vs )x = 0 (6.27)
aP pP = aW pW + aE pE + aS pS + aN pN + b (6.28)
where
aE = ( Ad )e aW = ( Ad ) w aN = ( Ad ) n aS = ( Ad ) s
aP = aw + ae + as + an 6.29)
(
b = u* A ) (
w
) (
u * A + v* A v* A
e
) (
s
) n
10
Similarly the nodal velocities are corrected using
uP = uP* + d Pu ( pw pe ) (6.31)
vP = v + d
*
P
v
P ( ps pn ) (6.32)
where
u Ae v An
d Pu = and d Pv =
(a )
u
P P (a )
v
P P
The pressure corrections at the cell faces appearing in Eqs. (6.31) and
(6.32) are calculated by linear interpolation from the nodal values as
pw = f w+ pP + (1 f w+ ) pW (6.33)
pe = f e+ pE + (1 f e+ ) pP (6.34)
ps = f s+ pP + (1 f s+ ) pS (6.35)
pn = f n+ pN + (1 f n+ ) pP (6.36)
ME555 : Computational Fluid Dynamics 21 I. Sezai Eastern Mediterranean University
11
Boundary Conditions for Pressure Correction Equation
When the velocities at the boundaries are known, there is no need to
correct the velocities at the boundaries in the derivation of the
pressure correction equation. For example if the velocity at the west
boundary is known then for a control volume near the west boundary:
ue = ue* + deu ( pP pE ) uw = uwall
vn = vn + d n ( pP pN )
* v vs = vs* + d sv ( pS pP )
Substituting above equations into the discretized continuity equation
(6.27) we obtain the following pressure correction equation for a
control volume near the west boundary
aP pP = aW pW + aE pE + aS pS + aN pN + b (6.37)
where aE = ( Ad )e aW = 0 aN = ( Ad ) n aS = ( Ad ) s
( ) ( ) (
b = ( uA )wall u * A + v* A u * A
e sn
)
(6.38)
This formulation corresponds to Neuman b.c. (p /n = 0) where n is
normal to boundary.
ME555 : Computational Fluid Dynamics 23 I. Sezai Eastern Mediterranean University
12
The SIMPLE Algorithm
Step 1: Solve the discretized momentum equations
u
aP
v
(1 ) aP (1 )
u P = i ai ui + bp + ( Pw Pe ) Ax + aPu u n 1 vP = i ai vi + bp + ( Ps Pn ) Ay + aPv v n 1
Step 2: Calculate interface velocity ue (Eqns (6.16)) and similarly calculate vn
y ( pE pP ) u y ( pe pw ) E u y ( pe pw ) P
( )
ue = f e+ u E + 1 f e+ u P + u + f e+ (
+ 1 f e+ )
( )
aPu
e
( )
aPu
E
( )
aPu
P
Use this velocity to find flux terms, Fe, Fw, etc
However, e corresponding to ue in Sdc term (Eqn. 6.6) is found from a convection
scheme such as upwind or QUICK.
Step3: Solve pressure correction equation (6.28)
aP pP = aW pW + aE pE + aS pS + aN pN + b
Step 4: Correct pressure and velocities at points P using Eqns (6.30), (6.31), (6.32)
p = p* + p p uP = uP* + d Pu ( pw pe ) vP = vP* + d Pv ( ps pn )
Step 5: Correct face velocities using equations (6.25) and (6.26):
ue = ue* + d eu ( pP pE ) vn = vn* + d nv ( pP pN )
Step 6: Solve all other discretized transport equations (i.e. temperature)
aP P = aEE + aW W + aNN + aSS + bP
Step 7: Repeat step 1 to 7 until convergence.
13