buffalo_wings.airfoil.airfoil_surface_samples_to_json
- buffalo_wings.airfoil.airfoil_surface_samples_to_json(samples, *, include_parameters=True, include_derivatives=True, include_diagnostics=True, indent=2, sort_keys=True)[source]
Convert a full sampled airfoil payload to a JSON string.
- Parameters:
samples (
AirfoilSurfaceSamples) – Full downstream surface-sampling payload produced by the public sampling API.include_parameters (
bool, defaultTrue) – Whether to include sampledxi, surface-local arc length, and native curve parameter vectors inside the lower and upper surface payloads.include_derivatives (
bool, defaultTrue) – Whether to include slope, finite-slope flags, and curvature inside the lower and upper surface payloads.include_diagnostics (
bool, defaultTrue) – Whether to include serialized structured diagnostics.indent (
int, default2) – Indentation level passed tojson.dumps.sort_keys (
bool, defaultTrue) – Whether to sort JSON mapping keys deterministically.
- Returns:
JSON serialization of the exported airfoil sampling payload.
- Return type:
str