diff options
author | blendoit <blendoit@gmail.com> | 2019-10-20 19:33:53 -0700 |
---|---|---|
committer | blendoit <blendoit@gmail.com> | 2019-10-20 19:33:53 -0700 |
commit | 5e82dedea4c56eafc1bba4f3ec8677b15f51c03f (patch) | |
tree | d754b30ae1f7a892cd22ce092b5c1a8f5ebca847 /evaluator/drag.py | |
parent | 87f2d5da23a0bb7159d64827390b5083b80f1375 (diff) |
Commence declassification of Evaluator
Pointless to have a separate object for the Evaluator when a collection
of evaluator.py methods does the trick.
Diffstat (limited to 'evaluator/drag.py')
-rw-r--r-- | evaluator/drag.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/evaluator/drag.py b/evaluator/drag.py new file mode 100644 index 0000000..df79e6a --- /dev/null +++ b/evaluator/drag.py @@ -0,0 +1,16 @@ +def get_drag(aircraft, drag): + # Transform semi-span integer into list + semi_span = [x for x in range(0, aircraft.wing.semi_span)] + + # Drag increases after 80% of the semi_span + cutoff = round(0.8 * aircraft.wing.span) + + # Drag increases by 25% after 80% of the semi_span + F_x = [drag for x in semi_span[0:cutoff]] + F_x.extend([1.25 * drag for x in semi_span[cutoff:]]) + return F_x + + +def get_drag_total(self, aircraft): + """Get total drag force acting on the aircraft.""" + return 500 |