diff options
-rw-r--r-- | creator.py | 5 | ||||
-rw-r--r-- | evaluator.py | 12 | ||||
-rw-r--r-- | main.py | 2 |
3 files changed, 15 insertions, 4 deletions
@@ -250,13 +250,12 @@ class Airfoil(Coordinates): y = (self.spar.z_u[_], self.spar.z_l[_]) plt.plot(x, y, '.-', color='b') - # Plot stringers - # Upper stringers + # Plot upper stringers for _ in range(0, len(self.stringer.x_u)): x = self.stringer.x_u[_] y = self.stringer.z_u[_] plt.plot(x, y, '.', color='y', markersize=12) - # Lower stringers + # Plot lower stringers for _ in range(0, len(self.stringer.x_l)): x = self.stringer.x_l[_] y = self.stringer.z_l[_] diff --git a/evaluator.py b/evaluator.py index 56ce7a0..f6d0afc 100644 --- a/evaluator.py +++ b/evaluator.py @@ -142,6 +142,15 @@ class Airfoil: (len(x_stringers) * area) return(x_centroid, z_centroid) + def get_I_x(): + pass + + def get_I_z(): + pass + + def get_I_xz(): + pass + def analysis(self): '''Perform all analysis calculations and store in class instance.''' @@ -153,6 +162,9 @@ class Airfoil: self.mass_dist = self.get_mass_distribution(self.mass_total) self.centroid = self.get_centroid() + self.I_x = self.get_I_x() + self.I_z = self.get_I_z() + self.I_xz = self.get_I_xz() return None def plot(self): @@ -32,7 +32,7 @@ SPAR_MASS = 10 # lbs STRINGER_MASS = 5 # lbs # Area -STRINGER_AREA = 1 # sqin +STRINGER_AREA = 0.1 # sqin TOP_STRINGERS = 4 BOTTOM_STRINGERS = 6 NOSE_TOP_STRINGERS = 4 |