Documente Academic
Documente Profesional
Documente Cultură
+
r
(1)
Where,
f
is the distribution function,
v
r
is the velocity vector and
Q
is the collision
integral. Applying the BGK approximation to the collision integral
( )
1
eq
f
v f f f
t
+
r
(2)
Where
+
r
(3)
Two steps involved in LBM are:
1) Streaming
2) Collision
In streaming direction specific densities (distribution functions) are moved to the
nearest neighbor lattice nodes. The streaming of distribution functions from one node to
the other is shown in Figure 2.
8
Figure 2: Streaming of particles
In collision, distribution functions collide with each other to get new distribution while
conserving momentum. Both steps can be represented by following mathematical
expression
( ) ( ) ( )
1
, , , ( , )
Streaming
Collision
eq
i i i i
f t t t f t f t f t
1 + +
]
i
x e x x x
1 4 4 4 442 4 4 4 4 43
1 4 4 4 2 4 4 4 3
(4)
Where
i
e
indicates the microscopic velocity of ith particle. Collision of the fluid
particles is considered as relaxation towards local equilibrium. This collision step is
skipped at solid nodes, because bounceback boundary condition which is applied on solid
nodes, is also a type of collision. The equilibrium distribution function
eq
i
f is defined as,
( )
( )
2
2
( )
2 4 2
. . 9 3
1 3
2 2
i eq i
i i
f w
c c c
1
+ + 1
1
]
e u e u u
x
(5)
Where the weights
i
w
are 4 9 for the rest particles ( 0 i ),1 9 for { } 1, 2, 3, 4 i
and
1 36 for { } 5, 6, 7, 8 i
. c represents the basic speed on lattice (in the simple LBM
models 1 c
1
luts
) and
8
0
i
i
f
(6)
Macroscopic velocity
u
8
0
1
i i
i
f
u e
(7)
Pressure P
P RT
(8)
Kinematic viscosity
1 1
3 2
_
,
(9)
Relaxation time
1
1
+ +
1
]
e u
e u u
x
(10)
Where, the equilibrium velocity
eq
u is calculated as
10
eq
+
F
u u
(11)
The velocity
u is defined as
8
0
i i
i
f
e
u
(12)
The interparticle force Fis given by
( )
8
0
( , ) ( , ) ,
i i i
i
t G t w t t
F x x x e e
(13)
Where G is the interaction strength, being negative for interparticle attraction.
i
w
is 1/9
for { } 1, 2, 3, 4 i
, for { } 1, 2, 3, 4 i
is 1/36 for and
,
(14)
0
and
0
and
0
has been
arbitrarily chosen as 4 and 200 respectively, because the model behavior with these values
has been explored thoroughly. According to equation (14) the attractive force is stronger
when density is higher, and vice versa. Hence, the liquid regions experience stronger
cohesive force than the vapor leading to the surface tension phenomenon . The variation
of
with
is shown in Figure 3.
Figure 3: Effect of density on interaction potentials
The pressure is calculated by using the following non-linear and non-ideal equation of
state:
( )
2
2
GRT
P RT + 1
]
(15)
The value of RT is fixed for both SCSP and SCMP models:
1
3
RT (16)
The second term on the right hand side of is non-ideal part that stands for attractive
force between the molecules. Since G is negative, it leads to the reduction of pressure.
When G is adequately negative, the EOS is non-monotonic that leads to the phase
separation. Using (16), the equation for pressure becomes
( )
2
6
RT
P RT + (17)
The pressure density relationship is demonstrated in Figure 4 for G = -48, -72, -92.4
(critical), -120, -144. It has been observed that when |G| exceeds a critical value of 92.4,
there corresponding to each pressure there exists two values of densities; the higher one
showing the density of liquid and lower indicating vapor density.
Figure 4: Effect of pressure reduction on density for G = -48, -72, -92.4, -120, -144
Here, only attractive forces has been considered and repulsive forces has been ignored
which become dominant when a gas is present in compressed form.
12
5 Multicomponent Multiphase LBM
In Multicomponent multiphase (MCMP) system, more than one species are combined
through interaction forces (repulsive) to form immiscible fluids. MCMP flows are of
tremendous economic and environmental importance. Their economic importance is due
to the fact that petroleum is found with water forming a MCMP system. Non aqueous
phase liquids present in the subsurface and acting as a long lived source of ground water
contamination contribute to the environmental importance of MCMP.
To simplify the system, only two components have been considered here. In LBM
algorithm, the addition of a second component is incorporated by the the addition of a
new array and a new loop. The equilibrium distribution function is calculated using the
following composite macroscopic velocityu
1
1
a a
a
a
f
u
f
e
(18)
The composite macroscopic velocity represents the flow of the bulk of fluid and differs
from the macroscopic uncoupled velocities of the individual components
u
8
0
1
a a
a
u f
e
(19)
Where,
(20)
The density of both components cannot be zero at any point in the calculation domain,
otherwise physically unreakistic values of velocities will be obtained.
To obtain equilibrium velocities
eq
u , the gravity (body force) and interaction forcs
are added to u
. The repulsive interaction forc on the fluid component
is given by
( ) ( , ) ( , )
a a a
a
F x G x t w x t t
+
e e
(21)
Where, G is the interaction strength,
and
to u
is
eq
u u F
+ (22)
eq
u F
u
(23)
The velocity increment depends on the magnitude of G and fluid densities. The
magnitude of the velocity increment in the above Equation should be kept small.
6 Boundary Conditions
The dynamics of fluid flow depends on the surrounding environment. This influence is
described via boundary conditions. So, Boundary conditions play a crucial role in
computing any meaningful results. Periodic, Bounce back and Dirichlet boundaries have
been described below.
6.1 Periodic boundary Conditions
Periodic boundary conditions are the simplest boundary conditions because system
becomes closed by the edges as if they are attached with each other. They are sufficient
where surface effects are negligible. In flow simulation in a slit, periodic boundary
condition is applied at the open end of the slit and bounce back boundary condition is
applied at the slit walls.
Periodic boundary condition is implemented in streamwise x direction by treating the
nodes on the inflow and outflow faces as the neighbors if they share common y and z
coordinates. For boundary nodes, the neighboring nodes are present on the opposite
boundary. Here are some conditionals that check if the neighboring nodes lie outside the
computational domain and then assign the appropriate node on the opposite boundary in
that case to achieve periodicity. Pseudo code to implement Periodic boundary condition in
x direction is described below (1 is the first node in both x and y direction and lx and ly
are the last nodes in x and in y direction respectively).
( ) ( )
( ) ( )
( ) ( )
( ) ( )
( ) ( )
( ) ( )
do y=1,ly
f 1,1,y f 1,lx,y
f 5,1,y f 5,lx,y
f 8,1,y f 1,lx,y
f 3,1x,y f 3,l,y
f 6,1x,y f 6,l,y
f 3,1x,y f 7,l,y
enddo
(24)
Using this convention, the populations on all incoming links at inflow and outflow is
defined automatically by streaming process. Periodic boundary condition is imposed as
14
the natural part of streaming so that outgoing populations at one end becomes the
incoming populations at the other end.
Fully periodic boundary conditions are also applied in some cases e.g. the simulation
of multiphase flow in an infinite domain.
6.2 Bounce Back Boundary Condition
The next simplest boundary condition is the bounceback boundary condition, also
known as no-slip boundary condition. It plays a major role in making LBM popular
because it can conveniently handle the complex boundaries such as those present in
porous media. It specifies that velocity of fluid at the wall is same as that of wall.
In programming, one just has to declare a particular node as the solid object and no
special treatment is necessary. Thus it is easy to incorporate images of porous media and
immediately compute flow in them. Solids nodes are separated into two categories:
1. Boundary solids
2. Isolated solids
Boundary solids lie at the solid-fluid interface and isolated solids are those that has no
contact with fluid. By using this division it is possible to eliminate unnecessary
computations at inactive nodes; this is very important in simulating flow in fractured
media where fraction of total space occupied by open space in contact with fluids, which
needs to program is very small.
It has been assumed that solid surface is aligned with the grid. Two types of
implementations will be discussed:
1. On-grid or Full way bounceback
2. Mid grid or Half way bounceback
On-grid means that physical boundary lies exactly on grid line, whereas, in mid-grid
condition the boundary lies in between two grid lines. The first one is easy as it just
reverse all the populations sitting on the boundary node. It simply implies that for any
domain
( ) ( )
in out
f N =f N
( ) ( )
in out
f S =f S
(25)
where N and S represent north and south rows of the domain. For a D2Q9 model, it is
implemented as:
( ) ( )
( ) ( )
( ) ( )
f 6,x,y =f 2,x,y
f 7,x,y =f 3,x,y
f 8,x,y =f 4,x,y
(26)
The on-grid bounceback possess only first order accuracy because of of sided character
of streaming process at the boundary. Second order accuracy can be achieved by using the
mid grid or half way bounceback condition, which is modestly more complex than Full
way bounce back.
It is implemented as:
( ) ( )
in out
f N =f NF
( ) ( )
in out
f S =f SF
(27)
Where N and S represent a generic site on the top and bottom walls, respectively,
whereas NF,SF is the set of fluid sites connected to N,S respectively.
For a D2Q9 model it is implemented as:
( ) ( )
( ) ( )
( ) ( )
f 6,x,y = f 2,x-1,y-1
f 7,x,y = f 3,x,y-1
f 8,x,y = f 4,x+1,y-1
(28)
6.3 Dirichlet Boundary Condition
In real flow experiment, some form of regulation at inlet and outlet is needed. A
common type involves the constant pressure difference between the inlet and the outlet.
The Dirichlet boundary condition constrains the pressure/density at an inlet or outlet
boundary. To impose it, it is assumed that inflow face is oriented normal to an axis of the
lattice. It is also assumed that velocity tangent to boundary is zero and the normal to the
boundary component of velocity is evaluated.
First of all, a density
o
at
their lattice nodes.
16
6.4 Von Neumann Boundary Condition
Von Neumann boundary condition specifies the flux at the boundary. A velocity vector
containing x and y components [ ]
0 0
= u v u
is specified from which density/pressure is
computed. Macroscopic density/pressure is only part of what needs to be computed .
After streaming there there are three unknown directional densities
4 7 8
, and f f f
at each
lattice node (pointing into the domain). These three unknowns are solved in a way to
maintain the specified velocity at lattice nodes. Then density is computed by the
summation of all distribution functions
.
7 Results And Discussions
The simplest LBM that has been implemented is for SCSP and SCMP. The
programming language used is FORTRAN and lattice model is D2Q9. TECPLOT 360
has been used as post processing tool. Here the simulation results have been presented for
poisuelle flow and multiphase flow.
7.1 Plane poisuelle Flow
The viscous flow through a channel under the action of pressure gradient is called
poisuelle flow. The flow is one dimensional incompressible and laminar. The analytical
solution gives a parabolic velocity profile with maximum velocity in the center and zero
at the walls of the channel.
In LBM, poisuelle flow has been simulated using a uniform grid, which contains thirty
lattice units (lu) in x-direction and twenty in y direction. Bounceback boundary condition
has been applied along the walls. In the flow direction Periodic boundaries has been used,
which means the fluid leaving the domain reenters in the opposite end of the channel. The
system is effectively infinite in the flow direction and there are no end effects . The time
length is 3000 time steps. The fluid is resting in the beginning and is then slowly
accelerated . The value of relaxation parameter
(29)
According to Laplace law, plot of P and 1/r should be linear and its slop represents the
surface tension. The surface tension
=1.85.
The simulation results for SCMP have been depicted by using Shan and Chen SCMP
model, are also in good agreement with results present in literature. Phenomenon of phase
separation has been shown for various values of interaction strength which causes
reduction in pressure and hence leading to phase separation phenomenon. Density profile
in a droplet present in the vapor atmosphere has also been shown. Density shows an
abrubpt change at the interface. Surface tension computed also match quite well with the
literature values. The value of surface tension computed is 14.322 lu mu/ts
2
. This is very
close to literature value (14.332 lu mu/ts
2
). The error is only 0.06977%.
Although SCSP and SCMP flow have been simulated, LBM has capability to simulate
MCMP. The simulation of MCMP flow using LBM will be performed in the research
semester.
References
[1]. Michael C.Sukop, Daniel T.Thorne, Jr., Lattice Boltzmann Modeling An
Introduction for Geoscientists and Engineers, Springer Verlag Berlin Heidelberg,
2006.
[2]. Shan X and Chen ,Simulation of nonideal gases and liquid-gas phase transitions by
the lattice Boltzmann equation, APS, 49, 2941-2948, 1994
[3]. Buckles et al ,Toward improved prediction of reservoir flow performance, Las
Alamos science, 22, 112-121, 1994
[4]. Xiaoyi H and Luo L.S, Theory of the lattice Boltzmann method: From the
Boltzmann equation to the lattice Boltzmann equation, APS Physics, 56,6811-
6817,1997
[5]. Martys N.S and Douglas J.F, Critical properties and phase separation in lattice
Boltzmann fluid mixtures , Phys. Rev. E.63 2001
[6]. Ladd A.J.C. and Verberg R, Lattice-Boltzmann Simulations of Particle-Fluid
Suspensions, Journal of Statistical Physics, 104 2001
[7]. Baochang S, Lattice Boltzmann Simulation of Some Nonlinear Complex Equations
ICCS, 818 825 2007
[8]. Sbragaglia, et al, Generalized lattice Boltzmann method with multirange
pseudopotential, APS, 75 2007
[9]. Huang et al, Shan-and-Chen-type multiphase lattice Boltzmann study of viscous
coupling effects for two-phase flow in porous media, Int. J. Numer. Meth. Fluids,
2008
[10]. Gokaltun S and McDaniel D, Multiple-Relaxation-Time Lattice Boltzmann
Method for Multiphase Flows with High Density and Viscosity Ratios, WM
Conference, 2010
[11]. Nwatchok et al, Lattice Boltzmann simulation of the two-dimensional Poiseuille-
Rayleigh-Benard flows instability, International Journal of the Physical Sciences,
5,984-991, 2010
[12]. Myre et al, Performance analysis of single-phase, multiphase, and
multicomponent lattice-Boltzmann fluid flow simulations on GPU clusters,
Concurrency and Computation: Practice and Experience, 23, 332-350, 2011
[13]. Dieter A. Wolf Gladrow, Lattice Gas Cellular Automata and Lattice Boltzmann
Models, Lectures Notes in Mathematics, 1st Edition, Springer Verlag Berlin
Heidelberg, New York, 2000.
28
[14]. Http:Developer.nvidia.com/GPUGems2/gpugems2_chapter47.html.(retrieved on
02-05-2012).
[15]. Sauro Succi, The Lattice Boltzmann Equation for Fluid Dynamics and Beyond,
Clar-endon Press Oxford, 2001
[16]. Begum, R., Basit, M. A., Lattice Boltzmann Method and its Applications to Fluid
Flow Problems, EJSR, 22, 216-231 2008
[17]. Begum, R., Basit, M. A., Simulation of phase separation Process using Lattice
Boltzmann method, CMNSEM, 1, 2010.