buffalo_wings.airfoil.airfoil_surface_samples_to_dict
- buffalo_wings.airfoil.airfoil_surface_samples_to_dict(samples, *, include_parameters=True, include_derivatives=True, include_diagnostics=True)[source]
Convert a full two-surface sampling payload to plain Python data.
- 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.
- Returns:
Export-friendly mapping containing both sampled surfaces, point metadata, chord length, and optional serialized diagnostics.
- Return type:
dict[str,object]