Skip to content

Commit

Permalink
Propulsive efficiency calculation exception
Browse files Browse the repository at this point in the history
  • Loading branch information
alopezrivera committed Sep 11, 2021
1 parent fea647c commit 45e6dcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion huracan/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ def efficiency_prop(self):
"""
Stream propulsive efficiency.
"""
return 2/(1+self.v_exit()/self.gas.v_0)
return 2/(1+self.v_exit()/self.gas.v_0) if self.gas.v_0 > 0 else 0

def efficiency_total(self):
if hasattr(self, 'system'):
Expand Down

0 comments on commit 45e6dcd

Please sign in to comment.