Solution (source code)

= Solution

In the shock frame, conservation of mass, normal momentum, and energy gives
$$
ρ_1U=ρ_2(U-u_2),
$$
$$
p_1+ρ_1U^2=p_2+ρ_2(U-u_2)^2,
$$
$$
h_1+U^2/2=h_2+(U-u_2)^2/2.
$$
These are the <Rankine-Hugoniot conditions for a perfect gas>[Rankine-Hugoniot relations].