summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorMarius Peter <blendoit@gmail.com>2019-06-23 02:09:34 -0700
committerMarius Peter <blendoit@gmail.com>2019-06-23 02:09:34 -0700
commit3074c4c8cbeac6a6e5a4d7fa4a8afe34ec39911d (patch)
treeaa4d2400edc78298ae067a63eb93e3aeb0c41c7f /main.py
parent5de63cf149ba044444531e7a5eb5a40ec67dcaed (diff)
finalised branch :)
Diffstat (limited to 'main.py')
-rw-r--r--main.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/main.py b/main.py
index 2f1ba1f..b62b24f 100644
--- a/main.py
+++ b/main.py
@@ -25,7 +25,7 @@ start_time = time.time()
# Airfoil dimensions
NACA_NUM = 2412
CHORD_LENGTH = 100
-SEMI_SPAN = 20
+SEMI_SPAN = 140
# Airfoil thickness
T_UPPER = 0.1
@@ -41,8 +41,8 @@ SPAR_CAP_AREA = 0.3 # sqin
STRINGER_AREA = 0.1 # sqin
# Amount of stringers
-TOP_STRINGERS = 4
-BOTTOM_STRINGERS = 7
+TOP_STRINGERS = 5
+BOTTOM_STRINGERS = 4
NOSE_TOP_STRINGERS = 3
NOSE_BOTTOM_STRINGERS = 6
@@ -71,7 +71,7 @@ def main():
af.add_naca(NACA_NUM)
af.add_mass(AIRFOIL_MASS)
# af.info_print(2)
- af.info_save(SAVE_PATH, _)
+ # af.info_save(SAVE_PATH, _)
# Create spar instance
af.spar = creator.Spar()
@@ -82,7 +82,7 @@ def main():
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, _)
+ # af.spar.info_save(SAVE_PATH, _)
# Create stringer instance
af.stringer = creator.Stringer()
@@ -95,17 +95,17 @@ def main():
af.stringer.add_area(STRINGER_AREA)
af.stringer.add_mass(STRINGER_MASS)
# af.stringer.info_print(2)
- af.stringer.info_save(SAVE_PATH, _)
+ # af.stringer.info_save(SAVE_PATH, _)
# Plot components with matplotlib
- creator.plot_geom(af)
+ # creator.plot_geom(af)
# Evaluator object contains airfoil analysis results.
- # eval = evaluator.Evaluator(af)
+ eval = evaluator.Evaluator(af)
# The analysis is performed in the evaluator.py module.
- # eval.analysis()
+ eval.analysis()
# eval.info_print(2)
- # eval.info_save(SAVE_PATH, _)
+ eval.info_save(SAVE_PATH, _)
# evaluator.plot_geom(eval)
# evaluator.plot_lift(eval)
Copyright 2019--2024 Marius PETER