Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

What works: verified fluid capabilities

The fluid capabilities whose results have been checked against theory, a published benchmark or an experiment, with the numbers, and the ones that have not. Each number is quoted from the page or test that records it; nothing here was rerun for this page. Use it to pick examples and to word posts: a capability is described as verified only for the case and resolution it was verified on.

Large-eddy simulation of bluff bodies and wall-modelled LES are not on this list. Their state, the measured errors and what blocks them are in RFC 0003.

Laminar flow (CPU, f64)

CapabilityCaseReferenceMeasuredToleranceSource
D3Q19 TRT collisionplane Poiseuille, body force, 4/8/16 cells, τ = 1parabola (theory)exact to round-off10⁻¹⁰ of the peakLattice Boltzmann, Verification
Taylor–Green vortex, 16/32/64 cellse^(−2νt)1.6e-2, 4.0e-3, 9.9e-4: order 2.0; mass to 1e-13finest < 2e-3, order > 1.8same
Couette, 16 cellslinear profile, wall shear μU/Hprofile 1e-10, shear 1e-610⁻¹⁰; shear 10⁻⁶ relativesame
Regularised and hybrid (HRR) collisionsPoiseuille 8/16/32 cellsparabolaorder 2.00 (both)order − 2
shear wave, HRR, σ 0.5–0.985exact rate of the scheme’s linear mapwithin 2.5e-71 %same
MRT collisionTaylor–Green 16/32/64e^(−2νt)orders 2.015, 2.004finest < 2e-3, order > 1.8same
Lid-driven cavityRe 100, 64² cellsGhia, Ghia & Shin 1982: u/U −0.2109 at y 0.4531−0.2136 at 0.4585 (TRT), −0.2139 (regularised)—same
Confined cylinder, steadySchäfer & Turek 2D-1, Re 20, D/Δx 20, staircase wallsc_D 5.57–5.595.773 (+3.5 %)—same
Confined cylinder, sheddingSchäfer & Turek 2D-2, Re 100, D/Δx 20, staircase wallsc_D,max 3.22–3.24, c_L,max 0.99–1.01, St 0.295–0.305St 0.2987 (inside the band); c_D,max 3.447 (+7 %), c_L,max 1.102 (+9 %)c_D 8 %, c_L 12 %, St 2 % (the outlet-distance test)same, and Boundary conditions (outlet at 7.5 D: 3.356, 1.072, 0.2989)
Interpolated (Bouzidi) wallsround pipe, 8 and 16 cells per radius (oracle pipe-poiseuille-interpolated-walls)a R²/(4ν)−0.15 %, −0.04 % (halfway walls: −5.5 %, −2.1 %)0.5 %, 0.15 %Oracle results
annular Couette, sliding rod, 6–16 cells per radiusln profile; rod drag 2πμUL/ln(R₂/R₁)order 1.98; rod drag within 0.11 % (halfway: +1.5 to +14 %)order > 1.6; drag 0.5 %Boundary conditions
periodic Stokes sphere array, R = 3, 6, 9 cellsHasimoto 1959, Sangani & Acrivos 1982−1.64 %, −0.85 %, −0.32 % (halfway: +11.7 %, +1.7 %, +2.3 %)2 %, closer at every refinementsame
Inlets and outletsparabolic inlet, pressure outlet, 16 cellsPoiseuille profile, gradient −12μŪ/H²profile 3.0e-4, gradient +0.07 %5e-3, 1 %Lattice Boltzmann
characteristic outlet, plane pulse in a 2048-cell duct (oracle characteristic-outlet-reflection)Selle, Nicoud & Poinsot 2004 one-pole responsedeparture 2.28e-3 of the peak; tail rate 1.0005 of K/2departure 4e-3; rate 0.5 %Boundary conditions
Inlet ramp (inlet_ramp)empty 192-cell tubeone-dimensional solution by characteristicswithin 0.13 % (m = 1), 0.08 % (m = 2)—Boundary conditions, “Raising the inlet”
2-D cylinder Re 3900, 16 cells per D, far-field C_p rmsideal tube × the run’s measured decayno ramp 20.19; ramps of 1, 2, 2.5 T₀: 7.020, 1.350, 0.049 (ideal tube × decay 7.008, 1.357, 0.058)printed, not assertedsame
Shear-dependent viscositypower-law Poiseuille, n = 0.5 and 1.5 (oracle)Bird, Armstrong & Hassagerwithin 2.5e-5 to 3.8e-4 m/s of 0.04–0.30 m/s3.3e-4, 6.0e-4 m/sOracle results
Free surfacehydrostatic column; plug filling (oracle)hydrostatics; volume conservation0.3 %; 0.11 %; mass to 1e-101.5 %; 0.5 %; 1e-10same
dam break (oracle dam-break-martin-moyce, experiment)Martin & Moyce 1952front times +10 to +13 %; column height +0.5 %14–16 %; 5 %same
Determinism (threads)a channel with an inlet, outlet, slip top, body force and a block, plain TRT with halfway, linear and quadratic interpolated walls; heat with buoyancyone thread against 2, 3 and 7bit for bitexactcrates/lbm/tests/threads.rs
Determinism (repeat)one ball in a channel, solved twicethe first solvebit for bitexactresults_are_bit_for_bit_reproducible (crates/lbm/tests/verification.rs)

