LBM vs FVM (OpenFOAM): two routes to the flow
FVM solves equations on a mesh that adapts to the car. LBM computes particle distributions on a cubic grid, locally and without a pressure equation. Both routes have their strengths; this guide sets them side by side.
Coming soon: Major bench update: own kernel and own solver, far less memory per cell, more throughput and closer agreement with OpenFOAM 13 for drag and downforce. The figures on these pages refer to the current version and will be updated with evidence.
The basic principle
Finite volume (e.g. OpenFOAM): the conservation equations for mass and momentum are integrated over control volumes. Pressure follows from a large coupled equation that has to be solved every iteration. The mesh adapts to the surface, with prism layers at the wall.
Lattice Boltzmann: instead of velocity and pressure, particle distributions are advanced on a Cartesian grid: first collision in each cell, then streaming to the neighbours. Pressure follows directly from density; there is no global system of equations.
Side by side
| Topic | FVM (OpenFOAM 13) | LBM (MaxAttack CFD Bench) |
|---|---|---|
| Grid | unstructured, body-fitted | Cartesian, wall as a staircase of cubic cells |
| Meshing | laborious, needs quality checks | voxelising the STL in seconds to minutes |
| Pressure equation | global, every iteration, often the bottleneck | none |
| Parallelisation | domain decomposition, many synchronisations | purely local, ideal for graphics cards |
| Turbulence (usual) | RANS, e.g. k-ω SST | wall-modelled LES, eddies resolved |
| Wall | wall function on prism cells | wall model on a staircase, the main difficulty |
| Result | averaged fields | instantaneous fields, forces as time averages |
| Maturity | industry standard | research stage; commercial LBM codes show it works industrially |
Where LBM is stronger
- Complex geometry where meshing eats the time: radiator packs, wheel arches, underbody.
- When separation, wake and time-dependent effects matter.
- When a graphics card is available and many variants are run on one setup.
Where FVM is stronger
- When the boundary layer must be exact and a prism mesh with controlled wall distance is possible.
- When averaged, steady results are enough and the method should be established and comparable.
- For multiphase, combustion or heat-transfer models that are ready in OpenFOAM.
Figures from this workstation
The OpenFOAM 13 reference (simpleFoam, k-ω SST, 34 million cells) takes 35.7 s per iteration on 16 CPU cores. A complete case with 35 to 45 million cells takes 16 to 24 hours including meshing, from experience. The bench computes 1.06 billion cells, about 31 times as many, in 2 h 55 min from start to finish.
That is not “x times faster”: OpenFOAM computes a steady RANS solution here, the bench an unsteady LES. What can be shown is that the bench resolves far more cells on the same hardware and delivers eddies in time instead of a mean. The OpenFOAM total time is an empirical value, not a measurement log.
Rule of thumb
If you want to judge a car as a whole and see the eddies, LBM gets you to answers faster. If you need a figure backed by established methods, run RANS and check. That is why the bench itself is checked against OpenFOAM 13.
The MaxAttack CFD Bench is a modified fork of FluidX3D (Dr. Moritz Lehmann) and is not endorsed by him. Non-commercial; not sold, no commissioned work. As of November 2026.
Read on
Vehicle aerodynamics on one workstation: what works and what does not →
What an LBM simulation on a single workstation can do for a complete car, where its limits are and what it is not meant for.
Why RANS shows no eddies and what LES does differently →
RANS, URANS, DES and LES explained: why the usual vehicle computation averages eddies away, what LES costs and why lattice Boltzmann suits it.
OpenFOAM on the GPU: why offloading failed here →
Measurement with OpenFOAM 13 and a GPU pressure step on the Intel Arc Pro B70: time per iteration, causes of idle time and what a fast path would need.
LBM software compared: FluidX3D, Palabos, OpenLB, waLBerla and others →
Which lattice Boltzmann programs exist, what hardware they support, whether they bring wall models and grid refinement, and where the MaxAttack CFD Bench stands.
Resolution and hardware: how fine, how long, how much memory →
How cell size, cell count, graphics memory and memory bandwidth determine the run time of an LBM vehicle simulation, with measurements and rules of thumb.
Blockage: why the bench uses two domains →
What blockage means in a virtual wind tunnel, why it distorts the forces and how a fine near field with a coarse far field keeps it at about 2 %.
Reading aero coefficients correctly: Cd, Cz and what belongs with them →
What matters when comparing drag and downforce coefficients from simulations: reference area, averaging window, resolution, pressure and friction share.
The lattice Boltzmann method (LBM) explained →
How the lattice Boltzmann method computes flow: distribution functions on a grid, streaming and collision, and why it is fast on graphics cards.
Velocity sets: D3Q19 and D3Q27 →
What D3Q19 and D3Q27 mean, how many directions they have and what that means for isotropy, memory and run time of an LBM simulation.
Relaxation time, viscosity and collision models →
How the relaxation time τ sets the viscosity in the lattice Boltzmann method, why τ must stay above 0.5 and what distinguishes BGK, TRT and MRT.
Lattice units and Mach number →
How physical values are converted to LBM lattice units, why the lattice velocity must stay small and what that means for the number of time steps.
Memory per cell: what fits into graphics memory →
How many bytes an LBM cell needs, how velocity set, number format and number of copies determine the value and how many cells fit into 32 GB.
Memory bandwidth and MLUPs: what sets the run time →
Why the lattice Boltzmann method is limited by memory bandwidth, what MLUPs mean and how to estimate the achievable performance of a graphics card.
Resolution, Reynolds number and compute cost →
Why half the cell size costs sixteen times the work in LBM, how high the Reynolds number on a car is and why turbulence and wall models are needed.
Wall boundary condition and wall model in LBM →
How LBM represents solid walls: simple bounce-back, interpolated boundaries after Bouzidi and why vehicle runs need a wall model.