From 05c69b59e56fec43205543cfe04188b8fd73aab1 Mon Sep 17 00:00:00 2001 From: Marius Peter Date: Fri, 21 Jun 2019 21:00:41 -0700 Subject: get inertial terms --- creator.py | 5 ++--- evaluator.py | 12 ++++++++++++ main.py | 2 +- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/creator.py b/creator.py index 42f05e3..366909b 100644 --- a/creator.py +++ b/creator.py @@ -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): diff --git a/main.py b/main.py index f5f4496..e771092 100644 --- a/main.py +++ b/main.py @@ -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 -- cgit v1.2.3