Skip to content
DimensionLab

RyuchiInterfaces & multiphaseNVIDIA GPU · f32 and f16 storage

Hydrostatic water tank with side walls on a GPU: still water and mass conservation

Ryuchi keeps a walled low-viscosity water tank with contact lines and corners at rest on a GPU for 3000 steps: worst mass drift 1.1e-07 (gate 1e-5), surface height change under 3e-4 cells (gate 0.2), speed under 1e-5 (gate 2e-3), in f32 and f16 storage; NVIDIA GeForce RTX 3090.

Fill level of the still water
Pass
12 of 12 gates met
1.09e-7Largest relative mass drift, water tau, f16 storage · gate |x| ≤ 1e-5
1 %
Reference
G. K. Batchelor
Hardware
NVIDIA GeForce RTX 3090
Solver version
Ryuchi 0.1.0+6b5a6a06
Grid
D3Q19, 16 x 32 x 12 walled tank, 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 storage4.75e-8|x| ≤ 1e-5<1 %✓ pass
Largest surface height change (cells), tau 0.503, f16 storage2.72e-4 cells|x| ≤ 0.2 cells<1 %✓ pass
Largest speed (lattice units), tau 0.503, f16 storage8.78e-6 lattice units|x| ≤ 0.002 lattice units<1 %✓ pass
Largest relative mass drift, tau 0.503, f32 storage1.48e-8|x| ≤ 1e-5<1 %✓ pass
Largest surface height change (cells), tau 0.503, f32 storage2.7e-4 cells|x| ≤ 0.2 cells<1 %✓ pass
Largest speed (lattice units), tau 0.503, f32 storage8.74e-6 lattice units|x| ≤ 0.002 lattice units<1 %✓ pass
Largest relative mass drift, water tau, f16 storagekey1.09e-7|x| ≤ 1e-51 %✓ pass
Largest surface height change (cells), water tau, f16 storage1.59e-4 cells|x| ≤ 0.2 cells<1 %✓ pass
Largest speed (lattice units), water tau, f16 storage9.99e-6 lattice units|x| ≤ 0.002 lattice units<1 %✓ pass
Largest relative mass drift, water tau, f32 storage1.41e-8|x| ≤ 1e-5<1 %✓ pass
Largest surface height change (cells), water tau, f32 storage1.58e-4 cells|x| ≤ 0.2 cells<1 %✓ pass
Largest speed (lattice units), water tau, f32 storage9.46e-6 lattice units|x| ≤ 0.002 lattice units<1 %✓ pass

Setup and reproducibility

Grid and numerics
D3Q19, 16 x 32 x 12 walled tank, 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