Skip to content

Matrix columns

This page lists the columns of a run matrix and the keys of its FLIGHT_CONDITION cell. Every solver reads the same columns with the same meanings, so one layout serves every campaign.

A matrix is a text file inputs/matrices/<name>.fs with | between its columns. A matrix may also sit in the workspace root; a name present in both places is refused as ambiguous. Cells may be padded with spaces, lines starting with # are comments, and a line of dashes under the header is a rule.

POL  | HIDDEN | RUN | AIRCRAFT | CONFIGURATION | DESCRIPTION       | FLIGHT_CONDITION                                  | SWEEP_VALUES | MESH         | REF | SETUP | PPROC | SYMMETRY | SYMMETRY_LOADS | NCPUS | WALLTIME | SOLVER_BUILD | WORKFLOW | VAR_NAMES_VALUES
-----|--------|-----|----------|---------------|-------------------|---------------------------------------------------|--------------|--------------|-----|-------|-------|----------|----------------|-------|----------|--------------|----------|-----------------
5001 |   0    |  1  | WB       | cruise        | Polar near design | MACH:0.85, REmi:5, TK:310.928, ALPHA:sweep, BETA:0 | 2.5,2.75     | wb.su2       | 001 | 001   | 001   | -        | -              | 192   | 4h       | 8.3.0        | -        | iterations: 2000

POL, RUN, SETUP, REF and PPROC are required; every other column is optional and may be left out of the header. A cell holding - states nothing. A column the layout does not know is refused before anything is planned, naming the closest known column. A header whose columns are separated by commas is refused with columns are separated by |.

Column Meaning
POL Point of interest; the simulation folder is sims/sim_<POL>/. Unique per matrix.
HIDDEN 0 or 1: whether a solver that opens a window shows it. It never removes a row; RUN decides that. A solver that runs without a window carries and lists the value only.
RUN 1 plans and runs the row, 0 keeps it in the file without running it.
AIRCRAFT Your name for the vehicle. Labels only; it reaches the plan listing and the campaign summary.
CONFIGURATION Your name for what is in the flow. Labels only, as AIRCRAFT.
DESCRIPTION Free text for the row. Labels only, as AIRCRAFT.
FLIGHT_CONDITION The flow state and attitude as KEY:value pairs; see below.
SWEEP_VALUES The comma-separated values of the one FLIGHT_CONDITION key written sweep.
MESH The mesh or geometry file: a file name in inputs/mesh/, a stem naming exactly one file there, or a workspace-relative path. The older folder names inputs/geometry/, inputs/geometries/ and inputs/meshes/ are still read, after inputs/mesh/. The setup may then omit its mesh key; one it states must name the same file. A solver that does not read the column warns and skips it. The header was GEOMETRY before this column was renamed; a matrix that still says GEOMETRY is read as MESH with one warning per matrix file, and a header with both is refused.
REF Reference file inputs/references/r<id>.toml; 001 and r001 are the same, and a name works too: rwing is inputs/references/rwing.toml.
SETUP The physical setup file inputs/setups/s<id>.toml, numbered or named (sxbbase). The header was SET before this column was renamed; a matrix that still says SET is read as SETUP with one warning per matrix file, and a header with both is refused.
NUMERICS The numerical setup file inputs/numerics/n<id>.toml, numbered or named, for the CFD solvers that read it (SU2, OpenFOAM, PyFR; CFD++ warns once and ignores a filled cell); see Setup and numerics. A column that is absent, or a cell holding - or nothing, means the setup file carries the numerics. A solver without the column warns once and ignores a filled cell.
PPROC Post-processing file inputs/pproc/p<id>.toml, numbered or named.
SYMMETRY, SYMMETRY_LOADS What was meshed (NONE or PERIODIC) and whether the loads are the whole model's (true, false). SU2 reads NONE and PERIODIC (with the row variable PERIODIC_COPIES; see its page); the other solvers need -: symmetry comes from the mesh markers and the setup.
NCPUS Processor count for the scheduler, {ncpus} in an HPC profile. Where it is -, a setup ncpus answers.
WALLTIME Wall clock with its unit: 90s, 240m, 4h, 1d. {walltime} in an HPC profile.
SOLVER_BUILD Solver version the row runs, such as 8.3.0. A local run takes that build's executable from inputs/executables.toml (see Executables); the HPC profile's [builds] table maps it to {solver_version_alias}. After a local run the version the solver printed must equal it (or <version>-<alias>), or the point is recorded failed with that message. The column may also be named FS_BUILD, with the same meaning; a header holding both names is refused.
WORKFLOW Run type, with pyflightstream's names: steady (also -), qsteady_rotor, unsteady or unsteady_rotor; SU2 offers all four, the other solvers steady (SU2 run types).
VAR_NAMES_VALUES Per-row overrides of setup keys and optional HPC profile and cluster selection; see below.
RESTART Recorded source point as POL/DP-name, whose saved solution is copied into every point of the row. - requests a cold start. The keyword MRF on a time-accurate sliding rotor row of an SU2 workspace runs a steady frozen-rotor stage first, in the same folder and job, and starts the time-accurate stage from its solution; see SU2 workspaces. On any other row it is warned and skipped, or refused where skipping would start a time-accurate row cold. SU2, OpenFOAM and PyFR support a source point; other adapters warn and skip it. With --batch, a source that runs earlier in the same job is staged by the job script when it ends. A missing solution refuses the run and names its source; see restart.

