Lattice Boltzmann Method

Simulation
Introduced by
Gianluigi Zanetti
Year
1988
Type
Kinetic theory-based simulation method
Family
Fluid Dynamics

What does it do?

The Lattice Boltzmann Method (LBM) is a computational approach to fluid dynamics based on kinetic theory.

It discretizes the Boltzmann equation on a lattice and tracks the distribution of particle velocities at each lattice node, rather than solving the Navier-Stokes equations directly. McNamara and Zanetti introduced it in 1988 as a Boltzmann-equation alternative to lattice-gas automata, and macroscopic flow behaviour is obtained from the resulting distributions.

The intuition behind the method

Instead of tracking macroscopic variables such as velocity and pressure directly, LBM tracks how many particles at each lattice node move in each of a small set of discrete directions. Macroscopic density and velocity are obtained as moments of these distributions. Each time step has a streaming step, in which particles move to neighbouring nodes, and a collision step, in which the distributions relax toward equilibrium. Because each node is updated using only its neighbours' data, the scheme is local and well suited to parallel hardware. Boundary conditions are imposed on the particle distributions, which is one reason complicated boundaries are comparatively straightforward to represent. Chen and Doolen describe extensions to multiphase interfaces, turbulence, suspension flows and reaction-diffusion systems.

History

Lattice gas automata were developed in the 1980s as simplified cellular automata for fluid dynamics, and their simulations were affected by statistical noise. McNamara and Zanetti (1988) proposed modelling the lattice gas with a Boltzmann equation, which removes that noise and was estimated to be more efficient at intermediate to low Reynolds numbers. Qian, d'Humières and Lallemand (1992) introduced lattice BGK models with a single relaxation parameter, which gave an efficient, noise-free scheme. Later work added multiple-relaxation-time collisions, improved boundary conditions and turbulence models. Open-source LBM codes are also available for the method.

When to use it

Choose LBM for flows involving multiphase interfaces, flow through porous media or geometries with intricate boundaries, and reactive or particle transport coupled to the flow, particularly when the computation can exploit GPU or distributed parallel hardware. It is also appropriate for moderate Reynolds numbers. McNamara and Zanetti (1988) estimated the Boltzmann-equation approach to be more efficient than lattice-gas automata at intermediate to low Reynolds numbers, R ≲ 100. That comparison does not set an absolute limit on LBM use. At higher Reynolds numbers the governing considerations are stability and turbulence modelling (see limitations). Avoid LBM for very high Reynolds number flows, where the stability margin narrows and turbulence modelling or more advanced collision operators are needed. Avoid it when a long-established, validated industrial workflow for the flow regime is the main requirement.

Limitations and considerations

  • Resolving flow features requires fine lattices. Distributions are stored at every node for every discrete velocity (9 in D2Q9, 27 in D3Q27), so memory use can be large.
  • Lattice discretization introduces artefacts, including dependence on preferred lattice directions, which affects isotropy.
  • Stability narrows as the Reynolds number rises. The relaxation time must approach the stability limit, and turbulence models or more advanced collision operators may be needed.
  • Compressibility errors appear as the flow speed grows relative to the lattice sound speed, so the scheme's accuracy depends on keeping the lattice Mach number small.
  • Cost per time step may exceed that of well-optimized conventional solvers on CPUs, so the parallel advantage depends on hardware and implementation.
  • There are fewer long-established industrial codes and validated workflows than for general-purpose CFD packages.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Multiphase flows with interfaces can be treated through extensions of the basic scheme, which Chen and Doolen survey.
  • Boundary conditions are imposed on particle distributions, which gives a direct treatment of complex boundaries in porous media and intricate geometries.
  • Streaming and collision are local, so each node needs only neighbour data; this suits GPU and distributed-memory execution.
  • With a suitable second-order equilibrium, the BGK formulation recovers the Navier-Stokes equations and is noise-free and Galilean invariant (Qian et al., 1992). Compared with lattice-gas automata, it removes the statistical noise that affects those simulations (McNamara and Zanetti, 1988).
  • Explicit time stepping avoids solving a pressure Poisson equation at each step, provided the lattice Mach number is kept small.

Applications

  • Microfluidics: simulating droplet dynamics, mixing, and particle transport in lab-on-chip devices
  • Porous media: modeling fluid flow and reactive transport in rocks, soils, and membranes
  • Multiphase flows: studying bubbles, slugs, and phase transitions in pipes and reactors
  • Biomedical: analyzing hemodynamics in blood vessels, cell movement, and drug delivery
  • Materials science: simulating crystal growth, solidification, and phase separation during manufacturing

How it works

How it works

1

Define the domain geometry, boundary conditions and initial conditions, and choose a lattice topology with a discrete velocity set, such as D2Q9 or D3Q27 (see the FAQ for the notation).

2

Discretize the domain on a regular lattice and initialize the particle distribution functions f_i(x, t), typically at equilibrium. Select the collision operator, commonly the single-relaxation-time BGK form.

Formula
f_i(\mathbf{x}, t)
3

