diff options
author | Marius Peter <blendoit@gmail.com> | 2019-06-20 20:25:10 -0700 |
---|---|---|
committer | Marius Peter <blendoit@gmail.com> | 2019-06-20 20:25:10 -0700 |
commit | 86a92de95e6894a2b6e23889214e943fdf211cdf (patch) | |
tree | 26fd9dfb0b2f67ee48bc909f931030f1d13a871c /main.py | |
parent | 234251fa0370491e105fcd18c4c05556579562da (diff) |
obtain F_x, F_z and F_y
Diffstat (limited to 'main.py')
-rw-r--r-- | main.py | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -76,22 +76,24 @@ def main(): af.stringer.add_mass(STRINGER_MASS) # af.stringer.print_info(2) - print(evaluator.get_total_mass(af, af.spar, af.stringer)) + # print(evaluator.get_total_mass(af, af.spar, af.stringer)) + drag = evaluator.get_drag(af, 10) + total_mass = evaluator.get_total_mass(af, af.spar, af.stringer) + dist_mass = evaluator.get_mass_distribution(af, total_mass) + print(total_mass) + print(dist_mass) # Plot components with matplotlib creator.plot(af, af.spar, af.stringer) # 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, _) # Evaluate previously created airfoil(s). # total_mass = evaluator.get_total_mass(af, af.spar, af.stringer) - # Iteratively evaluate airfoils by defining genetic generations. - # pass - # Print final execution time print("--- %s seconds ---" % (time.time() - start_time)) |