Skip to main content

wedge_pressure_coefficient

Function wedge_pressure_coefficient 

Source
pub fn wedge_pressure_coefficient(
    mach: f64,
    deflection_rad: f64,
) -> Result<f64, AeroError>
Expand description

The pressure coefficient on a face of a two-dimensional wedge turning the flow by deflection_rad at Mach mach behind an attached shock: the weak shock’s angle θ from NACA Report 1135 eq. 138 (p. 621), solved by bisection between the Mach angle and the detachment shock angle of eq. 168, then the pressure across it by eq. 128, p₂/p₁ = (2γM² sin²θ − (γ − 1))/(γ + 1), as C_p = (p₂/p₁ − 1)/(γM²/2), which is 4(sin²θ − 1/M²)/(γ + 1), the form used so that nothing overflows at a large Mach number. The report believes only the weak shock “can occur attached to an isolated convex body” (p. 624). For a thin wedge it tends to linear theory’s 2δ/√(M² − 1).

§Errors

AeroError::Domain for a Mach number that isn’t finite and above 1, a deflection outside [0, π/2), or one past the wedge’s largest at that Mach number (wedge_detachment_angle_rad), where the shock stands off and no attached solution exists.