Skip to content

pyflightstream.cases.pproc (provisional)

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

The post-processing models: what a point exports and what the post reduces.

Pipeline role: describes the pproc artifact. The exports vocabulary names every file a point can leave and the solver command that writes it (:data:EXPORT_KINDS, :func:default_outputs, :func:classify_outputs); :class:PprocSpec and its parts declare the sections, the volume section, the force and fluid plots, the probes, the products and the unsteady reductions a run asks for. The workflows read it to emit the exports and the post stage reads it to reduce them.

The cut of AD-16 moved these models out of the package root, which re-exports every one of them, so pyflightstream.cases.PprocSpec and pyflightstream.cases.pproc.PprocSpec are one class. This module imports :mod:pyflightstream.cases.selection for the family selectors and never the package root.

Size exemption: one artifact schema, every table of the pproc file beside the model that reads it.

Advanced

pyflightstream.cases.pproc.AXES_PLOT_COMPONENTS module-attribute

AXES_PLOT_COMPONENTS: tuple[str, ...] = (
    "FX",
    "FY",
    "FZ",
    "MX",
    "MY",
    "MZ",
)

pyflightstream.cases.pproc.AXES_PLOT_GROUP module-attribute

AXES_PLOT_GROUP = 'MRP_TOTAL'

pyflightstream.cases.pproc.DEFAULT_DRIFT_LIMIT_PCT module-attribute

DEFAULT_DRIFT_LIMIT_PCT = 1.0

pyflightstream.cases.pproc.EXPORT_KINDS module-attribute

EXPORT_KINDS: tuple[tuple[str, str, str, bool], ...] = (
    ("simulation", ".fsm", "SAVEAS", False),
    (
        "loads",
        ".txt",
        "EXPORT_SOLVER_ANALYSIS_SPREADSHEET",
        False,
    ),
    (
        "tecplot",
        ".dat",
        "EXPORT_SOLVER_ANALYSIS_TECPLOT",
        False,
    ),
    ("vtk", ".vtk", "EXPORT_SOLVER_ANALYSIS_VTK", False),
    ("csv", ".csv", "EXPORT_SOLVER_ANALYSIS_CSV", False),
    (
        "force_distributions",
        "_force_distributions.txt",
        "EXPORT_SOLVER_ANALYSIS_FORCE_DISTRIBUTIONS",
        False,
    ),
    (
        "volume_section_vtk",
        "_vsec.vtk",
        "EXPORT_VOLUME_SECTION_VTK",
        False,
    ),
    (
        "volume_section_tecplot",
        "_vsec.dat",
        "EXPORT_VOLUME_SECTION_TECPLOT",
        False,
    ),
    (
        "sections",
        "_cp.txt",
        "EXPORT_ALL_SURFACE_SECTIONS",
        False,
    ),
    (
        "sectional_loads",
        "_sloads.txt",
        "EXPORT_SURFACE_SECTIONAL_LOADS",
        False,
    ),
    ("probes", "_probes.txt", "EXPORT_PROBE_POINTS", False),
    (
        "farfield_probes",
        "_farfield_survey.txt",
        "EXPORT_PROBE_POINTS",
        False,
    ),
    (
        "plots",
        "_plots.txt",
        "UNSTEADY_SOLVER_EXPORT_PLOTS",
        True,
    ),
    (
        "plot_residuals",
        "_plot_residuals.txt",
        "SAVE_PLOT_TO_FILE",
        False,
    ),
    (
        "plot_loads",
        "_plot_loads.txt",
        "SAVE_PLOT_TO_FILE",
        False,
    ),
    (
        "plot_sections_cp",
        "_plot_cp_sections.txt",
        "SAVE_PLOT_TO_FILE",
        False,
    ),
    (
        "streamlines_surface",
        "_sls.txt",
        "EXPORT_ALL_SURFACE_STREAMLINES",
        False,
    ),
    (
        "streamlines_off_body",
        "_slo.txt",
        "EXPORT_ALL_OFF_BODY_STREAMLINES",
        False,
    ),
    (
        "trajectory_6dof",
        "_trajectory_6dof.txt",
        "EXPORT_6DOF_TRAJECTORY",
        True,
    ),
    ("debug_fsm", "_debug.fsm", "SAVEAS", False),
    ("log", "_log.txt", "EXPORT_LOG", False),
)

