summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorMarius Peter <blendoit@gmail.com>2019-06-21 15:49:04 -0700
committerMarius Peter <blendoit@gmail.com>2019-06-21 15:49:04 -0700
commit43d8b1a738eef259063febd9e5c591a10610a043 (patch)
tree414177eba1d401354a31ad1d9981e542a962b72c /main.py
parent7fdc7e586e1c2125eef533af77dcb5ee8930b702 (diff)
evaluator.Airfoil class & class methods
Diffstat (limited to 'main.py')
-rw-r--r--main.py21
1 files changed, 4 insertions, 17 deletions
diff --git a/main.py b/main.py
index a23c3f0..e5360ff 100644
--- a/main.py
+++ b/main.py
@@ -76,21 +76,6 @@ def main():
af.stringer.add_mass(STRINGER_MASS)
# af.stringer.print_info(2)
- # print(evaluator.get_total_mass(af, af.spar, af.stringer))
- drag = evaluator.get_drag(af, 10)
-
- lift_rectangular = evaluator.get_lift_rectangular(af, 10)
- lift_elliptical = evaluator.get_lift_elliptical(af, 15)
- lift = evaluator.get_lift(lift_rectangular, lift_elliptical)
-
- total_mass = evaluator.get_total_mass(af, af.spar, af.stringer)
- dist_mass = evaluator.get_mass_distribution(af, total_mass)
- print('rect', len(lift_rectangular))
- print('ellipse', len(lift_elliptical))
- print('lift', len(lift))
- print(len(drag))
- print(len(dist_mass))
-
# Plot components with matplotlib
# creator.plot(af, af.spar, af.stringer)
@@ -99,8 +84,10 @@ def main():
# 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)
+ # evaluator.Airfoil instance contains the results of the airfoil analysis.
+ # The analysis itself takes place in the evaluator.py module.
+ eval = evaluator.Airfoil(af)
+ eval.print_info(2)
# Print final execution time
print("--- %s seconds ---" % (time.time() - start_time))
Copyright 2019--2024 Marius PETER