OpenLB-UQ: Uncertainty Quantification Framework
- OpenLB-UQ is a modular framework that integrates a non-intrusive stochastic layer with the deterministic OpenLB lattice Boltzmann solver.
- It employs Monte Carlo, quasi-Monte Carlo, and generalized polynomial chaos methods to propagate uncertainty in incompressible fluid flow simulations.
- The framework demonstrates scalable HPC performance and efficient convergence in benchmark tests, enhancing CFD predictions with robust statistical outputs.
Searching arXiv for the cited OpenLB-UQ papers and adjacent framework papers to ground the article. arXiv search query: OpenLB-UQ uncertainty quantification framework incompressible fluid flow simulations 2025 OpenLB-UQ is a modular uncertainty quantification framework built around the OpenLB lattice Boltzmann solver and, in its integrated form, a fully integrated, open-source uncertainty quantification framework built on top of OpenLB. Its stated purpose is to make uncertainty quantification practical for incompressible computational fluid dynamics by wrapping the deterministic OpenLB solver in a non-intrusive stochastic layer that propagates uncertain inputs through repeated lattice Boltzmann solves and reconstructs statistical outputs such as mean flow fields, standard deviations, confidence intervals, probe-based vertical profiles, and uncertainty maps (Zhong et al., 19 Aug 2025, Zhong et al., 25 Aug 2025).
1. Definition, scope, and design rationale
OpenLB-UQ is motivated by two claims made explicit in the framework paper. First, uncertainty quantification is essential in CFD because real flows depend on uncertain inputs such as inflow conditions, viscosity, geometry tolerances, and material properties. Second, OpenLB is already strong on HPC and complex fluid physics, but until this work it lacked a native UQ capability (Zhong et al., 19 Aug 2025). The framework therefore introduces a dedicated and integrated UQ module for OpenLB, with an emphasis on non-intrusive stochastic collocation methods based on generalized polynomial chaos and Monte Carlo sampling.
The defining design principle is non-intrusiveness. Instead of reformulating the governing equations in stochastic form at the solver level, OpenLB-UQ keeps OpenLB deterministic at the core and adds a lightweight orchestration layer that injects sampled parameters into the application and extracts quantities of interest afterward. Each uncertainty realization is treated as one deterministic simulation with fixed parameters. This permits reuse of existing OpenLB applications with minimal or no modification to solver internals, while preserving the modularity and scalability of the original CFD code (Zhong et al., 19 Aug 2025).
In the urban-wind study, this design is described operationally as a non-intrusive stochastic collocation pipeline: measured wind data are read, an uncertainty model is defined, a quadrature or collocation rule is built, the deterministic LBM is run at each stochastic node, and outputs are postprocessed into mean, variance, confidence intervals, and field statistics (Zhong et al., 25 Aug 2025). The framework is therefore both a software architecture and a methodological stance: uncertainty is handled outside the deterministic solver.
2. Software architecture and execution workflow
The integrated framework is organized as two loosely coupled layers. The UQ layer is responsible for defining uncertainty distributions, generating samples or quadrature nodes, selecting the UQ strategy, running solver realizations, collecting outputs, and computing moments and surrogate models. The OpenLB layer remains the deterministic simulation layer, including SuperLattice, BlockLattice, geometry and boundary-condition setup, time stepping, collision-streaming, and application-specific quantities of interest (Zhong et al., 19 Aug 2025).
Several software abstractions are named explicitly. The framework includes Distribution, SamplingStrategy, QuadratureRule, and UncertaintyQuantification as central classes or managers. It also includes PolynomialBasis, with LegendreBasis for uniform variables and HermiteBasis for Gaussian variables, and sampling strategies such as MonteCarloSampling, QuasiMonteCarloSampling, LatinHypercubeSampling, and StochasticCollocation (Zhong et al., 19 Aug 2025). The distribution-basis pairing is automated, which is essential for correct generalized polynomial chaos expansions.
The runtime is described as a three-phase process. In the first phase, the framework draws samples from the uncertain input distribution or generates collocation and quadrature points. In the second phase, each sample is passed to the OpenLB solver, which returns a scalar or field-based quantity of interest . In the third phase, Monte Carlo methods compute statistics directly from the sample ensemble, while SC-gPC computes polynomial-chaos coefficients and derives moments from them (Zhong et al., 19 Aug 2025).
The urban-wind application instantiates this general workflow with measured hourly wind speed and direction from Reutlingen, Germany, followed by uncertain inflow construction, stochastic-node generation, deterministic LBM execution, and postprocessing into field and probe statistics (Zhong et al., 25 Aug 2025). This concretizes the framework’s intended use: data-driven boundary uncertainty is propagated through a black-box deterministic OpenLB simulation.
3. Deterministic solver formulations and stochastic inputs
The general OpenLB-UQ framework paper uses the incompressible Navier–Stokes equations in stochastic form by making selected inputs random, and implements the deterministic fluid model with a D2Q9 BGK lattice Boltzmann scheme (Zhong et al., 19 Aug 2025). The lattice Boltzmann equation is written as
with BGK collision
and macroscopic fields recovered by moments
This is the deterministic core that the UQ layer repeatedly interrogates (Zhong et al., 19 Aug 2025).
The urban-wind study employs a different deterministic configuration: a recursive regularized LBM with a D3Q19 discrete velocity set, a third-order Hermite equilibrium expansion, and a Smagorinsky–Lilly subgrid-scale model (Zhong et al., 25 Aug 2025). The uncertain incompressible Navier–Stokes equations are written as
Here 0 denotes the vector of random inputs (Zhong et al., 25 Aug 2025).
A central application-specific contribution is the relative measurement-error model for inflow wind speed and direction. The uncertain inflow is defined by
1
2
The resulting logarithmic wind profile on the horizontal boundaries is
3
with roughness length 4 m (Zhong et al., 25 Aug 2025). The framework therefore supports stochasticity both in abstract parametric form and in measurement-driven inflow models.
4. Uncertainty quantification machinery
OpenLB-UQ implements two principal non-intrusive UQ families: Monte Carlo or quasi-Monte Carlo sampling, and generalized polynomial chaos via stochastic collocation (Zhong et al., 19 Aug 2025). For a random input vector 5 and scalar response 6, Monte Carlo estimates the mean and variance by
7
8
Its convergence is reported as approximately 9 (Zhong et al., 19 Aug 2025).
Quasi-Monte Carlo uses low-discrepancy sequences such as Sobol or Halton and is stated to converge approximately as
0
which is often better than MCS in low or moderate dimension but can degrade as stochastic dimension increases (Zhong et al., 19 Aug 2025).
SC-gPC is presented as the high-accuracy method for smooth responses. The truncated polynomial-chaos approximation is
1
with coefficients obtained by projection,
2
and in practice approximated through quadrature,
3
Because of orthogonality, the mean and variance are reconstructed as
4
The urban-wind study uses the same gPC logic with Hermite polynomials for Gaussian inputs and evaluates the coefficients by quadrature. It reports a dense tensor-product Gauss–Hermite quadrature with polynomial order 5, 11 quadrature points per stochastic dimension, and total 6 collocation points for the two-dimensional input 7 (Zhong et al., 25 Aug 2025). The same study notes that the general methodology is compatible with sparse-grid quadrature, while the integrated framework paper lists Genz–Keister, Clenshaw–Curtis, tensor-product, and Smolyak sparse grids among the implemented quadrature rules (Zhong et al., 19 Aug 2025).
5. Benchmark problems, convergence behavior, and HPC performance
The framework is validated on two principal 2D test cases and one higher-dimensional test within the Taylor–Green-vortex family. These studies are used to establish convergence with respect to statistical metrics, sample efficiency, and scalability (Zhong et al., 19 Aug 2025).
| Benchmark | Uncertainty setup | Reported findings |
|---|---|---|
| Flow past a circular cylinder | 8, 9 | SC-gPC converges exponentially; order 0 is sufficient |
| Taylor–Green vortex | 1, 2 | SC-gPC shows spectral convergence; MC follows 3 |
| 4D Taylor–Green perturbation | 4 | Third-order, three-level Smolyak sparse grid with 137 samples |
In the cylinder benchmark, drag and lift are computed through the surface-integral formulas
5
with coefficients
6
The reported mean drag values are 5.66731 for MC, 5.67270 for QMC, 5.67261 for SC-gPC, and 5.63208 for the deterministic reference; the reported standard deviations are 0.34896, 0.34890, and 0.34888 for MC, QMC, and SC-gPC, respectively (Zhong et al., 19 Aug 2025).
In the Taylor–Green-vortex benchmark, the quantity of interest is the normalized kinetic energy
7
The integrated framework paper reports spectral convergence of SC-gPC with respect to polynomial order until the error reaches the floor imposed by spatial discretization, while MC follows the expected 8 rate and QMC improves over MC in low dimensions but remains below SC-gPC in efficiency for smooth dependence (Zhong et al., 19 Aug 2025).
The four-dimensional Taylor–Green case introduces first-order harmonic perturbations through
9
and evaluates statistical convergence using the 1-Wasserstein distance
0
The reported convergence order trends toward about 0.5 over time, which is described as expected for MCS-based statistical approximations (Zhong et al., 19 Aug 2025).
HPC performance is treated as a first-class property. OpenLB-UQ supports two levels of parallelism: sample-level parallelism, which distributes different UQ samples across processes or cores, and domain-level parallelism, which uses MPI domain decomposition within each sample (Zhong et al., 19 Aug 2025). Representative speedups are reported as 40.25 for sample-level and 44.15 for domain-level parallelization in the cylinder case at 1, and 30.78 for sample-level and 30.97 for domain-level parallelization in the 4D Taylor–Green case at 2. The framework is stated to scale well and to reduce UQ wall-clock time by more than a factor of 30 (Zhong et al., 19 Aug 2025).
6. Urban wind data assimilation, outputs, and present limitations
The most detailed application of OpenLB-UQ in the provided literature is uncertain data assimilation for urban wind flow simulations (Zhong et al., 25 Aug 2025). The study uses a real urban geometry in Reutlingen, Germany at 3, with two buildings centered in a circular disk domain of radius 4 m and height 5 m, spatial resolution 6 m, and time step 7 s. Wind-speed and direction measurements are taken hourly from 2024-11-07 20:00 to 2024-11-09 19:00 CET, yielding a 48-hour dataset (Zhong et al., 25 Aug 2025).
The application computes field quantities, local diagnostics, uncertainty maps, and structural diagnostics. Reported quantities of interest include instantaneous velocity magnitude fields, time-averaged velocity magnitude fields, mean flow fields, standard deviation fields, vertical velocity profiles at three probe locations, 95% confidence intervals at probes, sample realizations at those probes, horizontal slices showing spatial localization of uncertainty, contour levels marking regions of reduced or elevated variability, and 8-criterion isocontours at 9 (Zhong et al., 25 Aug 2025). The three probe locations are P1 at the outer corner of the left building in a shear layer, P2 in the channel between buildings, and P3 at the outer corner of the right building in a shear layer.
A recurring empirical result is that uncertainty does not spread uniformly. The mean fields capture the dominant flow around buildings, while standard deviation is elevated in wakes downstream of buildings, shear layers around building edges, and open channels or corridors between buildings (Zhong et al., 25 Aug 2025). In the 2 m slice, the reported standard deviation ranges from 0 to about 1.63, with lower variability outside highlighted contours and higher variability inside wake and shear regions. The same study therefore presents OpenLB-UQ as a tool for identifying risk-sensitive flow zones with a specified confidence (Zhong et al., 25 Aug 2025).
The computational cost of this application is also documented. The study reports 121 sample simulations, each about 15 hours wall-clock on 304 MPI ranks, total cost about 0 CPU core-hours, and postprocessing about 1 hour (Zhong et al., 25 Aug 2025). This supports the framework’s emphasis on efficient non-intrusive UQ, but it also delineates current constraints.
Several limitations are stated explicitly across the two OpenLB-UQ papers. SC-gPC suffers from the curse of dimensionality as stochastic dimension increases, and the current implementation is best suited to smooth dependence on uncertain inputs (Zhong et al., 19 Aug 2025). Very high-dimensional uncertainty, roughly 1, becomes challenging even with sparse grids (Zhong et al., 19 Aug 2025). In the urban study, only wind speed and direction uncertainty are modeled, the input uncertainty is Gaussian, and truly live operation remains challenging without further surrogate acceleration (Zhong et al., 25 Aug 2025). Planned extensions named in the framework paper include broader distribution support, more quadrature rules, multilevel Monte Carlo, and hybrid UQ strategies (Zhong et al., 19 Aug 2025).
A plausible implication is that the framework’s non-intrusive architecture could also accommodate closure-level or model-form uncertainty modules beyond input uncertainty alone. The RANS study on eigenvalue perturbations describes a low-dimensional epistemic UQ mechanism for CFD closures that is explicitly said to be conceptually and methodologically aligned with an OpenLB-UQ-style CFD or RANS uncertainty framework, because it provides transport-based, spatially varying perturbations and a low-dimensional uncertainty space suitable for UQ propagation (Edeling et al., 2017).