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, defaultTrue) – Whether to include sampledxi, surface-local arc length, and native curve parameter vectors when writing JSON.include_derivatives (
bool, defaultTrue) – Whether to include slope, finite-slope flags, and curvature when writing JSON.include_diagnostics (
bool, defaultTrue) – Whether to include serialized structured diagnostics when writing JSON.indent (
int, default2) – Indentation level passed tojson.dumpswhen writing JSON.sort_keys (
bool, defaultTrue) – Whether to sort JSON mapping keys deterministically when writing JSON.
- Returns:
Resolved output path after writing the file.
- Return type:
pathlib.Path