Skip to content

The input library and the solver presets

The library the identifiers of a row resolve against, the geometry library, what a solver preset may say, and what happens when a name you used no longer exists.

The input library those identifiers resolve against

The three code columns are looked up in the workspace's own inputs/ folder. This is the library the suite stages for the example below:

inputs/
  references/r003.toml    area_m2 = 10.0, chord_m = 1.2, span_m = 8.0
  references/r004.toml    area_m2 = 12.0, chord_m = 1.5, span_m = 9.0
  setups/s002.toml        iterations = 800, convergence = 1e-6
  setups/s003.toml        iterations = 400, wake_layers = 4
                          (wake_layers is RECORDED and emits nothing;
                           see the preset section below)
  pproc/p001.toml         [groups] wing = "wing", body = "body"
                          (reference aliases name the intended boundary members;
                           group member lists are refused)
  pproc/VARIABLES.md      GENERATED by `init`, `plan` and `post`: every column the
                          products state, with its unit and definition, and the
                          [glossary] of each pproc artifact
  pproc/WRITING-EQUATIONS.md  GENERATED beside it: how to write [equations],
                          [glossary] and [phase_locked], and how to rename a group
  INPUTS.md               GENERATED at the inputs root: every key an input artifact may
                          state (the matrix row by run type, the setup, the pproc,
                          the reference, the geometry sidecar), what it sets, its
                          unit or values, and the command it reaches
  input_template.md       GENERATED at the root of inputs/ by the same three: a
                          complete example of every input file, each one a file
                          the package reads as it stands
  executables.toml        which executable, and optionally which version,
                          each build identifier means
  executables.local.toml  this machine's paths for the same identifiers,
                          gitignored; read over executables.toml when present

REF r003 therefore means "the reference quantities in inputs/references/r003.toml", and both rows of the run matrix use the same one. The identifier is yours to choose; the matrix and the file name simply have to agree. An identifier that is not staged is refused before anything runs, and the refusal names the identifier, the kind and what is available.

The generated block of inputs/INPUTS.md is refreshed in place. Custom notes outside its markers are preserved. An existing inputs/pproc/INPUTS.md is left untouched as legacy content and linked from the canonical page. The setup standards are documented in Setup standards; generated setup guidance lives at inputs/setups/SETUP_GUIDELINES.md.

inputs/INPUTS.md is the glossary of every input key. It holds one table per table of each artifact, the matrix row by run type, the setup, the pproc, the reference and the geometry sidecar, and one row per key: what the key sets, its unit or the values it takes, the run types or builds that accept it where the code says, and the solver command it reaches. pyfs-workspace init, pyfs-matrix plan and pyfs-matrix post write it beside VARIABLES.md, rewriting it only when its content changes. It is generated from the registries the readers and the builders use and from the fields of the input models, and each meaning is read from the code beside its key, so the page cannot list a key the package does not read, and a key added without a meaning fails the suite The documentation site renders the same page as the input glossary.

inputs/input_template.md is a template of every input file. Where the glossary says what each key means, the template shows each FILE: one section per kind of input file you write, with what it is for, where it lives and a complete example to copy to the path its block's title names. The run matrix, the setup, the pproc, the reference, the named reference points, the geometry sidecar of a saved simulation and of a raw mesh, the trailing-edge points file, the provenance record, the two files of inputs/profiles/ (an actuator's radial thrust profile and a probe survey), the custom free stream, the HPC profile, and the build registry with its local overlay. The examples cite each other, so the matrix plans against the rest as written. Each section names the keys its example leaves out, with the reason, and links INPUTS.md and the page of this site that covers the file. pyfs-workspace init, pyfs-matrix plan and pyfs-matrix post write it at the root of inputs/, rewriting it only when its content changes. The suite writes every example where its title says and reads it with the reader the run uses, plans the matrix, holds every key of the glossary's tables to an example or to the list of what is left out, and refuses a misspelled copy of each.

The geometry library: flat, or one folder per geometry

inputs/geometries/ is read in two layouts, and the GEOMETRY cell is the same in both. Flat, the file sits directly in the folder with its boundary inventory beside it; one folder per geometry, the file sits in a folder named by its stem, and everything that belongs to that geometry sits with it:

inputs/geometries/
  README.md                    written by `init`: the page below, in the
                               folder a user looking for one is standing in
  30_WB.fsm                    flat: the cell reads GEOMETRY: 30_WB.fsm
  30_WB.boundaries.toml
  31_TAIL/                     one folder per geometry: the same cell,
    31_TAIL.fsm                GEOMETRY: 31_TAIL.fsm, resolves here
    31_TAIL.boundaries.toml
    31_TAIL.provenance.toml

