summaryrefslogtreecommitdiff
path: root/evaluator.py
diff options
context:
space:
mode:
authorBlendoit <51464356+Blendoit@users.noreply.github.com>2019-06-17 18:37:56 -0700
committerGitHub <noreply@github.com>2019-06-17 18:37:56 -0700
commite66d67542100b0b4e7d405ce0b9dea4333559cde (patch)
tree9ffee7ee2776e0269e13743b924c05e97e22aa0d /evaluator.py
parenteaccaca78eb87c8e88aa94eb3ac81e97ef6cdcbd (diff)
parent58c8a564e87f6325d66972d6c971eea8c465ba2e (diff)
Merge pull request #3 from Blendoit/evaluator
Evaluator
Diffstat (limited to 'evaluator.py')
-rw-r--r--evaluator.py20
1 files changed, 19 insertions, 1 deletions
diff --git a/evaluator.py b/evaluator.py
index 6a87b7e..69a589a 100644
--- a/evaluator.py
+++ b/evaluator.py
@@ -13,4 +13,22 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
-import creator
+# F_z =
+
+
+def get_centroid(airfoil):
+ area = airfoil.stringer.area
+ numerator = float()
+ for _ in airfoil.stringer.x_u:
+ numerator += _ * area
+ for _ in airfoil.stringer.x_l:
+ numerator += _ * area
+ denominator
+ # z_c =
+
+
+def get_total_mass(self, *component):
+ total_mass = float()
+ for _ in component:
+ total_mass += _.mass
+ return total_mass
Copyright 2019--2024 Marius PETER