1. Introduction
The lattice Boltzmann method (LBM) has been used primarily to solve fluid dynamics problems [
1,
2,
3,
4], but it can also be used to approximate solutions of the convection-diffusion equation for a scalar field
C [
5],
In this paper we envisage
C as describing a reactant concentration that is sufficiently dilute that it does not affect the flow, but advects and diffuses as a passive scalar in a predetermined velocity field
u. There is a growing interest in geophysical applications involving reactant transport, where the surrounding solid matrix dissolves or precipitates [
6,
7,
8,
9,
10,
11]. Typically the time scale for a significant displacement of the solid-fluid interface is much longer than the characteristic time scales for momentum or reactant transport, and in such circumstances it is the stationary limit of (1) that is of most interest.
Lattice-Boltzmann models typically have more degrees of freedom than the macroscopic equations they are trying to simulate. It is therefore problematic how to establish boundary conditions on the population densities so as to best satisfy the macroscopic conditions without polluting the solution with perturbations that, although small on the macroscopic scale, are still significant in a simulation with limited resolution. There is a trade off between first-order boundary conditions, which maintain the exact conservation laws [
12,
13,
14,
15] and higher-order methods [
16,
17,
18,
19]. In [
19], a second-order accurate treatment of the boundary condition in the LB method is developed for a curved boundary. In a seminal paper [
17], Ginzburg and d’Humieres proposed a general interpolation scheme that incorporated several earlier schemes as special cases; the most sophisticated Multi-Reflection (MR) schemes are more accurate than alternative methods, at least in simple geometries.
A disadvantage of multi-Reflection boundary conditions is that they require several nodes to implement; up to three in the most accurate cases although two nodes can give accurate results when coupled with a suitable tuning of the kinetic modes of the LB model [
17]. However under certain conditions it is not possible to find any neighboring fluid nodes and in such cases the interpolation scheme breaks down [
18]; the bounce-back rule is usually invoked for these nodes, but unfortunately this reduces the accuracy of the global solution to something akin to the bounce-back rule [
18]. Higher-order local boundary conditions, which make use of information contained in the kinetic modes, have been proposed [
18,
20], but they have not been used very extensively, perhaps because they are more complicated to implement.
In a Chapman-Enskog analysis, the velocity distribution
is decomposed into an equilibrium part
, which depends on the macroscopic variables, and a non-equilibrium part
. Since
depends on gradients of the macroscopic variables, a consistent approximation to the macroscopic fields can be obtained if the non-equilibrium distribution is evaluated at one order lower (in gradients of the macroscopic variables) than the equilibrium distribution. Since the equilibrium distribution can be determined at the solid-fluid boundary, there is an additional node for interpolation, so that only a single fluid node is required as in the case of the bounce-back rule itself. This idea underpins several different improvements to the bounce-back rule [
21,
22,
23]; in this paper we focus on the first implementation [
21], which proves to be the most stable.
The convection-diffusion equation is difficult to solve numerically because the Péclet number for reactive transport on a length scale
l,
, is typically three orders of magnitude larger than the corresponding Reynolds number
. Thus the stability of the numerical scheme is of paramount importance for an efficient implementation. Lattice-Boltzmann schemes have the advantage that errors due to numerical dispersion are eliminated, but since the method is explicit it is impossible to ensure stability at high flow rates as the standard upwind finite difference methods do. In this paper we assess the accuracy and stability of the TRT LB model in a simple geometry, to test the accuracy and stability of different implementations of the boundary conditions. We focus on MR schemes for scalar transport [
24] and an interpolation of the equilibrium distribution (EQI) along the lines of Refs. [
21,
25].
This paper is organized as follows. In
Section 2, the TRT lattice Boltzmann model for the steady convection-diffusion flow is introduced. The non-equilibrium extrapolation method for the convection is proposed for the Dirichlet or mixed boundary conditions in
Section 3 and
Section 4. This method combined with finite difference method is easy to implement and can be used for stationary and moving boundary. To demonstrate the numerical accuracy and stability, the steady convection-diffusion flow in long channel is carried on in
Section 5. From the simulation results, good agreement with the analytic solution can be seen and this method is of better stability for high
number compared to the methods by Ginzburg.
Section 6 has a short conclusion of the paper.
2. TRT Model
Lattice Boltzmann models are defined by a set of
Q velocities
, (
), with displacements
that are basis vectors of a crystallographic lattice; here
h is the time step of the LB update. The TRT model is a subset of the Multi-Relaxation-Time (MRT) LB models, which maintains the accuracy of MRT LB but with a significantly simpler collision operator. At steady state the TRT equation for the populations
is [
17]
where
is the post-collision distribution,
,
, and
is the equilibrium distribution. The symmetric and anti-symmetric populations are given by
with
. At steady state
[
26], and
.
The steady-state convection-diffusion equation is most accurately simulated with a linear equilibrium distribution of the form
where
is the concentration field and
is the imposed velocity field; for a grid spacing of
b,
. The parameter
typically takes the value
, but it can be reduced to increase the range of stability, subject to the limitations indicated in
Table 1. In general the velocity field is found from an independent simulation, but in this investigation we impose a Poiseuille-flow profile in a channel of width
H,
; the Péclet number is based on the average velocity in the channel
LB simulations of time-dependent convection-diffusion include a non-linear term in the equilibrium distribution to eliminate second-order errors in the evolving concentration field. However, this contribution actually introduces a second-order error in the steady-state solution, where the time-scale separation assumed in the Chapman-Enskog expansion is no longer entirely valid [
27].
The coefficients
(
Table 1) must satisfy the following sum rules to obtain the correct macroscopic behavior:
The first two moments of
are:
while for mass-conserving collisions
.
The macroscopic behavior (at steady state) can be found from a Taylor expansion of Equation (2) about
r, which leads to a hierarchy of moment equations, which are truncated systematically at order
:
The moments
can be separated into equilibrium
and non-equilibrium
contributions. Substituting explicit expressions for the equilibrium moments (4) and solving Equation (9) for
we obtain the convection-diffusion equation with second-order errors:
where
and
. The steady-state solution is third-order accurate if
and second order otherwise.
The location of the solid-fluid boundary depends on
, but for bounce-back and related boundary conditions the macroscopic fields are independent of
if the product
is held fixed [
17,
24]. Although there is no single value of
that ensures that even planar boundaries are located in exactly the correct place, the choice
gives a near optimum boundary condition for arbitrary geometries [
17,
24]. It is possible to solve for the steady-state concentration field directly [
28], but here we use standard time-stepping algorithm to reach the steady solution.
3. Dirichlet Boundary Conditions
We have tested different implementations of a Dirichlet boundary condition for reactive transport in a two-dimensional channel flow. The focus is on the accuracy and stability of the simulation when the grid Péclet number,
is larger than 1. The concentration profile at the inlet is Gaussian,
with
; this eliminates singularities in the concentration field at the corners of the channel. At the outlet we implement a no-flux condition
, but the system is always sufficiently large so that the concentration at the outlet was entirely negligible. We have investigated the “anti-bounce-back” (ABB) rule [
24], 2nd and 3rd order implementations of the Multi-Reflection boundary condition [
24], and an interpolation of the equilibrium distribution [
21].
A typical set of results is illustrated in
Figure 1 which shows the concentration profile across the channel a short distance from the inlet. The channel width is set to 10 grid points,
, and the channel boundaries are placed at different locations with respect to the fluid grid. At sufficiently high Péclet numbers axial diffusion can be neglected and the concentration profile can then be approximated by a series solution that converges very rapidly away from the inlet. However, for
, axial diffusion is not entirely negligible so we have used a high resolution (
) simulation for our “exact” results; we verified that this solution approaches the analytic series expansion in the limit of large Péclet number (i.e.,
). As expected the ABB rules are only accurate when
, whereas interpolated boundary conditions (2nd, 3rd, NE) are more or less independent of the location of the boundary. There is a small,
, error in both second-order methods (2nd and NE) near the centerline, while the 3rd-order method has a significantly smaller error.
Surprisingly, at larger Péclet numbers (
) there are significant errors in the 3rd-order solution near the centerline, as illustrated in
Figure 2; on the other hand the second-order solutions maintain a similar accuracy at the higher Péclet number. The error in the 3rd-order boundary condition is reduced by taking
, which makes the LB model third-order accurate in the bulk (11) as well as at the boundary. Since the largest error in concentration is in the middle of the channel, in
Figure 3 we plot the centerline concentration as a function of the axial coordinate
. At the lower Péclet number all three methods produce similar results, with the 3rd-order method being the most accurate, but at
only the non-equilibrium extrapolation (NE) produces an accurate result near the inlet.
Large errors near the inlet at high-Péclet numbers may be connected to the onset of an instability in the evolving concentration field.
Figure 4 shows an approximate stability diagram, delineating regions where stable solutions can be obtained for different values of
(4). The 3rd-order Multi-Reflection boundary condition is the least stable in these simulations, never quite reaching a grid Péclet number
; simulations with
in a channel of width
are therefore at the margin of stability. The 2nd-order MR and ABB methods are more stable, with maximum grid Péclet numbers of 18 and 15 respectively; again the stability is insensitive to the choice of
. However, the NE method reaches a much higher grid Péclet number
when
is sufficiently small (
). Thus the NE boundary condition appears to be the most suitable for high-Péclet transport; we will focus on this method in subsequent sections.
4. Mixed Boundary Conditions
The general form for the reactive boundary condition with linear reaction kinetics is
where
n is the surface normal pointing into the fluid and
k is the reaction rate constant. A general implementation of these boundary conditions has been derived based on the Multi-Reflection boundary conditions [
24], but since these are less stable than the extrapolation method [
21] we will not consider them further. Alternative interpolation schemes [
22,
23] will reduce to the anti-bounce-back rule when
; thus they will also be unable to reach grid Péclet numbers in excess of 20.
The boundary condition is implemented in two stages; first the concentration at the boundary satisfying (14) is calculated by finite difference followed by an implementation of the Dirichlet boundary condition with that concentration [
25]. Along the direction of the link
q, pointing towards the solid surface (
Figure 5), the concentration gradient can be approximated by a first-order finite difference
where
is a unit vector along
q and
is the distance between the fluid node
and the boundary node
. Substituting into the boundary condition (14) gives an expression for the concentration at the boundary
where
is the grid Damköhler number. Alternatively, a second order finite difference yields
in these formulas
.
An implementation of a no-slip boundary condition [
21] can be adapted to LB simulations of the concentration field. If (for example) the velocity vector
from the node labeled
f (
Figure 5) crosses the solid surface at
, then the boundary condition is required to provide a value for the population
. If we imagine a ghost node inside the solid at
(
Figure 5), then the population
will be transferred to
by the streaming step. The equilibrium distribution
is determined by interpolating the concentration field [
21],
where
is found from (16) or (17). In our applications the velocity inside the solid phase
, but for solid particulates it could be non-zero due to the translation and rotation of the particles. To avoid numerical instability when
an alternative interpolation is used for small
,
We make the transition from (18) to (19) at
[
21].
The non-equilibrium contribution is obtained by extrapolation,
making use of the fact that
is proportional to
and is therefore one order higher in
b than
. Equation (20) is therefore sufficient for a second-order approximation to
. An alternative implementation of the same idea is non-equilibrium bounce back
with a plus sign (bounce-back) for the no-slip condition [
22] or a minus sign (anti-bounce-back) for a concentration boundary [
14]. Our numerical tests indicate a strong preference to extrapolation over bounce-back from the point of view of stability.
5. Numerical Tests with the Mixed Boundary Condition
Secondly, we take the simulation of the convection flow with mixed boundary condition on the top and bottom walls. The boundary conditions of the problem can be described as follows:
The Damkohler number (Da) is defined as which indicates the relative strength of the reaction to diffusion.
Here, we take the NE method for the simulations. On the reactive boundaries, the finite difference method is used. For this problem on the reactive boundary, the concentration
is approximated by the first order finite difference (FD):
To improve the accuracy, we can use second order FD:
In the numerical simulations, the domain size
lattice unit spacings for
and
lattice unit spacing for
. In
Figure 6, the concentration at
is plotted along
y-axis with
and
and 1 by different FD method in non-equilibrium extrapolation method. From the figures, we can see that the second order FD in NE method is better than the first order one. The concentration on the top boundary at
is shown in
Figure 7. From the figures we can see the TRT model with NE method are agree with the analytic solution. And the second order FD is better than the first order FD method.
To demonstrate the accuracy of the non-equilibrium extrapolation method with different finite difference method, the relative error on the top or bottom boundary (BRE) is defined as
In
Table 2, the relative error on reactive boundary are listed with different
number and
number. From the Table, we can see that the second order finite difference is also better than the first order FD method.
To demonstrate the stability of NE method. We calculate the maximum grid Peclet number
with different
and
. The width of the channel
H is 10. The figures are plotted in
Figure 8, and it is shown that the
number has little influence on the stability. The smaller
, the better stability. And maximum
can reach 40.
6. Conclusions
In this paper, we have proposed a non-equilibrium extrapolation method in TRT model for simulating convection-diffusion flow with a reactive boundary condition. The Dirichlet and mixed boundary conditions have been analyzed. Like the method by Guo, the main point is to obtain the particle distribution function on the boundary. In NE method, it is important to get the physical quantities on the boundary. For the reactive boundary, that is mixed boundary conditions, finite difference is used and it is easy to construct the particle distribution function.
We have verified the accuracy of the NE method with TRT through a comparison with the analytic solution for the convection-diffusion flow in the long channel. From the simulation results, it is in good agreement with the analytic solution. Furthermore, it is of better numerical stability for high Pe numbers, both Dirichlet and mixed boundary conditions, compared with the methods by Ginzburg.