pyfs-workspace init writes inputs/geometries/README.md with the layout and sidecar conventions. A second init preserves an existing page.

The package looks in geometries/<stem>/ first and at geometries/<file> second. Both layouts resolve the same GEOMETRY cell. A geometry file name, without its extension, uses letters, digits, ., _ and - and begins with a letter or a digit; a name with a space or a bracket is refused with the character named and a renamed id suggested (my wing (v2) becomes my_wing_v2). A geometry instruction requires a folder of its own, containing the geometry and its sidecars. A point staged from that folder exposes only that geometry's files through its input link. See Upgrading for older formats.

What a solver preset may say, and what happens to a key that reaches nothing

A preset is a table of solver settings, written in the SOLVER's own key names as often as in this package's. Both are read: NITER, boundary_layer_type, max_parallel_threads, set_solver_model, proximity_avoidance, solver_minimum_cp, induced_wake_velocity, unsteady_pressure_kutta, additional_wake_relaxation_iteration, reynolds_averaged_drag_forces and unsteady_N_revolutions_wake are aliases of the fields the emitter names, and so are set_solver_analysis_boundaries, set_loads_and_moments_units, set_inviscid_loads, set_vorticity_lift_model and set_unsteady_viscous_coupling_iteration. A preset transcribed from a working session keeps working as written.

Three things can happen to a key, and the third is the one worth knowing.

  1. It names a setting this package emits, directly or by alias, and it reaches the script.
  2. It is declared recorded-only. It stays in the artifact, emits nothing, and a warning names it AND the reason. The seven this package declares today are solver, motion, symmetry_type, unsteady_delta_theta_deg, unsteady_N_revolutions, set_base_region_trailing_edges and wake_layers. symmetry_type belongs to the geometry a row opens and is stated in the row's SYMMETRY; solver and motion are what the WORKFLOW column decides; unsteady_delta_theta_deg and unsteady_N_revolutions are superseded by the row's DELTA_THETA and REVOLUTIONS; set_base_region_trailing_edges is a separation model that selects boundaries, and a preset carries no selection, so it is a recipe's job; and wake_layers has no emitter in this package at all. slipstream_wake_stabilization is a setup toggle (see The slipstream wake stabilization). significant_digits is not refused, since it gained its emitter. symmetry_loads is refused by name: the row's SYMMETRY_LOADS column is the one route to SET_ANALYSIS_SYMMETRY_LOADS. mesh_order_list is refused outright, since the boundary order belongs to the file (pyfs-mesh inventory).

That list is maintained by hand and this page is not generated, so read the warning your own preset prints rather than this paragraph: it names every key of YOUR file that was recorded, each with its reason. The generated inputs/INPUTS.md lists the package's set with its reasons, beside every setting and every alias of the solver's own names. What the paragraph is for is that the set is closed and short enough to see at once.

A preset may declare its own with recorded_only = ["my_setting"], for a setting from a build or a workflow this package has not met. A declared key still warns, because the point is that its author knows it is not reaching the solver. 3. Anything else is REFUSED, naming the key and listing what applies, so max_threds finds max_threads.

Refusing an unknown key prevents a preset from silently selecting the solver's default physics instead of the requested model. Correct the key before running the campaign.

Three keys of a preset select BOUNDARIES rather than set a number, and all take FAMILY NAMES resolved against the geometry the run opens. You never write an index: an index is a fact about the order of a file and it does not survive a mesh being rebuilt, while a family name is a fact about the aircraft.

key the list it builds command
vorticity_drag_families families whose induced drag comes from vorticity integration SET_VORTICITY_DRAG_BOUNDARIES
axial_separation_families families on the axial flow separation list SET_AXIAL_SEPARATION_BOUNDARIES
analysis_families families that enter the loads (before START_SOLVER on an unsteady row, warned); every other boundary leaves the analysis SET_SOLVER_ANALYSIS_BOUNDARIES
vorticity_drag_families   = ["Wing", "HTP", "VTP"]
axial_separation_families = ["Nacelle"]
analysis_families         = ["Wing", "Fuselage"]

All three follow one rule, and it is one function rather than three copies:

  • A family the opened geometry does not carry is left out, as the reference driver filtered a preset's list to the configuration it opened.
  • A list that resolves to nothing at all is refused, naming the case, the key and the families it could not find. An empty selection would reach the solver as its DEFAULT, and the preset asked for something else.
  • A preset that says nothing emits neither the SET nor the DELETE.

