Professional Documents
Culture Documents
Solution of Navier-Stokes
Equations for
Incompressible Flows Using
SIMPLE and MAC
Algorithms
6.1 Introduction
In Cartesian coordinates, the governing equations for incompressible three-
dimensional flows are
∂u ∂v ∂w
+ + =0 (6.1)
∂x ∂y ∂z
1
6.2 Computational Fluid Dynamics
= u velocity
= v velocity
variables with same = p pressure
indices staggered
11111
00000
main control volume
00000
11111
000001111
111110000
11111 00000
11111
000001111
0000
00000
11111
v velocity control
0000
1111
00000
11111
u volumes
0000
1111
00000
11111
Y
00000
11111
∂u ∂(u)2 1 ∂ 2 u ∂ 2u
∂(uv) ∂p
+ + + = + 2
∂t ∂x ∂y ∂x Re ∂x2 ∂y
6.4 Computational Fluid Dynamics
1111111
0000000
φ i−1,j 0000000
1111111
φ φ i+1,j
0000000
1111111
U i−1,j i,j U i,j U i+1,j
0000000
1111111
0000000
1111111
v, j, y V i,j−1
V i−1,j−1 V i+1,j−1
0000000
1111111
U i−1,j−1 φi,j−1 U i,j−1 U i+1,j−1
u, i, x
+ pn+1 n+1
i+1,j − pi,j ∆y = 0 (6.6)
where E 1 and F 1 are defined as
1 ∂u
E 1 = u2 −
Re ∂x
and
1 ∂u
F 1 = uv −
Re ∂y
E 1 and F 1 are axial and transverse fluxes of x-momentum.
Thus
1 2 1 (ui+1,j − ui,j )
Ei+ 1
,j = 0.25 (ui,j + ui+1,j ) −
2 Re ∆x
Solution of Navier-Stokes.. 6.5
1 2 1 (ui,j − ui−1,j )
Ei− 1
,j = 0.25 (ui−1,j + ui,j ) −
2 Re ∆x
1 1 ui,j+1 − ui,j
Fi,j+ 1 = 0.25 (vi,j + vi+1,j ) (ui,j + ui,j+1 ) −
2 Re ∆y
1 1 ui,j − ui,j−1
Fi,j− 1 = 0.25 (vi,j−1 + vi+1,j−1 ) (ui,j−1 + ui,j ) −
2 Re ∆y
The linearized form of these equations are
n+1 n+1
1 ui+1,j − ui,j
1
uni,j uni+1,j un+1 un+1
Ei+ 1 = 0.25 + i,j + i+1,j −
2 ,j Re ∆x
n+1 n+1
1 ui,j − ui−1,j
1
uni−1,j uni,j un+1 un+1
Ei− 1 = 0.25 + + −
i−1,j i,j
2 ,j Re ∆x
n+1 n+1
1 n n
n+1 n+1
1 ui,j+1 − ui,j
Fi,j+ 1 = 0.25 vi,j + vi+1,j ui,j + ui,j+1 −
2 Re ∆y
n+1 n+1
1 ui,j − ui,j−1
1 n n
un+1 un+1
Fi,j− 1 = 0.25 vi,j−1 + vi+1,j−1 i,j−1 + i,j −
2 Re ∆y
v v
i,j i+1,j
u i−1,j p u
i,j
p
i+1,j
u i+1,j
i,j
y
v v i+1,j−1
i,j−1
x
X
In the above equation, aunb un+1
nb signifies all the convective and diffusive
contributions from the neighboring nodes (un+1 n+1 n+1 n+1
i+1,j , ui−1,j , ui,j+1 , ui,j−1 and their
u u
coefficients). The coefficients ai,j and anb contain grid sizes, and the solution of
u and v at nth time level. The term bu equals −∆x∆y uni,j /∆t. In the following
sub-section, equation (6.6) has been written term by term so that aui,j , aunb and
bu in equation (6.7) can be clearly determined.
Equation (6.6) can be expanded as
∆x∆y n+1 ∆x∆y n
ui,j − ui,j +
∆t ∆t
∆y ∆y
un+1
i,j
n n
0.25(ui,j + ui+1,j )∆y + n+1 n n
+ ui+1,j 0.25(ui,j + ui+1,j )∆y −
Re∆x Re∆x
∆y ∆y
−un+1
i,j
n n
0.25(ui−1,j + ui,j )∆y − n+1 n n
− ui−1,j 0.25(ui−1,j + ui,j )∆y +
Re∆x Re∆x
∆x ∆x
+un+1
i,j 0.25(v n
i,j + v n
i+1,j )∆x + + u n+1
i,j+1 0.25(v n
i,j + v n
i+1,j )∆x −
Re∆y Re∆y
∆x
−un+1
i,j 0.25(v n
i,j−1 + v n
i+1,j−1 )∆x − − u n+1 n n
i,j−1 0.25(vi,j−1 + vi+1,j−1 )∆x
Re∆y
∆x
+ pn+1 n+1
+ i+1,j − pi,j ∆y = 0
Re∆y
or,
∆x∆y
+ 0.25(uni,j + uni+1,j )∆y − 0.25(uni−1,j + uni,j )∆y + 0.25(vi,j
n n
+ vi+1,j )∆x
∆t
∆y ∆y ∆x ∆x
n
−0.25(vi,j−1 + n
vi+1,j−1 )∆x + + + + un+1
Re∆x Re∆x Re∆y Re∆y i,j
∆y ∆y
+un+1
i+1,j 0.25(u n
i,j + u n
i+1,j )∆y − + u n+1
i−1,j 0.25(u n
i−1,j + u n
i,j )∆y −
Re∆x Re∆x
∆x
+un+1
i,j+1 0.25(v n
i,j + v n
i+1,j )∆x − + u n+1 n n
i,j−1 −0.25(vi,j−1 + vi+1,j−1 )∆x
Re∆y
∆x ∆x∆y n
ui,j + ∆y pn+1 n+1
− − i+1,j − pi,j =0
Re∆y ∆t