XLB 9c23e8290b5ea79085e75b773e5759a6bf6eecd8Reference run (DimensionLab)
Planar Taylor-Green vortex, resolution and precision: XLB reference runs
XLB runs of the planar Taylor-Green vortex (Re 100) at 32 and 64 cells in FP32 and FP64: kinetic-energy decay constant -0.43% at 32, +0.19% at 64 cells (FP64; bounds 1 % and 0.5 %), every frozen gate inside its bound; FP32 and FP64 E_k differ by at most 1.9e-06. RTX A4500, 2026-11-28.
Reference case. This is a run of XLB 9c23e8290b5ea79085e75b773e5759a6bf6eecd8, another code, not of a DimensionLab solver. It is shown as a reference for the problem; it is not counted in our solvers' verdicts or totals.
Results

Kinetic energy against the exact decay (relative difference)

Decay-constant error against resolution

Metrics
| Metric | Value | Gate | Allowance used | Result |
|---|---|---|---|---|
| 32 cells, FP32: decay constant of the kinetic energy against 1 / (4 nu k^2) | -0.00427 relative | |x| ≤ 0.01 relative | 43 % | ✓ pass |
| 32 cells, FP32: decay constant of v at (0.5, 0.25) m against 1 / (2 nu k^2) | -0.00536 relative | |x| ≤ 0.01 relative | 54 % | ✓ pass |
| 32 cells, FP32: kinetic energy at 10 s against the exact value (reported) | -0.00674 relative | not gated | reported only | reported |
| 32 cells, FP64: decay constant of the kinetic energy against 1 / (4 nu k^2) | -0.00427 relative | |x| ≤ 0.01 relative | 43 % | ✓ pass |
| 32 cells, FP64: decay constant of v at (0.5, 0.25) m against 1 / (2 nu k^2) | -0.00536 relative | |x| ≤ 0.01 relative | 54 % | ✓ pass |
| 32 cells, FP64: kinetic energy at 10 s against the exact value (reported) | -0.00674 relative | not gated | reported only | reported |
| 64 cells, FP32: decay constant of the kinetic energy against 1 / (4 nu k^2) | 0.0019 relative | |x| ≤ 0.005 relative | 38 % | ✓ pass |
| 64 cells, FP32: decay constant of v at (0.5, 0.25) m against 1 / (2 nu k^2) | 8.08e-4 relative | |x| ≤ 0.005 relative | 16 % | ✓ pass |
| 64 cells, FP32: kinetic energy at 10 s against the exact value (reported) | 0.00299 relative | not gated | reported only | reported |
| 64 cells, FP64: decay constant of the kinetic energy against 1 / (4 nu k^2)key | 0.00189 relative | |x| ≤ 0.005 relative | 38 % | ✓ pass |
| 64 cells, FP64: decay constant of v at (0.5, 0.25) m against 1 / (2 nu k^2) | 8.05e-4 relative | |x| ≤ 0.005 relative | 16 % | ✓ pass |
| 64 cells, FP64: kinetic energy at 10 s against the exact value (reported) | 0.00299 relative | not gated | reported only | reported |
| 32 cells: largest relative difference of E_k(t), FP32 against FP64 (reported) | 1.94e-6 relative | not gated | reported only | reported |
| 64 cells: largest relative difference of E_k(t), FP32 against FP64 (reported) | 1.43e-6 relative | not gated | reported only | reported |
Setup
- Code
- XLB 9c23e8290b5ea79085e75b773e5759a6bf6eecd8
- Grid and numerics
- 2D periodic unit square, 32^2 and 64^2 D2Q9 nodes at the cell centres; Re 100 (V 0.1 m/s, nu 0.001 m2/s); BGK, amplitude 0.1 in lattice units (Mach 0.17); to t = 10 s
- Hardware
- NVIDIA RTX A4500; f32 and f64
References
- Third-party code
M. Ataei, H. Salehipour, XLB: A differentiable massively parallel lattice Boltzmann library in Python, Computer Physics Communications 300 (2024) 109187 (the code that ran)
doi:10.1016/j.cpc.2024.109187 - Analytic solution
G. I. Taylor, A. E. Green, Mechanism of the production of small eddies from large ones, Proceedings of the Royal Society of London A 158 (1937) 499-521
doi:10.1098/rspa.1937.0036
Our solvers on this problem
PassSuna · CPUTaylor-Green vortex at Re 100: kinetic-energy decay
Decay-rate relative error, 100^2 particles: 0.0238
60 %taylor-green vortex · viscous decay