summaryrefslogtreecommitdiff
path: root/example_airfoil.py
diff options
context:
space:
mode:
authorblendoit <blendoit@gmail.com>2019-09-29 15:47:14 -0700
committerblendoit <blendoit@gmail.com>2019-09-29 15:47:14 -0700
commit6684ea0a2e6e7a8e992c18420c20d54d6c5b1aa2 (patch)
treeabe9a05464a1e9cf1e2eb43abb12aeced8f2cbff /example_airfoil.py
parent8c45fe51e40cb4ba4d9aa2043bf0ce43d1ea14ad (diff)
Diffstat (limited to 'example_airfoil.py')
-rw-r--r--example_airfoil.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/example_airfoil.py b/example_airfoil.py
index e0eb532..56b2ffa 100644
--- a/example_airfoil.py
+++ b/example_airfoil.py
@@ -10,7 +10,6 @@ Generate a population of airfoils & optimize.
from tools import creator, evaluator, generator
-
import time
start_time = time.time()
@@ -40,7 +39,6 @@ NOSE_BOTTOM_STRINGERS = 5
SAVE_PATH = '/home/blendux/github/UCLA_MAE_154B/save/'
-
# Create airfoil instance
af = creator.Airfoil.from_dimensions(CHORD_LENGTH, SEMI_SPAN)
af.add_naca(NACA_NUM)
@@ -63,11 +61,8 @@ af.spar.info_save(SAVE_PATH, 'foo_name')
# Create stringer instance
af.stringer = creator.Stringer()
# Compute the stringer coordinates from their quantity in each zone
-af.stringer.add_coord(af,
- NOSE_TOP_STRINGERS,
- TOP_STRINGERS,
- NOSE_BOTTOM_STRINGERS,
- BOTTOM_STRINGERS)
+af.stringer.add_coord(af, NOSE_TOP_STRINGERS, TOP_STRINGERS,
+ NOSE_BOTTOM_STRINGERS, BOTTOM_STRINGERS)
af.stringer.add_area(STRINGER_AREA)
af.stringer.add_mass(STRINGER_MASS)
af.stringer.add_webs(SKIN_THICKNESS)
Copyright 2019--2024 Marius PETER