Two keys decide what the loads table holds, and a steady row alone may state them, with analysis_families above:

load_units     = "NEWTONS"   # COEFFICIENTS, NEWTONS, KILO-NEWTONS, POUND-FORCE, KILOGRAM-FORCE
inviscid_loads = true        # the loads and moments without their viscous part

load_units reaches SET_LOADS_AND_MOMENTS_UNITS and inviscid_loads SET_INVISCID_LOADS. Both, and SET_SOLVER_ANALYSIS_BOUNDARIES, are analysis commands: the script states them after START_SOLVER and before the point's exports, on every point of a steady sweep, and each is checked against the command database for the row's build. A unit the command does not take is refused when the preset is read, naming the five it does (load_units = 'FOO' is not one of COEFFICIENTS, NEWTONS, KILO-NEWTONS, POUND-FORCE, KILOGRAM-FORCE). What each means for the products:

Every workflow script puts CHANGE_SCENE_TO_PLOTS on the line before each START_SOLVER, so the solver runs with the plots scene active.

  • load_units: load-table polars, superfiles and rotor coefficients need coefficients. Planning warns which products another unit omits; post names the unit and load_units while keeping independent plots, probes and sections. The export itself is collected and hashed as usual.
  • inviscid_loads: the verified run of this command on 26.120 and 26.123 exported CDo exactly zero, so a polar of such a row is inviscid by construction.
  • analysis_families: the polar sums the loads table's rows by group, so a group naming a family left out of the analysis sums what the table prints for it, which has not been measured on any build.

A row naming unsteady or unsteady_rotor whose preset states any of the three is refused at plan, naming the run type and the key. Stated after the solve starts, on a march they would reach the final export and not the step exports and plots the unsteady products are read from, which is what was measured for the loads frame; drop the key from the preset, or give the row a preset of its own.

Two keys reach two documented commands that no build has been seen to run, each before the solver is initialised:

vorticity_lift_model                = true  # SET_VORTICITY_LIFT_MODEL ENABLE; false writes DISABLE
unsteady_viscous_coupling_iteration = 20    # SET_UNSTEADY_VISCOUS_COUPLING_ITERATION 20

vorticity_lift_model computes the lift from the vorticity field rather than from the integrated surface pressure, on every run type. kutta_joukowski_lift is another route to the lift, and no edition says what the solver does with both: a setup stating both true is planned with a warning naming the two keys. unsteady_viscous_coupling_iteration is the time step at which an unsteady run switches the viscous coupling on, a whole number from 1, and only the unsteady run types take it: a steady row whose preset states it is refused at plan, having no time step for the coupling to begin at. A value that is not true, false, ENABLE or DISABLE, or a step below 1, is refused when the preset is read.

Neither runs on 26.124, and the coupling step runs on 25.100 and 26.000 alone

26.124 answers both command names as it answers a name no edition documents, Unrecognized command, and the script stops at that line The command database records that answer, so a row on 26.124 whose preset states either key is refused at plan, naming the build and the report, instead of stopping mid-run after the seat is spent. On the builds before it vorticity_lift_model emits its command, which the manual documents and no run has measured. unsteady_viscous_coupling_iteration is documented by the 25.000, 25.100 and 26.000 editions and by none after, so it emits on 25.100 and 26.000, the two of those that render an unsteady script, and is refused on 26.100 and every later build, naming the build.

axial_separation_families runs on 26.100 and is refused above it

SET_AXIAL_SEPARATION_BOUNDARIES is documented to 26.100 and no further. A row naming this key on a later build is refused at plan time, naming the build -- which costs an edit, where a line emitted into the script would cost a run. What the later builds want in its place is a judgement rather than a measurement: the solver's deprecation notice leaves its replacement field empty.

vorticity_drag_boundaries (also spelled set_vorticity_drag_boundaries) is an accepted spelling of the first, and set_solver_analysis_boundaries of analysis_families. Stating any of them, or vorticity_drag_families or analysis_families, as an EMPTY list is refused when the file is read, at pyfs-matrix plan:

iterations = 800
vorticity_drag_boundaries = []

is refused naming inputs/setups/s002.toml, the key, the command, and the reason: the solver's default, surface pressure integration on every boundary, is expressed by never emitting the command, so an empty list asks for a selection and names none, and the run would converge and publish induced drag against a setup nobody selected. Drop the key for the default, or name the families. Which entity-selecting keys admit an empty list is the domain seat's call, written beside each key in pyflightstream.workspace.inputs.ENTITY_SELECTIONS, and the refusal prints the verdict; the post-processing artifact's keys are listed under that artifact below.

The moments model is a setup key:

