summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorMarius Peter <blendoit@gmail.com>2019-06-24 20:20:15 -0700
committerMarius Peter <blendoit@gmail.com>2019-06-24 20:20:15 -0700
commit0658183612f39bae5cf0083befa226de5a2653d9 (patch)
tree0b499914d77424c6120c13a0bd14cad11a5ef877 /main.py
parentf7a377e7659ce006acfd94fca2dcf6fcf5362bf4 (diff)
split 'add_web' into creator for coords and evaluator for math
Diffstat (limited to 'main.py')
-rw-r--r--main.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/main.py b/main.py
index 0a5dc7f..b015f6f 100644
--- a/main.py
+++ b/main.py
@@ -27,9 +27,9 @@ NACA_NUM = 2412
CHORD_LENGTH = 68 # inches
SEMI_SPAN = 150 # inches
-# Airfoil thickness
-T_UPPER = 0.1
-T_LOWER = 0.1
+# Thicknesses
+SPAR_THICKNESS = 0.4
+SKIN_THICKNESS = 0.1
# Component masses
AIRFOIL_MASS = 10 # lbs
@@ -78,9 +78,10 @@ def main():
# Define the spar coordinates and mass, stored in single spar object
af.spar.add_coord(af, 0.20)
af.spar.add_coord(af, 0.65)
- # Automatically adds spar caps for all spars previously defined
+ # Automatically adds spar caps for every previously defined
af.spar.add_spar_caps(SPAR_CAP_AREA)
af.spar.add_mass(SPAR_MASS)
+ af.spar.add_webs(SPAR_THICKNESS)
# af.spar.info_print(2)
af.spar.info_save(SAVE_PATH, _)
@@ -94,6 +95,7 @@ def main():
BOTTOM_STRINGERS)
af.stringer.add_area(STRINGER_AREA)
af.stringer.add_mass(STRINGER_MASS)
+ af.stringer.add_webs(SKIN_THICKNESS)
# af.stringer.info_print(2)
af.stringer.info_save(SAVE_PATH, _)
Copyright 2019--2024 Marius PETER