summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Peter <blendoit@gmail.com>2019-06-21 21:00:41 -0700
committerMarius Peter <blendoit@gmail.com>2019-06-21 21:00:41 -0700
commit05c69b59e56fec43205543cfe04188b8fd73aab1 (patch)
tree9276db0806d758eb7bad1c0e25f47045c9357968
parent37fd84611a939bb707dc31ca7bfd9a7e6dd552ce (diff)
get inertial terms
-rw-r--r--creator.py5
-rw-r--r--evaluator.py12
-rw-r--r--main.py2
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
Copyright 2019--2024 Marius PETER