CompAero/ObliqueShockRelations.py
def calc_mach_from_theta_beta_mach(beta: float, theta: float, gamma: float) -> float:
        """ Impliments the Theta-Beta-Mach (TBM) Equation. Solves for the mach number

        Args:
            beta (float): Oblique shock angle (radians)
            theta (float): Flow deflection (wedge) angle (radians)
            gamma (float): Ratio of specific heats

        Returns:
            float: Mach number of the flow ahead of the shock wave
        """
        numerator = -2 * (1 + tan(theta) * tan(beta))
        denominator = tan(theta) * tan(beta) * (gamma + cos(2 * beta)) - 2 * (sin(beta)) ** 2
        return sqrt(numerator / denominator)
 Impliments the Theta-Beta-Mach (TBM) Equation. Solves for the mach number

        Args:
            beta (float): Oblique shock angle (radians)
            theta (float): Flow deflection (wedge) angle (radians)
            gamma (float): Ratio of specific heats

        Returns:
            float: Mach number of the flow ahead of the shock wave
        
Impliments the Theta-Beta-Mach (TBM) Equation. Solves for the mach number
Impliments the Theta - Beta - Mach ( TBM ) Equation . Solves for the mach number
def calc_mach_from_theta_beta_mach(beta: float, theta: float, gamma: float) -> float:
        numerator = -2 * (1 + tan(theta) * tan(beta))
        denominator = tan(theta) * tan(beta) * (gamma + cos(2 * beta)) - 2 * (sin(beta)) ** 2
        return sqrt(numerator / denominator)
def calc_mach_from_theta_beta_mach ( beta : float , theta : float , gamma : float ) -> float : numerator = - 2 * ( 1 + tan ( theta ) * tan ( beta ) ) denominator = tan ( theta ) * tan ( beta ) * ( gamma + cos ( 2 * beta ) ) - 2 * ( sin ( beta ) ) ** 2 return sqrt ( numerator / denominator )
Impliments the Theta-Beta-Mach (TBM) Equation.
Impliments the Theta - Beta - Mach ( TBM ) Equation .
""" Impliments the Theta-Beta-Mach (TBM) Equation. Solves for the mach number

        Args:
            beta (float): Oblique shock angle (radians)
            theta (float): Flow deflection (wedge) angle (radians)
            gamma (float): Ratio of specific heats

        Returns:
            float: Mach number of the flow ahead of the shock wave
        """
Mach number of the flow ahead of the shock wave
Mach number of the flow ahead of the shock wave
float
beta
float
Oblique shock angle (radians)
Oblique shock angle ( radians )
theta
float
Flow deflection (wedge) angle (radians)
Flow deflection ( wedge ) angle ( radians )
gamma
float
Ratio of specific heats
Ratio of specific heats