summaryrefslogtreecommitdiff
path: root/creator.py
diff options
context:
space:
mode:
authorMarius Peter <blendoit@gmail.com>2019-06-29 14:34:48 -0700
committerMarius Peter <blendoit@gmail.com>2019-06-29 14:34:48 -0700
commit7887854ad2ba3fa81defe8641171d25405bdd370 (patch)
treec19b86e3a483b3d6ec4e9c3b3d88575e9f6ed612 /creator.py
parent8a48e962ab9f89233aabd682e88a608f83a61e43 (diff)
try block for info printing
Diffstat (limited to 'creator.py')
-rw-r--r--creator.py11
1 files changed, 1 insertions, 10 deletions
diff --git a/creator.py b/creator.py
index 4368400..f7e5964 100644
--- a/creator.py
+++ b/creator.py
@@ -50,6 +50,7 @@ class Coordinates:
So, all component classes inherit from class Coordinates.
"""
+ # Defaults
chord = 100
semi_span = 200
@@ -130,8 +131,6 @@ class Airfoil(Coordinates):
def __init__(self):
# Run 'Coordinates' super class init method with same chord & 1/2 span.
super().__init__()
- self.chord = Coordinates.chord
- self.semi_span = Coordinates.semi_span
# NACA number
self.naca_num = int()
# Mean camber line
@@ -244,10 +243,6 @@ class Spar(Coordinates):
self.thickness = float()
self.z_start = []
self.z_end = []
- self.dx = float()
- self.dz = float()
- self.dP_x = float()
- self.dP_z = float()
def add_coord(self, airfoil, x_loc_percent):
"""
@@ -307,10 +302,6 @@ class Stringer(Coordinates):
self.z_start = []
self.z_end = []
self.area = float()
- # self.dx = float()
- # self.dz = float()
- # self.dP_x = float()
- # self.dP_z = float()
def add_coord(self, airfoil,
stringer_u_1, stringer_u_2,
Copyright 2019--2024 Marius PETER