CompAero/FannoFlowRelations.py
def calc_Po_PoStar(mach: float, gamma: float, offset: float = 0.0) -> float:
        """Calculates Ratio of static density to sonic density P0/P0*

        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: P0/P0*
        """
        gp1 = gamma + 1
        gm1 = gamma - 1
        return pow(1 / FannoFlowRelations.calc_T_Tstar(mach, gamma), gp1 / (2 * gm1)) / mach - offset
Calculates Ratio of static density to sonic density P0/P0*

        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: P0/P0*
        
Calculates Ratio of static density to sonic density P0/P0
Calculates Ratio of static density to sonic density P0 / P0
def calc_Po_PoStar(mach: float, gamma: float, offset: float = 0.0) -> float:
        gp1 = gamma + 1
        gm1 = gamma - 1
        return pow(1 / FannoFlowRelations.calc_T_Tstar(mach, gamma), gp1 / (2 * gm1)) / mach - offset
def calc_Po_PoStar ( mach : float , gamma : float , offset : float = 0.0 ) -> float : gp1 = gamma + 1 gm1 = gamma - 1 return pow ( 1 / FannoFlowRelations . calc_T_Tstar ( mach , gamma ) , gp1 / ( 2 * gm1 ) ) / mach - offset
Calculates Ratio of static density to sonic density P0/P0
Calculates Ratio of static density to sonic density P0 / P0
"""Calculates Ratio of static density to sonic density P0/P0*

        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: P0/P0*
        """
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