Skip to content

Commit

Permalink
minor fix for max thrust in fuel calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
junzis committed Apr 1, 2021
1 parent 9f52eb1 commit 9f46ba3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openap/fuel.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def enroute(self, mass, tas, alt, path_angle=0):
fuelflow = self.at_thrust(T, alt)

# do not return value outside performance boundary, with a margin of 20%
T_max = self.thrust.climb(tas=tas, alt=alt, roc=0)
T_max = self.thrust.climb(tas=0, alt=alt, roc=0)
fuelflow = np.where(T > 1.20 * T_max, np.nan, fuelflow)

return fuelflow
Expand Down

0 comments on commit 9f46ba3

Please sign in to comment.