buffalo_wings.airfoil.sample_airfoil_boundary
- buffalo_wings.airfoil.sample_airfoil_boundary(airfoil, *, num_points_per_surface, spacing='cosine', order='lower_to_upper', quantities=(), warning_policy='warn')[source]
Sample an airfoil as one ordered boundary point distribution.
- Parameters:
airfoil (
Airfoil) – Airfoil to sample.num_points_per_surface (
int) – Number of sample points to generate on each surface.spacing (
{"uniform", "cosine"}, default"cosine") – Spacing rule used to distribute surface-local sample parameters.order (
{"lower_to_upper"}, default"lower_to_upper") – Boundary ordering convention. The current convention starts at the lower trailing edge, proceeds to the leading edge, and then proceeds to the upper trailing edge.quantities (
tuple[AirfoilBoundaryQuantity,], default()) – Optional boundary quantities to populate. Coordinates, topology metadata, and trailing-edge closure metadata are always included.warning_policy (
{"warn", "ignore", "error", "diagnostics_only"},) – default=”warn” How to handle the standard slope-singularity advisory emitted by the underlying surface sampler.
- Returns:
Ordered boundary samples and requested optional geometry quantities.
- Return type:
- Raises:
ValueError – If the sampling request is invalid or an unknown boundary quantity is requested.
NotImplementedError – If an unsupported boundary ordering is requested.
Notes
This helper preserves the trailing-edge geometry implied by the airfoil. It reports whether the sampled trailing-edge points coincide but does not force closure or insert a closure segment. Downstream consumers decide how to handle open trailing edges.