You are on page 1of 6

International Journal of Heat and Mass Transfer 106 (2017) 177–182

Contents lists available at ScienceDirect

International Journal of Heat and Mass Transfer


journal homepage: www.elsevier.com/locate/ijhmt

Modification of SIMPLE algorithm to handle natural convection flows


with zero-isothermal compressibility
Yutaka Asako a,⇑, Mohammad Faghri b
a
Department of Mechanical Precision Engineering, Malaysia-Japan International Institute of Technology, University Technology Malaysia, Jalan Sultan Yahya Petra, 54100
Kuala Lumpur, Malaysia
b
Department of Mechanical, Industrial and System Engineering, University of Rhode Island, Kingston, RI 02881-0805, USA

a r t i c l e i n f o a b s t r a c t

Article history: The conventional SIMPLE algorithm for the pressure–velocity coupling has been adopted by many com-
Received 15 July 2016 mercial and non-commercial CFD codes. It encounters convergence problem when it is used to solve
Received in revised form 2 September 2016 unsteady natural convection flows with zero-isothermal compressibility. In this paper, a modified version
Accepted 15 October 2016
of this algorithm is proposed to remedy this drawback. The modification includes updating of the density
at each time step based on its value at the previous time step to satisfy the continuity equation. As an
example of utilizing the modified SIMPLE algorithm, the unsteady natural convection in a rectangular
Keywords:
cavity with isothermal vertical walls and adiabatic horizontal walls was computed. Physically consistent
SIMPLE
Non-Boussinesq approximation
results were obtained.
Isothermal compressibility Ó 2016 Published by Elsevier Ltd.

1. Introduction for an unsteady forced convection in a duct. The treatment of the


outflow boundary is modified for the variable density. However,
The SIMPLE algorithm [1] for the pressure–velocity coupling has a careful search of the literature failed to disclose any prior work
been adopted by many commercial and non-commercial CFD codes on a natural convection with variable density in a cavity.
such as FLUENT, Star-CD, Phoenix, OpenForm, etc. Both steady and This study deals with the modification of SIMPLE algorithm for
unsteady natural convection in a cavity are solved by this algo- natural convection for an idealized fluid in a cavity with non-zero
rithm by using the Boussinesq approximation. This approximation isobaric compressibility (coefficient of thermal expansion),
ignores the density changes except for the density that appears in ð@ q=@TÞp =q, but with zero-isothermal compressibility,
the buoyancy term. It also assumes the density has a linear depen- ð@ q=@pÞT =q:
dence on temperature. Therefore, Boussinesq approximation is not The ratio of isothermal to isobaric compressibility for an ideal
suitable for simulation of natural convection problems with large gas can be expressed as T=p. This ratio is about 0.003 under atmo-
temperature changes [2,3] and also large density changes that exist spheric pressure and temperature conditions (105 Pa and 300 K).
in super critical fluids near pseudo-critical points. Recently, there For water, this ratio is about 1.6  106 [5]. However, for super
has been renewed interest in applications which require precise critical water it is about 3  106 and is about 6  106 for carbon
solutions of natural convection in fluids with large variations in dioxide near the pseudo-critical point [5]. Therefore, zero-
density. A numerical simulation using a non-Boussinesq approxi- isothermal compressibility can be assumed under these conditions.
mation is required where the variable density in all the terms must
be considered. There is no difficulty in taking into account the vari-
ations in density in the buoyancy term instead of using the 2. An example problem using SIMPLE algorithm
assumption of the linear dependence on temperature. However,
if the variable density is taken into account in all the terms, the To demonstrate the convergence problem of SIMPLE algorithm,
SIMPLE algorithm encounters a convergence problem when it is consider an unsteady natural convection in a rectangular cavity
used to solve unsteady forced convection problems. Matsushita with vertical isothermal walls and horizontal adiabatic walls as
[4] proposed a modification of the outflow boundary condition shown in Fig. 1. All the temperatures are maintained at TC in the
initial state. There is no driving force acting on the fluid and there-
fore the fluid is assumed to be initially stationary. At t = 0, the tem-
⇑ Corresponding author. perature of the left vertical wall (hot wall) is suddenly raised to TH
E-mail addresses: y.asako@utm.my (Y. Asako), faghrim@uri.edu (M. Faghri). from TC in a stepwise fashion.

