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, 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