Skip to content
DimensionLab

RyuchiInterfaces & multiphaseNVIDIA GPU · f32 and f16 storage

Hydrostatic water column on a GPU: still water and mass conservation

Ryuchi keeps a low-viscosity water column at rest on a GPU for 3000 steps: worst mass drift 8.4e-07 (gate 1e-5), surface height change under 2e-4 cells (gate 0.2) and speed under 1e-5 (gate 2e-3), in f32 and f16 storage; NVIDIA GeForce RTX 3090, 2026-11-15.

Fill level of the still water
Pass
12 of 12 gates met
8.39e-7Largest relative mass drift, water tau, f16 storage · gate |x| ≤ 1e-5
8 %
Reference
G. K. Batchelor
Hardware
NVIDIA GeForce RTX 3090
Solver version
Ryuchi 0.1.0+6b5a6a06
Grid
D3Q19, 16 x 32 x 4 periodic column, water 19.5 cells deep, BGK tau…

Results

Figures from the run.

Spurious speed against still water

Spurious speed against still water

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
Largest relative mass drift, tau 0.503, f16 storage1.28e-7|x| ≤ 1e-51 %✓ pass
Largest surface height change (cells), tau 0.503, f16 storage1.8e-4 cells|x| ≤ 0.2 cells<1 %✓ pass
Largest speed (lattice units), tau 0.503, f16 storage7.9e-6 lattice units|x| ≤ 0.002 lattice units<1 %✓ pass
Largest relative mass drift, tau 0.503, f32 storage2.44e-8|x| ≤ 1e-5<1 %✓ pass
Largest surface height change (cells), tau 0.503, f32 storage1.84e-4 cells|x| ≤ 0.2 cells<1 %✓ pass
Largest speed (lattice units), tau 0.503, f32 storage7.89e-6 lattice units|x| ≤ 0.002 lattice units<1 %✓ pass
Largest relative mass drift, water tau, f16 storagekey8.39e-7|x| ≤ 1e-58 %✓ pass
Largest surface height change (cells), water tau, f16 storage1.76e-4 cells|x| ≤ 0.2 cells<1 %✓ pass
Largest speed (lattice units), water tau, f16 storage9.23e-6 lattice units|x| ≤ 0.002 lattice units<1 %✓ pass
Largest relative mass drift, water tau, f32 storage2.75e-8|x| ≤ 1e-5<1 %✓ pass
Largest surface height change (cells), water tau, f32 storage1.83e-4 cells|x| ≤ 0.2 cells<1 %✓ pass
Largest speed (lattice units), water tau, f32 storage8.5e-6 lattice units|x| ≤ 0.002 lattice units<1 %✓ pass

Setup and reproducibility

Grid and numerics
D3Q19, 16 x 32 x 4 periodic column, water 19.5 cells deep, BGK tau 0.503 and water viscosity, 3000 steps
Solver
Ryuchi 0.1.0+6b5a6a06
Hardware
NVIDIA GeForce RTX 3090
driver 575.51.03, CUDA 12.8
Precision
f32 and f16 storage
Code revision
6b5a6a064b1d
Physics
Interfaces & multiphase · free surface, hydrostatic, water
Run date

References

  • Analytic solution

    G. K. Batchelor, An Introduction to Fluid Dynamics, Cambridge University Press (2000), sec. 1.4 (fluid at rest: hydrostatic pressure)

    doi:10.1017/cbo9780511800955