The workspace and the workflow¶
A workspace is the folder this package owns. You point it at a directory, and from that moment the layout inside is the library's business rather than yours: where a run's script goes, where its outputs land, where the record of what happened is kept. That is the whole idea. A study that organises itself by folder names is a study whose evidence lives in your memory, and folder names are never authoritative here.
Every pyfs-workspace subcommand accepts --workspace PATH, with
the current directory as its default. For example,
pyfs-workspace init --workspace campaign creates the input library and run
folders in campaign. init and migrate also take the folder as
a positional root; naming two different folders is refused. To archive one recorded
simulation and remove its run folder, use
pyfs-workspace archive 9001 --workspace campaign.
Two things live in a workspace and they are worth separating in your head before anything else.
The input library is what you bring. Reference quantities, solver presets, boundary groups, geometry, profiles: each is a small file with an identifier, staged once, and referred to afterwards by that identifier rather than by a path. Several studies reuse the same reference area without copying it, and when you change it you change it in one place.
The run record is what the library writes. Every point that executes leaves a row saying which run it was, which build of FlightStream ran it, the hashes of the script and the inputs, how it terminated, how long it took and which files it produced. Nothing is inferred from a folder name afterwards, because a folder can be renamed and a record cannot be renamed into agreement with itself.
A workflow is a run TYPE the package already knows how to build. A
row says unsteady_rotor and the package writes the whole script for
it: no Python, no function of yours, nothing between the file and the
result. That is the difference between a workflow and a recipe, and it
is worth being exact about because the two look similar from a
distance. A recipe is a function YOU write and name by reference; the
package imports it. A workflow is looked up in this package's own
table, and there is deliberately no way to put your function in that
table, because a type this package builds is a type it can also refuse
before it runs.
The section at the bottom of this page says what is still not built. The pages below are what ships today, one per run type or topic; each fact has one home, and every other page links to it.
| Page | What it holds |
|---|---|
| The run matrix, a campaign and its record | what a run matrix is, how a point is named and redone, several matrices, what comes back |
| The input library and the solver presets | the library the identifiers resolve against, the solver presets, renamed names |
| The reference artifact | the lengths, the study's vocabulary |
| The steady workflow | steady, and one sweep per row |
| The unsteady workflow | unsteady, and the reductions of an unsteady point |
| The unsteady rotor workflow | unsteady_rotor, rotor rows, several rotors, exports after a threshold |
| The quasi-steady rotor | qsteady_rotor |
| One row, one actuator disc or one custom free stream | the row keys that replace the uniform free stream |
| One row, one geometry, turned or moved | ROTATE and TRANSLATE |
| Planning a campaign and what it costs | what plan prints, the cost table |
| Builds, local runs and clusters | the build as an input, where a point runs |
| Storage and sync, Excel matrix synchronization | the storage and sync commands |
| The post-processing artifact and its products, extracting more from a finished point | the post-processing side of a row |
Writing no Python at all: the workflow¶
A recipe is Python. A workflow
is the way out of that. Name a run type in the WORKFLOW column and the
package builds the whole script itself, from the row and from what the
row's identifiers resolved to.
Four types ship today: steady,
unsteady, unsteady_rotor
and qsteady_rotor.
Each opens the row's GEOMETRY first when the row names one, and each
initializes the solver under the row's SYMMETRY.
This is the matrix the suite runs for steady, unsteady and unsteady_rotor, byte for byte:
POL | HIDDEN | RUN | AIRCRAFT | CONFIGURATION | DESCRIPTION | FLIGHT_CONDITION | SWEEP_VALUES | GEOMETRY | REF | SET | PPROC | SYMMETRY | SYMMETRY_LOADS | NCPUS | WALLTIME | FS_BUILD | WORKFLOW | VAR_NAMES_VALUES
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
7001 | 1 | 1 | RotorRig | - | ROTOR_UNSTEADY | TASmps:30.0, REmi:1.20, ALPHA:sweep | 0.0 | - | r003 | s002 | p001 | - | - | - | - | 26.120 | unsteady_rotor | RPM: 1200 / ROTOR_AXIS: X / BLADES: 4 / DELTA_TIME: 0.0001 / TIME_ITERATIONS: 720 / LAST_REVS_AVG: 0.25
7002 | 1 | 1 | RotorRig | - | STEADY_REFERENCE | TASmps:30.0, REmi:1.20, ALPHA:sweep | 0.0,2.0 | - | r003 | s002 | p001 | - | - | - | - | 26.120 | steady |
7003 | 1 | 1 | RotorRig | - | UNSTEADY_NO_ROTOR | TASmps:30.0, REmi:1.20, ALPHA:sweep | 0.0 | - | r003 | s002 | p001 | - | - | - | - | 26.120 | unsteady | DELTA_TIME: 0.00025 / TIME_ITERATIONS: 480 / LAST_ITERS_AVG: 480
NO ROW HERE NAMES A GEOMETRY, AND THAT IS WHAT THEY ARE FOR. This
file is the suite's proof that a legacy matrix with no geometry keys renders
exactly the bytes it always did, so it deliberately names none of the
three keys; run as it stands, it solves whatever the solver already has
open.
EVERY row needs the cell, not just the rotor one: a row that keeps
none opens nothing and is told nothing. The fragment below is written for
this page rather than lifted from the suite, and shows each row's
VAR_NAMES_VALUES tail with the rest elided:
7001... | unsteady_rotor | GEOMETRY: blade_sector.fsm / RPM: 1200 /...
7002... | steady | GEOMETRY: blade_sector.fsm
with blade_sector.fsm staged under inputs/geometries/. A periodic
sector adds SYMMETRY: PERIODIC / PERIODIC_COPIES: <n>.
Where this example comes from¶
Every artefact on these pages is lifted from an executed example in the test suite. The first matrix matches its fixture byte for byte; the input library, recipe and call come from the same recorded matrix execution. The four run identifiers of the run matrix are the ones that execution checks.
The workflow matrix also matches its fixture byte for byte. Its verification
builds every row and checks that no module:function reference appears
anywhere in the call.
That is the point of doing it this way. An example written for a page is true the day it is written and quietly false afterwards; an example lifted from an executed test fails CI when it stops being true. The verification suite holds the two together, so this page cannot drift from the suite without the suite going red.
The code blocks are not executed by the docs build, and are marked so. They need a temporary directory, a staged input library and a stub standing in for FlightStream, none of which belong in a documentation build. The guarantee is carried by the lift, not by the block.
What does not exist yet¶
Said plainly, because a page that documents an unbuilt capability is worse than no page at all.
-
A row's
BLADEScount changes no emitted line, and no cell chooses the solver model.BLADESsizes the phase-locked and per-blade windows of a row that names NO rotor by alias, and nothing else: it does not configure the rotor and does not interact withSYMMETRY. A row that names its rotors takes each blade count from that rotor's own block. The solver model is the setup preset'ssolver_model,INCOMPRESSIBLEwhen the preset states none; the row'sMACHdoes not choose it. The reference (REF) and the fluid state of the flight condition reach the script. -
You cannot add a workflow of your own. The table is this package's, and there is deliberately no way to register into it: a type this package builds is a type it can also refuse before it runs, and that guarantee is exactly what a user-supplied entry would remove. Your own physics goes in a recipe, which is what recipes are for.
- A raw mesh's scale and names are stated, and the names are not checked.
A workflow imports an
.objor.stlin the unit its sidecar's[import]table states into a simulation in metres.IMPORTconverting an OBJ's unit into the simulation's has been measured on 26.124 and on no other build (mesh reference). Its boundary names are the sidecar's, written by hand, and nothing checks them against the file before the run (mesh inputs). The other mesh formatsIMPORTdocuments are refused by a workflow; a recipe of your own imports them, declaring the units itself. - A raw mesh's trailing edge by file runs on 26.124 only, and its wake
termination is measured on a steady point only. The file route was run
on that build alone, and the other builds are refused; detection runs on
every build that carries it. On the file route the sidecar's
[wake_termination]detection runs between two initializations of the solver, the order that marked a blade's root node on a steady point; an unsteady run takes the same order, not yet measured there (mesh inputs). - A workflow row that names no
GEOMETRYemits no open, and is told nothing. That keeps each existing matrix rendering as it did. A row moved offLEGACYthat keeps aFSM_FILEkey of its own is refused at plan time naming the key, so rename the key toGEOMETRYwhen you move it. - There is no result-array facade. No interpolation along a named
axis, no re-parameterisation, no trim extraction. carries that
promise and is
pending.
Consult the task page for current capabilities and limitations. User-visible changes are announced in the changelog.
Workspace routes by study stage¶
| Stage | Workspace route |
|---|---|
| Geometry and mesh | pyfs-mesh, pyfs-geom and geometry input files |
| Set up the study | Run matrix, input library, reference and setup files |
| Choose the run type | Run type in each matrix row |
| Plan and run | pyfs-matrix plan and pyfs-matrix run |
| Post-process | pyfs-matrix post and the post-processing input |
| Command reference | pyfs-matrix, pyfs-workspace, and related CLI tools |
The generated Python capability route map shows the corresponding programmatic routes.