pyflightstream.cases.pproc.EXPORT_KIND_MEANINGS module-attribute

EXPORT_KIND_MEANINGS: dict[str, str] = {
    "simulation": "The point's final saved simulation, its solver state after the solve.",
    "debug_fsm": "The solver state before output setup, for inspection only.",
    "loads": "The loads table, the export every run is judged by.",
    "tecplot": "The surface solution in Tecplot format, written by the package from the VTK export, preserving panel values in the reference frame; the native nodal singularity strength is carried only where the pproc sets singularity_strength = true.",
    "vtk": "The surface solution in VTK format, as the solver writes it; the Tecplot is written from this same file.",
    "csv": "The surface solution as a CSV table.",
    "force_distributions": "The per-panel force distribution, saved once at the end of the run.",
    "sections": "The pressure distribution of every surface section the pproc declares.",
    "sectional_loads": "The sectional loads of every surface section the pproc declares.",
    "probes": "The flow quantities at the probe points, after a steady solve.",
    "plots": "The force and fluid plot histories of an unsteady run, one row per time step.",
    "plot_residuals": "The solver's residual history as a text series, one row per iteration.",
    "plot_loads": "The solver's load history as a text series, one row per iteration.",
    "plot_sections_cp": "The section Cp plot as a text series, one x and Cp pair per section.",
    "log": "The solver log, which turns a run into a residual verdict.",
}

pyflightstream.cases.pproc.EXPORT_KIND_SINCE module-attribute

EXPORT_KIND_SINCE: dict[str, tuple[int, int]] = {
    "force_distributions": (0, 27),
    "volume_section_vtk": (0, 27),
    "volume_section_tecplot": (0, 27),
    "plot_residuals": (0, 27),
    "plot_loads": (0, 27),
    "plot_sections_cp": (0, 27),
    "streamlines_surface": (0, 40),
    "streamlines_off_body": (0, 40),
    "trajectory_6dof": (0, 40),
}

pyflightstream.cases.pproc.FAMILY_SELECTORS module-attribute

FAMILY_SELECTORS = (
    "all",
    "airframe",
    "blades",
    "each",
    "each_blade",
)

pyflightstream.cases.pproc.FLUID_PLOT_PARAMETERS module-attribute

FLUID_PLOT_PARAMETERS = (
    "CP_FREE",
    "CP_REF",
    "MACH",
    "VELOCITY",
    "VX",
    "VY",
    "VZ",
    "STATIC_PRESSURE_RATIO",
    "BL_MOMENTUM_THICKNESS",
    "BL_DISPLACEMENT_THICKNESS",
    "BL_TOTAL_THICKNESS",
    "BL_SHAPE_FACTOR",
    "BL_SKIN_FRICTION",
    "BL_TRANSITION_MARKER",
)

pyflightstream.cases.pproc.FORCE_PLOT_PARAMETERS module-attribute

FORCE_PLOT_PARAMETERS: dict[str, tuple[str, str]] = {
    "CL": ("CL", "COEFFICIENTS"),
    "CDI": ("CDI", "COEFFICIENTS"),
    "CDO": ("CDO", "COEFFICIENTS"),
    "CDP": ("CDP", "COEFFICIENTS"),
    "CDV": ("CDV", "COEFFICIENTS"),
    "CD": ("CD", "COEFFICIENTS"),
    "FX": ("FORCE_X", "NEWTONS"),
    "FY": ("FORCE_Y", "NEWTONS"),
    "FZ": ("FORCE_Z", "NEWTONS"),
    "MX": ("MOMENT_X", "NEWTONS"),
    "MY": ("MOMENT_Y", "NEWTONS"),
    "MZ": ("MOMENT_Z", "NEWTONS"),
}