moments_model = "VORTICITY"   # PRESSURE (unstated) or VORTICITY

It reaches SET_ANALYSIS_MOMENTS_MODEL, an init-phase command stated with the loads frame before START_SOLVER, so every step export of a march carries it. Unstated, the script states PRESSURE, which is both the default the command database records for the command and the line every script of this package wrote before the key existed, so a preset naming none keeps its bytes. A word the command does not take is refused when the preset is read, naming the two it does.

On a row turning a rotor, the moments model follows the vorticity drag. A propeller whose induced drag, and so its thrust, comes from the vorticity integration (vorticity_drag_families) while its moments, and so its torque, come from the pressure integration mixes two integrations in one load, which a prior measurement outside this package showed. So on an unsteady_rotor or qsteady_rotor row, or a row stating a rotor speed:

  • vorticity_drag_families with no moments_model states VORTICITY; plan warns naming both keys, and the setup snapshot of the run record names the rule under derived;
  • vorticity_drag_families with moments_model = "PRESSURE" is refused at plan, naming both keys and why;
  • a row turning no rotor keeps the model it states, PRESSURE unstated.

The two settings do not yet reach the same exports on a march

The moments model precedes START_SOLVER, so every step export of an unsteady row carries it. The vorticity drag list is an analysis-phase command in every edition of the command database, so it follows START_SOLVER and reaches the final loads export, not the step exports. Other marches state it after START_SOLVER, so only the final export carries it. See docs-3-vv-01 for the remaining scope.

The per-step actions of an unsteady run are a setup table, each registered with SET_NEW_UNSTEADY_SOLVER_ACTION at the end of the solver settings, before the package's own counter and wall-clock actions:

[[unsteady_solver_actions]]
type     = "COMMAND_LINE"            # or SCRIPT, a FlightStream script
name     = "log_step"
filename = "python log_step.py"      # the script file, or the shell command

The solver runs them after every time step, in the order written. A steady row whose preset states the table is refused at plan, naming the key: it has no time step. The file is named as written; nothing checks or writes it.

Every choosable command of the Solver Settings, Advanced Settings, Runtime Settings, Unsteady Solver and Solver Analysis chapters has a key, or is listed with the measured reason it has none, in the setup catalogue.

Boundary aliases belong in the reference artifact (reference aliases). A preset that states [aliases] is refused at plan, directing the table to the reference artifact.

Coordinate frames belong in the reference artifact (reference frames). A preset that states [[frames]] is refused at plan, directing the table to the reference artifact.

A row may state setup keys over its preset

A row writes a setup key in its VAR_NAMES_VALUES cell under its native name, a field of the setup or one of the solver's own spellings above, so one basic preset serves a matrix whose rows each change one setup factor:

... | s100 | ... | viscous_coupling: ENABLE
... | s100 | ... | moments_model: VORTICITY
... | s100 | ... | vorticity_drag_families: Wing, HTP

The rule, and its one default:

  • plan warns for every row that writes setup keys, naming the row and the keys.
  • A key the preset does not state is added for that row only; the next row naming the same preset reads the preset as written.
  • A key the preset states with an equal value is accepted and changes nothing. Equal means the loader turns the two into the same setting, so convergence: 0.000001 equals convergence = 1e-6.
  • A key the preset states with a different value is refused, naming the row, the key and both values. A row never silently overwrites its preset: change the preset, drop the key, or give the row a preset of its own.

Each value is validated by the loader the preset itself goes through, on a copy of the preset with the row's key in it, so a value is legal in a cell exactly when it is legal in a preset. The setup snapshot of the run record lists, under from_row, the keys the row stated and their cell text.

A cell carries a number, a word, true or false, or a list of names separated by commas. It cannot carry a table, whose own pairs would need the cell's slash and whose records its comma, so the table-valued keys (airfoil_separation, axial_vortex_separation, bulk_separation, cylindrical_bulk_separation, stratford_bulk_separation, ports, trailing_edge_types, actuator_operations, base_region_operations and unsteady_solver_actions) are a preset's only, and a row naming one is refused with that list. A key named by a run type and by the setup at once is refused as ambiguous; a setup key that has another home (symmetry_loads beside or without SYMMETRY_LOADS) is refused by name on a row as in a preset, naming its home. A key that is neither a run-type key nor a setup key is refused by the run type, as before.

When a name you used no longer exists

A word this package retired refuses on sight, and the refusal names the replacement, so the fix is in the message rather than in the changelog. Where the old spelling was a value inside a FILE, the refusal arrives as InputArtifactError, naming the artifact and the word. Where it was a METHOD you reached for in Python, it arrives as pyflightstream.exceptions.RetiredAttributeError, and both descend from PyflightstreamError, so one except around a whole workspace load catches either:

