diff options
Diffstat (limited to 'creator.py')
-rw-r--r-- | creator.py | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -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)) |