Skip to content
DimensionLab

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.

Mach number along the nozzle as a colour band
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

Mach number, Kaze and quasi-1D theory

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

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.

MetricValueGateAllowance usedResult
Mach number error away from the shock, 100 cells0.00821|x| ≤ 0.0327 %✓ pass
Pressure error away from the shock, 100 cells0.00758|x| ≤ 0.0325 %✓ pass
Shock position error in cells, 100 cells0.101|x| ≤ 25 %✓ pass
Unsteadiness of density over the last time unit, 100 cells0|x| ≤ 1e-6<1 %✓ pass
Mach number error away from the shock, 200 cells0.00417|x| ≤ 0.0314 %✓ pass
Pressure error away from the shock, 200 cells0.00377|x| ≤ 0.0313 %✓ pass
Shock position error in cells, 200 cells0.111|x| ≤ 26 %✓ pass
Unsteadiness of density over the last time unit, 200 cells3.84e-14|x| ≤ 1e-6<1 %✓ pass
Mach number error away from the shock, 400 cellskey0.00216|x| ≤ 0.037 %✓ pass
Pressure error away from the shock, 400 cells0.00188|x| ≤ 0.036 %✓ pass
Shock position error in cells, 400 cells0.128|x| ≤ 26 %✓ pass
Unsteadiness of density over the last time unit, 400 cells5.46e-14|x| ≤ 1e-6<1 %✓ pass
Same unsteadiness with plain HLLC, 100 cells (reported only)0.0169not gatedreported onlyreported
Same unsteadiness with plain HLLC, 200 cells (reported only)0.0163not gatedreported onlyreported
Same unsteadiness with plain HLLC, 400 cells (reported only)0.0296not gatedreported onlyreported

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