buffalo_wings.airfoil.sample_airfoil

buffalo_wings.airfoil.sample_airfoil(airfoil, *, num_points_per_surface, spacing='cosine')[source]

Sample both airfoil surfaces using a standard spacing rule.

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.

Returns:

Structured downstream sampling payload for both airfoil surfaces.

Return type:

AirfoilSurfaceSamples

Raises:

ValueError – If fewer than two points per surface are requested or if spacing is not one of the supported rules.