Sei sulla pagina 1di 10

Appl. Math. Mech. -Engl. Ed.

, 33(8), 9911000 (2012)


DOI 10.1007/s10483-012-1600-6
c Shanghai University and Springer-Verlag
Berlin Heidelberg 2012
Applied Mathematics
and Mechanics
(English Edition)
Calculation of cell face velocity of non-staggered grid system

Wang LI ( )
1
, Bo YU ( )
1
, Xin-ran WANG ()
1
,
Shu-yu SUN ()
2
( 1. Beijing Key Laboratory of Urban Oil and Gas Distribution Technology,
China University of Petroleum, Beijing 102249, P. R. China;
2. Computational Transport Phenomena Laboratory, Division of Physical Science
and Engineering, King Abdullah University of Science and Technology,
Thuwal 23955-6900, Kingdom of Saudi Arabia)
Abstract In this paper, the cell face velocities in the discretization of the continu-
ity equation, the momentum equation, and the scalar equation of a non-staggered grid
system are calculated and discussed. Both the momentum interpolation and the linear
interpolation are adopted to evaluate the coecients in the discretized momentum and
scalar equations. Their performances are compared. When the linear interpolation is used
to calculate the coecients, the mass residual term in the coecients must be dropped
to maintain the accuracy and convergence rate of the solution.
Key words collocated grid, staggered grid, momentum interpolation
Chinese Library Classication O302, O357.1
2010 Mathematics Subject Classication 65M12, 76D05
1 Introduction
The momentum interpolation method and its various modied versions for non-staggered
grids are now being widely employed in the computational heat transfer
[110]
, for which the
unphysical checkerboard pressure can be prevented and the calculation coding can be made
more easily for a non-staggered grid than for a staggered grid, especially for an unstructured
grid. The usually momentum interpolation is used to calculate the cell face velocity at any
occasion. Date
[1112]
stated that the problem of the checkerboard prediction of pressure could
be eliminated by interpolating the pressure-gradient in the nodal momentum equations while
the cell face velocity was still evaluated by linear interpolation. Wang et al.
[13]
and Nie et
al.
[14]
calculated the cell face velocity on a collocated grid system by utilizing the momentum
interpolation and the linear interpolation in the continuity equation and the momentum equa-
tion, respectively, and they obtained satisfactory results. The use of the linear interpolation in
the momentum equation and the scalar equation can simplify the coding. But the dierence
between the linear interpolation and the momentum interpolation employed in these equations
has not been claried. In this study, we adopted both the momentum interpolation and the lin-
Received Nov. 28, 2011 / Revised Mar. 31, 2012
Project supported by the National Natural Science Foundation of China (Nos. 51176204 and
51134006)
Corresponding author Bo YU, Professor, Ph. D., E-mail: yubobox@cup.edu.cn
992 Wang LI, Bo YU, Xin-ran WANG, and Shu-yu SUN
ear interpolation to evaluate the coecients in the discretized momentum and scalar equations,
and compare their performances on the numerical accuracy and convergence rate.
2 Discretization of governing equation
For simplicity, a two-dimensional general incompressible governing equation listed below is
considered to illustrate the numerical discretization of the transport equation,
(u)
x
+
(v)
y
=

x

+

y

+ S

, (1)
where is any dependent variable, u and v are the velocity components in the x- and y-
directions, and , , and S represent the density, the diusion coecient, and the source term,
respectively. A nite volume method is used to discretize the governing equation. Integrating
Eq. (1) over a control volume as shown in Fig. 1, we have

n
s

e
w
(u)
x
dxdy +

e
w

n
s
(v)
y
dydx
=

n
s

e
w

dxdy +

e
w

n
s

dydx +

n
s

e
w
S

dxdy. (2)
Fig. 1 Non-staggered grid arrangement
The diusion term is discretized by the central dierence scheme, and the source term is
treated by linearization. The discretized equation can be obtained as follows:
((u)
e
(u)
w
)y + ((v)
n
(v)
s
)x
=


e
(x)
e
(
E

P
)

w
(x)
w
(
P

W
)

y +


n
(y)
n
(
N

P
)

s
(y)
s
(
P

S
)

x + (S
C
+ S
P

P
)xy. (3)
Calculation of cell face velocity of non-staggered grid system 993
By rearranging the above equation, we obtain the following discretized algebraic equation:
A
P

P
= A
E

E
+ A
W

W
+ A
N

N
+ A
S

S
+ b
P
, (4)
where

A
E
=

e
y
(x)
e
+ max((u)
e
y, 0),
A
W
=

w
y
(x)
w
+ max((u)
w
y, 0),
A
N
=

