buffalo_wings.airfoil.write_airfoil_surface_samples

buffalo_wings.airfoil.write_airfoil_surface_samples(samples, *, path, file_format, title='Buffalo Wings Airfoil', include_parameters=True, include_derivatives=True, include_diagnostics=True, indent=2, sort_keys=True)[source]

Write sampled airfoil surfaces to a file format.

Parameters:
  • samples (AirfoilSurfaceSamples) – Full downstream surface-sampling payload produced by the public sampling API.

  • path (str | os.PathLike[str]) – Destination file path for the exported output.

  • file_format ({"json", "selig", "lednicer"}) – File format to emit.

  • title (str, default "Buffalo Wings Airfoil") – Title line written as the first non-ignored line of text-based coordinate files.

  • include_parameters (bool, default True) – Whether to include sampled xi, surface-local arc length, and native curve parameter vectors when writing JSON.

  • include_derivatives (bool, default True) – Whether to include slope, finite-slope flags, and curvature when writing JSON.

  • include_diagnostics (bool, default True) – Whether to include serialized structured diagnostics when writing JSON.

  • indent (int, default 2) – Indentation level passed to json.dumps when writing JSON.

  • sort_keys (bool, default True) – Whether to sort JSON mapping keys deterministically when writing JSON.

Returns:

Resolved output path after writing the file.

Return type:

pathlib.Path