from pyflightstream.exceptions import PyflightstreamError
from pyflightstream.workspace import CampaignWorkspace

workspace = CampaignWorkspace("a-study")
try:
    workspace.engine_point("HUB")
except PyflightstreamError as refusal:
    print(refusal)
# engine_point of the CampaignWorkspace API is not accepted.
# Write rotor_point. ...

Every python block on this page is marked skip, because the rest of them need a solver. The claim this one makes is executed elsewhere: the RetiredAttributeError docstring carries a doctest that asserts both parents. The offline suite also catches the refusal through PyflightstreamError and compares the message against the registry's own.

RetiredAttributeError also descends from AttributeError, which is what a caller who typed the old method name was already catching, so nothing that worked before the class arrived stopped working.

It is named for an ATTRIBUTE and not for the registry, which retires nine spellings of which this covers the ones you reach for in code. The rest are file values and refuse through the artifact reader, which is where a file's mistakes belong.

The table's home is the REFERENCE artifact

A boundary name is not a solver setting, and the words a study uses for its own geometry belong with the configuration. Write the same table in inputs/references/<id>.toml. A preset still stating it is REFUSED when a row binds it, naming the reference to move the table into. The refusal arrives at plan, not when the preset loads, because it names the reference the ROW cites.

The reference's table can do one thing the preset's could not: a member may be another alias, resolved to the end, so lifters may name lifters_left and lifters_right and each of those may name the rotors. And every rotor the reference declares is an alias over everything it owns, without being written in this table at all.

Following a member to the end is what makes a RING possible, so one is refused rather than followed forever: pyflightstream.exceptions.AliasCycleError names the alias that closed the ring and the member that closed it, and prints the whole path, because a reader holding one of the two names would otherwise have to open the file to find the other. Written out, lifters naming lifters_left and lifters_left naming lifters back is refused with:

the alias 'lifters_left' resolves through 'lifters', which resolves
back to 'lifters': 'lifters' -> 'lifters_left' -> 'lifters'. An alias
may name another alias, and the reader follows to the end, so a ring
has no end; break it in the reference

A member that names its OWN alias is NOT a ring, and it is not refused: it falls back to the family reading, exactly as it did before aliases could nest. wing = ["wing"] over a mesh carrying wing1 and wing2 gives you both, and over a mesh whose wing was renamed it gives you nothing, which is the case that would have been reported as a false ring.

A preset may also carry a [flight_condition] table, which is not a solver setting and is not judged as one: it holds the fluid pins (RHOkgm3, MUPas, ASMPS, TK, PPA) that every row naming this setup inherits for the keys it does not state itself, unless its atmospheric constraints supersede them. ALTFT or dISA drops all setup pins; REmi without either drops density and pressure defaults. Row-stated pins stay. Plan warns once for the campaign, listing affected rows and dropped pins. See Flight conditions for what may and may not go in it, and why a velocity may not.

stabilization and stabilization_strength resolve as a PAIR into one number. Disabled means ABSENT and not a strength of zero, which would still be switched on.

inputs/executables.toml is the one file that is about your machine rather than about your study: it maps a build identifier such as 26.120 onto the executable on this computer. It is why the matrix can name a build and stay portable.

A workspace kept in version control keeps that file portable too, by carrying placeholder paths in it and the real ones in inputs/executables.local.toml beside it, which is gitignored The package reads the overlay over the registry when it exists: a bare local path keeps the version the committed entry declares, a local table replaces the fields it states and keeps the others, and a build identifier the overlay is silent on reads as committed. The tier-3 workspace of this repository runs that way, every row on the build its FS_BUILD cell names and no --fs-exe on the command line.

An entry takes one of two shapes and the difference is what a row's script is emitted under:

"26.120" = "C:/builds/26120/FlightStream.exe"
"26.123" = { path = "C:/builds/26123/FlightStream.exe", version = "26.123" }

The bare path declares no version, so rows naming that build are emitted under the campaign's default. The table declares one, and rows naming that build are emitted under it. That is what lets ONE matrix send some rows to one build and some to another: a matrix whose active rows name two builds runs, and each row's record names the executable its own row asked for. The declared version is checked against the version registry when the file is READ, so a typo is refused pointing at the file that is wrong rather than at the first emission that fails.

Note the one asymmetry, because it is easy to expect the other behaviour: a registry entry never overrules the default version for a row that names NO build. A silent row falls back to the campaign default, as it always has.