n
x
(y)
n
+ max((v)
n
x, 0),
A
S
=

s
x
(y)
s
+ max((v)
s
x, 0),
A
P
= A
E
+ A
W
+ A
N
+ A
S
+ A
b
S
P
xy,
A
b
= (u)
e
y (u)
w
y + (v)
n
x (v)
s
x,
b
P
= S
C
xy + b
1
,
b
1
= max((u)
e
y, 0)(
e

P
) + max((u)
e
y, 0)(
e

E
)
max((u)
w
y, 0)(
w

P
) + max((u)
w
y, 0)(
w

W
)
max((v)
n
x, 0)(
n

P
) + max((v)
n
x, 0)(
n

N
)
max((v)
s
x, 0)(
s

P
) + max((v)
s
x, 0)(
s

S
).
Here, u
e
, u
w
, v
n
, and v
s
are the interface values which can be evaluated by the dierence
schemes, e.g., the central dierence scheme and the QUICK scheme
[15]
. b
1
results from the
adoption of the deferred-correction procedure
[16]
. For the momentum equation, the pressure
gradient term is included in S
C
.
The continuity equation can be discretized as follows:
(u)
e
y (u)
w
y + (v)
n
x (v)
s
x = 0. (5)
From Eqs. (4) and (5), we can clearly see that the cell face velocities (u
e
, u
w
, v
n
, and v
s
)
are used in the continuity equation, in the cell face ow rate computation for the determination
of the coecients in the discretization equation, and in the calculation for the mass residual
A
b
in the coecient A
P
. We can use both linear interpolation and momentum interpolation to
calculate the cell face velocity. The expressions of u
e
are
u
e
= f
+
e
u
E
+ (1 f
+
e
)u
P
. (6)
The momentum interpolation is
[1]
u
e
=

i
A
i
u
i
+ b
P

e
(A
P
)
e

u
y(p
E
p
P
)
(A
P
)
e
, (7)
where

f
+
e
=
x
2(x)
e
,
1
(A
P
)
e
= f
+
e
1
(A
P
)
E
+ (1 f
+
e
)
1
(A
P
)
P
,

i
A
i
u
i
+ b
P
A
P

e
= f
+
e

i
A
i
u
i
+ b
P
A
P

E
+ (1 f
+
e
)

i
A
i
u
i
+ b
P
A
P

P
.
994 Wang LI, Bo YU, Xin-ran WANG, and Shu-yu SUN
It should be emphasized that if momentum interpolation is used in the continuity equation
while linear interpolation is used to determine the coecients of the discretization equation,
due to the inconsistence, A
b
is not zero.
All cell face velocities of the control volumes are often calculated by the momentum interpo-
lation method when the pressure-velocity coupling computation is conducted under collocated
grids
[110]
. Recently, Wang et al.
[13]
and Nie et al.
[14]
used linear interpolation to determine the
coecients in the discretization equation. Apparently, the utilization of linear interpolation can
simplify coding. However, the eects of this treatment on the accuracy and convergence rate
have not been illustrated in these papers. To clarify the eects, both momentum interpolation
and linear interpolation are utilized to evaluate the coecients in the discretized momentum
and scalar equations, and their performances are compared. For the comprehensive compar-
ison, we design ve practices named A, B, C, D, and E as shown in Table 1. In the design
of practices, A
b
is treated in two manners, i.e., remain and dropped. From Table 1, it is seen
that in all the practices, momentum interpolation is used in the continuity equation to prevent
the unphysical pressure eld, while either momentum interpolation or linear interpolation is
employed for the momentum equation or the scalar equation. Apparently, the mass residual
term (A
b
) has great eects on the solution, especially for the computation with coarse meshes.
Table 1 Interface velocity interpolation method and disposal of A
b
Practice Continuity equation Momentum equation Scalar/energy equation A
b
A MI MI MI Remain
B MI MI LI Dropped
C MI LI LI Dropped
D MI MI LI Remain
E MI LI LI Remain
*MI represents momentum interpolation; LI represents linear interpolation
3 Results and discussion
We compare the performances of ve practices (A, B, C, D, and E) in two computational
examples. The rst example is a lid-driven cavity ow
[17]
, which is shown in Fig. 2. The walls
are held at a constant scalar = 100 and the dimensionless diusion coecient is set as 1/Re
where the Reynolds number Re is dened by Re = U
lid
L/. The other example is a mixed
convection example, whose schematic diagram is shown in Fig. 3. The side length of the cavity
is L = 1.0 m, while the left and right temperatures are 1

and 0

, respectively. Both the bottom


