buffalo_wings.airfoil.sample_airfoil_result

buffalo_wings.airfoil.sample_airfoil_result(airfoil, *, num_points_per_surface, spacing='cosine', warning_policy='warn')[source]

Sample both airfoil surfaces with structured diagnostic reporting.

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.

  • warning_policy ({"warn", "ignore", "error", "diagnostics_only"},) – default=”warn” How to handle the standard slope-singularity advisory.

Returns:

Typed sampling payload together with the structured diagnostics emitted while producing it.

Return type:

OperationResult[AirfoilSurfaceSamples]

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

  • RuntimeError – If warning_policy is "error" and the standard sampling advisory is promoted to an exception.