CompAero/IsentropecRelations.py
def calc_P0_P(mach: float, gamma: float, offset: float = 0.0) -> float:
        """Calculates the ratio of Total pressure to static pressure (P0/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: P0/P
        """

        return pow((1 + (gamma - 1) / 2 * pow(mach, 2)), gamma / (gamma - 1)) - offset
Calculates the ratio of Total pressure to static pressure (P0/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: P0/P
        
Calculates the ratio of Total pressure to static pressure (P0/P)
Calculates the ratio of Total pressure to static pressure ( P0 / P )
def calc_P0_P(mach: float, gamma: float, offset: float = 0.0) -> float:
        return pow((1 + (gamma - 1) / 2 * pow(mach, 2)), gamma / (gamma - 1)) - offset
def calc_P0_P ( mach : float , gamma : float , offset : float = 0.0 ) -> float : return pow ( ( 1 + ( gamma - 1 ) / 2 * pow ( mach , 2 ) ) , gamma / ( gamma - 1 ) ) - offset
Calculates the ratio of Total pressure to static pressure (P0/P)
Calculates the ratio of Total pressure to static pressure ( P0 / P )
"""Calculates the ratio of Total pressure to static pressure (P0/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: P0/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