pyflightstream.cases.pproc.ForcePlotGroup

Bases: _LocatedSpec

One group of unsteady force plots: a name, a frame and the families summed.

THE FRAME DECIDES HOW MANY GROUPS THIS ENTRY IS (FR-65). One citing MRP or a frame the reference declares is ONE group over the whole cited set; one citing SMRP or RMRP is one per ROTOR, in that rotor's own frame; one citing LOCAL_AXIS is one per BLADE. The each selector stays beside them, because one group per family in a COMMON frame is a reading no frame implies.

Attributes:

Name Type Description
name str

The group's name, which names its plots <parameter>_<name>; it carries {family} exactly when the entry expands.

frame str

The frame the loads are measured in, which decides how many groups the entry is.

families str or list of str

The families summed: a selector word, an alias, a family name, or a list of those.

emits_per property

emits_per: Literal['once', 'rotor', 'blade', 'family']

What this entry is one of: once, rotor, blade or family.

The frame is asked first, because it is the statement that cannot be a second home for the same fact: a quantity measured in a blade's own axes is one per blade whatever the families say.

pyflightstream.cases.pproc.OPT_IN_EXPORT_KINDS module-attribute

OPT_IN_EXPORT_KINDS: tuple[str, ...] = (
    "vtk",
    "csv",
    "force_distributions",
    "debug_fsm",
)

pyflightstream.cases.pproc.PLOT_TYPES module-attribute

PLOT_TYPES: dict[str, str] = {
    "plot_residuals": "RESIDUALS",
    "plot_loads": "LOADS",
    "plot_sections_cp": "SECTIONS_CP",
}

pyflightstream.cases.pproc.PPROC_FRAMES module-attribute

PPROC_FRAMES = ('MRP', 'BLADE_AXIS')

pyflightstream.cases.pproc.PlotsSpec

Bases: _SuggestsKeys

The [plots] table: which parameters, over which groups of families.

Attributes:

Name Type Description
parameters list of str

The force and moment parameters plotted for every group; unstated, all of them but CDP and CDV, the 26.125 drag split, named to be plotted.

groups list of ForcePlotGroup

The groups of families, one plot per parameter each.

pyflightstream.cases.pproc.PprocSpec

Bases: _SuggestsKeys

The post-processing specification a matrix row's PPROC cell names.

