diff options
author | Marius Peter <blendoit@gmail.com> | 2019-06-21 18:06:35 -0700 |
---|---|---|
committer | Marius Peter <blendoit@gmail.com> | 2019-06-21 18:06:35 -0700 |
commit | ed394647e3c5101255a1bcbb023e78ed768d30e0 (patch) | |
tree | 761513f1b45a8552caeacf84d1eab5cbe0c8c8e6 /main.py | |
parent | 3bba98c9869e07fede355d83fd2498996e8a54fc (diff) |
turn plot() function into Airfoil class method
Diffstat (limited to 'main.py')
-rw-r--r-- | main.py | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -23,8 +23,8 @@ start_time = time.time() # Airfoil dimensions NACA_NUM = 2412 -CHORD_LENGTH = 40 -SEMI_SPAN = 200 +CHORD_LENGTH = 20 +SEMI_SPAN = 20 # Component masses AIRFOIL_MASS = 10 # lbs @@ -77,15 +77,15 @@ def main(): # af.stringer.print_info(2) # Plot components with matplotlib - # creator.plot(af, af.spar, af.stringer) + af.plot() # Save component info - af.save_info(SAVE_PATH, _) - af.spar.save_info(SAVE_PATH, _) - af.stringer.save_info(SAVE_PATH, _) + # af.save_info(SAVE_PATH, _) + # af.spar.save_info(SAVE_PATH, _) + # af.stringer.save_info(SAVE_PATH, _) # evaluator.Evaluator instance contains airfoil analysis results. - eval = evaluator.Evaluator(af) + eval = evaluator.Airfoil(af) # The analysis is performed in the evaluator.py module. eval.analysis() eval.print_info(2) |