Skip to content
DimensionLab

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.

Mach number along the nozzle as a colour band
Failed
9 of 12 gates met
0.00737Largest density change over the last time unit, 400 cells · gate |x| ≤ 1e-6
737000 %

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

Mach number, Kaze and quasi-1D theory

Pressure, 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.

MetricValueGateAllowance usedResult
Mach number error away from the shock, 100 cells0.0114|x| ≤ 0.0338 %✓ pass
Pressure error away from the shock, 100 cells0.0077|x| ≤ 0.0326 %✓ pass
Shock position error in cells, 100 cells0.1|x| ≤ 25 %✓ pass
Largest density change over the last time unit, 100 cells0.00542|x| ≤ 1e-6542000 %✕ fail
Mach number error away from the shock, 200 cells0.00762|x| ≤ 0.0325 %✓ pass
Pressure error away from the shock, 200 cells0.00378|x| ≤ 0.0313 %✓ pass
Shock position error in cells, 200 cells0.11|x| ≤ 26 %✓ pass
Largest density change over the last time unit, 200 cells0.00239|x| ≤ 1e-6239000 %✕ fail
Mach number error away from the shock, 400 cells0.0102|x| ≤ 0.0334 %✓ pass
Pressure error away from the shock, 400 cells0.00674|x| ≤ 0.0322 %✓ pass
Shock position error in cells, 400 cells0.132|x| ≤ 27 %✓ pass
Largest density change over the last time unit, 400 cellskey0.00737|x| ≤ 1e-6737000 %✕ 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