http://dx.doi.org/10.1016/j.ijheatmasstransfer.2016.10.052
0017-9310/Ó 2016 Published by Elsevier Ltd.
178 Y. Asako, M. Faghri / International Journal of Heat and Mass Transfer 106 (2017) 177–182

Nomenclature

a coefficient of discretization equation Greek


b source term of discretization equation b volume expansivity (1/K)
Cp specific heat (W/(kg K)) / dependent variable
Ga Galilei number (–) k thermal conductivity (W/(m K))
H height of cavity (m) l viscosity (Pa s)
L width of cavity (m) m kinetic viscosity (m2/s)
p pressure (Pa) h dimensionless temperature (–)
P dimensionless pressure (–) q density (kg/m3)
Pr Prandtl number (–) q⁄ dimensionless density (–)
RC normalized residual of continuity equation s dimensionless time (–)
RU, RV normalized residual of U and V
Smax maximum of rate of mass imbalance in each control Subscript
volume C cold wall
Ssum rate of mass imbalance in cavity e, w, n, s control-volume faces
t time (s) H hot wall
u, v velocity components (m/s) nb neighbor-point
U, V dimensionless velocity components (–) P central grid point
V volume integral (m3) ref reference
x, y coordinates (m)
X, Y dimensionless coordinates (–)

Fig. 2. q=q300 as a function of T.

carbon dioxide at 8 MPa are also plotted in this figure as a refer-


ence. As can be seen in this figure, the density change of super crit-
ical carbon dioxide near the pseudo-critical point is large.
Under these assumptions, the variable density needs to be
Fig. 1. Natural convection in a rectangular cavity. taken into account for all the terms and the continuity and the
momentum equations can be expressed as:

2.1. Governing equations @ q @ qu @ qv


þ þ ¼0 ð2Þ
@t @x @y
The flow in the rectangular cavity is assumed to be two-    
dimensional. It is further assumed that all the fluid properties @ qu @ quu @ quv @p @ @u @ @u
þ þ ¼ þ l þ l
except the density are constant and also the fluid density is only @t @x @y @x @x @x @y @y
 
a function of temperature as l @ @u @ v
þ þ ð3Þ
const: 3 @x @x @y
q¼ ð1Þ
T    
@ qv @ quv @ qvv @p @ @v @ @v
The density at a reference temperature, Tref, is denoted by qref þ þ ¼ þ l þ l
@t @x @y @y @x @x @y @y
and the density ratio is expressed as q=qref ¼ T ref =T. The density  
l @ @u @ v
ratio, q=q300 is plotted as a function of T for T ref ¼ 300 K in þ þ qg ð4Þ
3 @y @x @y
Fig. 2. The variations of the density ratio of water and super critical
Y. Asako, M. Faghri / International Journal of Heat and Mass Transfer 106 (2017) 177–182 179

The specific enthalpy is expressed as a function of temperature 2.3. Numerical computation


and pressure as (e.g. [6])
The governing equations were discretized using the control vol-
1  bT
dh ¼ C p dT þ dp ð5Þ ume based power-law scheme of Patankar [1]. All the computa-
q tions were performed with (122  122) grid points. The grid
where b is the coefficient of thermal expansion and is expressed as points were non-uniformly distributed with high concentration
  of the grids close to the walls. The cell size was gradually increased
