Professional Documents
Culture Documents
3.1 Introduction
The lattice Boltzmann method is a discrete computational method based upon the lattice gas automata - a simplied, ctitious molecular model. It consists of three basic tasks: lattice Boltzmann equation, lattice pattern and local equilibrium distribution function. The former two are standard, which is the same for uid ows. The latter determine what ow equations are solved by the lattice Boltzmann model, which is often derived for certain ow equations such as the equations for shallow water ows. These tasks are described in this chapter.
where f is the distribution function of particles; f is the value of f after the streaming; e = x/t; x is the lattice size; t is the time step; Fi is the component of the force in i direction; e is the velocity vector of a particle in the link and N is a constant, which is decided by the lattice pattern as
20
N =
1 e2
ei ei .
(3.2)
In the collision step, the arriving particles at the points interact one another and change their velocity directions according to scattering rules, which is expressed as f (x, t) = f (x, t) + [f (x, t)], (3.3) in which is the collision operator which controls the speed of change in f during collision. Theoretically, is generally a matrix, which is decided by the microscopic dynamics. Higuera and Jim enez [11] rst introduced an idea to linearize the collision operator around its local equilibrium state. This greatly simplies the collision operator. Based on this idea, can be expanded about its equilibrium value [36], (f ) = (f eq ) + (f eq ) eq eq 2 (f f ) + O[(f f ) ], f (3.4)
eq where f is the local equilibrium distribution function. The solution process of the lattice Boltzmann equation is characterized by eq f f , implying (f eq ) 0. After the higher-order terms in Eq. (3.4) are neglected, we obtain a linearized collision operator,
(f )
(f eq ) eq (f f ). f
(3.5)
If assuming the local particle distribution relaxes to an equilibrium state at a single rate [12, 13], (f eq ) 1 = , (3.6) f where is the Kronecker delta function, = we can write Eq. (3.5) as 1 eq (f ) = (f f ), resulting in the lattice BGK collision operator [14], 1 eq (f ) = (f f ), (3.9) (3.8) 0, 1, = , = , (3.7)
and is called as the single relaxation time. This makes the lattice Boltzmann equation extremely simple and ecient; hence it is widely used in a lattice
21
Boltzmann model for uid ows. With reference to Eq. (3.9), the streaming and collision steps are usually combined into the following lattice Boltzmann equation, t 1 eq f (x + e t, t + t) f (x, t) = (f f )+ ei Fi , N e2 (3.10)
which is the most popular form of the lattice Boltzmann equation in use today.
22
It is easy to show that the 9-speed square lattice has the following basic features, ei = ei ej ek = 0, (3.12)
ei ej = 6e2 ij ,
(3.13) (3.14)
where ijkl = 1 if i = j = k = l, otherwise ijkl = 0. Using Eq. (3.11) to evaluate the terms in Eq. (3.2), we have N = 1 e2 ex ex =
1 e2
ey ey = 6.
(3.15)
Substitution of the above equation into Eq. (3.10) leads to 1 t eq f (x + e t, t + t) f (x, t) = (f f ) + 2 ei Fi , 6e (3.16)
which is the most common form of a lattice Boltzmann model used for simulating uid ows.
23
(3.17)
This turns out to be a general approach, which is successfully used for solution of various ow problems [40, 41], demonstrating its accuracy and suitability. Hence it is used. Since the equilibrium function has the same symmetry as the lattice (see Fig. 3.1), there must be A1 = A3 = A5 = A7 = A, A2 = A4 = A6 = A8 = A, (3.18)
and similar expressions for B , C and D . Accordingly, it is convenient to write Eq. (3.17) in the following form, = 0, A0 + D0 ui ui , eq = 1, 3, 5, 7, (3.19) f = A + Bei ui + Cei ej ui uj + Dui ui , A + Bei ui + Cei ej ui uj + Dui ui , = 2, 4, 6, 8. and A can be determined based on the The coecients such as A0 , A constraints on the equilibrium distribution function, i.e. it must obey the conservation relations such as mass and momentum conservations. For the shallow water equations, the local equilibrium distribution function (3.19) must satisfy the following three conditions,
eq f (x, t) = h(x, t), eq ei f (x, t) = h(x, t)ui (x, t), eq ei ej f (x, t) =
(3.20)
(3.21) (3.22)
24
Once the local equilibrium function (3.17) is determined under the above constraints, the calculation of the lattice Boltzmann equation (3.16) leads to the solution of the 2D shallow water equations (2.53) and (2.54) (The proof is given in Section 3.6). Substituting Eqs. (3.19) into Eq. (3.20) yields A0 + D0 ui ui + + i ui + 4A Be
i=1,3,5,7 i=1,3,5,7
i ej ui uj + 4Du i ui + Ce i ej ui uj + 4Du i ui = h. Ce
i=2,4,6,8
+ 4A
i=2,4,6,8
i ui + Be
(3.23)
After evaluating the terms in the above equation with Eq. (3.11) and equating the coecients of h and ui ui , respectively, we have + 4A = h, A0 + 4A and + 4e2 C + 4D + 4D = 0. D0 + 2e2 C Inserting Eqs. (3.19) to Eq. (3.21) leads to A0 ei + D0 ei uj uj + i + Be i ej uj + Ce i ej ek uj uk + De i uj uj ) + (Ae
=1,3,5,7
(3.24)
(3.25)
from which we can obtain + 4e2 B = h. 2e2 B Substituting Eqs. (3.19) into Eq. (3.22) results in i ej + Be i ej ek uk + Ce i ej ek el uk ul + De i ej uk uk ) + (Ae
=1,3,5,7
(3.27)
i ej + Be i ej ek uk + Ce i ej ek el uk ul + De i ej uk uk ) (Ae
=2,4,6,8
1 2 gh ij + hui uj 2
(3.28)
Use of Eq. (3.11) to simplify the above equation leads to 2 ij + 2Ce 4 ui ui + 2De 2 ui ui + 4Ae 2 ij + 2Ae 4 ui uj + 4Ce 4 ui ui + 4De 2 ui ui = 1 gh2 ij + hui uj , 8Ce 2
(3.29)
25
which provides the following four relations, + 4e2 A = 2e2 A = h, 8e4 C = h, 2e4 C + 4e D + 4e C = 0. 2e D
2 2 4
1 2 gh , 2
From the symmetry of the lattice, based on Eq. (3.34), we have good reason to assume the three additional relations as follows, = 4A, A = 4B, B = 4D. D Solution of Eqs. (3.24), (3.25), (3.27) and (3.30) - (3.37) results in A0 = h
2 = gh , A 6e2
5gh2 , 6e2
D0 = = h , C 2e4
2h , 3e2 = h , D 6e2
(3.38) (3.39)
= h , B 3e2
2 = gh , = h , = h , = h . A B C D (3.40) 2 2 4 24e 12e 8e 24e2 Substitution of the above equations (3.38) - (3.40) into Eq. (3.19) leads to the following local equilibrium function, 5gh2 2h = 0, h 6 e2 3 e2 u i u i , 2 eq gh h h h f = 6e2 + 3e2 ei ui + 2e4 ei ej ui uj 6e2 ui ui , = 1, 3, 5, 7, (3.41) gh2 h h h 24e2 + 12e2 ei ui + 8e4 ei ej ui uj 24e2 ui ui , = 2, 4, 6, 8,
which is used in the lattice Boltzmann equation (3.16) for solution of the shallow water equations (2.53) and (2.54).
26
eq (f f )+
t 6e2
ei Fi . (3.42)
Notice
ei Fi
[f (x + e t, t + t) f (x, t)] =
(3.43)
In the lattice Boltzmann method, we have an explicit constraint to preserve conservative property, i.e. the cumulative mass and momentum which are the corresponding summations of the microdynamic mass and momentum are conserved. The mass conservation requires the following identity, f (x + e t, t + t)
f (x, t),
(3.44)
which is the continuity equation with microdynamic variables. Substitution of the above equation into Eq. (3.43) leads to f (x, t) =
eq f (x, t).
(3.45)
With reference to Eq. (3.20), the above expression in fact results in the denition for the physical quantity, water depth h, as h(x, t) =
f (x, t).
(3.46)
Now, in order to nd the expression for the velocity, we take the sum of the rst moment of the distribution function in Eq. (3.16) over the lattice velocities, ei [f (x + e t, t + t) f (x, t)] =
eq ei (f f )
t 6e2
ei ej Fj ,
(3.47)
27
which can be simplied with Eq. (3.13) and rearranged as ei [f (x + e t, t + t) f (x, t)] = Fi t
eq ei (f f ). (3.48)
which reects the evolution of cumulative momentum in the distribution function. Again, the momentum conservation requires the following identity, ei [f (x + e t, t + t) f (x, t)] Fi t.
(3.49)
which is the momentum equation with microdynamic variables, representing the Newtons second law. Substitution of Eq. (3.49) into Eq. (3.48) provides ei f (x, t) =
eq ei f (x, t).
(3.50)
The use of Eq. (3.21) in the above equation leads to the denition for another physical variable, velocity ui , as ui (x, t) = 1 h(x, t) ei f (x, t).
(3.51)
As can be seen from Eqs. (3.20), (3.21), (3.46) and (3.51), it seems that there are redundant denitions for the physical variables h and ui . However, a careful examination indicates that this is just an important feature which is peculiar to the lattice Boltzmann method. First of all, the local equilibeq rium function f given by (3.41) satisfy Eqs. (3.20) and (3.21). Secondly, the eq distribution function f relaxes to its local equilibrium function f via the lattice Boltzmann equation (3.10). Finally, the physical variables determined from Eqs. (3.46) and (3.51) will guarantee that both Eqs. (3.45) and (3.50) hold true, hence preserving the two identities (3.44) and (3.49) during the numerical procedure. This makes the lattice Boltzmann method very elegant and eectively explains why the method is accurate and conservative.
28
Taking a Taylor expansion to the rst term on the left-hand side of the above equation in time and space around point (x, t) leads to ( 1 1 2 (0) + ej )f + 2 ( + ej ) f + O(2 ) = (f f ) t xj 2 t xj + 2 ej Fj . (3.54) 6e
(0)
(3.55)
( and to order 2 is (
1 (1) 1 (0) + ej )f = f + 2 ej Fj t xj 6e
(3.56)
(3.57)
Substitution of Eq. (3.56) into Eq. (3.57), after rearranged, gives (1 1 1 (2) 1 1 (1) ( + ej )( 2 ek Fk ). (3.58) )( + ej )f = f 2 t xj 2 t xj 6e [ (3.56) + (3.58)] about provides
(0) f )+
Taking ( t
( xj
(0) ej f ) =
1 ( 12e2 xj
ej ek Fk ).
(3.59)
If the rst-order accuracy for the force term is applied, evaluation of the other terms in the above equation using Eqs. (3.11) and (3.41) results in h (huj ) + = 0, t xj which is the continuity equation (2.53) for shallow water ows. From ei [ (3.56) + (3.58)] about , we have ( t
(0) ei f )+
(3.60)
( xj
(0) ei ej f ) + (1
1 ) ( 2 xj
(1) ei ej f )
= Fj ij
1 2
ei (
1 + ej )( 2 ej Fj ). t xj 6e
(3.61)
3.7 Stability
29
Again, if the rst-order accuracy for the force term is used, after the other terms is simplied with Eqs. (3.11) and (3.41), the above equation becomes (hui ) (hui uj ) h2 + = g ( ) ij + Fi , t xj xi 2 xj with ij = (2 1) 2
(1) ei ej f .
(3.62)
(3.63)
With reference to Eq. (3.56), using Eq. (3.41), after some algebra, we obtain ij (hui ) (huj ) + . xj xi (3.64)
Substitution of Eq. (3.64) into Eq. (3.62) leads to h2 2 (hui ) (hui ) (hui uj ) + = g ( )+ + Fi , t xj xi 2 xj xj with the kinematic viscosity dened by = e2 t (2 1) 6 (3.66) (3.65)
The equation (3.65) is just the momentum equation (2.54) for the shallow water equations. It should be pointed that the above proof shows that the lattice Boltzmann equation (3.16) is only rst-order accurate for the recovered macroscopic continuity and momentum equations. We can prove that the use of a suitable form for the force term can make Eq. (3.16) second-order accurate for the recovered macroscopic continuity and momentum equations (the detail is given in Section 4).
3.7 Stability
The lattice Boltzmann equation (3.16) is a discrete form of a numerical method. It may suer from a numerical instability like any other numerical methods. Theoretically, the stability conditions are not generally known for the method. In practice, a lot of computations have shown that the method is often stable if some basic conditions are satised. They are described now. First of all, if a solution from the lattice Boltzmann equation (3.16) represents a physical water ow, there must be diusion phenomena. This implies
30
that the kinematic viscositykinematic viscosity should be positive [42], i.e. from Eq. (3.66) we have = e2 t (2 1) > 0. 6 (3.68)
Secondly, the magnitude of the resultant velocity is smaller than the speed calculated with the lattice size divided by the time step, uj uj < 1, e2 and so is the celerity, gh < 1. (3.71) e2 Finally, since the lattice Boltzmann method is limited to low speed ows, this suggests that the current lattice Boltzmann method is suitable for subcritical shallow water ows, which brings the nal constraint on the method as uj uj < 1. gh (3.72) (3.70)
The rst three conditions (3.69) - (3.71) can be easily satised by using suitable values for the relaxation time, the lattice size and the time step. The last condition (3.72) is the limitation of the lattice Boltzmann method.
3.8 Closure
In the lattice Boltzmann method, the central quantity is the particle distribution function f which is governed by the lattice Boltzmann equation (3.16). Its evolution is carried out on the square lattices in the computational domain. The physical variables, water depth and velocities, are calculated in terms of the distribution function via Eqs. (3.46) and (3.51). It has shown that the depth and the velocities determined in this way satisfy the shallow water equations. The four conditions for stability are described, which are very useful in practical computations. Apparently, the lattice Boltzmann method is a numerical technique for an indirect solution of ow equations through a microscopic approach to a macroscopic phenomenon. This bridges the gap between discrete microscopic and continuum macroscopic phenomena, providing a very powerful tool for modeling a wide variety of complex uid ows.
http://www.springer.com/978-3-540-40746-1