CompAero/ObliqueShockRelations.py
def calc_max_shock_angle(mach: float, gamma: float) -> float:
        """ Calculates the maximum oblique shock angle 

        Args:
            mach (float): Mach number of flow ahead of the shock wave
            gamma (float): Ratio of specific heats

        Returns:
            float: Maximum value of the oblique shock angle (radians)
        """
        gp1 = gamma + 1
        gm1 = gamma - 1
        # splitting up of beta_max equation
        isissq = gp1 * (1 + gm1 * pow(mach, 2) / 2 + gp1 / 16 * pow(mach, 4))
        issq = 1 / (gamma * pow(mach, 2)) * (gp1 * pow(mach, 2) / 4 + sqrt(isissq) - 1)
        return asin(sqrt(issq))
 Calculates the maximum oblique shock angle 

        Args:
            mach (float): Mach number of flow ahead of the shock wave
            gamma (float): Ratio of specific heats

        Returns:
            float: Maximum value of the oblique shock angle (radians)
        
Calculates the maximum oblique shock angle
Calculates the maximum oblique shock angle
def calc_max_shock_angle(mach: float, gamma: float) -> float:
        gp1 = gamma + 1
        gm1 = gamma - 1
        isissq = gp1 * (1 + gm1 * pow(mach, 2) / 2 + gp1 / 16 * pow(mach, 4))
        issq = 1 / (gamma * pow(mach, 2)) * (gp1 * pow(mach, 2) / 4 + sqrt(isissq) - 1)
        return asin(sqrt(issq))
def calc_max_shock_angle ( mach : float , gamma : float ) -> float : gp1 = gamma + 1 gm1 = gamma - 1 isissq = gp1 * ( 1 + gm1 * pow ( mach , 2 ) / 2 + gp1 / 16 * pow ( mach , 4 ) ) issq = 1 / ( gamma * pow ( mach , 2 ) ) * ( gp1 * pow ( mach , 2 ) / 4 + sqrt ( isissq ) - 1 ) return asin ( sqrt ( issq ) )
Calculates the maximum oblique shock angle
Calculates the maximum oblique shock angle
""" Calculates the maximum oblique shock angle 

        Args:
            mach (float): Mach number of flow ahead of the shock wave
            gamma (float): Ratio of specific heats

        Returns:
            float: Maximum value of the oblique shock angle (radians)
        """ # splitting up of beta_max equation
Maximum value of the oblique shock angle (radians)
Maximum value of the oblique shock angle ( radians )
float
mach
float
Mach number of flow ahead of the shock wave
Mach number of flow ahead of the shock wave
gamma
float
Ratio of specific heats
Ratio of specific heats