1 @q
b¼ ð6Þ from the wall in a power-law spacing fashion [7]. The selected
q @T p index of the power-law spacing was 1.4. The grid size effect on
By substituting Eq. (1) into Eq. (6), this coefficient can be deter- the averaged Nusselt number on the hot wall in the steady state
mined to be was investigated for a case of H/L = 2, TH/TC = 1.133, Ga = 5  106
1 and Pr = 2. The corresponding Rayleigh number is about
b¼ ð7Þ 1.3  106. The results are tabulated in Table 1. As can be seen from
T
this table, the grid size effect on Num is small except for the case of
Substituting Eq. (7) into Eq. (5), the specific enthalpy of the fluid
coarse grid (22  22).
can be expressed as
dh ¼ C p dT ð8Þ
2.4. Convergence criterion
Then, the energy equation can be expressed as
   
@ qC p T @ qC p uT @ qC p v T @ @T @ @T The following normalized residuals were widely used for the
þ þ ¼ k þ k ð9Þ
@t @x @y @x @x @y @y convergence criterion [8]. The normalized residual of U, V, h is
expressed as
Both the viscous dissipation and the substantial derivative of
the pressure terms were neglected in Eq. (9) due to low velocities X X
j anb /nb þ b  aP /P j
under consideration.
Using the following dimensionless variables: R/ ¼ cell P nb
X ð17Þ
jaP /P j
x y uL vL p cell P
X¼ ; Y¼ ; U¼ ; V¼ ; P¼ ;
L L m m qC ðm=LÞ2
The normalized residual of the continuity equation is
t T q gL3 v
s¼ ; h¼ ; q ¼ ; Ga ¼ 2 ; Pr ¼ ð10Þ X
ðL =mÞ
2 TC qC m k=ðqC C p Þ jrate of mass creation in cell Pj
the dimensionless forms of the governing equations are: RC ¼ cell P ð18Þ
largest RC in first 5 iteration
@q
@q U @q V  
þ þ ¼0 ð11Þ
@s @X @Y The following rates of mass imbalance are also used for the con-
vergence criterion [1].
@ q U @ q UU @ q VU @P @ 2 U @ 2 U
þ þ ¼ þ þ Smax ¼ max ðjrate of mass creation in cell PjÞ ð19Þ
@s @X @Y @X @X 2 @Y 2
 
1 @ @U @V X
þ þ ð12Þ Ssum ¼ rate of mass creation in cell P ð20Þ
3 @X @X @Y
cell P

@ q V @ q UV @ q VV @P @ 2 V @ 2 V where Ssum expresses the rate of mass imbalance in the cavity and
þ þ ¼ þ þ
@s @X @Y @Y @X 2 @Y 2 this value must be zero if the mass conservation is to be satisfied.
 
1 @ @U @V
þ þ —Ga q ð13Þ
3 @Y @X @Y 2.5. Results for the sample computation
( )
@ q h @ q Uh @ q Vh 1 @2h @2h The sample computation was conducted for the case of H/L = 2,
þ þ ¼ þ ð14Þ TH/TC = 1.133, Ga = 5  106, Pr = 2 with the time interval of
@s @X @Y Pr @X 2 @Y 2
Ds = 104. The convergence criterions used were RU < 105 and
RV < 105. The normalized residuals, RU, RV and RC at s = 104 (the
1
q ¼ ð15Þ first step) are plotted in Fig. 3 as a function of iteration numbers.
h
As can be seen from this figure, although the normalized residuals,
RU and RV, decrease with increasing iteration, the normalized resid-
2.2. Boundary conditions uals of the continuity equation, RC, does not decrease and it

Temperatures of the walls and the fluid are maintained at TC


when t < 0. At t = 0, the temperature of the hot wall is suddenly
raised to TH from TC in a stepwise fashion. Under these assump- Table 1
tions, the dimensionless initial and boundary conditions are Grid size effect on Num.
expressed as: Grids Num Num Num 122122
 100