Fig. 2 Lid-driven cavity ow Fig. 3 Schematic diagram of mixed convection
Calculation of cell face velocity of non-staggered grid system 995
and the top walls are thernmally insulated. The non-slip boundary condition is employed for all
the walls. The lid velocity is 1.0 m/s. The Reynolds number Re, the Prandtl number Pr, and
the Grashof number Gr are set as 10
3
, 0.71, and 10
6
, respectively. The semi-implicit method
for pressure-linked equations (SIMPLE) is used to couple the velocity and pressure, and the
QUICK scheme is employed for the convective term in those computational examples.
In the rst example, the calculations are carried out for Re = 100 and Re = 1 000, and two
sets of uniform grids, i.e., 13 13 and 41 41, are employed. Apparently, for the lid-driven
cavity ow with the uniform scalar boundary condition, it is expected that the uniform scalar
eld should be 100 by solving the scalar equation. Uniform elds can be obtained by practices
A, B, and C. Therefore, it is not necessary to show their scalar contours. Figures 47 show the
scalar contours of practices D and E. It can be clearly seen that unphysical non-uniform elds
are predicted by the two practices, and both the Reynolds number and the grid size have an
important eect on the scalar eld. For the grid of 1313, the scalar eld is further non-uniform
with larger Reynolds numbers and wider scalar distribution in a wider range. When the mesh is
denser, the scalar eld becomes much uniform, but it still greatly deviates the real eld. These
unphysical predictions are due to the non-zero mass residual term A
b
. For practices A, B, and
C, A
b
is always equal to zero, either automatically for practice A or compulsively for practices
B and C. Therefore, reasonable results are obtained by the three practices.
Fig. 4 Contours of for practice D with Re = 100
Fig. 5 Contours of for practice D with Re = 1 000
996 Wang LI, Bo YU, Xin-ran WANG, and Shu-yu SUN
Fig. 6 Contours of for practice E with Re = 100
Fig. 7 Contours of for practice E with Re = 1 000
Moreover, Figs. 8 and 9 show the scalar proles along the vertical centerline of the square
cavity. For dierent Reynolds numbers and dierent grid numbers, the scalar values for practices
A, B, and C are all exactly 100, but the scalar values for practices D and E have large oscillations.
The oscillation produced by practice E is more serious because the mass residual term in this
case is not equal to zero in the discrtized coecients for both the momentum equation and the
scalar equation.
The convergence process of the continuity equation, the U momentum equation, the V
momentum equation, and the scalar equation are shown in Figs. 1013, in which R
m
, R
U
, R
V
,
and R

