summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorMarius Peter <blendoit@gmail.com>2019-06-20 20:25:10 -0700
committerMarius Peter <blendoit@gmail.com>2019-06-20 20:25:10 -0700
commit86a92de95e6894a2b6e23889214e943fdf211cdf (patch)
tree26fd9dfb0b2f67ee48bc909f931030f1d13a871c /main.py
parent234251fa0370491e105fcd18c4c05556579562da (diff)
obtain F_x, F_z and F_y
Diffstat (limited to 'main.py')
-rw-r--r--main.py16
1 files changed, 9 insertions, 7 deletions
diff --git a/main.py b/main.py
index 0631bc9..61e5363 100644
--- a/main.py
+++ b/main.py
@@ -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))
Copyright 2019--2024 Marius PETER