diff options
author | Marius Peter <blendoit@gmail.com> | 2019-06-22 15:20:20 -0700 |
---|---|---|
committer | Marius Peter <blendoit@gmail.com> | 2019-06-22 15:20:20 -0700 |
commit | 7868c0af262dce1cafa407f82a476ca70680d87e (patch) | |
tree | 817ada457d5b903d863424c07ea481757d38c2e2 /main.py | |
parent | 79512b397e0dae0a7b1fe2ddf8744129f9546b97 (diff) |
more concise spar & stringer add_coord() arguments
Diffstat (limited to 'main.py')
-rw-r--r-- | main.py | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -34,12 +34,13 @@ STRINGER_MASS = 5 # lbs # Area STRINGER_AREA = 0.1 # sqin +# Amount of stringers TOP_STRINGERS = 8 BOTTOM_STRINGERS = 6 NOSE_TOP_STRINGERS = 4 NOSE_BOTTOM_STRINGERS = 7 -# population information +# population information & save path POP_SIZE = 1 SAVE_PATH = 'C:/Users/blend/github/UCLA_MAE_154B/save' @@ -69,8 +70,8 @@ def main(): # Create spar instance af.spar = creator.Spar() # Define the spar coordinates and mass, stored in single spar object - af.spar.add_coord(af.coord, 0.15) - af.spar.add_coord(af.coord, 0.55) + af.spar.add_coord(af, 0.15) + af.spar.add_coord(af, 0.55) af.spar.add_mass(SPAR_MASS) # af.spar.info_print(2) af.spar.info_save(SAVE_PATH, _) @@ -78,7 +79,7 @@ def main(): # Create stringer instance af.stringer = creator.Stringer() # Compute the stringer coordinates from their quantity in each zone - af.stringer.add_coord(af.coord, af.spar.coord, + af.stringer.add_coord(af, NOSE_TOP_STRINGERS, TOP_STRINGERS, NOSE_BOTTOM_STRINGERS, |