Heat (CPU, f64)

CapabilityCaseReferenceMeasuredToleranceSource
Natural convectionde Vahl Davis cavity, Ra 10³ to 10⁶, Pr 0.71 (oracle)de Vahl Davis 1983mean Nu −0.012 %, +0.15 %, +0.35 %, +0.54 %; Nu_max at Ra 10⁶ −2.7 % (known failure)mean Nu 0.13 %, 0.27 %, 0.73 %, 1.3 %; every other quantity has its own in docs/oracle.mdHeat transfer, Oracle results
Conjugate heat transfercavity with a centred conducting body, k_s/k_f 0.2, 1, 5 (oracle)House, Beckermann & Smith 1990+0.21 %, +0.20 %, +0.18 %0.6 %Heat transfer
Conduction through solids and contactscomposite walls, contact resistance, thin wallsseries conductionexact discrete solution1e-9same
Radiation from a conducting slab16-cell slab (oracle radiation-slab-lattice)conduction–radiation balance< 1e-6 relative1e-8, 1e-6 relativesame
Melting and freezingtwo-phase Stefan problem (oracle)Neumann’s solutionfront +0.27 % on 128 cells0.4 %same
channel frozen on its cold quarter (oracle)plane Poiseuille in the liquid+1.47 %2.2 %same

Turbulence: what is verified

CapabilityCaseReferenceMeasuredToleranceSource
Smagorinsky’s modelCouette with Smagorinsky’s model, HRR σ 0.9ν_t = (CΔx)²U/hwall shear 3e-6, ν_t/ν 8e-4 relative2e-3, 2e-2Collision operators
Spalart–Allmaras (RANS)wall-resolved Re_τ 180 channelthe model’s own 1-D solutionsecond-order convergence; the model itself +1.1 % in U_b against Moser, Kim & Mansour—Turbulence, verification.md
SA constant-stress wall lawRe_τ 1000 channel, first node at y⁺ 31–100wall-resolved 1-D SAC_f +0.8 to +7.3 %—verification.md, “Spalart–Allmaras: its wall law in the channel”

