summaryrefslogtreecommitdiff
path: root/creator.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 /creator.py
parentf7a377e7659ce006acfd94fca2dcf6fcf5362bf4 (diff)
split 'add_web' into creator for coords and evaluator for math
Diffstat (limited to 'creator.py')
-rw-r--r--creator.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/creator.py b/creator.py
index 40a25bc..df714a8 100644
--- a/creator.py
+++ b/creator.py
@@ -232,6 +232,11 @@ class Spar(Coordinates):
def __init__(self):
super().__init__(parent.chord, parent.semi_span)
+ self.x_start = []
+ self.x_end = []
+ self.thickness = float()
+ self.z_start = []
+ self.z_end = []
def add_coord(self, airfoil, x_loc_percent):
'''
@@ -269,6 +274,17 @@ class Spar(Coordinates):
self.mass = len(self.x) * mass
return None
+ def add_webs(self, skin_thickness):
+ '''Add webs to spars.'''
+
+ for _ in range(len(self.x)):
+ self.x_start.append(self.x[_][0])
+ self.x_end.append(self.x[_][1])
+ self.thickness = skin_thickness
+ self.z_start.append(self.z[_][0])
+ self.z_end.append(self.z[_][1])
+ return None
+
class Stringer(Coordinates):
'''Contains the coordinates of all stringers.'''
@@ -347,6 +363,9 @@ class Stringer(Coordinates):
self.mass = len(self.x) * mass + len(self.x) * mass
return None
+ def add_webs(self, thickness):
+ pass
+
def info_print(self, round):
super().info_print(round)
print('Stringer Area:\n', np.around(self.area, round))
Copyright 2019--2024 Marius PETER