RyuchiIncompressible CFDNVIDIA GPU · f32 storage
Quadratic-loss pressure openings: channel speeds and a box mass balance against closed forms
On an NVIDIA RTX 3090 (f32 storage), Ryuchi's quadratic-loss pressure openings give all six channel speeds within 1.4e-05 of the closed form (gate 1 %), but a box with one fan and two loss faces reads a net outflow 6.2 % short of the fan flow (gate 0.5 %): a partial result, 2026-11-20.

All six channel speeds pass (largest deviation 1.3e-05, gate 0.01). The box mass balance fails at -6.2 % (gate 0.5 %): the outlet flow readout of an opening narrower than its face under-reads, first order in the cell size, while the fluid itself conserves mass; an exact link-flux readout later closed it.
- Reference
- Closed form for flow through quadratic-loss faces
- Hardware
- NVIDIA GeForce RTX 3090
- Solver version
- Ryuchi 0.1.0+20af7554
- Grid
- D2Q9, channels 20 x 5 cells and box 40 x 20 cells of 1 cm, BGK…
Results
Figures from the run.
Channel speeds against the closed form

C3 mass imbalance against the bound and the cell size

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.
| Metric | Value | Gate | Allowance used | Result |
|---|---|---|---|---|
| Speed through two quadratic-loss faces, K 3, positive pressure drop: relative deviation | -1.33e-5 relative | |x| ≤ 0.01 relative | <1 % | ✓ pass |
| Speed through two quadratic-loss faces, K 3, negative pressure drop: relative deviation | -4.17e-6 relative | |x| ≤ 0.01 relative | <1 % | ✓ pass |
| Speed through two quadratic-loss faces, K 6, positive pressure drop: relative deviation | 3.81e-7 relative | |x| ≤ 0.01 relative | <1 % | ✓ pass |
| Speed through two quadratic-loss faces, K 6, negative pressure drop: relative deviation | -4.89e-7 relative | |x| ≤ 0.01 relative | <1 % | ✓ pass |
| Speed through a K 3 and a K 6 face, positive pressure drop: relative deviation | -3.92e-7 relative | |x| ≤ 0.01 relative | <1 % | ✓ pass |
| Speed through a K 3 and a K 6 face, negative pressure drop: relative deviation | 2.6e-7 relative | |x| ≤ 0.01 relative | <1 % | ✓ pass |
| Box with a fan and two loss faces: net outflow minus fan flow, relative to the fan flowkey | -0.0616 relative | |x| ≤ 0.005 relative | 1233 % | ✕ fail |
Setup and reproducibility
- Grid and numerics
- D2Q9, channels 20 x 5 cells and box 40 x 20 cells of 1 cm, BGK, lattice speed 0.1, box 3000 steps to 6 s
- Solver
- Ryuchi 0.1.0+20af7554
- Hardware
- NVIDIA GeForce RTX 3090
driver 580.65.06, CUDA 12.8 - Precision
- f32 storage
- Code revision
- 20af75542195
- Physics
- Incompressible CFD · pressure outlet, loss coefficient, mass balance, ventilation
- Run date
References
- Analytic solution
Closed form for flow through quadratic-loss faces, dp = K rho U|U| / 2, so U = sign(dp) sqrt(2|dp| / (rho (K_in + K_out))); loss-coefficient definition as in I. E. Idelchik, Handbook of Hydraulic Resistance, 4th edition, Begell House (2008)
doi:10.1615/978-1-56700-251-5.0 - Analytic solution
Mass balance of a closed box with one fan (Q 5e-4 m3/s) and two loss faces (K 3 and K 6): at steady state the net outflow through the faces equals Q


