CompAero/ObliqueShockRelations.py
def calc_beta_from_theta_beta_mach_weak(theta: float, mach: float, gamma: float) -> float:
        """ Impliments the Theta-Beta-Mach (TBM) equation. Solves for Beta (shock angle) assuming the shock is weak

        Args:
            theta (float): Flow deflection (Wedge) angle (radians)
            mach (float): Mach number of the flow ahead of the oblique shock
            gamma (float): ratio of specific heats

        Returns:
            float: Oblique shock angle (radians)
        """
        maxShockAngle = ObliqueShockRelations.calc_max_shock_angle(mach, gamma)
        minShockAngle = ObliqueShockRelations.calc_mach_wave_angle(mach)
        return brenth(
            ObliqueShockRelations.calc_theta_from_theta_beta_mach,
            minShockAngle,
            maxShockAngle,
            args=(mach, gamma, theta),
        )
 Impliments the Theta-Beta-Mach (TBM) equation. Solves for Beta (shock angle) assuming the shock is weak

        Args:
            theta (float): Flow deflection (Wedge) angle (radians)
            mach (float): Mach number of the flow ahead of the oblique shock
            gamma (float): ratio of specific heats

        Returns:
            float: Oblique shock angle (radians)
        
Impliments the Theta-Beta-Mach (TBM) equation. Solves for Beta (shock angle) assuming the shock is weak
Impliments the Theta - Beta - Mach ( TBM ) equation . Solves for Beta ( shock angle ) assuming the shock is weak
def calc_beta_from_theta_beta_mach_weak(theta: float, mach: float, gamma: float) -> float:
        maxShockAngle = ObliqueShockRelations.calc_max_shock_angle(mach, gamma)
        minShockAngle = ObliqueShockRelations.calc_mach_wave_angle(mach)
        return brenth(
            ObliqueShockRelations.calc_theta_from_theta_beta_mach,
            minShockAngle,
            maxShockAngle,
            args=(mach, gamma, theta),
        )
def calc_beta_from_theta_beta_mach_weak ( theta : float , mach : float , gamma : float ) -> float : maxShockAngle = ObliqueShockRelations . calc_max_shock_angle ( mach , gamma ) minShockAngle = ObliqueShockRelations . calc_mach_wave_angle ( mach ) return brenth ( ObliqueShockRelations . calc_theta_from_theta_beta_mach , minShockAngle , maxShockAngle , args = ( mach , gamma , theta ) , )
Impliments the Theta-Beta-Mach (TBM) equation.
Impliments the Theta - Beta - Mach ( TBM ) equation .
""" Impliments the Theta-Beta-Mach (TBM) equation. Solves for Beta (shock angle) assuming the shock is weak

        Args:
            theta (float): Flow deflection (Wedge) angle (radians)
            mach (float): Mach number of the flow ahead of the oblique shock
            gamma (float): ratio of specific heats

        Returns:
            float: Oblique shock angle (radians)
        """
Oblique shock angle (radians)
Oblique shock angle ( radians )
float
theta
float
Flow deflection (Wedge) angle (radians)
Flow deflection ( Wedge ) angle ( radians )
mach
float
Mach number of the flow ahead of the oblique shock
Mach number of the flow ahead of the oblique shock
gamma
float
ratio of specific heats
ratio of specific heats