From 7fdc7e586e1c2125eef533af77dcb5ee8930b702 Mon Sep 17 00:00:00 2001 From: Marius Peter Date: Thu, 20 Jun 2019 21:05:57 -0700 Subject: consistent 'get' inputs and outputs in evaluator --- main.py | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'main.py') 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, _) -- cgit v1.2.3