Professional Documents
Culture Documents
net/publication/12291961
CITATIONS READS
324 2,433
2 authors, including:
James M Buick
University of Portsmouth
69 PUBLICATIONS 1,653 CITATIONS
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
Development and assessment of a haemodynamic based numerical model for stenosis growth in the carotid artery View project
All content following this page was uploaded by James M Buick on 09 June 2014.
I. INTRODUCTION Each link has length c and direction ei , i⫽1, . . . ,b. In prac-
tice the grid is either a two-dimensional hexagonal grid 关5兴
A recent development in the computational study of fluids (D⫽2, b⫽6) or a four-dimensional face-centered hypercu-
has been the lattice Boltzmann model 关1–4兴 which has de- bic lattice 关17,18兴 (D⫽4, b⫽24). The technique involves
veloped from the lattice-gas automata 关5兴. This has been simulating the Boltzmann equation 关19,20兴
used successfully to simulate many problems including mag-
netohydrodynamics 关6兴, turbulence 关7,8兴 colloidal suspen- f i 共 r⫹ei ,t⫹1 兲 ⫺ f i 共 r,t 兲 ⫽⍀ i 共 r,t 兲 . 共1兲
sions 关9兴, and multiphase flow 关10–12兴. Lattice Boltzmann
simulations have traditionally been performed on a regular The functions f i (r,t), i⫽1, . . . ,b are the distribution func-
grid, however, it has recently been shown that, with the in- tions along the b links at position r and time t. The fluid
clusion of an interpolation step, the technique can be applied density, , and velocity, u, can be found from the distribu-
on an irregular grid with the introduction of only a small tion functions as
error 关13兴.
There is a wide range of fluid problems in which gravity
and buoyancy effects are significant, for example, the study ⫽ 兺i f i and u ␣ ⫽ 兺i f ie i␣ , 共2兲
of water waves 关14–16兴. In this paper we consider the inclu-
sion of a body force in the lattice Boltzmann scheme. We where we have used the notation (ei ) ␣ ⫽e i ␣ . The collision
begin by describing the lattice Boltzmann model and show- term, ⍀ i (r,t), is usually taken to be the single relaxation
ing that the model does indeed mimic the Navier-Stokes time or Bhatnagar-Gross-Krook 共BGK兲 operator 关21,6兴
equation. Different methods for implementing gravity into
the model are then considered and their ability to satisfy the 1
Navier-Stokes equation is assessed. A number of simulations ⍀ i 共 r,t 兲 ⫽⫺ 关 f i 共 r,t 兲 ⫺ f̄ i 共 r,t 兲兴 , 共3兲
involving gravity are presented to verify the theoretical con-
clusions.
Here we are concerned with simulating gravity in the in- where f̄ i is the equilibrium distribution function and is the
compressible limit of a linearly varying density. In this limit relaxation time, where ⬎1/2. The form of this equilibrium
we require gzⰆc s2 , where g is the gravitational strength, z is distribution function must be chosen so that the fluid mass
the vertical extent of the simulation, and c s is the speed of and momentum are conserved and so that the resulting con-
sound. In this limit g can have a significant value so it is tinuum equations describe the hydrodynamics of the fluid
clearly important that the introduction of gravity does not being simulated 关12兴. The correct form of the equilibrium
affect the existing scheme, other than by introducing the re- distribution also ensures that the fluid is isotropic and Gal-
quired body force, since terms of order O(g) cannot be ne- ilean invariant 关22兴. The following equilibrium distribution
glected in the fluid equations. function produces an isotropic, single phase fluid that satis-
fies the continuity and Navier-Stokes equations:
II. LATTICE BOLTZMANN MODEL
f̄ i 共 r,t 兲 ⫽E i 共 ,u兲 , 共4兲
The simulation described here is performed on a
D-dimensional regular grid with b links at each grid point. where
冉 冊
冦
1⫺d 0 D D 共 D⫹2 兲 Du 2
⫹ 2 ei •u⫹ 共 ei •u 兲 2
⫺ , i⫽1, . . . ,b
b c b 2c 4 b 2c 2 b
E i 共 ,u兲 ⫽ 共5兲
d 0⫺ 冉 冊 u
c2
2
, i⫽0
The derivation of the continuity equation and the Navier- IV. GRAVITY IN A LATTICE BOLTZMANN MODEL
Stokes equation from the equilibrium distribution is normally We now wish to consider a lattice Boltzmann model that
carried out using a Chapman-Enskog expansion, following will mimic the Navier-Stokes equation with a body force.
the lattice gas derivation of Frisch et al. 关17兴. To perform the
Chapman-Enskog expansion we must first Taylor expand Eq.
A. The classic Boltzmann equation
共1兲:
冋
The Boltzmann equation for a fluid with a body force per
1 unit mass F is 关19兴
f i 共 r⫹ei ,t⫹1 兲 ⫺ f i 共 r,t 兲 ⯝ t ⫹e i ␣ ␣ ⫹ e i ␣ ␣ 共 e i   ⫹ t 兲
2
t f ⫹c ␣ r ␣ f ⫹F ␣ c ␣ f ⫽⍀ 共 f 兲 , 共11兲
1
册
⫹ t 共 e i ␣ ␣ ⫹ t 兲 f i 共 r,t 兲 .
2
共6兲 where f (c,r,t)dcdr is the number of molecules at time t with
velocities in the range c→c⫹dc and position in the range r
→r⫹dr and
Expanding the population functions and the time and space
derivatives in terms of the Knudsen number 关19,17兴, ⑀ , we
c␣⫽ . 共12兲
get c␣
i ⫹ ⑀ f i ⫹ ⑀ f i ⫹•••,
f i ⫽ f (0) (1) 2 (2)
The difference between the Boltzmann equation when there
t ⫽ ⑀ 1t ⫹ ⑀ 2t ⫹•••,
2
共7兲 is no body force present and when there is a body force is an
extra term: F ␣ c ␣ f . In the lattice Boltzmann equation we are
r⫽ ⑀ 1r . looking to add a similar term to incorporate a body force.
Since, however, the velocity of all the ‘‘particles’’ is con-
Substitution of Eq. 共7兲 into Eq. 共6兲 and considering sepa- stant in the lattice Boltzmann model, we cannot simply in-
rately the terms O( ⑀ ) and O( ⑀ 2 ) we can perform a troduce an expression with exactly the same form but must
Chapman-Enskog expansion to obtain the continuity equa- instead look to add a term that will modify the fluid momen-
tion, tum.
t ⫹ ␣ u ␣ ⫽0 共8兲
B. Combining the gravity term and the pressure tensor—
and the Navier-Stokes equation
method „1…
t u ␣ ⫹  u  u ␣ ⫽⫺  冋 共 1⫺d 0 兲 2
D 册
c ␦ ␣ ⫹   u ␣ When a body force is included in the Navier-Stokes equa-
tion it is common to express the force in terms of the gravi-
⫹ ␣  u  , 共9兲 tational potential: ⫺ “ . When this approach is taken, and
the density variation produced by the body force is negli-
where ⫽c 2 ( ⫺1/2)/(D⫹2) and ⫽( ⫺1/2) 关 2c 2 /(D gible, the Navier-Stokes equation incorporating the body
⫹2)⫺c 2 (1⫺d 0 )/D 兴 are the kinematic and bulk viscosities. force can be expressed in the same form as in the absence of
The pressure term in Eq. 共9兲 is p⫽ c 2 (1⫺d 0 )/D, which gravity but with an altered pressure: p→p⫹ . Following
gives the speed of sound as this approach we can redefine the equilibrium distribution:
冉 冊
冦
1⫺d 0 l D D D 共 D⫹2 兲 Du 2
⫹ ⫹ ei •u⫹ 共 ei •u 兲 2
⫺ , i⫽1,b
b bc 2 c 2 b 2c 4 b 2c 2 b
E i⬘ 共 ,u兲 ⫽ 共13兲
冉
d 0⫺
lD
c2
⫺
u2
c2
冊 , i⫽0,
PRE 61 GRAVITY IN A LATTICE BOLTZMANN MODEL 5309
with l⫽1. The parameter l is introduced here in such a way This is a combination of methods 共2兲 and 共3兲 with the coef-
that l⫽1 corresponds to gravity being incorporated as a pres- ficients selected to ensure the model satisfies the continuity
sure term and l⫽0 corresponds to the standard lattice Bolt- and Navier-Stokes equations for a fluid under the influence
zmann model without gravity. of a body force. This will be shown in Sec. IV F.
C. Calculating the equilibrium distribution with an altered F. The equations of motion for a lattice Boltzmann model
velocity—method „2… incorporating gravity
Gravity can be introduced into the lattice Boltzmann Now consider the following Boltzmann equation:
scheme by considering the momentum change produced by a
body force 关23兴. If a gravitational force F is acting, then at 1 D
every timestep there is a change of momentum ⌬P⫽F. To f i 共 r⫹ei ,t⫹1 兲 ⫺ f i 共 r,t 兲 ⫽⫺ 共 f i ⫺ f̄ i 兲 ⫹m 2 F ␣ e i ␣ ,
bc
incorporate this into the model an equilibrium distribution 共21兲
f̄ i 共 r,t 兲 ⫽E i 共 ,u* 兲 共14兲 where
is used where u* is the ‘‘equilibrium velocity’’ 关24兴, which f̄ i ⫽E i⬘ 共 ,u⫹nw兲 , 共22兲
is given by 关23兴
w⫽ F/ and E i⬘ is defined by Eq. 共13兲. This represents
u* ⫽ u⫹ F. 共15兲
method 共1兲 for l⫽1, m⫽n⫽0, method 共2兲 for m⫽1, l⫽n
Here u is defined, as before, by u ␣ ⫽ 兺 i f i (r,t)e i ␣ . The fluid ⫽0, method 共3兲 for n⫽1, l⫽m⫽0, and method 共4兲 for l
momentum v is defined 关24兴 to be the average of the mo- ⫽0, m⫽(2 ⫺1)/(2 ), n⫽1/(2 ). As before, we wish to
mentum before the collision, u, and the momentum after perform a Chapman-Enskog expansion by expressing
the collision, u⫹F:
i ⫹ ⑀ f i ⫹ ⑀ f i , t ⫽ ⑀ 1t ⫹ ⑀ 2t , and ␣ ⫽ ⑀ 1 ␣ ,
f i ⫽ f (0) (1) 2 (2) 2
1 共23兲
v ␣⫽ u ␣⫹ F ␣ . 共16兲
2 where the notation ( 1r ) ␣ ⫽ 1 ␣ has been used. The body
force F ␣ , and hence , are of order ⑀ 关25兴. This can be seen
D. Adding an additional term to the Boltzmann by assuming that F ␣ ⫽O( ⑀ 0 ) and considering the zeroth-
equation—method „3… order expansion of the Chapman-Enskog expansion:
Gravity can also be introduced into the lattice Boltzmann
scheme in a manner similar to that adopted for the lattice-gas mD
i ⫽ f̄ i ⫹
f (0) F ␣e i␣ . 共24兲
model 关17兴, that is, by adding a term to the collision function bc 2
that modifies the distribution function 关25,26兴. Here the Bolt-
zmann equation is Multiplying this expansion by e i  and summing gives
f i 共 r⫹ei ,t⫹1 兲 ⫺ f i 共 r,t 兲 ⫽⍀ i 共 r,t 兲 , 共17兲
兺i i e i⫽
f (0) 兺i f̄ i e i  ⫹m F  ⫽ u  ⫹ 共 n⫹m 兲 F  .
where
共25兲
1 D But 兺 i f i e i  ⫽ u  so we must have
⍀ i 共 r,t 兲 ⫽⫺ 关 f i 共 r,t 兲 ⫺ f̄ i 共 r,t 兲兴 ⫹ 2 F ␣ e i ␣ , 共18兲
冉兺 冊
bc
where 冋 1
t ⫹ ␣ u ␣ ⫹ 共 n⫹m 兲 F ␣ ⫽0
2 册 共28兲
冋 1
册
t u ␣ ⫹ 共 n⫹m 兲 F 1 ␣ ⫹  关 u ␣ u  ⫹ n 共 u ␣ F  ⫹u  F ␣ 兲兴
2
再冋
⫹
2
册
2u ␣ F  2 F ␣ F  D 共 D⫹2 兲 e i ␣ e i 
2c 4 b
⫽⫺ ␣ 冉 共 1⫺d 0 兲 c 2
D 冊⫹   u ␣ ⫹ ␣  u 
⫺
D
2c 2 b
冋
2u ␣ F ␣ 2 F ␣ F ␣
⫹
2
册冎 i⫽1,b
冉 冊
⫹ 共 n⫹m 兲 F ␣ ⫺l ␣ . 共29兲
2 F ␣u ␣ 2F ␣F ␣
⫺ ⫹ 2 2 , i⫽0. 共32兲
c2 c
For method 共1兲 we have l⫽1, m⫽n⫽0 in which case Eqs.
共28兲 and 共29兲 are the continuity and Navier-Stokes equations The difference contains terms O(uF/ ) and O„(F/ ) 2 …. It is
for a fluid with velocity u and a body force F⫽⫺ “ . For assumed in the derivation of the equations of motion that u
methods 共2兲, 共3兲, and 共4兲 we have l⫽0, m⫹n⫽1 in which Ⰶc s and, in the incompressible limit, we also have 兩 F 兩
case Eqs. 共28兲 and 共29兲 can be written 共up to second order in
Ⰶc s2 /z. This gives a measure on the size of the terms in Eq.
⑀)
共32兲. Thus, in general, the difference expressed in Eq. 共32兲
will be small. Although F/ is small it can still produce a
significant effect. The difference expressed in Eq. 共32兲 being
t ⫹ ␣ v ␣ ⫽0 共30兲
small does not imply that the density change is small, as
required for method 共1兲. The differences ⍀ (2) i ⫺⍀ i
(4)
and
⍀ i ⫺⍀ i will contain terms of the same order. We note
(3) (4)
and
i ⫺⍀ i
that while the values of ⍀ (1) (2)
are different for each i,
兺 i (⍀ i ⫺⍀ i )⫽0 and 兺 i (⍀ i ⫺⍀ (2)
(1) (2) (1)
i )e i ␥ ⫽0. This means
t v ␣ ⫹  v ␣ v  ⫹  共 n ⫺1/2兲共 u ␣ F  ⫹u  F ␣ 兲 that in simulations where methods 共2兲, 共3兲, and 共4兲 satisfy the
same equations of motion, that is  (u ␣ F  ⫹u  F ␣ )⫽0,
⫽⫺ ␣ 冉 共 1⫺d 0 兲 c 2
D 冊⫹   v ␣ ⫹ 1 ␣ 1  v  ⫹F ␣ ,
there will be a difference in the values of f i between the
different models, but the values of and u should, however,
be identical.
共31兲
兺y 兩 u⫺û 兩
E⫽ , 共33兲
兺y 兩u兩
tion that is constant as required in method 共1兲. When g tion is only about 1%. The difference between the results for
⫽0.000 01 and the density variation is about 0.2%, the den- method 共1兲 and the analytic result are also shown in Fig. 4.
sity variation is considerably smaller and so is the difference In each case the difference is generally larger. For g
between the density variation produced by methods 共1兲 and ⫽0.000 01 it is O(10⫺6 ), as was seen in Fig. 3 and is not
共4兲 as shown in Fig. 3. The difference here is not signifi- significant. For g⫽0.0001 the error is O(10⫺3 ), which is an
cantly larger than the computational rounding error in a stan- order of magnitude larger then 兩 T4 兩 suggesting that the con-
dard 32-bit calculation. When g⫽0.0001 the density varia- stant density approximation is not valid and method 共4兲 关or
tion across the fluid is about 2% and the difference between methods 共2兲 or 共3兲兴 would be preferred. For g⫽0.001 the
the results, 兩 14兩 ⫽O(10⫺3 ). The difference between the den- difference 兩 T1 兩 can be larger than 1% and is typically
sity variation produced by method 共4兲 and the analytic results double 兩 T4 兩 although the differences are for different rea-
in the incompressible limit, gz/c s2 Ⰶ1, is shown in Fig. 4 for sons. The large value of 兩 T1 兩 is due to the density gradient
the three values of g considered. The ratio c s2 /gz is 4.5, 45, that cannot be approximated to zero. The error in 兩 T4 兩 is due
and 450 for g⫽0.001, 0.0001, and 0.000 01, respectively. to gz⫽O(c s2 ) implying that we are outside the incompress-
For the lowest value of g the incompressibility condition is ible limit and so we do not expect a linear density change.
fully satisfied and the variations are not much larger than the For both methods the difference between the simulation re-
numerical rounding error when standard 32-bit precision is sults and theory is seen to depend on g, suggesting that in
used. When g⫽0.001 the incompressibility condition this case the compressibility error is the main source of error.
(gz/c s2 Ⰶ1) is just met since gz/c s2 ⫽0.022. Here the agree- The difference between the densities predicted by meth-
ment between the analytical results and the simulation is ods 共2兲, 共3兲, and 共4兲 are shown in Fig. 5. For each value of g
reasonable with a variation of no more than about 0.01%. the densities obtained by methods 共2兲 and 共4兲 and hence the
This is no larger than the typical discretization error of difference 兩 24兩 are independent of as predicted by Eq.
O(10⫺4 ), which we would expect in a simulation of this
size. For the largest value of g the incompressible limit is not
truly satisfied (gz/c s2 ⫽0.22), however, even here the varia-
Case ga gb g1 g2
i ⫹ ⑀ f̄ i ⫹ ⑀ f̄ i , F ␣ ⫽ ⑀ F 1 ␣ , and ⫽ ⑀ 1 .
f̄ i ⫽ f̄ (0) (1) 2 (2)
1 D
f i 共 r⫹ei ,t⫹1 兲 ⫺ f i 共 r,t 兲 ⫽⫺ 共 f i ⫺ f̄ i 兲 ⫹m 2 F ␣ e i ␣ ,
bc
共A1兲 Substituting the expansion of F ␣ and into E ⬘ gives
冋 1⫺d 0 ⑀ l 1 D D
⫹
⑀ nD
⫹ 2 e i␣u ␣⫹ 2
c b
e i␣F 1␣
¦冋
b bc 2
c b
⫹
D 共 D⫹2 兲
冉 n 2 2
e i ␣ e i  u ␣ u  ⫹2 ⑀ n e i ␣ e i  F 1 ␣ u  ⫹ ⑀ 2 2 e i ␣ e i  F 1 ␣ F 1  冊
冉 n
冊 2c 4 b
冉 冊册
E ⬘ ,u⫹ ⑀ F1 ⫽ 共A4兲
D 2
⫺ 2 u 2 ⫹2 ⑀ n u ␣ F 1 ␣ ⫹ ⑀ 2 n 2 2 F 21 , i⫽1,2, . . . ,b
2c b
d 0⫺
⑀ l 1D
c 2
⫺
u2
c 2
⫺
2⑀n
c
2
u ␣F 1␣⫺
⑀ 2n 2 2
c
2 2 册
F 21 , i⫽0.
i ⫽E( ,u),
From this we get f̄ (0)
冋 册
冦
l 1D nD nD 共 D⫹2 兲 nD
⫹ e i␣F 1␣⫹ e i ␣ e i  F 1 ␣ u  ⫺ 2 u ␣ F 1 ␣ , i⫽1,b
bc 2
c b
2 4
c b c b
i ⫽
f̄ (1) 共A5兲
⫺ 冋 1D
c2
⫺
2n
c 2
册
u ␣ F 1 ␣ , i⫽0
and
冋 册
冦
n 2 D 共 D⫹2 兲 2 n 2D 2
e e F F ⫺
2 i␣ i 1␣ 1
F 21 , i⫽1,2, . . . ,b
2c b 4
2c b
2 2 2
i ⫽
f̄ (2) 共A6兲
冋 ⫺n 2 2
c 2 2
册
F 21 , i⫽0,
兺i i ⫽0,
f̄ (1) 兺i i ⫽0,
f̄ (2) 兺i i e i ␣ ⫽n F 1 ␣ ,
f̄ (1) 兺i i e i ␣ e i  ⫽n 共 F 1 ␣ u  ⫹F 1  u ␣ 兲 ⫹l 1 ␦ ␣ .
f̄ (1)
兺i i e i ␣ ⫽0,
f̄ (2) 共A7兲 Now, the expansion of the Boltzmann equation up to second
order in ⑀ is
PRE 61 GRAVITY IN A LATTICE BOLTZMANN MODEL 5317
⑀ 共 1t f (0) (0) 2
冉
i ⫹e i ␣ 1 ␣ f i 兲 ⫹ ⑀ 2t f i ⫹ 1t f i ⫹e i ␣ 1 ␣ f i
(0) (1) (1)
兺i e i ␣ e i  f (1)
i ⫽n 共 F 1 ␣ u  ⫹F 1  u ␣ 兲
1
⫹ e i ␣ e i  1 ␣ 1  f (0)
2
1
i ⫹ e i ␣ 1 ␣ 1t f i
2
(0)
⫺ 1t 冉 共 1⫺d 0 兲 c 2
D
␦ ␣ ⫹ u ␣ u  冊
1
⫹ e i ␣ 1 ␣ 1t f (0)
2
1
i ⫹ 1t 1t f i
2
(0)
冊 ⫺ 1␥
c2
共 u ␦ ⫹u  ␦ ␣␥ ⫹u ␥ ␦ ␣ 兲
共 D⫹2 兲 ␣ ␥
1 ⫹ 1 l ␦ ␣ , 共A16兲
⫽⫺ 共 f (0) ⫹ ⑀ f (1)
i ⫹ ⑀ f i ⫺ f̄ i ⫺ ⑀ f̄ i ⫺ ⑀ f̄ i 兲
2 (2) (0) (1) 2 (2)
i
which is found from Eq. 共A10兲. Combining Eqs. 共A12兲 and
mD 共A14兲 gives
⫹⑀ 共A8兲
冋 册
F 1␣e i␣ .
bc 2 1
t ⫹ ␣ u ␣ ⫹ 共 n⫹m 兲 F ␣ ⫽0, 共A17兲
This gives O( ⑀ 0 ), 2
O( ⑀ ), 冋 1
册
t u ␣ ⫹ 共 n⫹m 兲 F 1 ␣ ⫹  关 u ␣ u  ⫹ n 共 u ␣ F  ⫹u  F ␣ 兲兴
2
冉 冊
1 (1) (1) mD
1t f (0) 共 1⫺d 0 兲 c 2
i ⫹e i ␣ 1 ␣ f i ⫽⫺ 共 f i ⫺ f̄ i 兲 ⫹
(0)
F 1␣e i␣ ,
bc 2 ⫽⫺ ␣ ⫹   u ␣ ⫹ 1 ␣ 1  u 
D
共A10兲
⫹ 共 n⫹m 兲 F ␣ ⫺l ␣ . 共A18兲
and O( ⑀ 2 ),
f 1 共 z 兲 ⫺ f 3 共 z 兲 ⫺ f 4 共 z 兲 ⫹ f 6 共 z 兲 ⫽ f̄ 1 共 z 兲 ⫺ f̄ 3 共 z 兲 ⫺ f̄ 4 共 z 兲 ⫹ f̄ 6 共 z 兲
2
再
共 z⫹ 冑3/2兲 共 1⫺d 0 兲 ⫹2l 共 z⫹ 冑3/2兲 ⫺ 冑3u z 共 z⫹ 冑3/2兲
冋 册冎
⫺ F z共 z 兲 .
冑3 F z 共 z⫹ 冑3/2兲
2
⫹2 v z 共 z⫹ 冑3/2兲 ⫹ 共 n ⫺1/2兲
共 z⫹ 冑3/2兲
Assuming that u x (z)⫽0, ᭙z these have solution
⫺ 共 n⫹m 兲 冑3F z 共 z⫹ 冑3/2兲
f 3 共 z 兲 ⫽ f 4 共 z 兲 , f 1 共 z 兲 ⫽ f 6 共 z 兲 , f̄ 3 共 z 兲 ⫽ f̄ 4 共 z 兲 , f̄ 1 共 z 兲 ⫽ f̄ 6 共 z 兲 ,
共B5兲
再
⫽ 共 z 兲 共 1⫺d 0 兲 ⫹2l 共 z 兲 ⫺ 冑3u z 共 z 兲
f 1 共 z 兲 ⫽ f̄ 1 共 z 兲 ⫺
n F z共 z 兲
, and f 3 共 z 兲 ⫽ f̄ 3 共 z 兲 ⫹
n F z共 z 兲
.
冋
⫹2 v z 共 z 兲 ⫹ 共 n ⫺1/2兲
F z共 z 兲
共 z 兲 册冎
2
. 共B9兲
2 冑3 2 冑3
Subtracting Eq. 共B9兲 from Eq. 共B8兲 gives
Now the Boltzmann equation for i⫽1 and i⫽3 combined 2 共 z⫹ 冑3/2兲 u z 共 z⫹ 冑3/2兲 ⫹ 共 n⫹m 兲 F z 共 z⫹ 冑3/2兲
with Eq. 共B5兲 gives
⫽2 共 z 兲 u z 共 z 兲 ⫹ 共 n⫹m 兲 F z 共 z 兲 , 共B10兲
n F z 共 z⫹ 冑3/2兲
f̄ 1 共 z⫹ 冑3/2兲 ⫺
while adding the equations gives
2 冑3
n F z共 z 兲
再 冋
共 z⫹ 冑3/2兲 2 共 1⫺d 0 兲 ⫹4 v z 共 z⫹ 冑3/2兲 ⫹ 共 n ⫺1/2兲
册冎
⫽ f̄ 1 共 z 兲 ⫺
2 冑3 F z 共 z⫹ 冑3/2兲
2
and 再 冋
⫽ 共 z 兲 2 共 1⫺d 0 兲 ⫹4 v z 共 z 兲 ⫹ 共 n ⫺1/2兲
F z共 z 兲
共 z 兲 册 2
f̄ 3 共 z⫺ 冑3/2兲 ⫹
n F z 共 z⫺ 冑3/2兲
2 冑3
冎
⫹4l 共 z 兲 ⫹ 共 m⫹n 兲 冑3 f z 共 z 兲 . 共B11兲
f 1 共 z 0 兲 ⫽ f 4 共 z 0 ⫺ 冑3/2兲 . 共B12兲
Replacing f̄ i with E ⬘i ( ,u⫹nw) in Eqs. 共B6兲 and 共B7兲, not-
ing that c⫽1 in lattice units and replacing z with z⫹ 冑3/2 in Using Eqs. 共B5兲 and 共B7兲 this can be written as
Eq. 共B7兲, gives
n F z共 z 0 兲 n F z共 z 0 兲 F z共 z 0 兲
f̄ 1 共 z 0 兲 ⫺ ⫽ f̄ 3 共 z 0 兲 ⫹ ⫺ 共 n⫹m 兲
再
.
2 冑3 2 冑3 2 冑3
共 z⫹ 冑3/2兲 共 1⫺d 0 兲 ⫹2l 共 z⫹ 冑3/2兲 ⫹ 冑3u z 共 z⫹ 冑3/2兲 共B13兲
冋 册冎
Since f̄ i ⫽E ⬘i ( ,u⫹nw) this gives the boundary condition
F z 共 z⫹ 冑3/2兲
2
再
⫽ 共 z 兲 共 1⫺d 0 兲 ⫹2l 共 z 兲 ⫹ 冑3u z 共 z 兲
Consider first methods 共2兲, 共3兲, and 共4兲, which have l
⫽0 and m⫹n⫽1. In these cases the boundary condition Eq.
共B14兲 becomes
冋
⫹2 v z 共 z 兲 ⫹ 共 n ⫺1/2兲
F z共 z 兲
共 z 兲 册冎
2
2 共 z 0 兲v z 共 z 0 兲 ⫽0 or 0 v z 共 z 0 兲 ⫽0, 共B15兲
which shows that the bounce-back condition imposes a con- For method 共1兲 we have l⫽1 and m⫽n⫽0. In this case a
fined fluid under gravity to be at rest only if the velocity is similar argument leads to
taken to be v as is the case for methods 共2兲, 共3兲, and 共4兲.
Setting v z ⫽0 in Eq. 共B11兲 to find the long-term behavior 共 z 兲 u z 共 z 兲 ⫽ 0 u z 共 z 0 兲 ⫽0, 共B21兲
of the fluid and F z (z)⫽⫺ (z)g gives
.
parison to be made with the other methods. In this limit we
can write
共B18兲
2 共 z⫹ 冑3/2兲 共 z⫹ 冑3/2兲 ⫺2 共 z 兲
When ⫽1 the density gradient produced by both methods
共2兲 and 共3兲 will be the same, although different from the ⯝2 共 z 兲关 共 z⫹ 冑3/2兲 ⫺ 共 z 兲兴
gradient produced by method 共4兲, despite it being a compos- ⯝ 冑3 共 z 兲 ⵜ 共 z 兲 . 共B23兲
ite of the two methods. If ⫽1 the density gradient will
differ between the different methods, for method 共3兲 this will
depend on and for methods 共2兲 and 共4兲 the gradient is Or, to the same approximation
independent of , however these differences will in general
be small. In the incompressible limit, gzⰆc s2 , we expect 2 共 z⫹ 冑3/2兲 共 z⫹ 冑3/2兲 ⫺2 共 z 兲 ⯝ 冑3 共 z 兲 ⵜ 共 z 兲 .
冑3g/2Ⰷ(n ⫺1/2) 2 g 2 for the values of typically used in 共B24兲
lattice Boltzmann simulations; for method 共4兲 this is always
true since n ⫺1/2⫽0. In this incompressible limit This approximation allows Eq. 共B11兲 to be expressed as
冉
共 z 兲 ⯝ 0 1⫺
2gz
1⫺d 0 冊 共B19兲 共 z⫹ 冑3/2兲关 2 共 1⫺d 0 兲 ⫹ 冑3g 兴 ⯝ 共 z 兲关 2 共 1⫺d 0 兲 ⫺ 冑3g 兴
共B25兲
for each method. It is worth noting that in the compressible
limit the exponential law, (z)⫽ 0 exp(g⬘z/cs2), is obtained giving
冉 冊
in terms of a rescaled gravity
冋 册
2gz
2c s2 1⫺ 冑3g/2共 1⫺d 0 兲 ⫹2 共 n ⫺1/2兲 2 g 2 / 共 1⫺d 0 兲
共 z 兲 ⯝ 0 1⫺ 共B26兲
1⫺d 0
g ⬘⫽ ln .
冑3 1⫹ 冑3g/2共 1⫺d 0 兲 ⫹2 共 n ⫺1/2兲 2 g 2 / 共 1⫺d 0 兲
共B20兲 as was found for the other methods.
关1兴 G. R. McNamara and G. Zanetti, Phys. Rev. Lett. 61, 2332 关9兴 A. J. C. Ladd, J. Fluid Mech. 271, 311 共1994兲.
共1988兲. 关10兴 E. G. Flekko” y, Phys. Rev. E 47, 4247 共1993兲.
关2兴 F. J. Higuera, S. Succi, and R. Benzi, Europhys. Lett. 9, 345 关11兴 X. Shan and H. Chen, Phys. Rev. E 47, 1815 共1993兲.
共1989兲. 关12兴 M. R. Swift, E. Orlandini, W. R. Osborn, and J. M. Yeomans,
关3兴 H. Chen, S. Chen, and H. Matthaeus, Phys. Rev. A 45, 5339 Phys. Rev. E 54, 5041 共1996兲.
共1992兲. 关13兴 X. He, L.-S. Luo, and M. Dembo, J. Comput. Phys. 129, 357
关4兴 Y. H. Qian, D. d’ Humières, and P. Lallemand, Europhys. Lett. 共1996兲.
17, 479 共1992兲. 关14兴 J. Lighthill, Waves In Fluids 共Cambridge University Press,
关5兴 U. Frisch, B. Hasslacher, and Y. Pomeau, Phys. Rev. Lett. 56, Cambridge, England, 1978兲.
1505 共1986兲. 关15兴 J. S. Turner, Buoyancy Effects in Fluids 共Cambridge Univer-
关6兴 S. Chen, H. Chen, D. Martinez, and W. Matthaues, Phys. Rev. sity Press, Cambridge, England, 1973兲.
Lett. 67, 3776 共1991兲. 关16兴 J. M. Buick, C. A. Greated, and W. J. Easson, Phys. Fluids 9,
关7兴 S. Chen, Z. Wang, X. Shan, and G. D. Doolen, J. Stat. Phys. 2585 共1997兲.
68, 379 共1992兲. 关17兴 U. Frisch, D. d’ Humières, B. Hasslacher, P. Lallemand, and
关8兴 S. Succi, R. Benzi, and F. Higuera, Physica D 47, 219 共1991兲. Y. Pomeau, Complex Syst. 1, 649 共1987兲.
5320 J. M. BUICK AND C. A. GREATED PRE 61
关18兴 S. Wolfram, J. Stat. Phys. 45, 471 共1986兲. 关24兴 X. Shan and G. Doolen, J. Stat. Phys. 81, 379 共1995兲.
关19兴 S. Chapman and T. G. Cowling, The Mathematical Theory of 关25兴 I. Ginzbourg and P. M. Alder, J. Phys. II 4, 191 共1994兲.
Non-Uniform Gases 共Cambridge University Press, Cambridge, 关26兴 X. He, Q. Zou, L.-S. Luo, and M. Dembo, J. Stat. Phys. 87,
1970兲. 115 共1997兲.
关20兴 C. Cercignani, Theory and Application of the Boltzmann Equa- 关27兴 D. R. Noble, S. Chen, J. G. Georgiadis, and R. O. Buckius,
tion 共Scottish Academic Press, Edinburgh, U.K., 1975兲. Phys. Fluids 7, 203 共1995兲.
关21兴 P. L. Bhatnagar, E. P. Gross, and M. Krook, Phys. Rev. 94, 关28兴 J. D. Sterling and S. Chen, J. Comput. Phys. 123, 196 共1996兲.
511 共1954兲. 关29兴 E. Orlandini, M. R. Swift, and J. M. Yeomans, Europhys. Lett.
关22兴 R. D. Kingdon, Technical Report No. AEA-InTec-1298, AEA 32, 463 共1995兲.
Technology, 1993, 共unpublished兲. 关30兴 Q. Zou, S. Hou, and G. D. Doolen, J. Stat. Phys. 81, 319
关23兴 N. S. Martys and H. Chen, Phys. Rev. E 53, 743 共1996兲. 共1995兲.