summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorMarius Peter <blendoit@gmail.com>2019-06-20 21:05:57 -0700
committerMarius Peter <blendoit@gmail.com>2019-06-20 21:05:57 -0700
commit7fdc7e586e1c2125eef533af77dcb5ee8930b702 (patch)
treec63a5e447042bbc87603b6c3582b6b9776357e00 /main.py
parent86a92de95e6894a2b6e23889214e943fdf211cdf (diff)
consistent 'get' inputs and outputs in evaluator
Diffstat (limited to 'main.py')
-rw-r--r--main.py14
1 files changed, 11 insertions, 3 deletions
diff --git a/main.py b/main.py
index 61e5363..a23c3f0 100644
--- a/main.py
+++ b/main.py
@@ -78,13 +78,21 @@ def main():
# print(evaluator.get_total_mass(af, af.spar, af.stringer))
drag = evaluator.get_drag(af, 10)
+
+ lift_rectangular = evaluator.get_lift_rectangular(af, 10)
+ lift_elliptical = evaluator.get_lift_elliptical(af, 15)
+ lift = evaluator.get_lift(lift_rectangular, lift_elliptical)
+
total_mass = evaluator.get_total_mass(af, af.spar, af.stringer)
dist_mass = evaluator.get_mass_distribution(af, total_mass)
- print(total_mass)
- print(dist_mass)
+ print('rect', len(lift_rectangular))
+ print('ellipse', len(lift_elliptical))
+ print('lift', len(lift))
+ print(len(drag))
+ print(len(dist_mass))
# Plot components with matplotlib
- creator.plot(af, af.spar, af.stringer)
+ # creator.plot(af, af.spar, af.stringer)
# Save component info
# af.save_info(SAVE_PATH, _)
Copyright 2019--2024 Marius PETER