From 93cc49e414766f2980e06cbe2b9b8be10ec4472d Mon Sep 17 00:00:00 2001 From: blendoit Date: Tue, 1 Oct 2019 23:29:24 -0700 Subject: Proper package structure --- example_airfoil.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'example_airfoil.py') diff --git a/example_airfoil.py b/example_airfoil.py index 08282a3..a5e1cce 100644 --- a/example_airfoil.py +++ b/example_airfoil.py @@ -10,8 +10,8 @@ Generate a population of airfoils & optimize. """ from resources import materials as mt -from creator import wing, fuselage, propulsion -# from evaluator import +from creator import * +from evaluator import evaluator # from generator import import time @@ -41,6 +41,8 @@ NOSE_BOTTOM_STRINGERS = 5 SAVE_PATH = '/home/blendux/Projects/Aircraft_Studio/save' +# Create aircraft instance +aircraft = base.Aircraft # Create airfoil instance af = wing.Airfoil(20, 150, mt.aluminium) af.add_naca(NACA_NUM) @@ -69,7 +71,7 @@ af.spar2 = wing.Spar(af, 0.57, mt.aluminium) # wing.plot_geom(af, [af.spar1, af.spar2], None) # Evaluator object contains airfoil analysis results. -# eval = evaluator.Evaluator(af) +eval = evaluator.Evaluator(aircraft) # The analysis is performed in the evaluator.py module. # eval.analysis(1, 1) # eval.info_print(2) -- cgit v1.2.3