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, default True) – Whether to include sampled xi, surface-local arc length, and native curve parameter vectors inside the lower and upper surface payloads.

  • include_derivatives (bool, default True) – Whether to include slope, finite-slope flags, and curvature inside the lower and upper surface payloads.

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

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

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

Returns:

JSON serialization of the exported airfoil sampling payload.

Return type:

str