Lattice Boltzmann

Lattice Boltzmann

How the lattice Boltzmann method simulates fluid flow by tracking particle distributions that stream and collide on a regular lattice, suiting porous media, multiphase flow and complex boundaries.

What it is

The lattice Boltzmann method (LBM) is a computational approach to fluid dynamics that does not solve the Navier–Stokes equations directly. Instead, it simulates fictitious particle populations that move along a small set of directions on a regular grid (the lattice) and collide at the nodes. The macroscopic fluid density and velocity are obtained as moments of these populations, and, through a multiscale (Chapman–Enskog) expansion, the method reproduces the Navier–Stokes equations for weakly compressible flow. LBM is popular for flow in porous media, multiphase and multicomponent flow, droplets and bubbles, blood flow, particle suspensions, microfluidics and flows around very complex geometries, and it maps well onto GPUs.

It answers questions such as: How does fluid permeate a rock or filter sample taken from a micro-CT image? How do droplets merge, spread on a surface or break up? How do suspended particles or cells move in a flow? How can transient flow in a complicated geometry be simulated without a body-fitted mesh? Its local, simple updates make complex boundaries and physics easy to add, at the cost of low-Mach-number limits.

Fundamentals

Distribution functions and the lattice

The basic variable is the particle distribution function fi(x, t), the density of particles at node x moving with discrete velocity ci. Lattices are named DdQq (d dimensions, q velocities): D2Q9 (nine velocities in 2D) and D3Q19 or D3Q27 (in 3D). Each velocity carries a weight wi. The macroscopic fields are moments: density ρ = Σ fi and momentum ρu = Σ fi ci. Pressure follows from an isothermal equation of state, p = cs2 ρ, with lattice speed of sound cs = 1/√3 (in lattice units, where the grid spacing and time step equal one).

Collision and streaming

Each time step has two operations. Collision relaxes the populations toward a local equilibrium at each node, and streaming moves each population to the neighbor in the direction of its velocity. In the simple BGK (single relaxation time) form:

fi(x + ciΔt, t + Δt) = fi(x, t) − (1/τ)[fi(x, t) − fieq(x, t)]

where the equilibrium is the discretized Maxwell–Boltzmann expansion, fieq = wi ρ [1 + (ci·u)/cs2 + (ci·u)2/(2cs4) − u·u/(2cs2)]. The relaxation time τ sets the kinematic viscosity: ν = cs2 (τ − ½) Δt, so τ must exceed 0.5 for positive viscosity, and values very close to 0.5 (low viscosity, high Reynolds number) make the scheme unstable. The algorithm is explicit, local (each node needs only its neighbors) and second-order accurate in space, so it parallelizes very efficiently.

Units, accuracy and the low Mach number limit

Simulations run in lattice units, and physical quantities are mapped with scaling: the grid spacing Δx and time step Δt are chosen so that the dimensionless numbers match the real problem (the Reynolds number Re = U L/ν must be equal). To keep compressibility errors small, the lattice Mach number Ma = u/cs should remain below about 0.1–0.3, meaning velocities of at most roughly 0.1 in lattice units. Because Ma is fixed by the lattice velocity, matching a high Reynolds number demands small viscosity (τ near 0.5) or fine grids, and with diffusive scaling (Δt ∝ Δx2) the cost grows as the fourth power of resolution in 3D.

Improved collision operators and boundary conditions

For better stability and accuracy, the collision step can use multiple relaxation times (MRT), relaxing different moments (shear, bulk, energy modes) at independent rates, two-relaxation-time (TRT), which makes the effective wall position independent of viscosity, regularized and cumulant operators, and entropic schemes for high Reynolds number. Boundary conditions are applied to the populations that would stream in from outside: bounce-back reverses populations at a wall, giving no-slip conditions at a wall placed midway between nodes (halfway bounce-back, second-order for straight walls), with interpolated versions (Bouzidi) for curved walls; Zou–He and equilibrium schemes impose velocity or pressure at inlets and outlets; periodic boundaries wrap populations; and moving walls add a momentum term. Curved surfaces represented on a stair-step grid, such as pore walls from tomography images, are handled directly, with errors that decrease with resolution, which is why LBM is so convenient for porous media: segmenting a micro-CT image gives the geometry with no mesh generation.

Extensions: multiphase, thermal, particles

  • Multiphase and multicomponent: the Shan–Chen pseudopotential model adds an interparticle force that produces phase separation, surface tension and contact angles, the free-energy model builds in a thermodynamic description, and the color-gradient model separates immiscible fluids.
  • Thermal flows: a second distribution function for temperature (double-population) or multi-speed models handle heat transfer and convection.
  • Particles: the immersed-boundary or momentum-exchange methods couple moving rigid or deformable bodies (red blood cells, fibers, colloids).

Typical applications and limits

Used for digital rock physics, fuel cell and battery electrode transport, droplet dynamics, blood flow and microfluidics. Limits are the weakly compressible, low Mach restriction, instability at low viscosity for basic collision models, difficulty with high density ratios and compressible or shock flow, memory use (storing q populations per node) and less mature handling of thermal and complex fluids.

Basic operation

  1. Define the problem and geometry. Specify the flow, domain, and, for porous media, a segmented image.
  2. Choose the lattice and collision model. Select D2Q9 or D3Q19 with BGK, TRT or MRT.
  3. Set the units. Match Reynolds number, choose τ (above 0.5) and keep the lattice Mach number small.
  4. Initialize. Set the populations to equilibrium for the initial density and velocity.
  5. Apply boundary conditions. Use bounce-back at walls and velocity or pressure conditions at inlets and outlets.
  6. Iterate collision and streaming. Run until the flow reaches steady state or the desired time.
  7. Verify. Compare with analytical solutions (Poiseuille flow, lid-driven cavity) and test grid convergence.
  8. Collect the output. You obtain density, velocity and derived quantities such as permeability; stability tuning and multiphase models are covered in the video.

Good practice

  • Keep the Mach number low. It controls compressibility error.
  • Avoid τ too close to 0.5. Use MRT or finer grids for high Reynolds number.
  • Check grid independence. Refine resolution, especially pore throats and curved walls.
  • Validate on benchmarks. Test with known solutions before real cases.
  • Use TRT or MRT for porous media. They remove viscosity-dependent permeability errors.
  • Report units and parameters. Provide the scaling and settings, and treat simulated flow results used in safety decisions as requiring independent validation.

Key terms

  • Distribution function — the population of fictitious particles moving in a given lattice direction.
  • Streaming / collision — the two steps of moving populations and relaxing them toward equilibrium.
  • BGK operator — a collision rule relaxing populations to equilibrium at one rate.
  • Bounce-back — a boundary rule that reflects populations to enforce no-slip at walls.
  • DdQq lattice — a lattice with d dimensions and q discrete velocities.
  • Relaxation time (τ) — the parameter that sets fluid viscosity in LBM.
  • Pseudopotential model — a multiphase LBM approach using interparticle forces.

Video coming soon

About five minutes on Lattice Boltzmann: how it works in detail, how the data is acquired, and how it is analyzed.

Shopping cart

0
image/svg+xml

No products in the cart.

Continue Shopping