pymead.analysis.compressible_flow.calculate_normal_shock_total_pressure_ratio#

calculate_normal_shock_total_pressure_ratio(M_up: float, gam: float) float[source]#

Normal-shock relation that calculates the total pressure ratio across a shock (\(p_{t,y} / p_{t,x}\) , where \(x\) is the state immediately upstream of the shock, and \(y\) is the state immediately downstream of the shock).

Parameters:
  • M_up (float) – Mach number immediately upstream of the shock and normal to the shock (\(M_x\))

  • gam (float) – Specific heat ratio

Returns:

Total pressure ratio across the shock wave, \(p_{t,y} / p_{t,x}\)

Return type:

float