CompAero/ObliqueShockRelations.py
def calc_mach_ahead_shock_from_mach_normal_ahead_shock(machNormal1: float, beta: float) -> float:
        """ Calculates the upstream mach number from the normal component of the upstream mach number

        Args:
            machNormal1 (float): Normal Component of mach number ahead of the shock wave
            beta (float): Angle of oblique shock in radians

        Returns:
            float: Returns value of mach number of the flow ahead of the shock wave
        """
        return machNormal1 / sin(beta)
 Calculates the upstream mach number from the normal component of the upstream mach number

        Args:
            machNormal1 (float): Normal Component of mach number ahead of the shock wave
            beta (float): Angle of oblique shock in radians

        Returns:
            float: Returns value of mach number of the flow ahead of the shock wave
        
Calculates the upstream mach number from the normal component of the upstream mach number
Calculates the upstream mach number from the normal component of the upstream mach number
def calc_mach_ahead_shock_from_mach_normal_ahead_shock(machNormal1: float, beta: float) -> float:
        return machNormal1 / sin(beta)
def calc_mach_ahead_shock_from_mach_normal_ahead_shock ( machNormal1 : float , beta : float ) -> float : return machNormal1 / sin ( beta )
Calculates the upstream mach number from the normal component of the upstream mach number
Calculates the upstream mach number from the normal component of the upstream mach number
""" Calculates the upstream mach number from the normal component of the upstream mach number

        Args:
            machNormal1 (float): Normal Component of mach number ahead of the shock wave
            beta (float): Angle of oblique shock in radians

        Returns:
            float: Returns value of mach number of the flow ahead of the shock wave
        """
Returns value of mach number of the flow ahead of the shock wave
Returns value of mach number of the flow ahead of the shock wave
float
machNormal1
float
Normal Component of mach number ahead of the shock wave
Normal Component of mach number ahead of the shock wave
beta
float
Angle of oblique shock in radians
Angle of oblique shock in radians