present the residuals of the continuity equation, the U momentum equation, the V
momentum equation, and the scalar equation, respectively. As it can be seen, the convergence
rates of practices A, B, and C are almost the same and are much faster than those of practices
D and E, especially for larger Reynolds numbers. This indicates that A
b
aects not only the
solution but also its convergence rate. When A
b
= 0, either automatically or compulsively, the
convergence rate is similar regardless of the interpolation used in the momentum and scalar
equations.
In the second example, four sets of uniform grids, i.e., 1212, 22 22, 42 42, and 6262,
Calculation of cell face velocity of non-staggered grid system 997
are employed for the calculation. When we calculate the example by using the 12 12 mesh,
practices A, B, and C are convergent with the relaxation factor of 0.5, practice D is convergent
when the relaxation factor is below 0.1, while practice E is divergent in any relaxation factor.
Fig. 8 proles along vertical cavity centerline for dierent practices with grid of 13 13
Fig. 9 proles along vertical cavity centerline for dierent practices with grid of 41 41
Fig. 10 Convergence curves of continuity equation for dierent practices with grid of 13 13
998 Wang LI, Bo YU, Xin-ran WANG, and Shu-yu SUN
Fig. 11 Convergence curves of U momentum equation for dierent practices with grid of 13 13
Fig. 12 Convergence curves of V momentum equation for dierent practices with grid of 13 13
Fig. 13 Convergence curves of scalar equation for dierent practices with grid of 13 13
When we calculate the example by using the grids of 2222, 4242, and 6262, practices A,
B, C, D, and E are all convergent with the relaxation factor of 0.5. Figure 14 shows the Nusselt
number on the left wall of practices A, B, C, D, and E, from which it can be observed that
the Nusselt number is reasonable for practices A, B, and C while is unreasonable for practices
D and E. The only dierence between practices D, E and practices B, C is that A
b
does not
compulsively set to be zero. Therefore, the unreasonable solution must be caused by A
b
.
Calculation of cell face velocity of non-staggered grid system 999
Fig. 14 Distribution of Nusselt number on left wall
4 Conclusions
In the discretization of governing equations, the calculation of the cell face velocity is often
encountered. In this paper, its treatment in various situations is discussed on a collocated
grid system. It is found that momentum interpolation should be always used to calculate the
cell face velocity in the discretized continuity equation to prevent the checkerboard pressure
eld, while both momentum interpolation and linear interpolation can be used in the other
discretization equations. When linear interpolation is utilized to obtain the cell face velocity,
employed to calculate the coecients of other equations, mass conservation cannot be satised
which results in an additional mass residual term in the coecients. Due to the eect of the
mass residual term, the convergence rate decreases and the solutions accuracy deteriorates. If
the mass residual term in the coecients is enforced to be zero, both the convergence rate and
the solution accuracy are the same as those obtained by the use of momentum interpolation.
In a word, on a collocated grid system, linear interpolation can be used to calculate the cell
face velocity in the momentum equation and other scalar equations on the condition that the
mass residual term is forced to be zero. This treatment simplies coding, and maintains the
solution accuracy and convergence rate.
References
[1] Rhie, C. M. and Chow, W. L. A numerical study of the turbulent ow past an isolated airfoil with
trailing edge separation. AIAA Journal, 21(11), 15251552 (1983)
[2] Peric, M. A Finite Volume Method for the Prediction of Three-Dimensional Fluid Flow in Complex
Ducts, Ph. D. dissertation, University of London, UK (1985)
[3] Majumdar, S. Development of a Finite-Volume Procedure for Prediction of Fluid Flow Problems
with Complex Irregular Boundaries, SFB-210/T-29, University of Karlsruhe, Germany (1986)
[4] Peric, M., Kessler, R., and Scheuerer, G. Comparison of nite-volume numerical methods with
staggered and collocated grids. Computers and Fluids, 16(4), 389403 (1988)
[5] Majumdar, S. Role of underrelaxation in momentum interpolation for calculation of ow with
non-staggered grids. Numerical Heat Transfer, Part B, 13(1), 125132 (1988)
[6] Rahman, M. M., Miettinen, A., and Siikonen, T. Modied simple formulation on a collocated grid
with an assessment of the simplied QUICK scheme. Numerical Heat Transfer, Part B, 30(3),
291314 (1996)
[7] Choi, S. K. Note on the use of momentum interpolation method for unsteady ows. Numerical
Heat Transfer, Part A, 36(5), 545550 (1999)
[8] Barton, I. E. and Kirby, R. Finite dierence scheme for the solution of uid ow problems on non-
staggered grids. International Journal of Numerical Methods in Fluids, 33(7), 939959 (2000)
1000 Wang LI, Bo YU, Xin-ran WANG, and Shu-yu SUN
[9] Yu, B., Kawaguchi, Y., Tao, W. Q., and Ozoe, H. Checkerboard pressure predictions due to the
under-relaxation factor and time step size for a nonstaggered grid with momentum interpolation
method. Numerical Heat Transfer, Part B, 41(1), 8594 (2002)
[10] Yu, B., Tao, W. Q., Wei, J. J., Kawaguchi, Y., Tagawa, T., and Ozoe, H. Discussion on momentum
interpolation method for collocated grids of incompressible ow. Numerical Heat Transfer, Part
B, 42(2), 141166 (2002)
[11] Date, A. W. Solution of Navier-Stokes equations on non-staggered at all speeds. International
Journal of Heat and Mass Transfer, 36(4), 19131922 (1993)
[12] Date, A. W. Complete pressure correction algorithm for solution of incompressible Navier-Stokes
equations on a non-staggered grid. Numerical Heat Transfer, Part B, 29(4), 441458 (1996)
[13] Wang, Q. W., Wei, J. G., and Tao, W. Q. An improved numerical algorithm for solution of
convective heat transfer problems on non-staggered grid system. Heat and Mass Transfer, 33(4),
273288 (1998)
[14] Nie, J. H., Li, Z. Y., Wang, Q. W., and Tao, W. Q. A method for viscous incompressible ows
with simplied collocated grid system. Proceedings of Symposium on Energy and Engineering in
the 21st Century, 1, 177183 (2000)
[15] Leonard, B. P. A stable and accurate convective modeling procedure based on quadratic upstream
interpolation. Computer Methods in Applied Mechanics and Engineering, 19(1), 5998 (1979)
[16] Khosla, P. K. and Rubin, S. G. A diagonally dominant second-order accurate implicit scheme.
Computers and Fluids, 2(2), 207218 (1974)
[17] Botella, O. and Peyret, R. Benchmark spectral results on the lid-driven cavity ow. Computers
and Fluids, 27(4), 421433 (1998)

Potrebbero piacerti anche