FLIGHT_CONDITION

The cell holds comma-separated KEY:value pairs. Keys match case-insensitively, a key written twice is refused, and exactly one key may carry the word sweep, whose values come from SWEEP_VALUES.

The air is stated with keys that carry their unit in their name:

Key Unit Role
MACH - velocity, through the speed of sound at the state's temperature
TASmps m/s velocity (true airspeed)
REmi millions density, solved from Re = rho V L / mu with L the REF file's length
ALTFT ft pressure and temperature of the ISO 2533 atmosphere (-6561 ft to 65616 ft)
dISA K, as an offset temperature offset from the standard value at the same pressure
RHOkgm3 kg/m3 pins the density
MUPas Pa s pins the viscosity
ASMPS m/s pins the speed of sound
TK K pins the static temperature
PPA Pa pins the static pressure

State exactly one of MACH or TASmps. An absent altitude is sea level and an absent dISA is zero. The viscosity follows Sutherland's law at the state's temperature. Without REmi or RHOkgm3, the density is the ideal-gas density of the altitude's pressure (or the PPA pin), and the Reynolds number is an outcome. Whenever the density is solved or pinned, the pressure is p = rho R T unless PPA pins it. REmi beside RHOkgm3 is refused.

The attitude keys are ALPHA and BETA in degrees, and ADVANCE_RATIO, RPM, roll_rate, pitch_rate and yaw_rate for solvers that read them. Other keys a solver documents (for example ORDER for PyFR or J for QPROP) are kept in upper case.

ADVANCE_RATIO is J = V / (n D), with V the free-stream speed, n the rotation speed in revolutions per second and D the rotor diameter. QPROP reads it as its J. SU2 reads it for a propeller in a steady rotating frame, with the rotor block of the REF file, as a value or as ADVANCE_RATIO:sweep, and writes the rotation of each point; see The rotor speed (for a one-sixth sector: SYMMETRY PERIODIC and, in VAR_NAMES_VALUES, hpc: h004 / PERIODIC_COPIES: 6). A point name carries it as J and the value times 100 with its sign (J+030 for 0.3).

For SU2, PyFR and XFOIL, a row that states only MACH and angles, such as MACH:0.3, ALPHA:sweep, keeps the flow state of its setup file, as matrices written before these keys did. OpenFOAM and QPROP resolve a bare MACH at sea level like any other air statement.

What each solver takes from the resolved state

Solver Row state becomes MESH becomes
SU2 MACH_NUMBER, FREESTREAM_TEMPERATURE, FREESTREAM_PRESSURE and FREESTREAM_DENSITY where SU2 reads them, REYNOLDS_NUMBER, REYNOLDS_LENGTH; ADVANCE_RATIO becomes ROTATION_RATE, MOTION_ORIGIN and MACH_MOTION of a steady rotating frame (see the SU2 page) MESH_FILENAME
OpenFOAM speed (the velocity) and nu (viscosity over density) mesh
PyFR mach and reynolds mesh
XFOIL mach and reynolds; a bare MACH is the setup's mach airfoil_file
QPROP V, RHO, MU and A; ADVANCE_RATIO is J blade (an OBJ)

For PyFR and XFOIL, REmi gives the Reynolds number directly, also at MACH:0; for XFOIL, other air keys give it over the REF file's length. OpenFOAM, PyFR and XFOIL run at BETA 0 and QPROP in axial flow, so a nonzero BETA (or ALPHA for QPROP) is refused and a zero one is accepted. A value the setup also states must agree with the row's, except that a PyFR row stating only MACH and angles replaces the setup's mach, as before.

Setup and numerics

