diff options
Diffstat (limited to 'main.py')
-rw-r--r-- | main.py | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -21,10 +21,12 @@ import random import time start_time = time.time() -CHORD_LENGTH = 10 +# Airfoil dimensions +NACA_NUM = 4412 +CHORD_LENGTH = 100 SEMI_SPAN = 200 -# m=Mass +# Component masses AIRFOIL_MASS = 100 # lbs SPAR_MASS = 10 # lbs STRINGER_MASS = 5 # lbs @@ -54,9 +56,9 @@ def main(): # Create airfoil instance af = creator.Airfoil() # Define NACA airfoil coordinates and mass - af.add_naca(2412) + af.add_naca(NACA_NUM) af.add_mass(AIRFOIL_MASS) - af.print_info(2) + # af.print_info(2) # Create spar instance af.spar = creator.Spar() @@ -64,7 +66,7 @@ def main(): af.spar.add_coord(af.coord, 0.15) af.spar.add_coord(af.coord, 0.55) af.spar.add_mass(SPAR_MASS) - af.spar.print_info(2) + # af.spar.print_info(2) # Create stringer instance af.stringer = creator.Stringer() @@ -72,10 +74,10 @@ def main(): af.stringer.add_coord(af.coord, af.spar.coord, 4, 7, 5, 6) af.stringer.add_area(STRINGER_AREA) af.stringer.add_mass(STRINGER_MASS) - af.stringer.print_info(2) + # af.stringer.print_info(2) # 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, _) |