Skip to content

Commit

Permalink
fix error with coefficients
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulCreusy committed Mar 9, 2025
1 parent df9e25b commit de6033d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flight_mech/atmosphere.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,10 @@ def compute_pressure_from_altitude(z: float):
(5474.9 * np.power(1 + 4.615e-6 * (z - 20000), 34.163)) * (z >= 20000) * (z < 32000) + \
(868.014 * np.power(1 + 12.245e-6 * (z - 32000), -12.2)) * \
(z >= 32000) * (z < 47000) + \
(110.906 * np.exp(-126.293e-3 * (z - 47000))) * (z >= 47000) * (z < 51000) + \
(66.939 * np.power((270.65) / (270.65 - 2.8 * (z - 51000) / 1000))) * \
(110.906 * np.exp(-126.293e-6 * (z - 47000))) * (z >= 47000) * (z < 51000) + \
(66.939 * np.power((270.65) / (270.65 - 2.8 * (z - 51000) / 1000), 12.2)) * \
(z >= 51000) * (z < 71000) + \
(3.9564 * np.power((214.65) / (214.65 - 2. * (z - 71000) / 1000))) * \
(3.9564 * np.power((214.65) / (214.65 - 2. * (z - 71000) / 1000), -17.09)) * \
(z >= 71000) * (z < 86000)

return pressure
Expand Down

0 comments on commit de6033d

Please sign in to comment.