Skip to content
DimensionLab

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.

Density with the wall (grey)
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 height minus the exact line, in cells

Shock-angle error with the gate

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.

MetricValueGateAllowance usedResult
Mach 2, 10 degrees: shock angle error (degrees), 128 cells per unit0.00104 deg|x| ≤ 0.5 deg<1 %✓ pass
Mach 2, 10 degrees: post-shock density relative error, 128 cells per unit8.96e-5|x| ≤ 0.01<1 %✓ pass
Mach 2, 10 degrees: post-shock pressure relative error, 128 cells per unit1.56e-6|x| ≤ 0.01<1 %✓ pass
Mach 2, 10 degrees: post-shock flow angle deviation (degrees), 128 cells per unit-1.92e-4 degnot gatedreported onlyreported
Mach 2, 10 degrees: shock angle error (degrees), 256 cells per unit2.48e-4 deg|x| ≤ 0.5 deg<1 %✓ pass
Mach 2, 10 degrees: post-shock density relative error, 256 cells per unit4.19e-5|x| ≤ 0.01<1 %✓ pass
Mach 2, 10 degrees: post-shock pressure relative error, 256 cells per unit1.09e-6|x| ≤ 0.01<1 %✓ pass
Mach 2, 10 degrees: post-shock flow angle deviation (degrees), 256 cells per unit-7.09e-5 degnot gatedreported onlyreported
Mach 3, 20 degrees: shock angle error (degrees), 128 cells per unit2.87e-4 deg|x| ≤ 0.5 deg<1 %✓ pass
Mach 3, 20 degrees: post-shock density relative error, 128 cells per unitkey0.00115|x| ≤ 0.0112 %✓ pass
Mach 3, 20 degrees: post-shock pressure relative error, 128 cells per unit3.6e-5|x| ≤ 0.01<1 %✓ pass
Mach 3, 20 degrees: post-shock flow angle deviation (degrees), 128 cells per unit8.77e-4 degnot gatedreported onlyreported
Mach 3, 20 degrees: shock angle error (degrees), 256 cells per unit4.21e-4 deg|x| ≤ 0.5 deg<1 %✓ pass
Mach 3, 20 degrees: post-shock density relative error, 256 cells per unit4.8e-4|x| ≤ 0.015 %✓ pass
Mach 3, 20 degrees: post-shock pressure relative error, 256 cells per unit2.2e-6|x| ≤ 0.01<1 %✓ pass
Mach 3, 20 degrees: post-shock flow angle deviation (degrees), 256 cells per unit4.24e-6 degnot gatedreported onlyreported

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