diff options
Diffstat (limited to 'engine.py')
-rw-r--r-- | engine.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engine.py b/engine.py index bc08a43..f1da646 100644 --- a/engine.py +++ b/engine.py @@ -6,8 +6,9 @@ class Engine(): self.max_flow_rate = max_flow_rate self.isp = isp - def thrust(self, throttle: int): - return self.flow_rate(throttle) * self.isp + def thrust(self, throttle: int, g: float): + #https://www.grc.nasa.gov/www/k-12/airplane/specimp.html + return self.flow_rate(throttle) * self.isp * g def flow_rate(self, throttle: int): return self.max_flow_rate * (throttle / 100) \ No newline at end of file |