diff options
Diffstat (limited to 'creator/wing.py')
-rw-r--r-- | creator/wing.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/creator/wing.py b/creator/wing.py index 59f5bbe..cc7d29a 100644 --- a/creator/wing.py +++ b/creator/wing.py @@ -24,7 +24,7 @@ import resources.materials as mt class Airfoil(base.Component): """This class represents a single NACA airfoil. - The coordinates are saved as two lists + The coordinates are saved as two np.arrays for the x- and z-coordinates. The coordinates start at the leading edge, travel over the airfoil's upper edge, then loop back to the leading edge via the lower edge. @@ -141,9 +141,9 @@ class Spar(base.Component): super().__init__(parent, name) super().set_material(material) self.cap_area = float() - loc = loc_percent * parent.chord # bi.bisect_left: returns index of first value in parent.x > loc # This ensures that spar geom intersects with airfoil geom. + loc = loc_percent * parent.chord # Spar upper coordinates spar_u = bi.bisect_left(parent.x, loc) - 1 self.x = np.append(self.x, parent.x[spar_u]) |