Compute shock wave angle (β), downstream Mach number, pressure ratio, density ratio, temperature ratio, and total pressure loss for oblique shocks. Based on the exact θ-β-M relation.
For a stationary oblique shock wave in a perfect gas, the relationship between the upstream Mach number M₁, the flow deflection angle θ, and the shock wave angle β is given by:
\[ \tan \theta = 2 \cot \beta \frac{M_1^2 \sin^2 \beta - 1}{M_1^2 (\gamma + \cos 2\beta) + 2} \]
This transcendental equation is solved iteratively to obtain β for given M₁, θ, and γ. The solver implements a robust hybrid Newton-Raphson / bisection method, returning the physically admissible weak (β < 90°, lower β) or strong (β > 90°, higher β) solution. The weak shock is the most common attached oblique shock in supersonic intakes and around wedges.
Once β is known, the normal Mach number component is M₁ₙ = M₁ sin β. Using normal shock relations, we compute:
The maximum deflection angle θmax corresponds to the condition dθ/dβ = 0, beyond which no attached oblique shock exists (detached bow shock). This calculator computes θmax for the given M₁ and γ using an optimization routine.
A Mach 3.0 scramjet forebody uses a 12° compression ramp. Using γ=1.4, our calculator yields β = 27.5° (weak solution) and M₂ = 2.27, p₂/p₁ = 2.18, total pressure recovery p₀₂/p₀₁ = 0.91. This mild total pressure loss is acceptable for scramjet operation. If the designer increased θ beyond θ_max (≈ 22.5° at M₁=3), the shock would detach, causing dramatic drag and unstart. The calculator's maximum deflection warning is crucial for avoiding inlet unstart.
The shock angle β is found by solving f(β) = tanθ - RHS(β) = 0. The solver first locates the weak (between arcsin(1/M₁) and 90°) and strong (90° to 180°) root intervals. A combination of bracketing and Newton-Raphson ensures convergence to 1e-8 rad accuracy. This algorithm has been verified against NACA 1135 tables and modern CFD benchmarks. The total pressure loss formula follows classical gas dynamics (Anderson, "Modern Compressible Flow").