PFS-2029.07.01, the groups artifact IS the home of post-processing and is renamed pproc. Twelve tables. groups is exactly what the groups file held, a number to the families it aggregates, and the polar tables are written per group of it; a member is resolved by :func:select_group_members, and a group names ONE alias as a string (a list, an empty one included, is refused); exports says which of the export kinds a point writes, with VTK and CSV opt-in and the existing kinds enabled unless set to false (the per-panel force_distributions is opt-in too, and a steady point also saves the solver's residual and load plots, and its section Cp plot where sections declares any: plot_residuals, plot_loads and plot_sections_cp); sections, plots and probes are the solver definitions the builders emit before the solver runs; products says which post-processed files are written after it. phase_locked gates and shapes the phase-locked reduction, equations adds derived columns to the unsteady polar, glossary says what the user's own symbols mean, and names renames the unsteady polar's plot columns for a downstream tool. The four ship together, because the model forbids unknown keys and an artifact written for one of them is refused by an install that lacks it. time_averaging asks for time-averaged surfaces, and volume_section declares the one flow-field plane a steady point cuts and exports (G05).

Attributes:

Name Type Description
groups dict of str to str

The groups the polar tables are written per, each naming ONE alias of the reference.

phase_locked (PhaseLockedSpec, optional)

When the phase-locked reduction is generated, and over how many revolutions; absent, it is the series of blade passages.

per_revolution (PerRevolutionSpec, optional)

The drift limit, in per cent, of the per-revolution product; absent, 1.

qsteady_correction (QsteadyCorrectionSpec, optional)

The correction route and the diagnostic of a quasi-steady wheel's post; absent, none. Every route is off by default and not validated.

equations dict of str to EquationSpec

Coefficients the post stage derives into the unsteady polar, keyed by the derived coefficient's name.

glossary dict of str to str

What each of the user's own symbols means, listed in VARIABLES.md beside the package's definitions.

names dict of str to str

Renames a plot column of the unsteady polar and of the reductions, from the name the export prints to the one a reader's tool expects.

exports dict of str to bool

Which of the export kinds a point writes.

time_averaging (SurfaceTimeAveragingSpec, optional)

Asks the solver for surface exports averaged over the last iterations or revolutions of the run.

vtk_variables list of str, optional

The variables the VTK surface export writes.

singularity_strength bool

Whether the Tecplot surface carries the nodal Singularity_strength from a native Tecplot export beside the VTK; False, the default, exports no native Tecplot and the surface declares the strength not carried.

sections SectionsSpec

The surface-section distributions the script declares before the solve.

volume_section (VolumeSectionSpec, optional)

The one flow-field plane each point of a steady row cuts after its solve and exports.

plots PlotsSpec

The unsteady force plots: which parameters, over which groups of families.

probes list of ProbesSpec

The fluid probe entries, one per frame sampled.

farfields list of FarfieldSpec

Named far-field entries, one variant and optional window each (FR-454); absent, the artifact plans and posts as before.

products ProductsSpec

Which post-processed tables the campaign writes.

blade_pattern str

How a blade family is told from the airframe: a regular expression over the family name.

Notes

A base region is declared by the boundaries file's [base_regions.<family>], by a row's BASE_REGIONS column for a per-row choice, or by the setup's base_region_operations on an opened simulation; base_regions here is refused by name (PFS-2252).

farfield property

farfield: FarfieldSpec | None

Return the entry of an analysis-specific planning or post context.

group_alias

group_alias(name: str) -> str | None

Return the ONE alias group name names, or None where it names several.

equation_order

equation_order() -> list[str]

Return the order the equations must be evaluated in.

An equation may name another equation, and the user writes them in a TOML table, which has no order anyone may rely on. So chaining is a feature only if the package can say WHICH ORDER, and an order exists only if a cycle is refused, because a cycle has none.

A symbol the table does not define is a BASE VARIABLE and not a missing dependency. That direction matters more than it looks: the generated guide's own worked example is expression = "CT * 2", and treating every unknown symbol as unresolved would refuse the first equation any user writes.

The expression is PARSED rather than searched, so CT inside CTX_WIND is not read as a reference to CT. A substring reader invents dependencies and then invents cycles out of pairs that have none.

Returns:

Type Description
list of str

Every equation name exactly once, each after every equation its expression names. Ties keep declaration order, so the answer is stable across runs and a diff of two products is about the numbers.

Raises:

Type Description
InputArtifactError

When the equations are circular, naming the members of the cycle. "Circular" alone would send the user back to a TOML table to find the loop by eye.

is_blade

is_blade(family: str) -> bool

Whether one family name is a blade by this artifact's pattern.

outputs

outputs(unsteady: bool) -> list[str]

Return the output names a row naming this artifact declares.

A volume section adds no file of its own: it adds only the sampling source the probes or plots export already writes ({name}_probes.txt, or {name}_plots.txt on an unsteady row).

samples_normal_probes

samples_normal_probes() -> bool

Whether an unsteady row has entries sampled as normal probe points.

True when the artifact declares at least one [[probes]] entry and at least one entry states kind = "default". Mixed entries keep their independent sampling routes. Steady callers do not ask this question.

Returns:

Type Description
bool

Whether any entry needs the final probe-points export.

pyflightstream.cases.pproc.ProbeLine

Bases: _SuggestsKeys

One line of fluid probes, from one vertex to another, sampled at points.

Attributes:

Name Type Description
start tuple of three floats

The first vertex, in the entry's frame and scale.

end tuple of three floats

The last vertex, in the entry's frame and scale.

pyflightstream.cases.pproc.ProbesSpec

Bases: _LocatedSpec

One [[probes]] entry: fluid plots along lines, in a frame, per parameter.

Each line is sampled at points vertices from start to end. Every vertex gets one UNSTEADY_SOLVER_NEW_FLUID_PLOT per parameter, named {parameter}{n}, with n counting vertices across lines in input order. scale specifies metres or rotor radii. propeller_radius is refused with the replacement rotor_radius.

An entry drawing or citing points must state nonempty parameters; otherwise loading refuses it. field_formats and reusable_inflow supply VX, VY and VZ automatically: the validator appends them to parameters when either is set. On steady and normal entries the parameters enable the fixed native probe export rather than filtering it.

Attributes:

Name Type Description
frame str

The frame the lines and planes are laid out in; empty, the rotor's own hub frame.

parameters list of str

The fluid parameters sampled at every point; VX, VY and VZ are appended when field_formats or reusable_inflow is set.

points int

The vertices each line is sampled at, both ends included.

scale {'m', 'rotor_radius'}

What the coordinates are in: metres, or radii of the row's rotor.

lines list of ProbeLine

Lines of probes, each from one vertex to another.

rectangles list of ProbeRectangle

Rectangular probe planes, each gridded point by point.

circles list of ProbeCircle

Circular probe planes, each gridded in polar coordinates.

lattices list of LatticeShape

Cylindrical survey lattices, each laid out by probes point by point (FR-1072).

points_file (str, optional)

The name of a points file of inputs/profiles/, cited instead of drawing lines and planes.

kind {'default', 'instantaneous'}

How an unsteady row samples the entry: instantaneous, one fluid plot per point and parameter evaluated at every time step, or default (also when absent), probe points created after the time march and exported once, at the last time step. A steady row accepts either and samples probe points.

pyflightstream.cases.pproc.ProductsSpec

Bases: _SuggestsKeys

The [products] table: which post-processed CSV tables the campaign writes.

polars: one table per group of [groups], the coefficients of the group per point; sections: one table per point from its sectional loads export; plots: one table per unsteady point from its plots export. All CSV, one header line and one row per record.

custom_polar_format: beside every polar table, the same rows in the fixed-width text format the existing tooling opens (PFS-2014.01.01), <polar>_M<mach code>_g<group>.dat. Off by default, since it is a second serialization of the polar table for one reader.

Attributes:

Name Type Description
polars bool

Writes one polar table per group of [groups], the group's coefficients per point.

sections bool

Writes one sections table per point, from its sectional loads export.

plots bool

Writes one plots table per unsteady point, from its plots export.

custom_polar_format bool

Writes, beside every polar table, the same rows in the fixed-width custom polar format.

trimmed_polar bool

Writes, beside every polar table, <polar>_trim.csv: the polar's row at zero pitching moment, interpolated inside the sampled angles (:func:pyflightstream.post.polar.write_trimmed_polar). A polar whose sampled moments do not bracket zero is named under the post's skipped products. Off by default.

rotor_cn_slope bool

Writes, beside every rotor table, P<sim>-<ALIAS>_cn_slope.csv: the secant slope of CN_<ALIAS> against ALPHA at each advance ratio of the table. Off by default.

merged_polar bool

Writes, beside the unsteady polar, P<sim>_<name>_merge.csv: its rows with the columns of the simulation's rotor tables and the angles rotate_columns declares. Off by default.

rotate_columns dict of str to str

The ROTATE angles the merged polar writes as columns, in degrees: each column's name to "<alias>:<AXIS>", as the matrix row's record states them, the axis being <frame>-<X|Y|Z>. Read only with merged_polar. Empty by default.

polar_format str

The format the FAM and group files of polars/ are written in: csv (the default) or legacy_polar, the fixed-width form. The former key superfile_format is read as this one, with a warning.

settings_codebook bool

Writes, per matrix, the all-numeric settings table of every recorded point and its codebook under settings/ (FR-419). On by default.

installed_frame list of str

The families of table copied mirrored through y = 0 beside their source, from {"probes", "inflow"} (FR-420). Empty by default.

pyflightstream.cases.pproc.ROTOR_PLOT_GROUP_PREFIX module-attribute

ROTOR_PLOT_GROUP_PREFIX = 'ROTOR_'

pyflightstream.cases.pproc.STEADY_ONLY_EXPORT_KINDS module-attribute

STEADY_ONLY_EXPORT_KINDS: frozenset[str] = frozenset(
    {"probes"}
)

pyflightstream.cases.pproc.SectionDistribution

Bases: _LocatedSpec

One surface-section distribution: families, frame and planes.

Attributes:

Name Type Description
families str or list of str

What the sections cut: a selector word, an alias, a family name, or a list of those.

frame str

The frame the planes belong to: MRP, a frame the reference declares, or a rotor's.

planes list of {'XY', 'XZ', 'YZ'}

The planes of that frame the sections lie in, one distribution each.

count (int, optional)

The number of sections of this entry; unstated, the [sections] table's.

plot_direction ({1, 2}, optional)

The plot direction of this entry; unstated, the [sections] table's.

integrate bool

Appends the midpoint-strip integrals of the sectional loads to this distribution's CSV.

pyflightstream.cases.pproc.SectionsSpec

Bases: _SuggestsKeys

The [sections] table: NEW_SURFACE_SECTION_DISTRIBUTION per entry and plane.

Attributes:

Name Type Description
count int

The number of sections of every distribution that states none.

plot_direction {1, 2}

The plot direction of every distribution that states none.

include_symmetry bool

The command's INCLUDE_SYMMETRY argument, one value for the whole artifact, because symmetry is a property of the case.

distributions list of SectionDistribution

The distributions, one command per entry and plane.

split {'point', 'family', 'both'}

The files the post writes of the sections and Cp tables: one per point (<point>_sections.csv, <point>_cp.csv), one per point and family (<point>_FAM-<FAMILY>_sections.csv, _cp.csv) or both; never one per polar.

pyflightstream.cases.pproc.SurfaceProbeSpec

Bases: _LocatedSpec

One surface property recorded at a named-frame point during an unsteady march.

pyflightstream.cases.pproc.SurfaceTimeAveragingSpec

Bases: _SuggestsKeys

The last iterations or revolutions used for solver surface averaging.

Attributes:

Name Type Description
last_revs (float, optional)

Averages the surface exports over the last revolutions of the rotor clock.

last_iters (int, optional)

Averages the surface exports over the last time iterations; a table states exactly one of the two.

pyflightstream.cases.pproc.VOLUME_SECTION_KINDS module-attribute

VOLUME_SECTION_KINDS: dict[str, str] = {
    "vtk": "volume_section_vtk",
    "tecplot": "volume_section_tecplot",
}

pyflightstream.cases.pproc.VOLUME_SECTION_PRISMS module-attribute

VOLUME_SECTION_PRISMS: tuple[str, float, int, float] = (
    "NONE",
    0.1,
    1,
    1.2,
)

pyflightstream.cases.pproc.VolumeSectionSpec

Bases: _LocatedSpec

A sampled flow plane, generated from explicit reference-frame probes.

New runs export samples and post converts them to VTK or Tecplot. Existing native section files retain their recorded meaning. Coordinates are meters in the declared frame; a frame with unknown placement is refused.

Attributes:

Name Type Description
shape {'rectangle', 'circle'}

Rectangular or annular sampling domain.

frame str

Frame containing the plane; MRP by default, or explicit REFERENCE.

plane {'XY', 'XZ', 'YZ'}

In-plane coordinate axes, in the written order.

offset_m float

Distance along the remaining positive frame axis, in meters.

corners_m tuple of four floats

Rectangle lower and upper diagonal coordinates u0, v0, u1, v1.

refinement_layers int

Rectangle subdivisions: each extra layer bisects every grid interval.

radii_m tuple of two floats

Circle inner and outer radii in meters.

points tuple of two ints

Rectangle u/v counts (default 25 by 25); circle radial/azimuth counts. Rectangle endpoints are included; a circular center is sampled once.

format {'vtk', 'tecplot'}

Post field format, with explicit point topology and SI provenance.

kind {'default', 'instantaneous'}

How an unsteady or rotor row samples the plane: instantaneous (unstated) samples it by fluid plots at every step and writes each step as a field; default samples it once by probe points at the last step and writes one field. A steady row samples once whatever the kind.

pyflightstream.cases.pproc.classify_outputs

classify_outputs(
    names: Sequence[str],
    *,
    package_version: str | None = None,
) -> dict[str, str]

Map each export kind to the declared output name that carries its suffix.

Longest suffix first, so _cp.txt is claimed by the sections kind before the loads kind can see a .txt. A kind no name matches is absent from the result; a second name matching an already claimed kind is left unclassified rather than overwriting the first.

Parameters:

Name Type Description Default
names sequence of str

The output names, declared or recorded.

required
package_version str

The package_version of the RUN RECORD the names come from. A record written by a release before a kind entered (:data:EXPORT_KIND_SINCE) is read without that kind, as its release read it: a record's P_vsec.vtk is its surface VTK export, not a volume section. None, or a version that states no release, reads by the kinds of this release, as a name being declared now is.

None

Returns:

Type Description
dict of str to str

Each export kind a name carries, mapped to that name.

Examples:

>>> from pyflightstream.cases import classify_outputs
>>> classify_outputs(["P_vsec.vtk"])
{'volume_section_vtk': 'P_vsec.vtk'}
>>> classify_outputs(["P_vsec.vtk"], package_version="0.26.0")
{'vtk': 'P_vsec.vtk'}

pyflightstream.cases.pproc.default_outputs

default_outputs(
    unsteady: bool,
    exports: Mapping[str, bool] | None = None,
    *,
    has_sections: bool = False,
    normal_probes: bool = False,
) -> list[str]

Return the output names a workflow row gets when it declares none.

Every kind hangs off {name}, the point's rendered stem, so the naming template decides the stem and this list decides the suffixes (PFS-2029.19); a steady row leaves out the unsteady plots file. An unsteady row leaves out the probe-points instant export unless normal_probes is true (FR-417). Solver residual and load plots remain available on both paths. exports is the pproc artifact's [exports] table (PFS-2029.14.02): a kind set to false is left out. Unstated kinds are kept except those of :data:OPT_IN_EXPORT_KINDS, so an empty table preserves the existing export set, and except the section Cp plot, which is on where has_sections says the pproc declares surface sections to plot. The artifact cannot set loads or simulation to false (:class:PprocSpec refuses both), so every row naming a run type declares its loads table and its final saved simulation. The two volume-section kinds are never here: :meth:PprocSpec.outputs adds the one a declared [volume_section] names.

Parameters:

Name Type Description Default
unsteady bool

Whether the row is unsteady.

required
exports mapping of str to bool

The pproc artifact's [exports] table.

None
has_sections bool

Whether the pproc declares surface sections to plot.

False
normal_probes bool

Whether an unsteady row samples its pproc's probes as normal probe points (FR-417), whose probe-points export it then keeps.

False

Returns:

Type Description
list of str

The output names, each {name} followed by its kind's suffix, in the order of :data:EXPORT_KINDS.

pyflightstream.cases.pproc.global_frame_plot_declarations

global_frame_plot_declarations(
    pproc: object,
) -> tuple[ForcePlotGroup, ...]

Read declarations of all six load components in the global MRP frame.

A {family} name counts: its emitted groups still measure global loads. This reads declarations, not emitted names; post must separately reject ambiguous names and cannot infer a template's expansion from its spelling.

Parameters:

Name Type Description Default
pproc PprocSpec or object

The pproc artifact, or anything carrying its plots.

required

Returns:

Type Description
tuple of ForcePlotGroup

The force-plot groups declared in the MRP frame when the plots name all of :data:AXES_PLOT_COMPONENTS; empty otherwise.