The post-processing artifact and its products¶
What the post-processing artifact of a row holds, the products it derives, and archiving a completed simulation. The definition of every reduction is in the post-processing definitions.
What the post-processing artifact holds¶
Far-field analyses use [[farfields]], one entry per analysis, with variant
and an optional unique name. families belongs only to sections; wake,
plane and power read the whole field. Geometry keys are checked against the
selected variant. See the far-field keys and examples.
Post appends every far-field target to polar and super tables as
<QUANTITY>_FF_<METHOD>_<TARGET>, for example CDI_FF_B_TOTAL and CDI_FF_B_W.
When the row declares more than one entry of a method, every column of that
method appends its entry name at every point, as in CDI_FF_C_TOTAL_c05, even
where a companion is absent; one declared entry has no suffix. These are output names; the input keys and long
far-field table columns keep their existing forms.
variant = "rotor_sections" requires rotor = "<alias>" and accepts
chord_fraction = 0.25 (zero through one). It writes the experimental
farfield/<group>_rotor_sections_<rotor>.csv and companion _strips.csv,
with blade and rotor *_FF_RS_* polar columns and inviscid near comparisons.
It uses measured blade cuts or surface re-cuts and the rotor wake. Its force
magnitude comes from the surface; it is not independent thrust. Rows with a
wing or body mark the local decomposition LOCAL_VALIDATED = false.
Each entry accepts export_type = "default", "last_step", "avg_window" or
"export_window".
Unstated is "default", which equals "last_step" on unsteady rows, regardless
of EXPORT_UNSTEADY_*. Choose "avg_window" for an average: it exports A's
sectional loads and C/D's conventional probe points only over the final window.
With that policy, optional exclusive last_revs or last_steps overrides the
row's averaging window. last_revs needs the rotor clock. Entries are
warned and skipped on rows that cannot sample the window, including steady
rows and last_revs on a row without a rotor clock. A window with another
export policy is a grammar error. Without an explicit window, steady products
are identical for all three policies. Every entry's manifest states export_type.
Choose "export_window" for the far field at every step of the row's own export
window: on an unsteady row that states EXPORT_UNSTEADY_LAST_ITER (steps) or
EXPORT_UNSTEADY_LAST_REV (turns of the rotor clock), the far field is exported at
each step of that window, one _iteration=<step> file per step, and post writes the
per-step products (one _instant row per step) beside the window average. It reuses
the "avg_window" machinery with the row's window. EXPORT_UNSTEADY_AFTER_ITER and
EXPORT_UNSTEADY_AFTER_REV are not read. A row that states no EXPORT_UNSTEADY_LAST_*
key, a steady row, and LAST_REV on a row without a rotor clock warn and skip the entry;
last_revs or last_steps with "export_window" is a grammar error.
Far-field planes and lattices always use their own conventional probe export,
<point>_farfield_survey.txt, plus
<point>_farfield_survey_iteration=<step>.txt files for "avg_window" and "export_window".
Declared [[probes]] retain their kind and their existing products.
PPROC names inputs/pproc/p<id>.toml, the post-processing artifact
It carries about twenty optional tables and keys; a file holding [groups]
alone is valid. [volume_section] has its own paragraph below.
[names] renames the plotted columns of the reduction tables under reductions/
to the names a downstream tool reads, the whole dictionary or none of it, and is defined on
the definition of record; the columns of the family and
group files are fixed by the output catalogue and are not renamed; the other three,
[phase_locked], [equations] and [glossary], are described under the three tables that reduce and derive.
Omitted export kinds follow the run type's defaults; they are not all enabled. See Native surface flow exports for the VTK, CSV and force-distribution opt-in rule, The solver's own plots for the residual, load and section Cp plots a steady point saves, and The probes table for the unsteady plots source, whose defaults omit the probe-points export.
singularity_strength = true # the Tecplot surface carries the nodal strength (off by default)
[groups] # group NAME -> ONE alias, written as a string; TOTAL, AIRFRAME and each rotor are written without one
WING = "wing" # an alias of the row's reference, under its [aliases]
BLADES = "Blade" # a family is every member of it: Blade1, Blade2,...
[exports] # override the defaults for this run type
tecplot = false # disable Tecplot; loads and simulation cannot be off
vtk = true # opt in to VTK surface export
csv = true # opt in to CSV surface export
force_distributions = true # opt in to the per-panel force distribution, at run end
plot_loads = false # a steady point saves the solver's plots; switch one off
[sections] # NEW_SURFACE_SECTION_DISTRIBUTION per entry and plane
count = 50
plot_direction = 1
include_symmetry = false
split = "point" # the sections and Cp files: per point, "family" or "both" (docs/pproc/sections.md)
[[sections.distributions]]
families = ["W"]
frame = "MRP"
planes = ["XZ"]
[[sections.distributions]]
families = "LIFT" # the rotor; LOCAL_AXIS makes it one per blade
frame = "LOCAL_AXIS" # the FRAME says how the entry expands
planes = ["XY"]
[plots] # UNSTEADY_SOLVER_NEW_FORCE_PLOT per group and parameter
parameters = ["CL", "CDI", "CDO", "CD", "FX", "FY", "FZ", "MX", "MY", "MZ"]
[[plots.groups]]
name = "MRP_TOTAL" # the plot is named {parameter}_{group}: CL_MRP_TOTAL
frame = "MRP"
families = "all"
[[plots.groups]]
name = "MRP_{family}" # one group per family the geometry carries
frame = "MRP"
families = "each"
[[plots.groups]]
name = "{family}_SMRP" # one group per rotor, in ITS OWN frame: FZ_LIFT_SMRP
frame = "SMRP"
families = "LIFT"
[[probes]] # UNSTEADY_SOLVER_NEW_FLUID_PLOT per vertex and parameter
kind = "instantaneous" # use "default" for last-step probe points
frame = "LIFT_SMRP" # a rotor frame: one probe set per rotor it reaches
parameters = ["MACH", "VELOCITY", "VX", "VY", "VZ", "STATIC_PRESSURE_RATIO"]
points = 25
scale = "rotor_radius" # or "m"; the radius is THAT rotor's, not the configuration's
[[probes.lines]]
start = [-2.0, -1.0, 0.0]
end = [-2.0, 1.0, 0.0]
[products] # the post-processed CSV tables the campaign writes
polars = true # the FAM and group files of every polar, under polars/
sections = true # one table per point from its sectional loads export
plots = true # one table per unsteady point from its plots export
custom_polar_format = false # beside each group ACOEF file, the text file the reference tooling opens
trimmed_polar = false # beside each group ACOEF file, its row at zero pitching moment
rotor_cn_slope = false # beside each rotor table, the CN slope against ALPHA per J
merged_polar = false # beside the unsteady polar, its rows with the rotor tables' columns
rotate_columns = {} # column = "<alias>:<AXIS>": a ROTATE angle in degrees, merged polar only
trim_moment = "CmB" # numeric column whose zero defines trim
trim_axis = "ALPHA" # numeric column ordering the trim search
settings_codebook = true # per matrix, the numeric settings table of every point and its codebook
installed_frame = [] # "probes" and/or "inflow": copies mirrored through y = 0
[phase_locked] # OPTIONAL: the phase-locked table becomes one row per azimuth
min_revolutions = 4.0 # generated when the row turns AT LEAST this many revolutions
last_revolutions_avg = 2.0 # how many of the last revolutions enter each azimuth's mean
[equations.T_AXIAL] # a derived column of the unsteady polar: T_AXIAL_LIFT
expression = "-FZ" # FZ about LIFT in SMRP is the plotted column FZ_LIFT_SMRP
meshes_alias = "LIFT" # an ALIAS, never a family list
frame = "SMRP"
[equations.CT_FLIGHT] # an equation may name another; the order is worked out
expression = "T_AXIAL / (0.5 * RHO * VINF**2 * SREF)"
meshes_alias = "LIFT"
[glossary] # what YOUR symbols mean; listed in inputs/pproc/VARIABLES.md
T_AXIAL = "N. Axial force of the lifters in their own frame, sign flipped"
CT_FLIGHT = "-. T_AXIAL over the free-stream dynamic pressure and SREF"
Three things carry the artifact across configurations. A families entry
is a list of family names, a bare word (an alias the row's reference
declares, read first, above; else a family name), or one of TWO SELECTORS:
all (every boundary, the command's own -1 form) and each (one entry
per family the geometry carries, the name carrying {family}). A family
the geometry does not carry is left out, which is how one artifact serves
a wing-body and an isolated rotor, and an entry that resolves to nothing
is skipped; pass --ignore-missing-families false to pyfs-matrix plan
or run to have a name no boundary answers refused instead. The skip is
never silent for a section distribution or a force plot group: the plan
prints one warning per pproc artifact and per family that an entry declares
and the geometry of some row does not carry, naming the entry and every row
that lacks it, and every such row still plans READY. A numbered name counts
by itself: Blade2 is missing on a sector whose mesh carries Blade1 alone,
whether or not any row declares it; a misspelled Bladee2 beside a present
Blade1 is named the same way and is warned and skipped, never refused, because
an entry that does not apply to a row is warned and skipped. A row that
carries every family is named in no warning. The word
is read: true, yes and 1 mean yes, false, no and 0 mean no, and
anything else is refused naming the flag and the word rather than quietly
meaning yes.
The choice reaches each case as the row variable
IGNORE_MISSING_FAMILIES, which is what a refusal quotes back at you and
what pyflightstream.cases.workflows.IGNORE_MISSING_FAMILIES_VARIABLE
spells for a Python caller:
from pyflightstream.cases.workflows import IGNORE_MISSING_FAMILIES_VARIABLE
case = case.model_copy(
update={"variables": {**case.variables, IGNORE_MISSING_FAMILIES_VARIABLE: "false"}}
)
A MATRIX CELL MAY NOT WRITE IT. The reader refuses a row that states the key and points you at the flag, because whether a family the mesh lacks is a skip or a refusal is a property of the RUN and not of the row: the same row is planned across a wing and a rotor, which is the whole reason the skip exists. At the default nothing at all is written onto a case, so every recorded run keeps its identity and every emitted script its bytes.
The three tables that reduce and derive¶
[phase_locked] is optional, and it does two things. It GATES the
phase-locked reduction: the table is generated when the matrix row turns at
least min_revolutions, counted over the whole run of THAT rotor
(TIME_ITERATIONS over its steps per revolution) and never over the exported
window, and equal generates it. A run that turned less loses this one table,
named under skipped in products.json with both numbers; its polar, its
per-blade table and every other product are written as usual. And it sets the
SHAPE: with the table, reductions/<point>_phase_locked[_<ALIAS>].csv is one row
per azimuthal position, the mean of the samples at that azimuth across the
last last_revolutions_avg revolutions, as
the definition of record states
it. last_revolutions_avg may not exceed min_revolutions. Without the table
the file is the series of blade passages it has always been. The table is read
again by pyfs-matrix post, so adding, editing or removing it needs no new
run.
[equations] adds derived columns to the TOTAL group's ACOEF file of an
unsteady polar, polars/P<POL>-TOTAL-ACOEF.csv, after its coefficients and
before MESH_FACES, each named <NAME>_<alias>. An expression is arithmetic
over the columns that row holds and the window-averaged plot columns of the
point: numbers, names, + - * / **, unary
minus, parentheses and abs, sqrt, sin, cos, tan, radians, degrees, min, max.
It is parsed and walked, never executed, and a construct outside that list is
refused when the artifact is read. A symbol S of an equation about alias A
in frame F is, first match wins: another equation named S; the column
S_A_F, then S_F_A, where a frame is stated; condition and reference
scalars such as RHO, VINF and SREF. Only without a frame may it use
S_A then the exact column S. Native setup coefficient columns are never
read. Above, FZ reads FZ_LIFT_SMRP and RHO reads RHO.
The successful polars/<file>#equations manifest entry records
resolved_columns, mapping each equation's symbols to their source columns.
A symbol none of them answers refuses the WHOLE block: the polar is written
without derived columns, products.json says why under
polars/<file>#equations naming the equation, the symbol, the spellings tried
and the columns there are, and the stage warns. It is never a column of NA.
A chain that loops is refused when the artifact is read, naming its members.
[glossary] is one line per symbol of yours. It reaches the generated
guides: pyfs-workspace init, pyfs-matrix plan and pyfs-matrix post write
VARIABLES.md and WRITING-EQUATIONS.md into inputs/pproc/, the first
listing every column the products state with its unit and definition and,
beside them, the glossary of every pproc artifact in the folder, the second
saying how to write an equation. Both are generated from the code and are
rewritten only when their content would change; no other file of the folder
is touched.
The selectors are all and each.
each_blade went because the FRAME says how an entry expands now, so
frame = "LOCAL_AXIS" is what one distribution per blade is written as.
airframe and blades went because they are the two that decide what a
BLADE IS, from blade_pattern, a regular expression over the family name,
^Blade\d+$ unless the file says otherwise: a mesh whose blades are
spelled another way gets an airframe with blades in it and nothing says
so. Declare the set in the reference's [aliases] table and cite it by
name, and a study that named its own surfaces cannot be guessed wrong.
All three are REFUSED, not warned about, and the refusal names what to
write instead; an alias of the same name is read FIRST, so a reference
that already declares airframe is untouched and keeps its own meaning.
The refusal arrives when the ROW is built, at plan, because whether
airframe is an alias or the retired selector is a question about the
reference the row cites. A frame is
cited by NAME: MRP, the moment frame the reference artifact creates;
SMRP and RMRP, a rotor's hub frame and its turning frame, and
LOCAL_AXIS, one frame per blade (see the next paragraph for
what those three do to the entry); <ALIAS>_SMRP, <ALIAS>_RMRP and
<ALIAS>_RMRP<k>, the same frames named for ONE rotor, which is how an
entry says which rotor it is about on a row that turns nine; a frame the
row's REFERENCE declares in its [[frames]] table, by the name written
there (LIFTERS_MRP, PUSHER_TIP); and BLADE_AXIS on the flat rotor
row. The retired names, PROP_MRP, PROP_MRP<k> and
RotorAxis<k>, do NOT resolve: they went with the package-level rotor
frame, and an entry citing one is refused naming the shape to write.
THE FRAME DECIDES HOW THE ENTRY EXPANDS, which is why there is no
expand key and why each_blade retired. An entry in MRP or a declared
frame is ONE over the families it names. One in SMRP or RMRP is one
per ROTOR those families reach, each in that rotor's own frame. One in
LOCAL_AXIS is one per BLADE, plus one for the rotor's families_general,
which have no local axis and ride the rotor's. Six lines of a [plots]
table are twenty-seven emissions on a nine-rotor aircraft. A name that
would collide carries {family}, and the reader refuses a name without it
where the entry emits more than once.
An expanding-frame item selecting only known families absent from this row's
mesh is warned and skipped, even when it reaches no rotor of this reference.
For example, families = ["Blade2"] with frame = "LOCAL_AXIS" emits no
section on a Blade1-only sector; the pproc's Blade1 sections still emit.
A numbered name matches exactly (Blade12 is not Blade1), and a numbered or
other name that this row's mesh lacks is warned and skipped even when no mesh
or reference of the campaign declares it. A present family that
belongs to no rotor still refuses by name. An
entry whose rotors the reference does declare, but whose frames THIS RUN
did not place, is LEFT OUT with a warning, exactly as an entry whose
families the geometry lacks is: a steady row places each declared rotor's
static hub frame <ALIAS>_SMRP and none of its turning or blade frames, and
a lifters-only row places none of the pusher's, and one artifact serves all
three rows.
A row whose reference declares a rotor places that rotor's <ALIAS>_SMRP at
its hub, on the rotor's hub axes, even when the row turns no blades: a steady
power-off row and an unsteady row of the unsteady run type do. An entry in
PUSHER_SMRP therefore lands on the power-off and the power-on rows alike.
<ALIAS>_RMRP<k> exists only on a row that turns that rotor, and
<ALIAS>_RMRP also exists on an unsteady row for every rotor block.
Its explicit RPM turns the frame alone with the block's hand; absent RPM
keeps it fixed at the SMRP pose with one campaign warning naming the rows.
Entries in these frames are placed in both cases. An entry that names one of a
declared rotor's frames by its full name (a section distribution, a plot
group, a probe table, a surface probe, the sampled volume section, a
streamline seed) on a row that does not place it is LEFT OUT of that row too,
and the plan says so once per campaign, naming the rows. A frame name no
declared rotor owns, such as a misspelling, is REFUSED.
A row that turns a rotor with ROTATE turns its <ALIAS>_SMRP and
<ALIAS>_RMRP with it, whether the geometry carries the blades or only the
spinner. The package follows the turn: the frame's origin turns about the
origin of the frame the AXIS names, and its axes turn, right-handed about
that axis by the row's angle; a turn by 0 leaves the frame where it was placed.
A probe table or the sampled volume section that a row places in reference
coordinates (every steady row, and an unsteady row's kind = "default"
entries, sampled once after the march) is PLACED at the turned frame's
position, so the probes turn with the rotor and the disc stays in the
propeller plane of the tilted rotor. The manual does not state the sense of the
turn; the right-hand rule is the one the quasi-steady wheel already assumes,
and one recorded solver export is to confirm it. On an unsteady row,
kind = "instantaneous" hands the solver the frame itself. An entry in a frame
whose position the package does not know (one an opened project carries) is
LEFT OUT of that row, and the plan says so once per campaign, naming the rows.
A rotor's frames are named from its alias
A motion record that names a rotor block of the reference
instantiates <ALIAS>_SMRP at the hub, <ALIAS>_RMRP turning with
the motion, and <ALIAS>_RMRP<k> per blade of that block's
families_blades, turning with blade k. Nine rotors
instantiate nine sets rather than colliding on one radical, so a
post-processing entry can say WHICH rotor it is about:
frame = "PUSHER_RMRP".
A row that ROTATES that alias also gets <ALIAS>_SMRP_ORIGINAL, a
copy of the hub frame as it stood before the first rotation, which
nothing turns. It is created once per alias, so a row that
turns one alias twice keeps the state before the FIRST rotation.
AND YOU DO NOT HAVE TO CITE IT. An entry naming a hub frame that
this row rotated is written in BOTH: once in <ALIAS>_SMRP, where the
rotation left it, and once in <ALIAS>_SMRP_ORIGINAL, where it
started. The plot names differ by the same suffix, so the two tables
sit beside each other. An
entry says which ROTOR it is about, and the row's rotation decides how
many readings of it there are, exactly as the frame decides how many
emissions an entry stands for. A rotor this row did not turn has no
original frame and nothing doubles. <ALIAS>_RMRP and
<ALIAS>_RMRP<k> never double: they turn WITH the motion at every step
of an unsteady run, so there is no single frame they turned from.
PROP_MRP<k> and RotorAxis<k> are refused for an entry using the retired frame names, and no record emits them: a rotor that names no alias
gets ROTOR<k>_SMRP and ROTOR<k>_RMRP by its position. The
custom frames come from the REFERENCE now, not the preset, and a
family of families_general gets no frame of its own: its local frame
IS the rotor's, which is what makes the spinner ride the hub.
An entry that resolves to nothing is skipped, unless this run asked for the
refusal (see --ignore-missing-families above); an entry WRITTEN as nothing
is refused, at pyfs-matrix plan, naming the file, the key as the file
spells it, and what the empty list feeds,
except where the selection has an explicit meaning. A pproc group uses one
alias string:
[groups]
EVERYTHING = "all"
When no boundary or reference alias is named all, this selects EVERY FAMILY
of the geometry: the group sums every surface row (the TOTAL group the post
writes for every polar already does), and a motion using this
selection moves every boundary. Check for that collision before migrating;
see the migration check.
A group value resolves first as a boundary name, then a reference alias from
[aliases], then a family label without its trailing number. Thus "airframe"
selects the reference alias's members, while "Blade" can select Blade1
through Blade6. Members absent from the geometry are left out.
Retired syntax: TOTAL = [] selected every family in the retired list syntax, and nonempty member lists and integer positions were also accepted.
Current editable inputs refuse all group lists; use one alias string and name
boundary members in the reference instead. families = [] in a
[[plots.groups]] or a [[sections.distributions]] entry is refused,
naming UNSTEADY_SOLVER_NEW_FORCE_PLOT or
NEW_SURFACE_SECTION_DISTRIBUTION: the entry exists to emit over the
families it names, and over none it would emit nothing while reading as
though it had. The table
the readers consult is pyflightstream.workspace.inputs.ENTITY_SELECTIONS,
one row per key with the verdict and its reason.
A pproc does not declare base regions. base_regions is refused by name:
a base region is declared by [base_regions.<family>] in the
boundaries file beside the geometry, by the row's BASE_REGIONS column for a
per-row choice, or by the setup's base_region_operations on an opened
simulation (one home per condition).
A GROUP IS NAMED, and the product file carries the name. An artifact
[groups]
PUSHER = "Blade1"
"wing" = "Wing"
is accepted, and its polar tables are
polars/P0001-M150AL+000BE+000J+sweep_PUSHER.csv and ..._wing.csv. A group
keyed by a NUMBER (an older artifact keys its groups "1", "2" and so on)
still binds, and its files keep the numbered suffix: "1" writes ..._g01.csv.
That suffix survives only for a pproc that still numbers its groups, so the
products of a workspace with numbered groups and the ones written beside them
stay one convention. Migration guidance has the
command that renames products already written.
A GROUP IS ONE ALIAS, written as a string. The key names the group files and the value names what is summed:
[groups]
WING = "wing" # an alias of the reference's [aliases] table
BLADES = "Blade" # a family is every member of it: Blade1, Blade2,...
so a group per alias is one line, and its files are P<POL>-WING-<KIND>.csv
(group files). TOTAL, AIRFRAME and every
rotor of the reference are written without a key; a key spelled TOTAL or
AIRFRAME, or equal to a rotor's alias, is refused by name. The alias resolves
through the reference AS IT STANDS when pyfs-matrix post runs, so renaming or
extending an alias needs no re-run. A group whose alias selects no surface of
any loads export of the simulation writes no table: it is named under
skipped in products.json with the surfaces the export does carry, instead of writing a table of zeros.
Every list form is refused with the line to write instead:
PUSHER = ["Blade1"] becomes PUSHER = "Blade1". Several members become
one alias declared in the reference, which the group names. For an empty list,
follow the collision check linked above before choosing "all"; if the name is
taken, declare a unique alias holding the intended members. Replace integer
positions with boundary names in the reference's alias.
THE ONE NAME REFUSED at pyfs-matrix plan is a name shaped like the
numbered suffix itself, g01 and its kin: a file named after it could not be
told from the form it supersedes, and the rename of existing products needs
that difference. The refusal names the row, the artifact and the key. See the named-group migration for older numbered products. An artifact whose groups are not
for polar tables says so with products.polars = false and is not checked.
The [exports] table decides the row's export set: a workflow row
declares no OUTPUTS of its own any more, every export is named for the
point with the study's suffixes (.fsm, .txt, .dat, _cp.txt,
_sloads.txt, _probes.txt, _plots.txt, _log.txt), and a workflow row
that still carries OUTPUTS is refused naming this table. A
steady point also saves the solver's residual and load plots
(_plot_residuals.txt, _plot_loads.txt) and, where the artifact declares
sections, its section Cp plot (_plot_cp_sections.txt); each is switched off
with false (plot_residuals, plot_loads, plot_sections_cp). Unsteady
rows save residual/load plots once after the march, and also support
the final section Cp plot when section distributions exist. A missing declared
plot fails the point FAILED_INCOMPLETE_OUTPUT like any declared export. force_distributions = true opts a row of any run
type into _force_distributions.txt, the per-panel force distribution of every
surface, saved once at the end of the run. The loads table
and the saved simulation cannot be switched off: loads = false and simulation = false are refused naming the file. A setup artifact
that names one of these tables is refused pointing here: a setup carries
solver settings only. The run record names the pproc id each
point was run for. The volume section's file (_vsec.vtk or _vsec.dat) is
not an [exports] kind: [volume_section] declares it, and [exports]
naming volume_section_vtk or volume_section_tecplot is refused.
[exports] key |
Default | Output |
|---|---|---|
debug_fsm |
false |
<point>_debug.fsm, the solver state before output setup |
With debug_fsm = true, steady rows save immediately after the solve and
before probe creation, section updates or exports. A quasi-steady wheel
saves <point>_c<k>_debug.fsm at each clocking. Unsteady rows with a per-step
export window save once as the first command of the window-start action,
before defining or importing any output. This includes EXPORT_UNSTEADY_LAST_REV,
EXPORT_UNSTEADY_LAST_ITER, EXPORT_UNSTEADY_AFTER_REV, EXPORT_UNSTEADY_AFTER_ITER
and far-field or sections avg_window windows. A continued run saves in the
march that reaches that window. Without a window, it saves just after the
march, before post-march output setup. Leaving the flag off changes no script.
The top-level key singularity_strength decides whether the
Tecplot surface carries the nodal Singularity_strength. The VTK the surface
is written from does not hold it, so carrying it costs a second, native Tecplot
export per point and per exported step (<point>_native_tecplot.dat). It is off
by default: the point exports the VTK alone, its .dat carries every VTK
variable and states Singularity_strength as not carried, and the point is
complete without the native file it was never asked to write.
singularity_strength = true exports the native file and carries the strength,
for every surface. The value is a TOML boolean; "true" or 1 is
refused. pyfs-matrix plan says on each row that declares a Tecplot surface
whether its strength is carried. See
surface translation.
A volume section¶
The pproc declares one flow-field plane. The workspace samples it through probes or unsteady fluid plots, then post writes VTK or Tecplot velocity point fields. It does not create native volume sections. For example:
[volume_section]
shape = "rectangle" # or "circle"
frame = "REFERENCE" # frame containing the plane
plane = "YZ" # XY, XZ or YZ of that frame
offset_m = 0.5 # remaining positive frame axis, in meters
corners_m = [-1.0, -1.0, 1.0, 1.0] # u0, v0, u1, v1 in the selected plane
points = [25, 25] # samples along each rectangular axis
refinement_layers = 1 # each extra layer bisects grid intervals
format = "vtk" # or "tecplot"
kind = "default" # or "instantaneous"
kind matters on unsteady and rotor rows, as it does for [[probes]]. "instantaneous"
(the value when unstated) samples the plane by fluid plots at every time step and post writes
one field per step. "default" samples the plane once, by probe points at the last time step,
and post writes one field. A steady row samples once whatever the kind.
A circle states radii_m = [r1, r2] with 0 <= r1 < r2 and
points = [radial, azimuthal] instead of corners_m. Rectangle counts
must be at least two; a circle needs at least two radial and three azimuthal
samples. A zero-radius center occurs once. Shape-specific keys are refused on
the other shape. All authored lengths are meters in the declared frame; its
placement and any motion must be known before a derived REFERENCE field can
be written. Use a frame created by the reference or workflow, not a GUI name
whose placement the run did not record.
Steady rows retain the native probe sample; unsteady and rotor rows retain the actual fluid-plot STEPs and write each as a separate field. The result is a vertex cloud, not a volume mesh or a reconstruction of unsampled flow. Native export conventions are build- and unit-specific; see sampled fields for the evidence and named refusals. Changing the plane after a run does not invent samples at the new positions.
Product filenames, units, source and provenance are defined once in the volume-section definition. That page also retains the native export contract for historical records. A saved FSM's existing native sections do not index the new probe grid. Direct native/custom section commands remain available under their command evidence, but callers must establish any indices inherited from the FSM themselves.
What the products are¶
The optional debug FSM sits beside the point's normal FSM and is listed in
the run record's outputs. products.json lists it under debug_artifacts
with its run id and path. It is an inspection artifact: post-processing does
not read it, and continuation opens the normal saved simulation.
The meaning of a [[probes]] entry's parameters list depends on the run type;
see Probe parameters for the
definition and the steady-plan warning.
The probe kind of an unsteady row¶
kind accepts "default" and "instantaneous". An absent key is "default".
On steady and qsteady_rotor rows both values produce the same probe points.
On unsteady and unsteady_rotor rows:
"default"creates probe points after the march, in one counted CSV import shared with final-only far-field sets. They are updated and exported once to<point>_probes.txt;STEPin the product is the last recorded solver step. They were measured on 26.124 and 26.125; on another build they are emitted the same way and the plan warns, naming that build."instantaneous"creates fluid plots in INIT and samples every solver step. Use it to retain the per-step history of an older artifact that omittedkind.
Entries may mix both kinds. The last-step table keeps <point>_probes.csv;
the mixed row's history table is <point>_probes_history.csv. A single-kind
row keeps <point>_probes.csv. A [volume_section] uses fluid plots on an
unsteady row and may coexist with default entries.
Other values are refused, naming both kinds.
[[probes]]
kind = "default"
frame = "REFERENCE"
parameters = ["VX"]
points = 3
lines = [{start = [3, 0, 0], end = [4, 0, 0]}]
[[probes]]
kind = "instantaneous"
frame = "REFERENCE"
parameters = ["VX"]
points = 3
lines = [{start = [5, 0, 0], end = [6, 0, 0]}]
This mixed declaration is exercised by the offline P0451 script and synthetic
post tests. Per-step export thresholds do not move default declarations into
the march. Only sets required by an avg_window far-field entry are imported
at window start, and a reused set is imported once. A continuation rebuilds
the declared placements from the full row; if that row can no longer be built,
run it again from its mesh with pyfs-matrix run --force-rerun <point>.
The [products] table names three kinds of CSV table, every one a header
line and one row per record, so a spreadsheet or a dataframe opens it with
nothing else; every table the post writes opens with POL, the
polar each row comes from. A POLAR table per group of [groups], under polars/ and
named by the same convention as the point's script with the swept
variable's field written <code>+sweep
one
row per point of the polar with the
reference block (SREF, CREF, BREF, the moment point), the advance
ratio of the row in J (NA where the run recorded none) and twenty-four
coefficients, ALPHA, BETA, MACH, RE (Reynolds in millions), the body
axes (CDB, CYB, CLB, CRB25, CMB25, CNB25), the stability axes
(CDS to CNS25), the wind axes (CDW to CNW25), and CD0 and CDI,
coefficient columns retain at least six significant figures where five decimals
would lose precision, using scientific notation when needed. Settings retain
their stated form and drift percentages keep five decimals. A SECTIONS table per point,
sections/<point>_sections.csv: the solver STEP it was sampled at, WHICH
distribution each row belongs to (FAMILY, PLANE, ROTOR) and where blade
one of that rotor was (AZIMUTH), then the point's condition and the seven columns
of its sectional loads export, in the export's units; a run that defined no
distribution leaves an export declaring zero sections and gets no table. The
FLOW-FIELD SAMPLES of a point under probes/, whatever the run type was
time_history/<point>_plots.csv, the unsteady plots export re-tabled
with its coefficient columns brought from the solver's reference
velocity to the free stream, and probes/<point>_probes.csv, the probe
table of a row of any kind. That table opens with POL and then the same six
columns whichever run type filled it, PROBE, X, Y, Z, FRAME, STEP, and
then carries its own export's fluid quantities in their own names and
units: a steady row brings Mach, Cp, the velocity components and the
boundary-layer columns; an unsteady row brings the parameters its probe
entry asked for, one row per point and solver step. STEP carries NA on a
steady row, which has one step, and the run's last time step on an unsteady row
whose probes are normal.
The X, Y, Z and FRAME columns are why this table exists. An
unsteady plots export numbers its probe columns, one per parameter the
row's own probe entry declares, MACH7, VELOCITY7,
STATIC_PRESSURE_RATIO7 on a row asking for three, and it never says
where point 7 is, so its samples could not be placed at all. A steady
export does state its coordinates, and the frame it names is the
ANALYSIS frame rather than the one the probe entry laid its points out
in, so it could not be placed either without knowing the artifact.
The package records the vertex, the coordinates and the entry's frame
while it emits each point, writes them to
sims/<sim>/profiles/<sim>_probe_points.csv, and joins them here. That
file is the package's own record: its first line, # pyflightstream probe
positions, sits above the header, and the package replaces only a file that
starts with it, so a points file of your own that happened to carry the same
name is named in a refusal rather than replaced. A file that starts with the
header alone is the layout written before that line existed: it is replaced
once, with a warning. When a run record names no such file, its FRAME cells read NA and its steady
coordinates still come from the export; the table is written either way.
STEP carries NA on a steady row, which has one step.
THERE IS ONE TOKEN AND NO BLANK. Every spine cell the
package cannot fill reads NA: the step of a steady row, and the position
or frame of a run that recorded none. See the missing-value migration for historical files using - or blank cells. A probe export this release cannot
read is a recorded skip naming the file and costs the simulation none of
its other products.
And the REDUCTIONS of the plots table, one file per applicable reduction beside it, over the window the row states; the reductions of an unsteady point walks them. The steady polar arithmetic is defined in the axes and signs.
The run writes these after collection, under post/<matrix stem>/, the
folder named after the matrix file (post/matriz/ for matriz.fs), and
products.json beside them names every file with the run ids it derives
from and the pproc artifact; a campaign resumed with new points rewrites
them, since they derive from the manifest. A simulation whose product is
refused by design, one whose export was normalised by another reference
area than the products would state for one, is listed under
skipped in that file with the reason, and the others are written
the key is always there, empty when nothing was refused. A
windowed unsteady point also gets its per-step series under series/,
described with the export threshold. To rebuild them by hand, with no solver and no executable
configured:
pyfs-matrix post matriz.fs --workspace . # its RUN = 1 simulations not posted yet
pyfs-matrix post --workspace . # every matrix the manifest names
pyfs-matrix post --workspace . --strict # exit 3 if any product was skipped
pyfs-matrix post --workspace . --archive # every RUN = 1 simulation, a copy kept
A rebuild overwrites products in place by default. With no option a post rebuilds only the simulations whose rows state RUN = 1 and that are not posted yet; --archive and --force-overwrite rebuild every RUN = 1 simulation, and --sims exactly the named ones (posting some simulations). --archive keeps a copy of replaced products. A product the post cannot rebuild is kept and warned, unless --archive moves it into the archive or a --force-overwrite, confirmed (--yes in a script), removes it.
A skip is a success by default, since everything producible was produced;
--strict is for a wrapper that must tell a partial rebuild from a whole
one, and it changes the exit code alone, after every product is written.
The polar files in fixed-width text¶
[products] polar_format = "legacy_polar" on the pproc artifact writes the FAM
and group files of polars/ as fixed-width text, every field right-aligned in at
least sixteen characters and no commas, for a tool that splits on position. csv
is the default. THE COLUMNS AND THE VALUES ARE THE SAME in both: it is a second
rendering of one table, never a second product.
The settings table and its codebook¶
[products] settings_codebook is true by default: the post writes, per matrix,
settings/<matrix>_settings.csv (one row per point, opening with POL and RUN_ID, the rest
numeric) and settings/<matrix>_settings.codebook.json beside it,
from the solver-setup snapshot of every recorded point. State
settings_codebook = false to write neither; other products keep their bytes.
A point whose record holds no snapshot has no row and one INFO line in post.log
(not a skip); with no snapshot at all neither file is written. The encoding is the
settings codebook page.
Installed-frame copies of the inflow tables¶
[products] installed_frame is a list of families, from "probes" and "inflow", empty by
default (any other name is refused when the pproc is read, naming these two). For "probes" the
post writes probes/<point>_probes_installed.csv beside each probes table; for "inflow" it
writes fields/<stem>.inflow_installed.dat beside each reusable inflow profile. Each copy is the
table mirrored through y = 0, for a rotor installed on the other side of the plane from the one
simulated: the Y position and the VY velocity change sign, so does the x and z of a vorticity,
and every other column is copied as written. The columns, and the classes that decide
them, are in the installed-frame copy of a product
table. A column the
classification cannot place is copied unchanged and named once per simulation in post.log. The
copy holds where the installed configuration is the mirror image of the simulated one, and asserts
nothing about a flow that is not (a wake, a body or a rotor that is not mirror-symmetric). Each
copy is listed in products.json with kind installed_frame and its source table in source.
Custom polar format¶
The existing tooling opens a fixed-width text polar file, not a
CSV, and [products] custom_polar_format = true on the pproc artifact
writes that file beside every group ACOEF file the stage writes, under its
stem with the suffix .dat (P0001-TOTAL-ACOEF.dat beside
P0001-TOTAL-ACOEF.csv), the same rows a second time, its body and stability
and wind columns under the format's own names (ClB as CRB25, CmB as
CMB25, CnB as CNB25; the values are the same). Off by default. The format carries the group
as a NUMBER on its fourth line, at least two digits: the group's GROUP_ID
(the group files: 0 TOTAL, 1 AIRFRAME, 10 + id a
rotor, 100 + k the k-th [groups] key), and the file's name carries the group's
name. The shape, read off a recorded file and pinned by the committed
fixture tests/tier1_offline/fixtures/custom_polar_format_sample.dat (every
value in it synthetic), is nine header lines and then one line per point:
FlightStream - STEADY_polar_AL_sweep_MACH_REmi_pins_from_the_setup
100110
Tue Sep 08 23:41:07 2026
007 01
MNOM SREF CREF BREF XMOM YMOM ZMOM
0.1 8.0 1.0 8.0 0.25 0.0 0.0
013
024
ALPHA BETA MACH RE CDB CYB CLB ...
-2.00000 0.00000 0.10000 2.30000 0.00398 0.00000 -0.16424 ...
The title carries the row's description; line 2 is the polar and a
two-digit Mach code (1001 at Mach 0.10 is 100110);
line 3 the write time; 007 01 the number of reference columns and the
group; then the reference names and values, the row and column counts,
one polar table per group, per simulation, and the selected column names of the polar table in its order, and every
number in a width-10 field with up to five decimals and a leading blank. The docstring of
pyflightstream.post.write_custom_polar_format is the specification, line
by line, and read_custom_polar_format reads the file back (the retired prefix and key are refused); the tier-1 test
feeds the fixture's rows through the writer and requires the fixture's
bytes, and writes, reads and writes again what the stage produced,
requiring equal bytes.
Trimmed polar¶
[products] trimmed_polar = true writes, beside every group ACOEF file
(group files), the group's row at zero
pitching moment: <file stem>_trim.csv (P0001-TOTAL-ACOEF_trim.csv beside
P0001-TOTAL-ACOEF.csv), with the file's own columns and one row. The rows are
ordered by ALPHA; the two neighbouring points whose CmB changes sign bracket
the trim, and every numeric column is interpolated linearly between them so that
CmB reads exactly zero (a point whose CmB is zero is the trim itself). A text column
keeps its value where both points agree. Nothing is extrapolated: a polar whose
sampled moments do not change sign, or change sign more than once, or that has
fewer than two points, gets no trimmed polar, and the post names it under
skipped in products.json with the moment range it read. Off by default.
pyflightstream.post.write_trimmed_polar writes the same file from any polar
table.
products.trim_moment and products.trim_axis select the numeric columns for
the trim; the description above uses their defaults, "CmB" and "ALPHA".
An unavailable column warns and skips that trim while leaving its polar written.
Rotor normal-force slope¶
[products] rotor_cn_slope = true writes no slope table: the post warns and
names the skip under polars/<sim>#rotor_cn_slope in products.json, because the rotor
table the slope was read from is retired. PFS-2241 returns it, read from the rotor group
RCOEF files. Off by default. The definition of the slope it will carry is in the rotor coefficients.
Merged polar¶
[products] merged_polar = true writes, beside the unsteady polar,
polars/P<sim>_<name>_merge.csv: one row per row of the polar, with the columns of the
simulation's rotor tables after its own. [products.rotate_columns] adds an angle of the
row's ROTATE as a column of the name you choose, written "<alias>:<AXIS>":
[products]
merged_polar = true
[products.rotate_columns]
TILT_STARBOARD = "STARBOARD:NACELLE-Y"
It reads the tables the post wrote and runs nothing, so it needs no new run. A plain
pyfs-matrix post leaves a simulation already posted as it is, and its line says so: name it with --sims <sim>, or
rebuild every RUN = 1 simulation with --force-overwrite --yes. Turned off, a merged polar
already written is kept and warned until --archive moves it or --force-overwrite removes
it. Off by default. The definition is in
the unsteady polar.
Interpolated and re-parameterized polars¶
Sample a finished sweep at new coordinates, including lift in place of angle:
[products]
trimmed_polar = true
trim_moment = "CmB"
trim_axis = "ALPHA"
[[polar_at]]
axis = "ALPHA"
values = [-1, 9]
[[polar_at]]
axis = "CLB"
values = [0.1]
name = "lift"
Each entry writes <polar stem>_at_<name>.csv; name defaults to the axis
lower-cased. Its first columns are POL and the selected axis. Every numeric
column is linearly interpolated between adjacent source rows, and text survives
only where both rows agree. Outside values and multiple brackets on a
non-monotonic axis produce NA rows and one warning per requested value. The
requested axis value and common polar identity remain available on an NA row.
Nothing is extrapolated. Sanitized filename collisions warn and skip the
second entry. The manifest records kind interpolated, axis and values.
See the definition
for exact hits, missing cells and non-monotonic axes. The finished-sweep example
is exercised by test_p0500_polar_at_is_reachable_and_names_its_provenance.
Numerical uncertainty from a refinement study¶
A [refinement] table declares a refinement study: three simulations that
solve the same polar on three discretizations, finest first, three mesh levels
in space or three time steps in time.
[refinement]
levels = ["7001", "7002", "7003"] # simulations, finest first
spacings = [1.0, 2.0, 4.0] # each level's size, finest first; omitted: MESH_FACES^(-1/2)
safety_factor = 1.25 # Fs of the grid convergence index
spacings is each level's representative size, a cell size or the time step,
positive and increasing; without it the size is read from each level's polar,
MESH_FACES faces giving h = MESH_FACES^(-1/2), which only a mesh study has.
For every group the three levels' polars share, the post writes
polars/GCI-P<finest>_g<group>.csv beside the polars: per point and per
coefficient the three values F1, F2, F3, the three sizes H1, H2, H3, the
observed order of convergence ORDER, the Richardson extrapolation
EXTRAPOLATED, the fine-level grid convergence index GCI_FINE (relative to
F1) and U_NUM, the same band in the coefficient's own units: the numerical
uncertainty of the finest result. A coefficient whose changes between levels
alternate in sign, stall or grow with refinement estimates no order; its cells
read NA and NOTE says why. A study whose levels were not all posted, or whose
polars do not hold the same points, is named under skipped.
pyflightstream.post.polar.grid_convergence computes one estimate from three
values and three sizes.
A run's provenance, in an interchange format¶
Beside the tables, the stage writes one provenance document per recorded
run, every status, as W3C PROV in its PROV-JSON serialization
post/<matrix stem>/provenance/<run id>.prov.json, the
run id's separators replaced by underscores (camp/sim_3207/a-02.0 is
provenance/camp_sim_3207_a-02.0.prov.json), and products.json names
each under provenance keyed by run id. The run record already carried
every fact; the document is the shape another tool reads without reading
this page. Its entities are every staged input, the script and every
collected output, each with its sha256 under pyfs:sha256, and for an
output pyfs:sha256_from says where the digest came from: record is the
digest the run recorded, used when the file is gone or its bytes differ;
file is computed from the file on disk, which either equals the recorded
digest or stands alone because an older record states none. Its one
activity is the solver run, with prov:startTime and prov:endTime as the executor read its clock,
the wall time, the status and the executor's argv; its agents are the
package at its version and commit and the solver build at its executable
identity. The activity used the inputs and the script, every output
wasGeneratedBy it, and it wasAssociatedWith both agents:
"activity": {
"pyfs:run/camp/sim_3207/a-02.0": {
"prov:type": "pyfs:SolverRun",
"prov:startTime": "2026-09-08T21:41:07+00:00",
"prov:endTime": "2026-09-08T21:41:19+00:00",
"pyfs:status": "CONVERGED", "pyfs:wall_time_s": 12.5,
"pyfs:executor": "LocalExecutor",
"pyfs:argv": ["C:/builds/26120/FlightStream.exe", "-hidden", "-script", "run.fs"]
}
}
The document is written with the standard library alone and read back in the suite by a reader of a few lines that checks every relation names a node the document declares; a PROV tool reads it as any PROV-JSON.
Archiving a completed simulation¶
See Archive and restore for the workspace record definitions and recovery routes.
To redo ONE point whose row was wrong, do not archive the simulation.
pyfs-matrix run --force-rerun <point> archives that point's
record and its collected outputs and runs it again, keeping everything else
where it is; the section below is for retiring a whole simulation. Archiving
the simulation to redo one point takes the row's other points with it.
Every point of a row keeps its outputs in its OWN folder beneath the simulation folder, and a point runs in that folder too (a steady row of several points is one job and runs in the simulation folder). A run refuses to collect onto a name already in that point's folder, or to start a point whose declared output is already sitting in the folder it runs in before the solver has written it, rather than attribute somebody else's file to the new point. Those refusals say to archive the simulation, and this is the command they mean:
pyfs-workspace archive 8001 --workspace . # sims/sim_8001/ becomes archive/sim_8001.zip
It zips the simulation's staged inputs, scripts and raw outputs into
one file under archive/, then removes the folder, so the row can be
re-run into a clean one while its evidence stays and the manifest keeps
its records. The products already under post/ are untouched, and a
later pyfs-matrix post reads the exports from the simulation folder,
which is now in the zip: rebuild the products first, archive after.
Three things are refused, each by name and with
nothing written or deleted: a simulation the manifest does not record
(refusing to archive sim_8001: the manifest has no record of this
simulation), a campaign root without runs.json, and an archive name
already taken, since writing it would replace an earlier archive and
then delete the folder it came from. The Python surface is
CampaignWorkspace.archive_sim, and this command does the same thing
and nothing more; the suite runs the pyfs-workspace archive line above on a recorded
simulation and on an unrecorded one