KazeCompressible flowCPU · f64
De Laval nozzle with a normal shock against quasi-1D theory (default HLLC)
Kaze with default HLLC places the shock in Anderson's nozzle within 0.13 cells and Mach number and pressure within 1.2% of the exact solution at 100 to 400 cells, but the run is not steady at t = 60 (density changes 2.4e-3 to 7.4e-3 per time unit, gate 1e-6); CPU, f64, 2026-11-22.

Shock position within 0.13 cells and Mach number and pressure within 1.2% at every grid (gates 2 cells and 3%). Steadiness fails at every grid (largest density change 5.4e-3, 2.4e-3 and 7.4e-3 at 100, 200 and 400 cells against 1e-6): with HLLC the captured shock keeps a small limit cycle.
- Reference
- J. D. Anderson
- Hardware
- AMD EPYC Genoa server CPU, one thread
- Solver version
- Kaze 0.1.0+e97c872b
- Grid
- Quasi-1D duct, area A = 1 + 2.2 (x - 1.5)^2 on [0, 3], gamma 1.4…
Results
Figures from the run.
Mach number, Kaze and quasi-1D theory

Pressure, Kaze and quasi-1D theory

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 |
|---|---|---|---|---|
| Mach number error away from the shock, 100 cells | 0.0114 | |x| ≤ 0.03 | 38 % | ✓ pass |
| Pressure error away from the shock, 100 cells | 0.0077 | |x| ≤ 0.03 | 26 % | ✓ pass |
| Shock position error in cells, 100 cells | 0.1 | |x| ≤ 2 | 5 % | ✓ pass |
| Largest density change over the last time unit, 100 cells | 0.00542 | |x| ≤ 1e-6 | 542000 % | ✕ fail |
| Mach number error away from the shock, 200 cells | 0.00762 | |x| ≤ 0.03 | 25 % | ✓ pass |
| Pressure error away from the shock, 200 cells | 0.00378 | |x| ≤ 0.03 | 13 % | ✓ pass |
| Shock position error in cells, 200 cells | 0.11 | |x| ≤ 2 | 6 % | ✓ pass |
| Largest density change over the last time unit, 200 cells | 0.00239 | |x| ≤ 1e-6 | 239000 % | ✕ fail |
| Mach number error away from the shock, 400 cells | 0.0102 | |x| ≤ 0.03 | 34 % | ✓ pass |
| Pressure error away from the shock, 400 cells | 0.00674 | |x| ≤ 0.03 | 22 % | ✓ pass |
| Shock position error in cells, 400 cells | 0.132 | |x| ≤ 2 | 7 % | ✓ pass |
| Largest density change over the last time unit, 400 cellskey | 0.00737 | |x| ≤ 1e-6 | 737000 % | ✕ fail |
Setup and reproducibility
- Grid and numerics
- Quasi-1D duct, area A = 1 + 2.2 (x - 1.5)^2 on [0, 3], gamma 1.4, reservoir pressure and temperature 1, back pressure 0.6784, t = 60, 100 to 400 cells; PLM with van Leer slopes, HLLC, VL2
- Solver
- Kaze 0.1.0+e97c872b
- Hardware
- AMD EPYC Genoa server CPU, one thread
- Precision
- f64
- Code revision
- e97c872b60d8
- Physics
- Compressible flow · nozzle, normal shock, quasi-1d flow
- Run date
References
- Analytic solution
J. D. Anderson, Computational Fluid Dynamics: The Basics with Applications, McGraw-Hill, 1995 (quasi-1D nozzle with a normal shock)
openlibrary.org/books/OL1096627M


