CompAero/ObliqueShockRelations.py
def calc_max_flow_deflection_angle(maxShockAngle: float, mach: float, gamma: float) -> float:
        """ Calculates the max flow deflection angle for a flow

        Args:
            maxShockAngle (float): Maximum oblique shock angle (radians)
            mach (float): Mach number of flow ahead of the oblique shock
            gamma (float): Ratio of specific heats

        Returns:
            float: Mac flow deflection angle (radians)
        """
        msa = maxShockAngle
        numerator = (pow(mach, 2) * (sin(msa)) ** 2 - 1) / tan(msa)
        denominator = pow(mach, 2) * (gamma + 1) / 2 - pow(mach, 2) * (pow(sin(msa), 2)) + 1
        return atan(numerator / denominator)
 Calculates the max flow deflection angle for a flow

        Args:
            maxShockAngle (float): Maximum oblique shock angle (radians)
            mach (float): Mach number of flow ahead of the oblique shock
            gamma (float): Ratio of specific heats

        Returns:
            float: Mac flow deflection angle (radians)
        
Calculates the max flow deflection angle for a flow
Calculates the max flow deflection angle for a flow
def calc_max_flow_deflection_angle(maxShockAngle: float, mach: float, gamma: float) -> float:
        msa = maxShockAngle
        numerator = (pow(mach, 2) * (sin(msa)) ** 2 - 1) / tan(msa)
        denominator = pow(mach, 2) * (gamma + 1) / 2 - pow(mach, 2) * (pow(sin(msa), 2)) + 1
        return atan(numerator / denominator)
def calc_max_flow_deflection_angle ( maxShockAngle : float , mach : float , gamma : float ) -> float : msa = maxShockAngle numerator = ( pow ( mach , 2 ) * ( sin ( msa ) ) ** 2 - 1 ) / tan ( msa ) denominator = pow ( mach , 2 ) * ( gamma + 1 ) / 2 - pow ( mach , 2 ) * ( pow ( sin ( msa ) , 2 ) ) + 1 return atan ( numerator / denominator )
Calculates the max flow deflection angle for a flow
Calculates the max flow deflection angle for a flow
""" Calculates the max flow deflection angle for a flow

        Args:
            maxShockAngle (float): Maximum oblique shock angle (radians)
            mach (float): Mach number of flow ahead of the oblique shock
            gamma (float): Ratio of specific heats

        Returns:
            float: Mac flow deflection angle (radians)
        """
Mac flow deflection angle (radians)
Mac flow deflection angle ( radians )
float
maxShockAngle
float
Maximum oblique shock angle (radians)
Maximum oblique shock angle ( radians )
mach
float
Mach number of flow ahead of the oblique shock
Mach number of flow ahead of the oblique shock
gamma
float
Ratio of specific heats
Ratio of specific heats