Smoke-tested, no accuracy claim. The matched on-node wall (spalding_bounce_matched) at Re_τ 1000, 8 cells per δ, 2 δ/u_τ discarded and 2 averaged (the heavy job’s bounded run): U_b⁺ 19.792 against Lee & Moser’s 19.990 (#1121; the run asserts stability and U_b⁺ within 30 %). Its full study on the GPU (16, 24, 32 cells per δ to the statistical protocol) is inconclusive (time cap): not passed, with C_f −2.9 % at 16 cells, −6.7 % at 24 and −8.7 % at 32 (#1151). Do not post either as an accuracy result.

GPU backend (wgpu, f32)

WhatMeasuredSource
Agreement with the CPUstated tolerances: velocity 2e-5 of the peak, density 1e-6, wall forces 5e-5. Measured on the M4 Max: velocity 5e-7 to 7.4e-6, wall shear 1.9e-5; on the GB10, Schäfer–Turek C_d 7e-5 % and St 4e-4 % off the CPU (#785)GPU backend
Throughput, TRT, in place, periodic 128³ (million cell updates per second)RTX 4090 3897, M4 Max 1364, GB10 1224same, “Performance”
Throughput, TRT, sphere 128³RTX 4090 3572, M4 Max 1256, GB10 1146same
Throughput, HRR σ 0.99 / + Vreman / dynamic σ, periodic 128³, GB10777 / 773 / 772 (regularised 1207)same
Against the CPU on a whole modelflow-past at 1.25 mm, 1.47 M cells, 800 steps: CPU 18.1 s (65 M/s), GPU 3.6 s (328 M/s), M4 Max; face forces within 1e-7 of the CPU’ssame, “Worked example”
A large modelAIO radiator air side, 5.07 M cells, 20 513 steps: about four minutes on the GB10Examples, “AIO cooler radiator”

The CPU figure for one thread is 13.8 million updates per CPU second (TRT, flow-past; Collision operators, “Cost”). The CPU stops scaling at about four threads (#643); quote GPU speed-ups against a stated CPU configuration, never as one ratio.

OpenFOAM export and read-back

deck.openfoam writes a fluid step as an ESI OpenFOAM v2406 case, incompressible (pimpleFoam) or compressible (rhoCentralFoam, a laminar ideal gas); results.openfoam reads the results back for viewing (OpenFOAM cases). What is tested: every written dictionary against our own reader of the documented grammar, the round trip of what we write, and read-backs of files we build in the documented ASCII format (reconstructed and decomposed cases, refusals of hostile counts, of uncovered cells, of non-positive T and p). What is not: no case written by FieldCraft has been run in OpenFOAM by the project. One compressible case still needs a run on v2406 by someone who has it (#1094). An OpenFOAM run is an interoperability check; it never verifies FieldCraft’s results.

Proposed showcase examples

Run times marked measured are from the page cited; the others are estimates from cells × steps over the throughput above and must be measured before they are posted.

#ModelWhat it showsRun timeWhere
1Schäfer & Turek 2D-2: cylinder in a channel at Re 100, D/Δx 20, staircase (halfway) walls, convective outlet; animate the vorticityperiodic shedding with St 0.2987 inside the benchmark’s 0.295–0.305 (c_D,max +7 % on this staircase grid); the CPU and the GPU agreeing on C_d to 7e-5 % (#785)a few minutes on the CPU (estimate)CPU, then GB10 for the side-by-side
2de Vahl Davis cavity at Ra 10⁵, then the House et al. cavity with a conducting bodymean Nusselt number within 0.35 % (Ra 10⁵) and 0.18–0.21 % (House et al.) of the benchmarks; temperature and streamlinesabout a minute each (estimate; oracle cases)CPU
3AIO cooler radiator, air side (cooling-aio-half)5 M cells of real geometry from SolidCraft in about four minutes; 61 W at effectiveness 0.93, grid change 0.4 %about 4 min (measured)GB10
4Inlet ramp, two runs of the 2-D cylinder in a 24 D × 12 D box: started at full speed and ramped over 2.5 T₀the start-up pressure wave and its removal: far-field C_p rms 20.19 without the ramp, 0.049 with it, against 0.058 from the characteristics solution times the run’s decayabout 10–15 min per run on the CPU (estimate)CPU
5Staircase against interpolated walls: the round pipe at 8 cells per radius, or the sphere array at R = 3−5.5 % against −0.15 % on the pipe; +11.7 % against −1.6 % on the spheresseconds to a minute (estimate)CPU
6Lid-driven cavity at Re 100, 64² (the pending oracle case’s recipe)the primary vortex and the centreline profile on Ghia et al.’s pointsunder a minute (estimate)CPU
7cooling-heat-sinkmixed convection with buoyancy, 1.93 W at 13.0 K/Wabout 4 min (measured)CPU
8GPU throughput on the GB10, M4 Max and RTX 40901.2–3.9 billion cell updates per second, CPU/GPU agreement on the same modelthe throughput test, minutes (--test throughput)GB10, M4 Max
9Dam break against Martin & Moycea free surface against measured front positions, mass exactminutes (estimate)CPU
10A model exported with deck.openfoam, run in OpenFOAM by its user, read back with results.openfoam and shown with FieldCraft’s slicesinteroperability only, never a comparison of answersexport seconds; the OpenFOAM run is the user’sCPU; needs OpenFOAM

Not for posts as accuracy: bluff-body LES (cylinder Re 3900 C_d 1.07–1.83 against 0.99 depending on the setup and the start), wall-modelled LES channels, the Re_τ 5200 channel (not runnable below about 42 cells per δ). See RFC 0003.