Skip to content
DimensionLab

RyuchiLattice BoltzmannCPU · f64

Two-relaxation-time against BGK at tau 0.501: linear speed limits

Ryuchi's D2Q9 TRT operator (magic parameter 1/4) has a speed limit of 0.2895 against 0.1497 for BGK at tau 0.501 (both within 1e-3 of the von Neumann analysis); BGK grows at 0.02213 per step at u 0.22 within 2.2e-5 of analysis while TRT does not grow; CPU, f64.

Final-step momentum perturbation, BGK at u0 0.22 (unstable)
Pass
4 of 4 gates met
0.289 lattice unitsSpeed limit u*, TRT with magic parameter 1/4 (lattice units) · gate 0.289 ± 0.001 lattice units
<1 %
Reference
D. Sterling
Hardware
AMD EPYC Genoa server CPU, 12 vCPU
Solver version
Ryuchi 0.1.0+bc8899c9
Grid
D2Q9, 32 x 32 periodic, all grid wavenumbers, tau 0.501, flow at…

Results

Figures from the run.

Growth rate vs speed for BGK and TRT, analysis and measured

Growth rate vs speed for BGK and TRT, analysis and measured

Relative BGK growth-rate error where the analysis predicts growth

Relative BGK growth-rate error where the analysis predicts growth

Metrics and gates

Each gate is fixed before the run. The bar shows how much of its allowance a metric uses: the line marks the gate, so a bar past it fails. A metric without a gate is reported for context and does not decide the verdict.

MetricValueGateAllowance usedResult
Speed limit u*, TRT with magic parameter 1/4 (lattice units)key0.289 lattice units0.289 ± 0.001 lattice units<1 %✓ pass
Speed limit u*, BGK (lattice units)0.15 lattice units0.15 ± 0.001 lattice units<1 %✓ pass
Measured BGK growth rate per step at u 0.220.02210.0221 ± 2.21e-52 %✓ pass
Measured TRT growth rate per step at u 0.22-3.93e-4< 1e-5–✓ pass

Setup and reproducibility

Grid and numerics
D2Q9, 32 x 32 periodic, all grid wavenumbers, tau 0.501, flow at 0.12 to 0.26
Solver
Ryuchi 0.1.0+bc8899c9
Hardware
AMD EPYC Genoa server CPU, 12 vCPU
Precision
f64
Code revision
bc8899c95602
Physics
Lattice Boltzmann · stability, trt, speed limit
Run date

References

  • Analytic solution

    D. Sterling, S. Chen, Stability analysis of lattice Boltzmann methods, Journal of Computational Physics 123 (1996) 196-206

    doi:10.1006/jcph.1996.0016
  • Analytic solution

    I. Ginzburg, F. Verhaeghe, D. d'Humieres, Two-relaxation-time lattice Boltzmann scheme: about parametrization, velocity, pressure and mixed boundary conditions, Communications in Computational Physics 3 (2008) 427-478

    doi:10.4208/cicp.2008.v3.p427