diff options
author | Marius Peter <blendoit@gmail.com> | 2019-06-23 01:45:58 -0700 |
---|---|---|
committer | Marius Peter <blendoit@gmail.com> | 2019-06-23 01:45:58 -0700 |
commit | 5de63cf149ba044444531e7a5eb5a40ec67dcaed (patch) | |
tree | 8daf50725899693f6ef675e04d11e5464008a46d /main.py | |
parent | 2c8e6e632eb03cd6545de51d72aaebe0df9bf7ee (diff) |
creator.py updated
Diffstat (limited to 'main.py')
-rw-r--r-- | main.py | 56 |
1 files changed, 28 insertions, 28 deletions
@@ -24,7 +24,7 @@ start_time = time.time() # Airfoil dimensions NACA_NUM = 2412 -CHORD_LENGTH = 12 +CHORD_LENGTH = 100 SEMI_SPAN = 20 # Airfoil thickness @@ -41,10 +41,10 @@ SPAR_CAP_AREA = 0.3 # sqin STRINGER_AREA = 0.1 # sqin # Amount of stringers -TOP_STRINGERS = 2 -BOTTOM_STRINGERS = 18 -NOSE_TOP_STRINGERS = 5 -NOSE_BOTTOM_STRINGERS = 5 +TOP_STRINGERS = 4 +BOTTOM_STRINGERS = 7 +NOSE_TOP_STRINGERS = 3 +NOSE_BOTTOM_STRINGERS = 6 # population information & save path POP_SIZE = 1 @@ -73,29 +73,29 @@ def main(): # af.info_print(2) af.info_save(SAVE_PATH, _) - # # Create spar instance - # af.spar = creator.Spar() - # # Define the spar coordinates and mass, stored in single spar object - # af.spar.add_coord(af, 0.15) - # af.spar.add_coord(af, 0.55) - # # Automatically adds spar caps for all spars previously defined - # af.spar.add_spar_caps(SPAR_CAP_AREA) - # af.spar.add_mass(SPAR_MASS) - # # af.spar.info_print(2) - # # af.spar.info_save(SAVE_PATH, _) - # - # # Create stringer instance - # af.stringer = creator.Stringer() - # # Compute the stringer coordinates from their quantity in each zone - # af.stringer.add_coord(af, - # NOSE_TOP_STRINGERS, - # TOP_STRINGERS, - # NOSE_BOTTOM_STRINGERS, - # BOTTOM_STRINGERS) - # af.stringer.add_area(STRINGER_AREA) - # af.stringer.add_mass(STRINGER_MASS) - # # af.stringer.info_print(2) - # # af.stringer.info_save(SAVE_PATH, _) + # Create spar instance + af.spar = creator.Spar() + # Define the spar coordinates and mass, stored in single spar object + af.spar.add_coord(af, 0.20) + af.spar.add_coord(af, 0.65) + # Automatically adds spar caps for all spars previously defined + af.spar.add_spar_caps(SPAR_CAP_AREA) + af.spar.add_mass(SPAR_MASS) + # af.spar.info_print(2) + af.spar.info_save(SAVE_PATH, _) + + # Create stringer instance + af.stringer = creator.Stringer() + # Compute the stringer coordinates from their quantity in each zone + af.stringer.add_coord(af, + NOSE_TOP_STRINGERS, + TOP_STRINGERS, + NOSE_BOTTOM_STRINGERS, + BOTTOM_STRINGERS) + af.stringer.add_area(STRINGER_AREA) + af.stringer.add_mass(STRINGER_MASS) + # af.stringer.info_print(2) + af.stringer.info_save(SAVE_PATH, _) # Plot components with matplotlib creator.plot_geom(af) |