CompAero/RayleighFlowRelations.py
def calc_To_ToSt(mach: float, gamma: float, offset: float = 0.0) -> float:
        """Calculates To_To* given gamma and Mach, offset can be applied for root finding"""
        gp1 = gamma + 1
        gm1 = gamma - 1
        mSqr = pow(mach, 2)
        return gp1 * mSqr / pow((1 + gamma * mSqr), 2) * (2 + gm1 * mSqr) - offset
Calculates To_To* given gamma and Mach, offset can be applied for root finding
Calculates To_To* given gamma and Mach, offset can be applied for root finding
Calculates To_To * given gamma and Mach offset can be applied for root finding
def calc_To_ToSt(mach: float, gamma: float, offset: float = 0.0) -> float:
        gp1 = gamma + 1
        gm1 = gamma - 1
        mSqr = pow(mach, 2)
        return gp1 * mSqr / pow((1 + gamma * mSqr), 2) * (2 + gm1 * mSqr) - offset
def calc_To_ToSt ( mach : float , gamma : float , offset : float = 0.0 ) -> float : gp1 = gamma + 1 gm1 = gamma - 1 mSqr = pow ( mach , 2 ) return gp1 * mSqr / pow ( ( 1 + gamma * mSqr ) , 2 ) * ( 2 + gm1 * mSqr ) - offset
Calculates To_To* given gamma and Mach, offset can be applied for root finding
Calculates To_To * given gamma and Mach offset can be applied for root finding
"""Calculates To_To* given gamma and Mach, offset can be applied for root finding"""
mach
float
gamma
float
offset
float