Skip to content

Commit

Permalink
Fix oblique shock rho2_rho1 function
Browse files Browse the repository at this point in the history
Add missing brackets to oblique shock state relations
  • Loading branch information
andrewjlock authored Oct 30, 2024
1 parent 5b9616f commit a995d04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pysagas/cfd/oblique_prandtl_meyer.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ def oblique_rho2_rho1(M1: float, beta: float, gamma: float = 1.4):
Peter Jacobs
"""
M1n = M1 * abs(np.sin(beta))
rho2_rho1 = (gamma + 1) * M1n**2 / 2 + (gamma - 1) * M1n**2
rho2_rho1 = (gamma + 1) * M1n**2 / (2 + (gamma - 1) * M1n**2)
return rho2_rho1

@staticmethod
Expand Down

0 comments on commit a995d04

Please sign in to comment.