diff options
author | Marius Peter <blendoit@gmail.com> | 2019-06-17 18:07:25 -0700 |
---|---|---|
committer | Marius Peter <blendoit@gmail.com> | 2019-06-17 18:07:25 -0700 |
commit | 58c8a564e87f6325d66972d6c971eea8c465ba2e (patch) | |
tree | 9ffee7ee2776e0269e13743b924c05e97e22aa0d /evaluator.py | |
parent | 18fd5385ec0ff1f303b38802d22cfec357f58b62 (diff) |
commence work on centroid
Diffstat (limited to 'evaluator.py')
-rw-r--r-- | evaluator.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/evaluator.py b/evaluator.py index 4a65a4e..69a589a 100644 --- a/evaluator.py +++ b/evaluator.py @@ -17,7 +17,14 @@ def get_centroid(airfoil): - pass + 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): |