Each time step consists of a streaming step, in which distributions move along the lattice directions to neighbouring nodes, followed by a collision step, in which the distributions at each node relax toward equilibrium at a rate set by the relaxation time.

4

The equilibrium distribution f_i^eq is computed from the local density ρ and velocity u, using the lattice weights ω_i, the lattice velocities e_i and the lattice sound speed c_s. For the D2Q9 lattice, c_s² = 1/3, and the weights are 4/9 for the rest velocity, 1/9 for the four axis-aligned velocities and 1/36 for the four diagonal velocities. Macroscopic density and velocity are recovered as moments of the distributions. The relaxation time τ sets the kinematic viscosity through ν = c_s²(τ − 0.5), which holds in lattice units with unit lattice spacing and unit time step.

Formula
f_i^{eq}(\mathbf{x}, t) = \omega_i \rho \left(1 + \frac{\mathbf{e}_i \cdot \mathbf{u}}{c_s^2} + \frac{(\mathbf{e}_i \cdot \mathbf{u})^2}{2c_s^4} - \frac{|\mathbf{u}|^2}{2c_s^2}\right)
5

Extract velocity, pressure and vorticity fields from the macroscopic moments and compare them with experimental or analytical reference solutions, using a quantitative error measure such as a norm of the difference over the domain. Run a grid-refinement study by repeating the simulation on successively finer lattices, and confirm that the quantities of interest change little between the two finest resolutions. Check convergence by monitoring the change in the macroscopic fields between time steps, and confirm that the flow has reached steady state when a steady result is sought. Keep the lattice Mach number well below one for every case and report its value with the results, because compressibility errors grow as it rises.

Common pitfalls

  • Choosing lattice resolution from grid density alone, without checking the lattice Mach number, which governs the compressibility error.
  • Running the BGK collision operator at high Reynolds numbers without turbulence modelling or higher-order collisions such as multiple-relaxation-time schemes.
  • Setting the relaxation time close to its stability boundary, which can make the simulation oscillate or diverge.
  • Assuming LBM handles multiphase or reactive physics automatically. These extensions still require calibration and validation against reference data.
  • Imposing macroscopic boundary values without setting consistent particle distributions at the boundary, which can produce spurious results.

Frequently asked questions

What is the relationship between the Boltzmann equation and the Navier-Stokes equations?

The Navier-Stokes equations describe macroscopic fluid behaviour and can be obtained from the Boltzmann equation through a Chapman-Enskog expansion, which recovers them asymptotically for small departures from equilibrium and small lattice Mach number. LBM discretizes the Boltzmann equation on a lattice; with a properly chosen equilibrium, the isothermal scheme recovers Navier-Stokes behaviour (Qian et al., 1992). Discrete moments of the distribution give density and momentum, which the isothermal scheme conserves. The standard isothermal D2Q9 and D3Q27 models therefore conserve mass and momentum but do not model thermal energy, so flows with significant temperature variation require additional treatment beyond the isothermal model.

What do lattice types like D2Q9 and D3Q27 mean?

The notation DxQy denotes x dimensions and y discrete particle velocities. D2Q9 is 2D with 9 velocities (including rest), sufficient for 2D Navier-Stokes. D3Q27 is 3D with 27 velocities, capturing full momentum and stress tensors. Higher Q numbers improve accuracy and stability but increase memory and compute cost.

How do I set the relaxation time in LBM?

The relaxation time τ sets the viscosity through ν = c_s²(τ − 0.5), so τ must exceed 0.5 for a positive viscosity. Values close to 0.5 push the scheme toward instability, which appears as oscillations or divergence. For high Reynolds numbers, multiple-relaxation-time (MRT) collisions or turbulence models are preferable to simply lowering τ to reduce viscosity.

What is the lattice Mach number and why does it matter?

The lattice Mach number Ma_L = |u|/c_s compares flow velocity to the lattice sound speed. LBM is designed for Ma_L well below one, where incompressible behaviour is accurate. As Ma_L grows, compressibility errors and acoustic waves become more pronounced. Keep it small by adjusting resolution or the imposed flow speed, and check the sensitivity of results to this choice.

How do I implement boundary conditions in LBM?

Instead of specifying velocity or pressure like in Navier-Stokes, you specify the distribution function at boundaries. For no-slip walls, use bounce-back: incoming particles reflect. For pressure or velocity inlets, use equilibrium distributions matching the desired macroscopic values. Moving boundaries update particle distributions based on wall velocity, naturally incorporating drag.

Related methods

Sources

  1. McNamara, G. R., & Zanetti, G. (1988). Use of the Boltzmann equation to simulate lattice-gas automata. Physical Review Letters, 61(20), 2332-2335.

    Open DOI reference
  2. Qian, Y. H., d'Humières, D., & Lallemand, P. (1992). Lattice BGK models for the Navier-Stokes equation. Europhysics Letters, 17(6), 479-484.

    Open DOI reference
  3. Chen, S., & Doolen, G. D. (1998). Lattice Boltzmann method for fluid simulations. Annual Review of Fluid Mechanics, 30, 329-364.

    Open DOI reference