Professional Documents
Culture Documents
Downloaded 14 Mar 2007 to 136.142.156.50. Redistribution subject to AIP license or copyright, see http://pof.aip.org/pof/copyright.jsp
042101-2 P. Yuan and L. Schaefer Phys. Fluids 18, 042101 共2006兲
The local mass density and the local momentum den- where w␣ is the weighting factor, c = ␦x / ␦t is the lattice
sity u are obtained from speed, and ␦x is the lattice constant.
N N In this research, we use the D2Q9 and D3Q19 models
= 兺
␣=0
f␣ = 兺
␣=0
f ␣eq , 共2a兲 for the 2D and 3D simulations, respectively. The weighting
factor and discrete velocity for these two models are given
below:
N N D2Q9:
u = 兺 f ␣e␣ = ␣兺=0 f ␣eqe␣ , 共2b兲
冦 冧
␣=0 共0,0兲, ␣ = 0;
e␣ = 共±1,0兲c,共0, ± 1兲c, ␣ = 1,2,3,4; 共4a兲
where u is the macroscopic velocity.
In LB simulations, the D2Q9 model with nine velocity 共±1, ± 1兲c, ␣ = 5,6,7,8.
directions on the two-dimensional 共2D兲 square lattice has
冦 冧
been widely used for 2D flow. For simulating three- 4/9, ␣ = 0;
dimensional 共3D兲 flow, there are several cubic lattice models w␣ = 1/9, ␣ = 1,2,3,4; 共4b兲
available, such as the D3Q15, D3Q19, and D3Q27 models. 1/36, ␣ = 5,6,7,8.
The equilibrium PDF for all of the D2Q9, D3Q15, D3Q19,
and D3Q27 models can be expressed in the form D3Q19:
冦 冧
共0,0,0兲, ␣ = 0;
e␣ = 共±1,0,0兲c,共0, ± 1,0兲c,共0,0, ± 1兲c, ␣ = 1,2, . . . ,6; 共5a兲
共±1, ± 1,0兲c,共±1,0, ± 1兲c,共0, ± 1, ± 1兲c, ␣ = 7,8, . . . ,18.
冦 冧
␣ = 0;
1/3, In order to perform the numerical simulation, SC intro-
w␣ = 1/18, ␣ = 1,2, . . . ,6; 共5b兲 duced the concept of the nearest-neighbor interparticle force,
which means that only the interactions between the nearest
1/36, ␣ = 7,8, . . . ,18. neighbors are considered,
= 共 − 1
2 兲 cs2␦t, 共6兲
G共x,x⬘兲 = 再 g, 兩x − x⬘兩 艋 c,
0, 兩x − x⬘兩 ⬎ c,
冎 共8兲
where G共x , x⬘兲 is Green’s function and satisfies G共x , x⬘兲 It should be noted here that although Eq. 共10兲 is derived by
= G共x⬘ , x兲. It reflects the intensity of the interparticle interac- using the interparticle forces of nearest-neighbor sites only in
tion, with G共x , x⬘兲 ⬍ 0 representing attractive forces between SC’s original paper, it can be extended to include other
particles. 共x兲 is called the “effective mass” and is defined as neighboring sites as long as the gradient term ⵜ共x兲 is prop-
a function of x through its dependency on the local density, erly specified. Therefore, for different lattice structures, Eq.
共x兲 = 关共x兲兴. 共10兲 becomes
Downloaded 14 Mar 2007 to 136.142.156.50. Redistribution subject to AIP license or copyright, see http://pof.aip.org/pof/copyright.jsp
042101-3 Equations of state in a lattice Boltzmann model Phys. Fluids 18, 042101 共2006兲
Fint共x兲 ⬵ − c0共x兲g ⵜ 共x兲, 共11兲 generated in the simulation兲, isotropy, and stability of the
scheme can differ considerably for different schemes, espe-
where c0 is the constant depending on the lattice structure. cially for the circular interface. We found that the 20-point
For the D2Q9 and D3Q19 lattices, c0 = 6.0, and for the scheme used in Qian’s paper16 gives the smallest spurious
D3Q15 lattice, c0 = 10.0. currents and better isotropy for the circular interface. How-
An example will be presented for the way to numerically ever, this scheme is computationally more expensive than the
evaluate the gradient term ⵜ共x兲 in a D2Q9 lattice. Suppose six-point scheme 共for the 3D case, it needs 44 neighboring
we use both nearest and next-nearest sites to evaluate this sites兲 and is more complicated when dealing with the wall
gradient term, which gives a six-point scheme for two di- boundary. Therefore, in this paper we use the six-point
mensions, scheme with c1 = 4c2 = 1 / 3 for the D2Q9 model, which can
共i, j兲 provide more isotropy simulation results for a circular inter-
= c1关共i + 1, j兲 − 共i − 1, j兲兴 + c2关共i + 1, j + 1兲 face than any of the other six-point schemes. Since the D2Q9
x
model can be viewed as a 2D projection of the D3Q19
− 共i − 1, j + 1兲 + 共i + 1, j − 1兲 model, if we proceed with the same projection for the gradi-
− 共i − 1, j − 1兲兴, ent term, we will find the corresponding scheme in the
D3Q19 model requires c1 = 2c2 = 1 / 6. The spurious currents
共12兲
produced by these two schemes are at the same level and are
共i, j兲
= c1关共i, j + 1兲 − 共i, j − 1兲兴 + c2关共i + 1, j + 1兲 only slightly higher than that of 20-point scheme.
y The interaction force can be incorporated into the model
− 共i + 1, j − 1兲 + 共i − 1, j + 1兲 by shifting the velocity in the equilibrium distribution. That
means the velocity u in Eq. 共2兲 is replaced by
− 共i − 1, j − 1兲兴,
Fint
where c1 and c2 are weighting coefficients for nearest and ueq = u + . 共15兲
共x兲
next-nearest sites, respectively. For the second-order central
difference scheme, 共i , j兲 / x = 共i + 1 , j兲 − 共i − 1 , j兲 / 2⌬x, Then, by averaging the moment before and after the colli-
since in the LBE method, ⌬x = ⌬y = 1. By averaging terms of sion, the whole fluid velocity U is
next-nearest sites to nearest sites, we found that correct rep-
共x兲U = 共x兲u + 21 Fint . 共16兲
resentation of the gradient term will require c1 + 2c2 = 1 / 2.
Meanwhile, for the purpose of maintaining the isotropy of There are also other approaches for incorporating the inter-
the scheme, the sites used in the calculation of the gradient action force, such as direct body forcing, where the interac-
term should be symmetric about the axes x = i and y = j. Fi- tion is incorporated into the body force term of the Boltz-
nally, we require that c1 ⬎ c2 since, physically, the closer mann equation by adding an additional term after the
sites will have more influence on the interaction. collision process.17,18
Now we examine several schemes used in the literature.
If we set c1 = 4c2, we found that this is essentially the “near- B. Criteria used in evaluating equations of state
est and next-nearest scheme” used in Kang’s paper,13 where
Eq. 共7兲 is used and G共x , x⬘兲 is given by Equations of state attempt to describe the relationship
between temperature, pressure, and volume 共or density兲 for a
冦 冧
g⬘ , 兩x − x⬘兩 = 1, given substance or mixture of substances. If the interaction
G共x,x⬘兲 = g⬘/4, 兩x − x⬘兩 = 冑2, 共13兲 force is given by Eq. 共11兲, then the EOS of the system is
given by
0, otherwise.
c0
The only difference is that g⬘ needs to be rescaled. Compar- p = cs2 + g关共兲兴2 , 共17兲
ing Eqs. 共7兲, 共11兲, and 共12兲, we find that 2
g⬘ = c0c1g = 6 ⴱ 31 g = 2g. 共14兲 where cs is the speed of sound for the LB scheme. For the
D2Q9 and D3Q19 models, cs = 1 / 冑3. If there is no interac-
If we set c1 = 2c2, we can recover another scheme used by tion force, then the fluid will behave like an ideal gas. Theo-
Sukop.14 Again, one only needs to rescale g⬘ accordingly. retically, by changing the form of 共兲, different EOS can be
Using Eq. 共7兲, different forms of G共x , x⬘兲 were proposed in obtained. However, after a thorough review of the literature,
the literature,15 which result in different critical values of g. it appears that all of the papers using the SC model adopted
However, by comparing them with Eq. 共11兲, we can link all only the EOS given in SC’s original paper and no other EOS
of these critical values together. have been utilized. There is also a lack of thorough investi-
In calculating the gradient term, one can include more gations of different EOS for other multiphase LB models.
sites, but by doing so more weighting coefficients need to be Therefore, it is worthwhile to study the performance of the
added in Eq. 共12兲. Determining these additional weighting SC model under different EOS.
coefficients is not straightforward. The “correct” scheme not In this section, we will use the EOS proposed by SC,
only needs to satisfy the above-mentioned criteria, but also referred to as the SC EOS hereafter, to demonstrate the
should generate the same density profiles for the flat inter- criteria related to the evaluation of an EOS. For the
face case. The spurious currents 共the unphysical velocities SC EOS, the effective mass 共兲 is taken to be 共兲
Downloaded 14 Mar 2007 to 136.142.156.50. Redistribution subject to AIP license or copyright, see http://pof.aip.org/pof/copyright.jsp
042101-4 P. Yuan and L. Schaefer Phys. Fluids 18, 042101 共2006兲
Downloaded 14 Mar 2007 to 136.142.156.50. Redistribution subject to AIP license or copyright, see http://pof.aip.org/pof/copyright.jsp
042101-5 Equations of state in a lattice Boltzmann model Phys. Fluids 18, 042101 共2006兲
冑 冉 冊
is consistent with thermodynamics, into the model. This is
because the Maxwell equal-area construction is not satisfied RT
2 − a − cs2
except for one special form of the effective mass, 共兲 1 − b
= 0 exp共−0 / 兲, where 0 and 0 are arbitrary constants. 共兲 = . 共20兲
c 0g
Therefore, to address the applicability of the SC model, it is
important to check the deviation of the coexistence curve The g value becomes unimportant in this case, because un-
obtained from the simulation from the theoretical one that is like in the SC EOS, we have a defined temperature in the
predicted by the Maxwell equal-area construction. vdW EOS. When calculating the interaction force and pres-
Finally, in reality for a vapor-liquid two-phase flow sys- sure using Eqs. 共11兲 and 共17兲, g is canceled out. The only
tem, the density ratio between the liquid and vapor phases requirement for g is to ensure that the whole term inside the
can easily be over 100:1. However, it is difficult for most LB square root is positive. This argument holds for other EOS
schemes to deal with two phases with a high density ratio. also if the temperature is not a function only of g.
For example, as reported in Swift’s paper, the density ratio For the vdW EOS, the critical properties are given by
obtained using the free-energy-based approach is less than
1 a 8a
10:1, and the largest density ratio tested in the HCZ approach c = , pc = , Tc = . 共21兲
is 40:1. Since spurious currents are ubiquitous in the S-C 3b 27b2 27Rb
model 共as well as in many other models兲, increasing the den- In our simulations, we set a = 9 / 49, b = 2 / 21, and R = 1. Then
sity ratio will always result in an increase in the spurious the critical density is c = 7 / 2 and the critical temperature is
current and finally make the simulation unstable. We found Tc = 4 / 7, both of which are in lattice units. In an effort to
that by changing the EOS, one can reach density ratios relate these values to the real physical properties, we use the
higher than 1000:1 with the simulation still stable. We will concept of reduced properties,20
compare the achievable density ratios for different EOS ac-
cordingly. p T
R = , pR = , TR = , 共22兲
c pc Tc
C. Incorporating equations of state
where the subscripts “R” and “c” denote the reduced and
In this paper, we will compare the following EOS: critical properties, respectively. According to the law of cor-
共i兲 SC, responding states, the reduced properties should be the same
共ii兲 vdW, no matter what kind of units are used, therefore, R
共iii兲 Redlich-Kwong 共R-K兲, = Lu / Lu
c = / c , which gives real = Lureal
real real
c / c . Simi-
Lu
real Lu real Lu real Lu real Lu
共iv兲 Redlich-Kwong Soave 共RKS兲, larly, p = p pc / pc and T = T Tc / Tc , where the su-
共v兲 Peng-Robinson 共P-R兲, and perscripts “real” and “Lu” denote real units and lattice units,
共vi兲 Carnahan-Starling 共C-S兲. respectively. In this way, one can easily convert a lattice
property to a real property. The other EOS used in this paper
Except for the SC and C-S EOS, all of the other EOS are are given below:
cubic in form. Furthermore, the vdW and R-K EOS are two- R-K EOS:
parameter EOS, while the RKS and P-R EOS are three-
parameter EOS. RT a2
p= − , 共23兲
The vdW EOS is the simplest and yet most famous cubic 1 − b 冑T共1 + b兲
EOS. Although other modern EOS of only slightly greater
complexity are much more accurate than the vdW EOS, we with a = 0.427 48R2T2.5
c / pc, b = 0.086 64RTc / pc.
include it here to demonstrate some important concepts. RKS EOS:
The vdW EOS is RT a␣共T兲2
p= − , 共24兲
1 − b 1 + b
p=
RT
− a2 , 共18兲 ␣共T兲 = 关1 + 共0.480 + 1.574 − 0.1762兲共1 − 冑T/Tc兲兴2 ,
1 − b
共25兲
Downloaded 14 Mar 2007 to 136.142.156.50. Redistribution subject to AIP license or copyright, see http://pof.aip.org/pof/copyright.jsp
042101-6 P. Yuan and L. Schaefer Phys. Fluids 18, 042101 共2006兲
Downloaded 14 Mar 2007 to 136.142.156.50. Redistribution subject to AIP license or copyright, see http://pof.aip.org/pof/copyright.jsp
042101-7 Equations of state in a lattice Boltzmann model Phys. Fluids 18, 042101 共2006兲
Critical
EOS temperature 共Tc兲 Tmin / Tc 兩us兩max max / min
Downloaded 14 Mar 2007 to 136.142.156.50. Redistribution subject to AIP license or copyright, see http://pof.aip.org/pof/copyright.jsp
042101-8 P. Yuan and L. Schaefer Phys. Fluids 18, 042101 共2006兲
Downloaded 14 Mar 2007 to 136.142.156.50. Redistribution subject to AIP license or copyright, see http://pof.aip.org/pof/copyright.jsp
042101-9 Equations of state in a lattice Boltzmann model Phys. Fluids 18, 042101 共2006兲
IV. DISCUSSION
It has been argued that a serious problem of the SC
model is that one cannot introduce a thermodynamically
well-defined temperature. However, from our simulations,
we can see that by properly choosing the EOS, one can in-
troduce temperature explicitly 共in the SC EOS, there is in-
deed no explicitly defined temperature兲, and also have a co-
existence curve very close to the theoretical prediction,
which is thermodynamically well defined.
FIG. 8. 共Color online兲 Comparison of the vapor branch of the coexistence
curves obtained from simulations with theoretical values for R-K and P-R
EOS. Vapor branch of the coexistence curve of the 共a兲 R-K and 共b兲 P-R
EOS.
ter兲 in this case. The acentric factor for water is 0.344. Figure
11 gives the comparison of the saturated density obtained
from simulations for the R-K and P-R EOS with the experi-
mental data from the steam table. From this comparison with
experimental data, we can see that for the liquid density, the
R-K EOS gives better results, while for the vapor density, the
P-R EOS gives better results. At Tmin, the relative error of the
liquid density is 11.815% for the P-R EOS. However, we still
generally consider the P-R EOS to be superior to the R-K
EOS because the P-R EOS allows for a wider temperature
range and can handle higher density ratios. Furthermore, un-
like the P-R EOS, the R-K EOS is a two-parameter EOS.
Therefore, no matter what fluid is being simulated, it gives
the same coexistence curve for the reduced properties. P-R
EOS is a three-parameter EOS, and the third parameter 共the FIG. 10. 共Color online兲 Comparison of coexistence curves obtained from
acentric factor兲 gives us more flexibility in simulating differ- simulations with theoretical values for P-R EOS with = 0.011.
Downloaded 14 Mar 2007 to 136.142.156.50. Redistribution subject to AIP license or copyright, see http://pof.aip.org/pof/copyright.jsp
042101-10 P. Yuan and L. Schaefer Phys. Fluids 18, 042101 共2006兲
ACKNOWLEDGMENT
This work has been supported by NSF Grant No. CTS-
0238841.
1
S. Chen and G. D. Doolen, “Lattice Boltzmann method for fluid flows,”
Annu. Rev. Fluid Mech. 30, 329 共1998兲.
2
S. Succi, The Lattice Boltzmann Equation for Fluid Dynamics and Beyond
共Oxford University Press, Oxford, UK, 2001兲.
3
S. Hou, X. Shan, Q. Zou, G. D. Doolen, and W. Soll, “Evaluation of two
lattice Boltzmann models for multiphase flows,” J. Comput. Phys. 138,
695 共1997兲.
4
S. Chen, H. Chen, D. Martinez, and W. Matthaeus, “Lattice Boltzmann
model for simulation of magnetohydrodynamics,” Phys. Rev. Lett. 67,
3776 共1991兲.
5
X. Shan and H. Chen, “Lattice Boltzmann model for simulation flows with
multiple phases and components,” Phys. Rev. E 47, 1815 共1993兲.
6
X. Shan and H. Chen, “Simulation of nonideal gases and liquid-gas phase
transitions by the lattice Boltzmann equation,” Phys. Rev. E 49, 2941
共1994兲.
7
X. Shan and G. D. Doolen, “Multicomponent lattice-Boltzmann model
with interparticle interaction,” J. Stat. Phys. 81, 379 共1995兲.
8
FIG. 11. 共Color online兲 Comparison of the saturated density of water ob- M. Swift, W. Osborn, and J. Yeomans, “Lattice Boltzmann simulation of
tained from simulations with experimental data from the steam table for nonideal fluids,” Phys. Rev. Lett. 75, 830 共1995兲.
9
different EOS: 共a兲 Vapor and liquid branch; 共b兲 vapor branch. M. Swift, S. Orlandini, W. Osborn, and J. Yeomans, “Lattice Boltzmann
simulations of liquid-gas and binary-fluid systems,” Phys. Rev. E 54,
5041 共1996兲.
10
R. Nourgaliev, T. Dinh, T. Theofanous, and D. Joseph, “The lattice
In this paper, we have demonstrated the applicability of Boltzmann equation method: Theoretical interpretation, numerics and im-
the LBE method in simulating two-phase flow using a vari- plications,” Int. J. Multiphase Flow 29, 117 共2003兲.
11
ety of EOS. While suitable for some applications, the vdW R. Zhang, “Lattice Boltzmann approach for immiscible multiphase flow,”
Ph.D. thesis, University of Delaware, 2000.
EOS generally does not give satisfactory results. However, 12
X. He and L.-S. Luo, “Theory of the lattice Boltzmann method: From the
the C-S and P-R EOS, which are revisions of the vdW EOS Boltzmann equation to the lattice Boltzmann equation,” Phys. Rev. E 56,
for the hard sphere term and attraction term, respectively, 6811 共1997兲.
13
demonstrate much better performance in terms of spurious Q. Kang, D. Zhang, and S. Chen, “Displacement of a two-dimensional
currents, temperature ranges, and density ratios. Other revi- immiscible droplet in a channel,” Phys. Fluids 14, 3203 共2002兲.
14
M. Sukop and D. Or, “Lattice Boltzmann method for modeling liquid-
sions, such as the R-K and RKS EOS, also give better simu- vapor interface configurations in porous media,” Water Resour. Res. 40,
lation results. Therefore, we can say that as the selected EOS W01509 共2004兲.
becomes more realistic, a better performance will be ob- 15
C. Pan, “Use of pore-scale modeling to understand flow and transport in
tained from the LBE simulation. porous media,” Ph.D. thesis, University of North Carolina at Chapel Hill,
For the coexistence curves, the simulation results of the 2003.
16
D. Qian, “Bubble motion, deformation, and breakup in stirred tanks,”
vdW EOS significantly deviate from the theoretical values. Ph.D. thesis, Clarkson University, New York, 2003.
The simulation results of the R-K, P-R, and C-S EOS fit 17
J. Buick and C. Greated, “Gravity in the lattice Boltzmann model,” Phys.
quite well with the theoretical values, however. Therefore, by Rev. E 61, 5307 共2000兲.
Downloaded 14 Mar 2007 to 136.142.156.50. Redistribution subject to AIP license or copyright, see http://pof.aip.org/pof/copyright.jsp
042101-11 Equations of state in a lattice Boltzmann model Phys. Fluids 18, 042101 共2006兲
18 22
N. S. Martys and H. Chen, “Simulation of multicomponent fluids in com- T. Inamuro, T. Ogata, and F. Ogino, “A lattice Boltzmann method for
plex three-dimensional geometries by the lattice Boltzmann method,” incompressible two-phase flows with large density differences,” J. Com-
Phys. Rev. E 53, 743 共1996兲. put. Phys. 198, 628 共2004兲.
19
P. Yuan and L. Schaefer, “Lattice Boltzmann simulation of two-phase flow 23
T. Lee and C.-L. Lin, “A stable discretization of the lattice Boltzmann
and heat transfer in a rectangular channel,” in Proceedings of the 2004 equation for simulation of incompressible two-phase flows at high density
ASME International Mechanical Engineering Congress 共Fluids Engineer-
ratio,” J. Comput. Phys. 206, 16 共2005兲.
ing Division兲, Anaheim, California, 2004, Vol. 463. 24
20
D. McQuarrie and J. D. Simon, Molecular Thermodynamics 共University T. Lee and C.-L. Lin, “Pressure evolution lattice-Boltzmann-equation
Science, Sausalito, CA, 1999兲. method for two-phase flow with phase change,” Phys. Rev. E 67, 056703
21
T. Inamuro, T. Ogata, and F. Ogino, “Numerical simulation of bubble 共2003兲.
25
flows by the lattice Boltzmann method,” FGCS, Future Gener. Comput. A. J. Chorin, “Numerical solution of the Navier-Stokes equations,” Math.
Syst. 20, 959 共2004兲. Comput. 22, 745 共1968兲.
Downloaded 14 Mar 2007 to 136.142.156.50. Redistribution subject to AIP license or copyright, see http://pof.aip.org/pof/copyright.jsp