CompAero/IsentropecRelations.py
def calc_T0_T(mach: float, gamma: float, offset: float = 0.0) -> float:
        """Calculates the ratio of Total Temperature to static temperature (T0/T)

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

        Returns:
            float: T0/T
        """

        return 1 + (gamma - 1) / 2 * pow(mach, 2) - offset
Calculates the ratio of Total Temperature to static temperature (T0/T)

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

        Returns:
            float: T0/T
        
Calculates the ratio of Total Temperature to static temperature (T0/T)
Calculates the ratio of Total Temperature to static temperature ( T0 / T )
def calc_T0_T(mach: float, gamma: float, offset: float = 0.0) -> float:
        return 1 + (gamma - 1) / 2 * pow(mach, 2) - offset
def calc_T0_T ( mach : float , gamma : float , offset : float = 0.0 ) -> float : return 1 + ( gamma - 1 ) / 2 * pow ( mach , 2 ) - offset
Calculates the ratio of Total Temperature to static temperature (T0/T)
Calculates the ratio of Total Temperature to static temperature ( T0 / T )
"""Calculates the ratio of Total Temperature to static temperature (T0/T)

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

        Returns:
            float: T0/T
        """
None
float
mach
float
Mach number of the flow
Mach number of the flow
gamma
float
Ratio of specific heats of the flow
Ratio of specific heats of the flow
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