Skip to content

The unsteady workflow

The unsteady run type: a body that does not move, solved in the time domain, and the reductions of an unsteady point.

unsteady is one point of a body that does not move, solved in the time domain: a uniform free stream, a physical time loop the row states directly, one solve, one loads export. It exists because a study often needs the unsteady answer for a shape with no rotor in it, and because a powered and an unpowered configuration are only comparable when they are solved on the SAME discretisation.

For a power-off row, use J_CLOCK: 1.3 / DELTA_THETA: 20 / REVOLUTIONS: 2 / LAST_REVS_AVG: 1 in VAR_NAMES_VALUES to set its notional reference clock. The diameter comes from top-level rotor_diameter_m of the row's reference, independently of rotor blocks and CLOCK_MOTION. At 30 m/s with a 2 m reference diameter, this gives 36 steps of 0.004814814814814815 s and averages the final 18 steps. J_CLOCK is positive and finite, and cannot accompany ADVANCE_RATIO, RPM or DELTA_TIME, or a row that turns a rotor. Its revolution keys also apply when the reference declares no rotor blocks. See the matrix example and the clock definition.

Its clock is DELTA_TIME and TIME_ITERATIONS, the clock of its power-on twin, or J_CLOCK. DELTA_THETA and REVOLUTIONS are not a clock by themselves: they become one by dividing by a rotor speed, and a row stating the pair with no speed is refused.

A power-off row states its clock as its power-on twin does. When the reference declares a rotor and the row states that rotor's speed, ADVANCE_RATIO (J) or RPM, the row runs on the clock the unsteady_rotor row with the same keys runs on: the same step from the azimuth per step, the same revolution count, and the same EXPORT_UNSTEADY_AFTER_REV, EXPORT_UNSTEADY_LAST_REV, LAST_REVS_AVG and far-field last_revs windows. Where the reference declares several rotors, CLOCK_MOTION: <rotor> names the one whose speed owns the clock, as on the twin. For example, a power-on row CLOCK_MOTION: PUSHER / MOTIONS: {MOVING_BC_ALIAS: PUSHER} / DELTA_THETA: 10 / REVOLUTIONS: 3 / LAST_REVS_AVG: 1 and the power-off row CLOCK_MOTION: PUSHER / DELTA_THETA: 10 / REVOLUTIONS: 3 / LAST_REVS_AVG: 1, both at ADVANCE_RATIO:0.9 in their flight condition, march 108 steps of the same length and average the same last 36. Nothing turns but the clock: no geometry moves and no motion boundary is added; the RMRP frames turn only at an explicit RPM, as below.

Without J_CLOCK or a declared rotor and its speed (a row whose reference declares no rotor counts no revolutions, even on an ADVANCE_RATIO azimuthal clock), a revolution key (EXPORT_UNSTEADY_AFTER_REV, EXPORT_UNSTEADY_LAST_REV, LAST_REVS_AVG) warns as not applicable, naming ADVANCE_RATIO and RPM, and is skipped; the iteration keys are unchanged. A row carrying RPM_SIGN, ROTOR_AXIS, ROTOR_ORIGIN or MOVING_BOUNDARIES is refused for the same reason: nothing would read them, and the run would be recorded as though they had been honoured.

When the reference declares rotor blocks, every block places <ALIAS>_SMRP and <ALIAS>_RMRP at the hub, on its axes. An explicit RPM magnitude turns only each RMRP, signed by that block's rpm_sign, with no boundary attached to the motion. For example, DELTA_TIME: 0.01 / TIME_ITERATIONS: 12 / LAST_ITERS_AVG: 6 / RPM: 600 turns the frames at 600 rev/min while the surfaces stay fixed. The time step still comes from DELTA_TIME, and the revolutions of the turning frames are counted on it.

Without RPM, each RMRP stays at the SMRP pose and its entries are placed. One campaign warning names these rows: "placed fixed: the row states no RPM". References without rotor blocks retain their existing behaviour. The zero-boundary motion was measured on builds 26.124 and 26.125; it does not create blade frames or turn the geometry.

And one refusal reaches an unsteady row without its author touching the row at all. A solver preset stating a wake termination in REVOLUTIONS is refused on this run type, because a run that turns nothing has no revolution for the setting to be counted in. The run does have a time loop, so the setting is not meaningless in principle; it is unstateable in revolutions, and this package records no steps-spelled preset key for it. Drop the key from the preset the row names, or give that row a preset of its own. A steady row meets a different refusal for a different reason, and a rotor row meets none.

The per-step exports of the end of the run are stated on this run type in time steps: EXPORT_UNSTEADY_AFTER_ITER: <step> begins them at a step, and EXPORT_UNSTEADY_LAST_ITER: <steps> covers the last <steps> steps of the run (first exported step TIME_ITERATIONS - <steps> + 1), at most one of the two per row. The revolutions forms count the rotor clock of a power-off row that states one; without it they warn and are skipped, naming the iterations form and the rotor speed. See the last revolutions or the last steps of a run.

