CompAero/PrandtlMeyer.py
def calc_nu(mach: float, gamma: float, offset: float = 0.0) -> float:
        """ Calculates the prandtl meyer function value (nu)

        Args:
            mach (float): mach number of the the flow
            gamma (float): ratio of specific heats
            offset (float, optional): offset that can be used for root finding for a specific value. Defaults to 0.0.

        Returns:
            float: nu
        """
        if mach <= 1.0:
            return 0.0

        gp1 = gamma + 1
        gm1 = gamma - 1
        mSqrMinus1 = pow(mach, 2) - 1
        return degrees(sqrt(gp1 / gm1) * atan(sqrt(gm1 / gp1 * mSqrMinus1)) - atan(sqrt(mSqrMinus1))) - offset
 Calculates the prandtl meyer function value (nu)

        Args:
            mach (float): mach number of the the flow
            gamma (float): ratio of specific heats
            offset (float, optional): offset that can be used for root finding for a specific value. Defaults to 0.0.

        Returns:
            float: nu
        
Calculates the prandtl meyer function value (nu)
Calculates the prandtl meyer function value ( nu )
def calc_nu(mach: float, gamma: float, offset: float = 0.0) -> float:
        if mach <= 1.0:
            return 0.0
        gp1 = gamma + 1
        gm1 = gamma - 1
        mSqrMinus1 = pow(mach, 2) - 1
        return degrees(sqrt(gp1 / gm1) * atan(sqrt(gm1 / gp1 * mSqrMinus1)) - atan(sqrt(mSqrMinus1))) - offset
def calc_nu ( mach : float , gamma : float , offset : float = 0.0 ) -> float : if mach <= 1.0 : return 0.0 gp1 = gamma + 1 gm1 = gamma - 1 mSqrMinus1 = pow ( mach , 2 ) - 1 return degrees ( sqrt ( gp1 / gm1 ) * atan ( sqrt ( gm1 / gp1 * mSqrMinus1 ) ) - atan ( sqrt ( mSqrMinus1 ) ) ) - offset
Calculates the prandtl meyer function value (nu)
Calculates the prandtl meyer function value ( nu )
""" Calculates the prandtl meyer function value (nu)

        Args:
            mach (float): mach number of the the flow
            gamma (float): ratio of specific heats
            offset (float, optional): offset that can be used for root finding for a specific value. Defaults to 0.0.

        Returns:
            float: nu
        """
None
float
mach
float
mach number of the the flow
mach number of the the flow
gamma
float
ratio of specific heats
ratio of specific heats
offset
float
offset that can be used for root finding for a specific value. Defaults to 0.0.
offset that can be used for root finding for a specific value . Defaults to 0 . 0 .
0.0