Num 122122
s<0 : U ¼ V ¼ 0; h ¼ 1 22  22 9.677 0.90%
s P 0; on the hot wall ðX ¼ 0Þ : U ¼ V ¼ 0; h ¼ T H =T C 42  42 9.596 0.06%
82  82 0.04%
s P 0; on the cold wall ðX ¼ 1Þ : U ¼ V ¼ 0; h ¼ 1
122  122
9.587
9.591 –
s P 0; on the horizontal walls : U ¼ V ¼ 0; @h=@Y ¼ 0 162  162 9.594 0.03%
202  202 9.597 0.07%
ð16Þ
180 Y. Asako, M. Faghri / International Journal of Heat and Mass Transfer 106 (2017) 177–182

Fig. 3. Normalized residuals RU, RV and RC at s = 104.

Fig. 4. Rates of mass imbalance Smax and Ssum at s = 104. Fig. 5. Velocity vector and contour of dimensionless density q⁄ at s = 104.

remains constant with increasing iteration. The rate of mass imbal-


ance, Smax and Ssum, are plotted in Fig. 4. As can be seen from this
figure, Smax and Ssum don’t decrease and remain relatively constant
indicating that the mass conservation is not satisfied in the cavity.
The normalized residuals, RU and RV, decrease with increasing iter-
ation, although the mass conservation is not satisfied. It is there-
fore not suitable to use the normalized residuals, RU and RV, for
the convergence criteria.
The velocity vectors and the contour of the density at s = 104
are plotted in Fig. 5. Since the temperature of the hot wall increases
at s = 0, the fluid temperature in a very thin layer near the hot wall
increases. The fluid in the thin layer expands and this results in
decrease of the density. As seen in the figure, the fluid Y = 0.5 flows
upward although the velocity on the walls is zero and the buoy-
ancy force does not work except the thin layer near the hot wall.
The vertical velocity components, V, at Y = 0.988 are plotted in
Figs. 6 and 7 for s = 104 and 103, respectively. As can be seen Fig. 6. Velocity profile at Y = 0.988 and s = 104.
in Fig. 6, the V values in the whole region from hot to cold wall
remain positive at s = 104. In such a case, the mass in the cavity
above Y = 0.988 should increase. However, as seen in Fig. 5, the
fluid density does not increase. Therefore, the velocity profile 3. Modification of SIMPLE
obtained is physically inconsistent. As seen in Fig. 7, the V in the
range of X > 0.1 takes negative value. Note that as time advances, Integrating Eq. (2) over the rectangular cavity, the following
a physically consistent velocity profile is obtained. equation is obtained.
Y. Asako, M. Faghri / International Journal of Heat and Mass Transfer 106 (2017) 177–182 181

4. Results and discussion

A sample computation is performed for the same case as above


using the modified SIMPLE algorithm. The computational parame-
ters were H/L = 2, TH/TC = 1.133, Ga = 5  106, Pr = 2 with the time
interval of Ds = 104. The convergence criterion used was

Fig. 7. Velocity profile at Y = 0.988 and s = 103.

Z Z
@
q dV þ q!
v dS ¼ 0 ð21Þ
@t V S

The second term of the above equation vanishes because the


velocity is zero on the boundary. Therefore, Fig. 8. Normalized residuals RU, RV and RC at s = 104 (modified SIMPLE algorithm).
Z
@ @M
qdV ¼ ¼0 ð22Þ
@t V @t
where M represents the mass of the fluid in the cavity. Eq. (22)
expresses the mass conservation in the cavity. However, in the sam-
ple computation, it is assumed that all the temperatures are main-
tained at TC in the initial state and at t = 0, the temperature of the
hot wall is suddenly raised to TH from TC in a stepwise fashion.
The density of the fluid is only a function of temperature as shown
in Fig. 2 and decreases with increasing temperature. In this condi-
tion, the temperature of the fluid in the cavity increases with time
and this results in a decrease of the fluid density with time. There-
fore, the mass conservation is not satisfied under this condition.
This is the reason a physically unrealistic velocity profile (Fig. 6)
is obtained.
The unsteady term in Eq. (2) is discretized as

@ q q  qold
¼ ð23Þ
@t Dt
The mass in the cavity can be expressed as
X X Fig. 9. Maximum rate of mass imbalance Smax at s = 104 (modified SIMPLE
M¼ qP DV P ; Mold ¼ qold
P DV P ð24Þ algorithm).
cell P cell P

