KazeCompressible flowCPU · f64
Oblique shock from a slip wall: shock angle and post-shock state against the exact theta-beta-Mach relation
Kaze reproduces the oblique shock of a Mach 2 stream turned by 10 degrees and a Mach 3 stream turned by 20 degrees: shock angle within 1.0e-3 degrees of the exact value (gate 0.5 degrees) and post-shock density and pressure within 1.2e-3 (gate 1 %) at 128 and 256 cells per unit; CPU, f64, 2026-11-21.

Pass
12 of 12 gates met
0.00115Mach 3, 20 degrees: post-shock density relative error, 128 cells per unit · gate |x| ≤ 0.01
12 %- Reference
- J. D. Anderson
- Hardware
- AMD EPYC Genoa server CPU, one thread
- Solver version
- Kaze 0.1.0+c82770f3
- Grid
- 2D [0, 1] x [0, 0.625], 2-cell solid layer as the wall, 128 and 256…
Results
Figures from the run.
Shock height minus the exact line, in cells

Shock-angle error with the gate

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 2, 10 degrees: shock angle error (degrees), 128 cells per unit | 0.00104 deg | |x| ≤ 0.5 deg | <1 % | ✓ pass |
| Mach 2, 10 degrees: post-shock density relative error, 128 cells per unit | 8.96e-5 | |x| ≤ 0.01 | <1 % | ✓ pass |
| Mach 2, 10 degrees: post-shock pressure relative error, 128 cells per unit | 1.56e-6 | |x| ≤ 0.01 | <1 % | ✓ pass |
| Mach 2, 10 degrees: post-shock flow angle deviation (degrees), 128 cells per unit | -1.92e-4 deg | not gated | reported only | reported |
| Mach 2, 10 degrees: shock angle error (degrees), 256 cells per unit | 2.48e-4 deg | |x| ≤ 0.5 deg | <1 % | ✓ pass |
| Mach 2, 10 degrees: post-shock density relative error, 256 cells per unit | 4.19e-5 | |x| ≤ 0.01 | <1 % | ✓ pass |
| Mach 2, 10 degrees: post-shock pressure relative error, 256 cells per unit | 1.09e-6 | |x| ≤ 0.01 | <1 % | ✓ pass |
| Mach 2, 10 degrees: post-shock flow angle deviation (degrees), 256 cells per unit | -7.09e-5 deg | not gated | reported only | reported |
| Mach 3, 20 degrees: shock angle error (degrees), 128 cells per unit | 2.87e-4 deg | |x| ≤ 0.5 deg | <1 % | ✓ pass |
| Mach 3, 20 degrees: post-shock density relative error, 128 cells per unitkey | 0.00115 | |x| ≤ 0.01 | 12 % | ✓ pass |
| Mach 3, 20 degrees: post-shock pressure relative error, 128 cells per unit | 3.6e-5 | |x| ≤ 0.01 | <1 % | ✓ pass |
| Mach 3, 20 degrees: post-shock flow angle deviation (degrees), 128 cells per unit | 8.77e-4 deg | not gated | reported only | reported |
| Mach 3, 20 degrees: shock angle error (degrees), 256 cells per unit | 4.21e-4 deg | |x| ≤ 0.5 deg | <1 % | ✓ pass |
| Mach 3, 20 degrees: post-shock density relative error, 256 cells per unit | 4.8e-4 | |x| ≤ 0.01 | 5 % | ✓ pass |
| Mach 3, 20 degrees: post-shock pressure relative error, 256 cells per unit | 2.2e-6 | |x| ≤ 0.01 | <1 % | ✓ pass |
| Mach 3, 20 degrees: post-shock flow angle deviation (degrees), 256 cells per unit | 4.24e-6 deg | not gated | reported only | reported |
Setup and reproducibility
- Grid and numerics
- 2D [0, 1] x [0, 0.625], 2-cell solid layer as the wall, 128 and 256 cells per unit; PLM, HLLC, VL2, first-order flux correction, CFL 0.4
- Solver
- Kaze 0.1.0+c82770f3
- Hardware
- AMD EPYC Genoa server CPU, one thread
- Precision
- f64
- Code revision
- c82770f3ab06
- Physics
- Compressible flow · oblique shock, theta-beta-mach, slip wall
- Run date
References
- Analytic solution
J. D. Anderson, Modern Compressible Flow: With Historical Perspective, 3rd ed., McGraw-Hill, 2003
www.mheducation.com/highered/product/modern-compressible-flow-historical-perspective-anderson/M9780072424430.html


