CompAero/IsentropecRelations.py
def calc_rho0_rho(mach: float, gamma: float, offset: float = 0.0) -> float:
        """Calculates the ratio of Total density to static density (rho0/rho)

        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: rho0/rho
        """

        return pow((1 + (gamma - 1) / 2 * pow(mach, 2)), 1 / (gamma - 1)) - offset
Calculates the ratio of Total density to static density (rho0/rho)

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

        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: rho0/rho
        """
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