CompAero/RayleighFlowRelations.py
def calc_P_Pstar(mach: float, gamma: float, offset: float = 0.0) -> float:
        """Calculates Ratio of static pressure to sonic pressure P/P*

        Args:
            mach (float): mach number of 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: P/P*
        """
        return (1 + gamma) / (1 + gamma * pow(mach, 2)) - offset
Calculates Ratio of static pressure to sonic pressure P/P*

        Args:
            mach (float): mach number of 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: P/P*
        
Calculates Ratio of static pressure to sonic pressure P/P
Calculates Ratio of static pressure to sonic pressure P / P
def calc_P_Pstar(mach: float, gamma: float, offset: float = 0.0) -> float:
        return (1 + gamma) / (1 + gamma * pow(mach, 2)) - offset
def calc_P_Pstar ( mach : float , gamma : float , offset : float = 0.0 ) -> float : return ( 1 + gamma ) / ( 1 + gamma * pow ( mach , 2 ) ) - offset
Calculates Ratio of static pressure to sonic pressure P/P
Calculates Ratio of static pressure to sonic pressure P / P
"""Calculates Ratio of static pressure to sonic pressure P/P*

        Args:
            mach (float): mach number of 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: P/P*
        """
None
float
mach
float
mach number of the flow
mach number of 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