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

        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: U/U*
        """
        gp1 = gamma + 1
        mSqr = pow(mach, 2)
        return gp1 * mSqr / (1 + gamma * mSqr) - offset
Calculates Ratio of static velocity to sonic velocity U/U*

        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: U/U*
        
Calculates Ratio of static velocity to sonic velocity U/U
Calculates Ratio of static velocity to sonic velocity U / U
def calc_U_UStar(mach: float, gamma: float, offset: float = 0.0) -> float:
        gp1 = gamma + 1
        mSqr = pow(mach, 2)
        return gp1 * mSqr / (1 + gamma * mSqr) - offset
def calc_U_UStar ( mach : float , gamma : float , offset : float = 0.0 ) -> float : gp1 = gamma + 1 mSqr = pow ( mach , 2 ) return gp1 * mSqr / ( 1 + gamma * mSqr ) - offset
Calculates Ratio of static velocity to sonic velocity U/U
Calculates Ratio of static velocity to sonic velocity U / U
"""Calculates Ratio of static velocity to sonic velocity U/U*

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