diff options
author | Marius Peter <blendoit@gmail.com> | 2019-06-20 21:05:57 -0700 |
---|---|---|
committer | Marius Peter <blendoit@gmail.com> | 2019-06-20 21:05:57 -0700 |
commit | 7fdc7e586e1c2125eef533af77dcb5ee8930b702 (patch) | |
tree | c63a5e447042bbc87603b6c3582b6b9776357e00 /main.py | |
parent | 86a92de95e6894a2b6e23889214e943fdf211cdf (diff) |
consistent 'get' inputs and outputs in evaluator
Diffstat (limited to 'main.py')
-rw-r--r-- | main.py | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -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, _) |