Skip to content

pyflightstream.post.farfield_products (provisional)

Generated from the docstrings at build time: every one of the 5 names in the __all__ of pyflightstream.post.farfield_products has an entry below. The names a guide or an example uses come first; the others follow under Advanced.

The far-field product family: Trefftz-plane and balance tables of one simulation (FR-456).

Pipeline role: the body of the post step that writes farfield/<group>_trefftz.csv, farfield/<group>_ledgers.csv (_instant and _average on an unsteady row) and spanwise files sections/<point>_trefftz_<family>.csv for A or sections/<point>_trefftz_TOTAL_<entry>.csv for B from the exports a run recorded, through the numpy core of :mod:pyflightstream.farfield. It reads the exports with the results readers, turns every vector to the far-field axes (FR-1005), and states every point an analysis cannot serve as a named skip in products.json and a WARNING in post.log (FR-1007). Which analysis applies to which row is the one function the plan uses (:func:pyflightstream.cases.farfield_inputs.applies). A simulation whose pproc artifact has no [[farfields]] entries writes nothing and logs nothing, so its products keep their bytes (FR-1060).

Size exemption: this family writer keeps per-point diagnostic provenance beside the instant/window dispatch that determines it; numerical reductions stay in farfield_fields.

Advanced

pyflightstream.post.farfield_products.FARFIELD_DIR module-attribute

FARFIELD_DIR = 'farfield'

pyflightstream.post.farfield_products.SPANWISE_COLUMNS module-attribute

SPANWISE_COLUMNS: tuple[str, ...] = (
    "POL",
    *CONTEXT_COLUMNS,
    "VARIANT",
    "FAMILY",
    "Y_M",
    "Z_M",
    "DY_M",
    "GAMMA_M2_S",
    "W_M_S",
    "ALPHA_I_DEG",
    "DI_N_M",
    "CDI_LOCAL",
    "STATUS",
)

pyflightstream.post.farfield_products.TREFFTZ_COLUMNS module-attribute

TREFFTZ_COLUMNS: tuple[str, ...] = (
    "FAMILY",
    "VARIANT",
    "CL_T",
    "CDI_T",
    "CDI_T_ISOLATED",
    "CY_T",
    "E_T",
    "AR",
    "N_TRACE",
    "X_T_M",
    "GAMMA_SCALE",
    "COVERAGE",
    "CDI_T_QERR",
    "CDI_T_VORT",
    "BERNOULLI_RESIDUAL",
    "CDI_NEAR_PRESSURE",
    "CDI_NEAR_VORTICITY",
    "P_AXIAL_W",
    "P_SWIRL_W",
    "P_CROSSFLOW_W",
    "P_TOTAL_W",
    "ETA_FF",
    "STATUS",
)

pyflightstream.post.farfield_products.farfield_axes

farfield_axes(
    alpha_deg: float, beta_deg: float
) -> np.ndarray

Return the matrix taking export-frame components to the far-field axes.

The far-field axes are the wind axes of :mod:pyflightstream.post.axes turned half a turn about their y axis: x along the free stream downstream, y to the right, z up, so at zero incidence and sideslip they are the export frame's own (x aft, y right, z up).

Parameters:

Name Type Description Default
alpha_deg float

Incidence angle in degrees.

required
beta_deg float

Sideslip angle in degrees.

required

Returns:

Type Description
ndarray

Orthonormal free-stream axes for transforming reference-frame samples.

pyflightstream.post.farfield_products.farfield_products

farfield_products(ctx: SimContext) -> None

Write far-field tables of one simulation (FR-456), or nothing without [[farfields]].

Parameters:

Name Type Description Default
ctx SimContext

Product context carrying the resolved case, exports and output destinations.

required