buffalo_wings.airfoil.write_sampled_airfoil_at_arc_length

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

Write a file from explicit arc-length surface samples.

Parameters:
  • airfoil (Airfoil) – Airfoil to sample.

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

  • lower (buffalo_core.typing.FloatInput) – Lower-surface arc lengths ordered from leading edge to trailing edge.

  • upper (buffalo_core.typing.FloatInput) – Upper-surface arc lengths ordered from leading edge to trailing edge.

  • 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