CompAero/ObliqueShockRelations.py
def calc_theta_from_theta_beta_mach(beta: float, mach: float, gamma: float, offset: float = 0.0) -> float:
        """ Impliments the Theta-Beta-Mach (TBM) equation. Solves for Theta

        Args:
            beta (float): Oblique shock angle (radians)
            mach (float): Mach number of flow ahead of the shock wave
            gamma (float): Ratio of specific heats
            offset (float, optional): [description]. Defaults to 0.0.

        Returns:
            float: Flow deflection (Wedge) angle (radians)
        """
        mSqr = pow(mach, 2)
        num = mSqr * pow(sin(beta), 2) - 1
        denom = mSqr * (gamma + cos(2 * beta)) + 2
        theta = atan(2 * 1 / tan(beta) * num / denom) - offset
        return theta
 Impliments the Theta-Beta-Mach (TBM) equation. Solves for Theta

        Args:
            beta (float): Oblique shock angle (radians)
            mach (float): Mach number of flow ahead of the shock wave
            gamma (float): Ratio of specific heats
            offset (float, optional): [description]. Defaults to 0.0.

        Returns:
            float: Flow deflection (Wedge) angle (radians)
        
Impliments the Theta-Beta-Mach (TBM) equation. Solves for Theta
Impliments the Theta - Beta - Mach ( TBM ) equation . Solves for Theta
def calc_theta_from_theta_beta_mach(beta: float, mach: float, gamma: float, offset: float = 0.0) -> float:
        mSqr = pow(mach, 2)
        num = mSqr * pow(sin(beta), 2) - 1
        denom = mSqr * (gamma + cos(2 * beta)) + 2
        theta = atan(2 * 1 / tan(beta) * num / denom) - offset
        return theta
def calc_theta_from_theta_beta_mach ( beta : float , mach : float , gamma : float , offset : float = 0.0 ) -> float : mSqr = pow ( mach , 2 ) num = mSqr * pow ( sin ( beta ) , 2 ) - 1 denom = mSqr * ( gamma + cos ( 2 * beta ) ) + 2 theta = atan ( 2 * 1 / tan ( beta ) * num / denom ) - offset return theta
Impliments the Theta-Beta-Mach (TBM) equation.
Impliments the Theta - Beta - Mach ( TBM ) equation .
""" Impliments the Theta-Beta-Mach (TBM) equation. Solves for Theta

        Args:
            beta (float): Oblique shock angle (radians)
            mach (float): Mach number of flow ahead of the shock wave
            gamma (float): Ratio of specific heats
            offset (float, optional): [description]. Defaults to 0.0.

        Returns:
            float: Flow deflection (Wedge) angle (radians)
        """
Flow deflection (Wedge) angle (radians)
Flow deflection ( Wedge ) angle ( radians )
float
beta
float
Oblique shock angle (radians)
Oblique shock angle ( radians )
mach
float
Mach number of flow ahead of the shock wave
Mach number of flow ahead of the shock wave
gamma
float
Ratio of specific heats
Ratio of specific heats
offset
float
[description]. Defaults to 0.0.
[ description ] . Defaults to 0 . 0 .
0.0