SETUP names the physical setup of a row and NUMERICS names how the solver solves it, so one numerical recipe can be shared by many setups. The setup the solver reads is merged in this order; each later layer replaces a key of the earlier ones:

  1. the [defaults] table of init.toml;
  2. the run type's carried declarations, where the adapter supplies them;
  3. the numerics file;
  4. the setup file;
  5. the row's VAR_NAMES_VALUES.

A key stated in both the numerics file and the setup file takes the setup file's value, and one warning names the key and both files. A numerics file that holds a [solver] table or the mesh is refused: those are execution and geometry, not numerics. The numerics file is a planned input like the setup: its digest is recorded, a change after planning is refused with input changed after planning: inputs/numerics/n001.toml; plan again, and the run record names the numerics id. cfd-matrix plan --verbose lists, for a row with a numerics file, which layer each setup key came from. Where a solver does not read the column, a filled NUMERICS cell is ignored with one warning. Post-processing keys stay in the PPROC file.

VAR_NAMES_VALUES

The cell holds KEY: value pairs separated by /:

iterations: 2000 / CFL_NUMBER: 5.0 / MARKER_FAR: ["farfield"] / solver.threads: 4

Each key replaces the key of the same name in the row's setup file. A dotted key replaces a key inside a table of the setup (solver.threads is threads in the [solver] table). A value is read as a TOML value when it is one (numbers, true, quoted strings, [...] lists) and as text otherwise. A key stated twice is refused, and so is a key that is a matrix column, such as NCPUS: state it in its column. Override the key under the name the setup uses: a setup stating iterations is overridden by iterations, not by the SU2 name ITER.

hpc: alpha selects inputs/hpc/alpha.toml for this row. It takes precedence over --hpc, and is ignored with --local. Separate entries with /. cluster: alpha selects the cluster for this row when the HPC profile uses {cluster}. The key is case-insensitive and is not sent to the solver setup. See cluster jobs.

hpc.<name>: <value> replaces one value of the selected profile for this row and keeps everything else of the profile: hpc: alpha / hpc.application_id: compute_polars.py. <name> is a descriptor field of the profile, application_id or cluster; any other name is refused with the list the profile accepts. NCPUS and WALLTIME keep their columns. A value is written between double quotes when it holds a / (hpc.application_id: "tools/run_all.sh"): the separator / between entries is not read inside double quotes, and a cell without double quotes is split exactly as before. See overriding the profile per row.

Row variables of the run types

These variables go in VAR_NAMES_VALUES. They are never sent to the solver as setup keys, and all but TURBULENCE_MODEL, RESTART_EVERY_REV and hpc.<name> are pyflightstream's. A variable of another run type than the row's is warned and skipped. See SU2 run types.

Variable Meaning
DELTA_THETA The clock: degrees of rotor turn per step, with REVOLUTIONS.
REVOLUTIONS The clock: revolutions to march, with DELTA_THETA.
DELTA_TIME The clock: seconds per step, with TIME_ITERATIONS.
TIME_ITERATIONS The clock: number of steps, with DELTA_TIME.
LAST_REVS_AVG The averaging window, in revolutions, counted back from the last step.
LAST_ITERS_AVG The averaging window, in steps, counted back from the last step. Exactly one of the two is stated.
EXPORT_UNSTEADY_LAST_REV The export window: the last revolutions, whose every step is written.
EXPORT_UNSTEADY_LAST_ITER The export window: the last steps.
EXPORT_UNSTEADY_AFTER_REV The export window: begins at the step that completes this many revolutions and runs to the last step.
EXPORT_UNSTEADY_AFTER_ITER The export window: begins at this step (counted from one) and runs to the last step. At most one export key is stated.
PERIODIC_COPIES Copies of the meshed sector that make the whole rotor; required with SYMMETRY PERIODIC.
TURBULENCE_MODEL SA or SST, always fully turbulent.
RESTART_EVERY_REV SU2 only: write the restart file every this many revolutions of the rotor clock, so a point stopped by its walltime can continue with run --continue. Refused beside a setup OUTPUT_WRT_FREQ or a PPROC output_frequency; warned and skipped on a row that turns no rotor. See periodic restart files.
hpc.<name> One value of the HPC profile, replaced for this row (see above).

Where the values go

The plan listing (cfd-matrix plan <name>) prints AIRCRAFT, CONFIGURATION, DESCRIPTION, MESH, NCPUS, SOLVER_BUILD, HIDDEN and each variable under the point. The run record keeps them with the point, and the campaign summary written by cfd-matrix collect carries AIRCRAFT, CONFIGURATION and DESCRIPTION beside each result. A value the matrix states and the s/r/p files also state must agree, or the row is refused naming both.

Retired SET and GEOMETRY headers remain deprecation notices under --warning-refusals; their values are read exactly as before.