buffalo_wings.airfoil.AirfoilBoundarySamples

class buffalo_wings.airfoil.AirfoilBoundarySamples(coordinates, xi, curve_u, surface, lower_indices, upper_indices, leading_edge_index, trailing_edge_is_closed, arc_length=None, tangent=None, normal=None, curvature=None, coordinate_ordering='lower_to_upper', normalization='unit_chord_local_frame')[source]

Bases: object

Sampled airfoil boundary in one ordered point distribution.

The boundary preserves the trailing-edge geometry implied by the source airfoil. For lower_to_upper order, samples start at the lower trailing edge, proceed to the leading edge, and then proceed to the upper trailing edge.

coordinates

Boundary coordinates with shape (N, 2).

Type:

buffalo_core.typing.FloatArray

xi

Surface-local coordinates associated with each boundary point.

Type:

buffalo_core.typing.FloatArray

curve_u

Native airfoil parameters associated with each boundary point.

Type:

buffalo_core.typing.FloatArray

surface

Surface identifier for each boundary point, with 0 for lower and 1 for upper.

Type:

buffalo_core.typing.IntArray

lower_indices

Boundary indices associated with lower-surface samples.

Type:

buffalo_core.typing.IntArray

upper_indices

Boundary indices associated with upper-surface samples.

Type:

buffalo_core.typing.IntArray

leading_edge_index

Boundary index of the unique leading-edge sample.

Type:

int

trailing_edge_is_closed

Whether the first and last boundary points coincide within the runtime root tolerance.

Type:

bool

arc_length

Optional cumulative boundary arc length measured from the first point.

Type:

FloatArray | None

tangent

Optional unit tangent vectors with shape (N, 2) in boundary order.

Type:

FloatArray | None

normal

Optional left-hand unit normals with shape (N, 2) in boundary order.

Type:

FloatArray | None

curvature

Optional signed curvature values in boundary orientation.

Type:

FloatArray | None

Attributes

coordinates

xi

curve_u

surface

lower_indices

upper_indices

leading_edge_index

trailing_edge_is_closed

arc_length

tangent

normal

curvature

coordinate_ordering

normalization