summaryrefslogtreecommitdiff
path: root/evaluator.py
diff options
context:
space:
mode:
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