KazeCompressible flowCPU · f64
De Laval nozzle with a normal shock against quasi-1D theory (strong-shock limiter)
Kaze with a strong-shock limiter reproduces the steady flow in Anderson's nozzle with a normal shock: Mach number within 0.22% and pressure within 0.19% of the exact solution away from the shock at 400 cells (gate 3%), shock within 0.13 cells (gate 2), steady to 5.5e-14 (gate 1e-6); CPU, f64, 2026-11-22.

Pass
12 of 12 gates met
0.00216Mach number error away from the shock, 400 cells · gate |x| ≤ 0.03
7 %- Reference
- J. D. Anderson
- Hardware
- Intel Core i7-6800K workstation CPU, one thread
- Solver version
- Kaze 0.1.0+c79c57e0
- Grid
- Quasi-1D duct, A = 1 + 2.2 (x - 1.5)^2 on [0, 3], gamma 1.4, back…
Results
Figures from the run.
Mach number, Kaze and quasi-1D theory

Per-cell range over the last time unit: limit cycle with HLLC, round-off with the option

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.00821 | |x| ≤ 0.03 | 27 % | ✓ pass |
| Pressure error away from the shock, 100 cells | 0.00758 | |x| ≤ 0.03 | 25 % | ✓ pass |
| Shock position error in cells, 100 cells | 0.101 | |x| ≤ 2 | 5 % | ✓ pass |
| Unsteadiness of density over the last time unit, 100 cells | 0 | |x| ≤ 1e-6 | <1 % | ✓ pass |
| Mach number error away from the shock, 200 cells | 0.00417 | |x| ≤ 0.03 | 14 % | ✓ pass |
| Pressure error away from the shock, 200 cells | 0.00377 | |x| ≤ 0.03 | 13 % | ✓ pass |
| Shock position error in cells, 200 cells | 0.111 | |x| ≤ 2 | 6 % | ✓ pass |
| Unsteadiness of density over the last time unit, 200 cells | 3.84e-14 | |x| ≤ 1e-6 | <1 % | ✓ pass |
| Mach number error away from the shock, 400 cellskey | 0.00216 | |x| ≤ 0.03 | 7 % | ✓ pass |
| Pressure error away from the shock, 400 cells | 0.00188 | |x| ≤ 0.03 | 6 % | ✓ pass |
| Shock position error in cells, 400 cells | 0.128 | |x| ≤ 2 | 6 % | ✓ pass |
| Unsteadiness of density over the last time unit, 400 cells | 5.46e-14 | |x| ≤ 1e-6 | <1 % | ✓ pass |
| Same unsteadiness with plain HLLC, 100 cells (reported only) | 0.0169 | not gated | reported only | reported |
| Same unsteadiness with plain HLLC, 200 cells (reported only) | 0.0163 | not gated | reported only | reported |
| Same unsteadiness with plain HLLC, 400 cells (reported only) | 0.0296 | not gated | reported only | reported |
Setup and reproducibility
- Grid and numerics
- Quasi-1D duct, A = 1 + 2.2 (x - 1.5)^2 on [0, 3], gamma 1.4, back pressure 0.6784, t = 400, 100 to 400 cells; PLM with minmod in strong slow shocks, HLLC, VL2
- Solver
- Kaze 0.1.0+c79c57e0
- Hardware
- Intel Core i7-6800K workstation CPU, one thread
- Precision
- f64
- Code revision
- c79c57e055fb
- 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