As mentioned above, the mass conservation is not satisfied


under the assumption that the fluid density is only a function of
temperature. Therefore, the mass at the new time step is not equal
to the mass at the old time step. Therefore, the density at the old
time step is modified to satisfy the mass conservation as,
M
qmod ¼ qold ð25Þ
M old
The modified density at the old time step is used for the pres-
sure correction. The source term of the discretized pressure correc-
tion equation is expressed as

qmod  qP
b ¼ qw uw Aw  qe ue Ae þ qs v s As  qn v n An þ P
DV P ð26Þ
Dt
where u and v  represent the velocity components obtained using
the guessed pressure [1]. It is noteworthy that a physically consis-
tent result can be obtained in a case of steady state computation,
since the unsteady term of Eq. (2) vanishes and there is no need
to modify the density. Fig. 10. Comparison of velocity profile at Y = 0.988 and s = 104.
182 Y. Asako, M. Faghri / International Journal of Heat and Mass Transfer 106 (2017) 177–182

5. Conclusions

A modified SIMPLE algorithm for the fluids with zero-


isothermal compressibility was presented in this paper.

(1) The modification of the density at the old time step was nec-
essary. Physically consistent results were obtained when Eq.
(25) was used to modify the density.
(2) The normalized residual of the continuity equation, RC, or
the maximum rate of mass imbalance, Smax, must be used
for the convergence criterion in the SIMPLE algorithm.

Acknowledgement

The authors would like to thank Dr. Yutaka Okubo, the presi-
dent of Digital Flow Co. Ltd., for valuable discussion on the conver-
Fig. 11. Comparison of velocity profile at Y = 0.988 and s = 103.
gence criterion.

References
RC < 109. The normalized residuals, RU, RV and RC at s = 104 (the
[1] S.V. Patankar, Numerical Heat Transfer and Fluid Flow, Hemisphere Publishing
first step) are plotted in Fig. 8 as a function of iteration numbers.
Corporation, New York, 1980, ISBN: 0-89116-522-3.
The normalized residuals of the continuity equation, RC, decreases [2] D.D. Gray, L. Giorgini, Validity of the Boussinesq approximation for liquids and
when the modified density is used. The rate of mass imbalance in gases, Int. J. Heat Mass Transfer 19 (1975) 545–551.
the cavity, Ssum, takes a value around 1013. The maximum rate of [3] S. Paolucci, On the Filtering of Sound from the Navier-Stokes Equations, Sandia
National Laboratories, 1982, SAND82-8257.
mass imbalance, Smax is plotted in Fig. 9. The Smax also decreases [4] Y. Matsushita, Outflow boundary condition in the finite volume method for
with increasing iteration. Therefore, Smax or RC should be used for unsteady-state fluid flow computation with variable density, Comput. Therm.
the convergence criteria. The RU and RV are not suitable for the con- Sci. 3 (6) (2011) 531–537.
[5] PROPATH group, PROPATH: A Program Package for Thermo-physical Properties
vergence criterions. of Fluids, Version 13.1, 2008.
The vertical velocity component, V, at Y = 0.988 are plotted in [6] Y.A. Cengel, M.A. Boles, Thermodynamics, McGraw-Hill Inc, New Jersey, 1994,
Figs. 10 and 11 for s = 104 and 103, respectively. The velocity ISBN: 0-07-113249-X.
[7] S.V. Patankar, Computation of Conduction and Duct Flow Heat Transfer,
profiles obtained by the conventional SIMPLE are also plotted in Innovative Research Inc, Minnesota, 1991.
these figures. As can be seen in Fig. 10, the velocity profile obtained [8] ANSYS Inc., ANSYS Fluent 12.0 Use’s Guide, 2009.
by the modified SIMPLE algorithm is physically consistent, even at
s = 104. As time advances, the difference between the two results
decreases.

You might also like