The solver log is always exported through the pproc [exports] table. LOG_OUTPUT is for cases written in Python; workflow rows refuse it. See Upgrading for older matrices.

A motion driven by a table

A body that moves along a prescribed path (an oscillating wing, a pitching flap, a plunging plate) is stated as one record of the row's MOTIONS list:

MOTIONS: {ALIAS: FLAP / TABLE: flap.txt / TABLE_TYPE: POSITION-TIME} / CLOCK_MOTION: FLAP / DELTA_TIME: 0.001 / TIME_ITERATIONS: 400
  • ALIAS names a group the reference declares; its boundaries are the ones that move.
  • TABLE names a file of the workspace's inputs/motions/ folder, by its bare file name.
  • TABLE_TYPE is POSITION-TIME or VELOCITY-TIME, the solver's own tokens, and has no default: the two kinds read the same columns as different quantities.
  • The row states CLOCK_MOTION, naming the table motion, and DELTA_TIME, since a table has no rotation speed to derive a time step from.

The table holds one row per time and seven numbers a row, separated by commas or spaces, with no header line: the solver's physical time in seconds, then three translational components and three angular components, in the motion's coordinate system, which the row does not set: the solver's default frame for a new motion applies, and it is not measured. For VELOCITY-TIME the angular components are rates in rad/s; for POSITION-TIME they are angles in degrees. The solver interpolates linearly between rows. The manual names no unit for the three translational columns.

The plan resolves the file and records its SHA-256 on the case. It refuses a file that is missing, empty or outside inputs/motions/, a row that is not seven finite numbers, a time that does not increase, a table that ends before the run does (naming both times), and a table changed after the row was planned. The run reads its own copy, <stem>.motion_table.txt, written in the point's folder with the file's exact bytes and hashed into the run record; the file is never rewritten. In the setup, before the solver is initialised, the row writes CREATE_NEW_MOTION CUSTOM, SET_MOTION_CUSTOM_TABLE <TABLE_TYPE> <motion> with the copy on the next line, and SET_MOTION_BOUNDARIES with the alias's boundaries.

A table motion is emitted on the unsteady run type only; another run type stating one is refused when the row is planned. The commands are documented on every build and no run has yet read a table back, so the motion itself is not measured.

Probes: instantaneous or default

A [[probes]] entry defaults to kind = "default": probe points imported after the march, updated and exported once at the last step. State kind = "instantaneous" for fluid plots sampled at every step. Entries may mix both kinds, keeping their last-step and history tables separately. Per-step export thresholds do not add default entries to the window. See the probe kind.

The reductions of an unsteady point

An unsteady point's plots table is its raw time history, one row per solver time step, and the post writes its reductions beside it, one file per reduction, each named in products.json with the reduction and the window it used. Which reductions a point gets, what each file holds, the window each is taken over and how a row naming its rotors reduces per rotor are defined in one place, the reductions of an unsteady point on the definition of record; the window itself is the averaging window. This page shows them on a worked example.

The windows travel on the run record (reductions in runs.json), and a row naming its rotors carries one block per rotor under rotors. Reading them without hard-coding either name:

from pyflightstream.cases.workflows import PER_ROTOR_REDUCTIONS, ROTORS_KEY

# Reading a run record's reductions without hard-coding either name.
per_rotor = record.reductions.get(ROTORS_KEY, {})
for alias, block in per_rotor.items():
    for reduction in PER_ROTOR_REDUCTIONS:
        entry = block[reduction]
        # -> {'windows': [[448, 515], ...], 'period_steps': 68, ...}
        #    or {'skipped': '<the reason this rotor has none>'}

A worked example: a row naming rotor PROP of eight steps, four steps per revolution, two blades, stating LAST_REVS_AVG: 1.5, which is six steps. Its reference declares a [PROP] block with kind = "rotor" and families_blades = ["Blade1", "Blade2"], alongside its hub, axis, diameter and blade-one datum. Its pproc requests blade plots, for example:

[plots]
parameters = ["FX", "FY", "FZ", "MX", "MY", "MZ"]

[[plots.groups]]
name = "MRP_{family}"
frame = "MRP"
families = "each"

The run must export those blade columns; adding the declaration afterwards requires a new run. With no [phase_locked] table, the reductions of AL-020_plots.csv land as

time_history/AL-020_plots.csv raw, one row per step
reductions/AL-020_phase_locked_PROP.csv three rows, steps 3 to 4, 5 to 6, 7 to 8

each file opening with the run block, and then the plots table's own columns; the exact header of each is on the definition of record, which is the one place it is kept. And products.json names each:

"reductions/AL-020_phase_locked_PROP.csv": {
 "sim_id": "7001", "pproc": "p001", "runs": ["camp/sim_7001/AL-020"],
 "reduction": "phase_locked", "rotor": "PROP", "windows": [[3, 4], [5, 6], [7, 8]],
 "window_from": "the time-average window cut into blade passages",
 "period_steps": 2
}