Commands¶
This page lists every command and option of the two programs. cfd-matrix
acts on a matrix: it plans it, runs it, follows how each simulation ended
(status) and collects its results (collect, post). cfd-workspace acts on
what the workspace holds: it creates the workspace and reads, corrects and
manages its records, storage and logs. Both work the same way for every solver,
because they read the workspace and its records, never the solver.
cfd-workspace init campaign --solver NAME
cd campaign
cfd-matrix plan polar
cfd-matrix run polar
cfd-matrix status
cfd-matrix collect polar
NAME is one of the solvers that cfd-workspace init --help lists. polar is
the matrix inputs/matrices/polar.fs. Every command works on the current
folder; --workspace PATH names another one. The workflow
explains what each stage reads and writes. cfd-workspace setups lists the
ready setup files a solver ships and writes one into inputs/setups/ for you
to edit; a solver that ships none says so.
Rules that hold for every command¶
- The commands that correct records or manage storage preview first. Each
prints what it would do and changes nothing until you repeat it with
--apply. The one exception iscfd-workspace archive, which acts at once. - Nothing is overwritten. Before a record or a point folder is replaced,
the old one is moved to
archive/<stamp>/. -
Exit code 0 means done, 2 means refused or failed. A refusal names what is at fault and writes nothing.
collectandpostalso return 1 when a point failed and 3 when submitted work is still outstanding, anddiffreturns 1 when the two runs differ. -
A skipped entry warns and exits 0, unless you ask for a refusal. An entry that does not apply to a row, a key a solver does not read or a log line that cannot be read is skipped with a warning.
--warning-refusals, placed before the command name, orwarning_refusals = trueininit.toml, makes the first such skip a refusal with exit code 2. - A verb typed on the wrong program is refused by name.
cfd-matrix show 1001exits 2 and prints the command to type:cfd-workspace show 1001.
What the console shows¶
Every command writes its progress and its closing signature on standard error and its result on standard output, so a program that reads a result is not disturbed by the progress lines.
- Opening block. Each
cfd-matrixcommand starts with its name, thenpurpose:,workspace:and, forrun,collectandpost,live log:(the filelogs/<command>-<stamp>.log, which receives every line the console shows). run. After[run] started: <workspace>, a banner names the campaign and the number of points to run (it is left out when nothing will run). Each point has a line when it starts,-> <point> [<run type>] building and running (1 of 2), and a line when it ends with its status word and, for a failure, its error. A table counts the points by status and gives the time, onerow <POL>: ...line per matrix row says whether every planned point has a record, and[run] finished; outcomes={...}closes the stage ([run] failedwhen the run did not succeed). A point handed to a scheduler readsbuilding and submitting.- Standard output.
planprints the proposed work,collectandpostthe files they wrote and the linecollected <a>, failed <b>, outstanding <c>(post read ...forpost), andrunthe linesubmitted; extraction pending collectafter a submission. Nothing else is printed there byrun. - Warnings are held and printed together at the end under
Warnings (<count>). - Signature. Every invocation, of every program, ends with a drawing in a box on
standard error: one drawn for a success, a successful
postorcollect, a failure or a cancellation, or one short line for--help. It never changes the exit code or the standard output. --log-level quiethides the opening block and the progress lines and keeps the errors, the final summary line and the signature;--verboseadds details.
Choosing part of a matrix¶
plan, run, collect and post take --sims and --points to work on part
of a matrix without editing it:
cfd-matrix run polar --sims 1001 1002
cfd-matrix run polar --points 1001/DP-M200AL+020
--sims takes POL values, separated by spaces or commas. --points takes a
point name, with or without its POL/ prefix. A name the matrix does not carry
is refused before anything runs.
Output for a program¶
The commands of the Follow stage print tables for a reader. Add --json or
--csv to get the same rows for a program.
The sections below are written from the programs themselves, so they hold
exactly the arguments and options that --help prints.
Options before the command name¶
These go between the program name and the command, for example
cfd-matrix --warning-off run polar; --warning-refusals works the same way.
| Option | Meaning |
|---|---|
cfd-workspace --warning-off |
Hide console warnings; they are kept in logs/warnings.log |
cfd-workspace --warning-refusals |
Refuse every entry that is otherwise skipped with a warning, exit 2 (init.toml: warning_refusals = true) |
cfd-matrix --warning-off |
Hide console warnings; they are kept in logs/warnings.log |
cfd-matrix --warning-refusals |
Refuse every entry that is otherwise skipped with a warning, exit 2 (init.toml: warning_refusals = true) |
Create¶
cfd-workspace init¶
Create the full campaign tree (inputs library, sims, post, archive).
cfd-workspace init [ROOT] [options]
| Argument or option | Meaning |
|---|---|
[ROOT] |
Campaign root to create or complete (default: the current directory) |
--workspace WORKSPACE |
Campaign workspace (default: the current directory); the positional root names the same folder |
--solver NAME |
Solver for this workspace, one of: cfdpp, flightstream, mock, openfoam, pyfr, qprop, su2, xfoil |
--verbose |
Print details too; the same as --log-level verbose |
--log-level {quiet,normal,verbose} |
Console verbosity: quiet prints errors and the final summary, normal adds progress and per-point lines (default), verbose adds details |
cfd-workspace setups¶
Writes the next free inputs/setups/s<id>.toml from a named template of the workspace's solver and overwrites nothing. Without --template, or with --list, it lists the templates.
cfd-workspace setups [options]
| Argument or option | Meaning |
|---|---|
--template NAME |
Write inputs/setups/s<ID>.toml from this template of the workspace's solver |
--list |
Print the templates of the workspace's solver with their descriptions (the same as no option) |
--id ID |
The setup id to write, three digits (default: the next free one); an existing file is refused |
--workspace WORKSPACE |
Campaign workspace (default: the current directory) |
--verbose |
Print details too; the same as --log-level verbose |
--log-level {quiet,normal,verbose} |
Console verbosity: quiet prints errors and the final summary, normal adds progress and per-point lines (default), verbose adds details |
Plan¶
cfd-matrix plan¶
Print proposed work and write the plan receipt post/<matrix>/plan.json.
cfd-matrix plan MATRIX [options]
| Argument or option | Meaning |
|---|---|
MATRIX |
Matrix name in inputs/matrices/ (.fs is optional) |
--workspace WORKSPACE |
Campaign workspace (default: the current directory) |
--rehash-inputs |
Read every input again instead of trusting the digest cache of large files (.input-digests.cache); without it a file is read again when its file identity, size or timestamps changed, so a file rewritten with the same size and timestamps goes unnoticed. On a FlightStream workspace the option is ignored with a warning |
--no-read-large-inputs |
Do not open any input larger than 8 MiB (a mesh): record its size and modification time instead of its SHA-256, check it by those two, and skip with a warning the checks that need its contents; the same as large_input_check = "identity" in init.toml or CFDBENDER_NO_READ_LARGE_INPUTS=1; a mesh changed in place or replaced by a different file with the same size and modification time goes unnoticed; ignored with a warning on the FlightStream route |
--warning-refusals |
Refuse warnings, including unused cluster values |
--sims POL [POL ...] |
Only these simulations, by POL, space or comma separated (--sims 1001 1002 or --sims 1001,1002); an id the matrix lacks is refused |
--points NAME [NAME ...] |
Only these points, named DP-name or POL/DP-name, within --sims when given; a name no point carries is refused |
--hpc NAME |
The HPC profile inputs/hpc/<NAME>.toml to use when the workspace holds several |
--local |
Keep work on THIS machine instead of submitting it |
--batch N |
Submit the rows as N scheduler jobs, rows split across them in matrix order; cfdbender writes the shell script each job runs, one run after another with no warm start. Needs an HPC profile; not with --local |
--batch-per-polar |
Submit one scheduler job per polar (a matrix row, POL): its points run one after another inside the job in sweep order, with the row's NCPUS and the sum of its points' WALLTIME (capped by the profile's max_walltime, with its warning). Needs an HPC profile; not with --local, --resume, --restart or --force-rerun; a selection (--sims, --points) plans only the polars it touches |
--verbose |
Print details too; the same as --log-level verbose |
--log-level {quiet,normal,verbose} |
Console verbosity: quiet prints errors and the final summary, normal adds progress and per-point lines (default), verbose adds details |
Run¶
cfd-matrix run¶
Run every active point; on this machine a row's SOLVER_BUILD picks its executable from inputs/executables.toml and executables.local.toml.
cfd-matrix run MATRIX [options]
| Argument or option | Meaning |
|---|---|
MATRIX |
Matrix name in inputs/matrices/ (.fs is optional) |
--workspace WORKSPACE |
Campaign workspace (default: the current directory) |
--rehash-inputs |
Read every input again instead of trusting the digest cache of large files (.input-digests.cache); without it a file is read again when its file identity, size or timestamps changed, so a file rewritten with the same size and timestamps goes unnoticed. On a FlightStream workspace the option is ignored with a warning |
--no-read-large-inputs |
Do not open any input larger than 8 MiB (a mesh): record its size and modification time instead of its SHA-256, check it by those two, and skip with a warning the checks that need its contents; the same as large_input_check = "identity" in init.toml or CFDBENDER_NO_READ_LARGE_INPUTS=1; a mesh changed in place or replaced by a different file with the same size and modification time goes unnoticed; ignored with a warning on the FlightStream route |
--restart |
Continue every selected point from its own last solution, archiving its previous run first |
--continue |
Continue every selected time-accurate point in place from its latest restart files, after its REVOLUTIONS (or TIME_ITERATIONS) grew in the matrix row, or after its job ended early and collect recorded it failed (collect --ended for a job that wrote no history); the earlier run's configuration, history and logs move to continued/<n>/ in the point folder and its record joins the runs.json history |
--one-run-at-a-time |
Reserve this machine for one guarded local run at a time |
--resume |
Skip points already recorded COMPLETED or SUBMITTED and run the rest, so a grown matrix runs only its new points; a RUNNING point is skipped because its process may still be alive. Without it a recorded point refuses the run |
--force-rerun POINT |
Redo this recorded point, named POL/DP-name or DP-name; repeat for several. runs.json is copied to archive/<stamp>/runs.json, the point folder moves to archive/<stamp>/ and its record joins the runs.json history; nothing is deleted |
--force-rerun-all |
Run every selected point again whatever its recorded state, a SUBMITTED or RUNNING one included; recorded points are archived as --force-rerun archives, and a job of an earlier submission is not canceled (a warning says so), cancel it in the scheduler. Still refused: invalid inputs or rows, a point folder or output with no record, and under --batch a grouping that differs from the plan in more than the batch folder numbers |
--warning-refusals |
Refuse warnings, including unused cluster values |
--sims POL [POL ...] |
Only these simulations, by POL, space or comma separated (--sims 1001 1002 or --sims 1001,1002); an id the matrix lacks is refused |
--points NAME [NAME ...] |
Only these points, named DP-name or POL/DP-name, within --sims when given; a name no point carries is refused |
--hpc NAME |
The HPC profile inputs/hpc/<NAME>.toml to use when the workspace holds several |
--local |
Keep work on THIS machine instead of submitting it |
--batch N |
Submit the rows as N scheduler jobs, rows split across them in matrix order; cfdbender writes the shell script each job runs, one run after another with no warm start. Needs an HPC profile; not with --local |
--batch-per-polar |
Submit one scheduler job per polar (a matrix row, POL): its points run one after another inside the job in sweep order, with the row's NCPUS and the sum of its points' WALLTIME (capped by the profile's max_walltime, with its warning). Needs an HPC profile; not with --local, --resume, --restart or --force-rerun; a selection (--sims, --points) plans only the polars it touches |
--no-local |
The opposite of --local: submit when a profile exists (the default) |
--verbose |
Print details too; the same as --log-level verbose |
--log-level {quiet,normal,verbose} |
Console verbosity: quiet prints errors and the final summary, normal adds progress and per-point lines (default), verbose adds details |
Follow¶
cfd-matrix status¶
Reads the run records, the plans and the posts, and changes no file: no record, log or lock is written. A polar whose datapoints share one status shows that word; a mixed polar shows the count of each. A point a plan names and no record carries is shown as planned, in lower case because no recorded status is written so.
cfd-matrix status [options]
| Argument or option | Meaning |
|---|---|
--sims POL [POL ...] |
Only these simulations, by POL, space or comma separated, with or without brackets: 1001,1002 or [1001,1002] |
--matrix STEM |
Only the polars of this matrix, by its stem (found in the workspace root or inputs/matrices/) |
--status WORD |
Only the polars with a datapoint in this status or verdict, as shown (repeatable; a trailing * matches every word it begins, for example FAILED_*) |
--failed |
Only the polars with at least one failed datapoint |
--points |
One row per datapoint instead of one per polar |
--workspace WORKSPACE |
Campaign workspace (default: the current directory) |
--runs NAME |
Another run manifest in the workspace root (default: runs.json) |
--json |
Print a JSON document of the rows |
--csv |
Print CSV; nested cells are JSON |
--verbose |
Print details too; the same as --log-level verbose |
--log-level {quiet,normal,verbose} |
Console verbosity: quiet prints errors and the final summary, normal adds progress and per-point lines (default), verbose adds details |
cfd-workspace show¶
Print one sim, point or run record in full.
cfd-workspace show TARGET [options]
| Argument or option | Meaning |
|---|---|
TARGET |
A sim (POL), a point id (POL/DP-name) or a run id |
--point POINT |
Only the run of this point name within the target |
--workspace WORKSPACE |
Campaign workspace (default: the current directory) |
--runs NAME |
Another run manifest in the workspace root (default: runs.json) |
--json |
Print a JSON document of the rows |
--csv |
Print CSV; nested cells are JSON |
--verbose |
Print details too; the same as --log-level verbose |
--log-level {quiet,normal,verbose} |
Console verbosity: quiet prints errors and the final summary, normal adds progress and per-point lines (default), verbose adds details |
cfd-workspace history¶
Print the history of a sim or point: reruns, archives and deletions.
cfd-workspace history TARGET [options]
| Argument or option | Meaning |
|---|---|
TARGET |
A sim (POL) or a point id (POL/DP-name) |
--workspace WORKSPACE |
Campaign workspace (default: the current directory) |
--runs NAME |
Another run manifest in the workspace root (default: runs.json) |
--json |
Print a JSON document of the rows |
--csv |
Print CSV; nested cells are JSON |
--verbose |
Print details too; the same as --log-level verbose |
--log-level {quiet,normal,verbose} |
Console verbosity: quiet prints errors and the final summary, normal adds progress and per-point lines (default), verbose adds details |
cfd-workspace log¶
List the recorded events of runs, storage calls or a post log.
cfd-workspace log [options]
| Argument or option | Meaning |
|---|---|
--post MATRIX |
The saved post log of a matrix |
--storage |
List the recorded storage calls |
--sims POL [POL ...] |
Only these simulations, by POL, space or comma separated (--sims 1001 1002 or --sims 1001,1002); an id the matrix lacks is refused |
--run RUN |
Only events naming this run id |
--stage STAGE |
Only this stage (storage: command) |
--since SINCE |
Events since an ISO time or duration, such as 2h or 7d |
--problems |
Only problems and failed outcomes |
--open |
Runs started without a finish in the records; never asks a scheduler |
--workspace WORKSPACE |
Campaign workspace (default: the current directory) |
--runs NAME |
Another run manifest in the workspace root (default: runs.json) |
--json |
Print a JSON document of the rows |
--csv |
Print CSV; nested cells are JSON |
--verbose |
Print details too; the same as --log-level verbose |
--log-level {quiet,normal,verbose} |
Console verbosity: quiet prints errors and the final summary, normal adds progress and per-point lines (default), verbose adds details |
cfd-workspace trace¶
Follow a product file to the run, inputs and hashes that made it.
cfd-workspace trace PRODUCT [options]
| Argument or option | Meaning |
|---|---|
PRODUCT |
A product path in the workspace, such as post/<matrix>/... |
--run RUN |
Trace this run id instead of looking the product up |
--workspace WORKSPACE |
Campaign workspace (default: the current directory) |
--runs NAME |
Another run manifest in the workspace root (default: runs.json) |
--json |
Print a JSON document of the rows |
--csv |
Print CSV; nested cells are JSON |
--verbose |
Print details too; the same as --log-level verbose |
--log-level {quiet,normal,verbose} |
Console verbosity: quiet prints errors and the final summary, normal adds progress and per-point lines (default), verbose adds details |
cfd-workspace diff¶
Compare two runs field by field; exit 1 when they differ.
cfd-workspace diff RUN_A RUN_B [options]
| Argument or option | Meaning |
|---|---|
RUN_A |
A run id (see history) |
RUN_B |
A run id (see history) |
--workspace WORKSPACE |
Campaign workspace (default: the current directory) |
--runs NAME |
Another run manifest in the workspace root (default: runs.json) |
--json |
Print a JSON document of the rows |
--csv |
Print CSV; nested cells are JSON |
--verbose |
Print details too; the same as --log-level verbose |
--log-level {quiet,normal,verbose} |
Console verbosity: quiet prints errors and the final summary, normal adds progress and per-point lines (default), verbose adds details |
Collect and post¶
cfd-matrix collect¶
Read saved results and rebuild post/<matrix>/campaign_summary.json, the polar files polars/FAM-<KIND>-P<POL>.csv and P<POL>-<GROUP>-<KIND>.csv.
cfd-matrix collect [MATRIX] [options]
| Argument or option | Meaning |
|---|---|
[MATRIX] |
Recorded matrix name (default: all) |
--workspace WORKSPACE |
Campaign workspace (default: the current directory) |
--rehash-inputs |
Read every input again instead of trusting the digest cache of large files (.input-digests.cache); without it a file is read again when its file identity, size or timestamps changed, so a file rewritten with the same size and timestamps goes unnoticed. On a FlightStream workspace the option is ignored with a warning |
--no-read-large-inputs |
Do not open any input larger than 8 MiB (a mesh): record its size and modification time instead of its SHA-256, check it by those two, and skip with a warning the checks that need its contents; the same as large_input_check = "identity" in init.toml or CFDBENDER_NO_READ_LARGE_INPUTS=1; a mesh changed in place or replaced by a different file with the same size and modification time goes unnoticed; ignored with a warning on the FlightStream route |
--overwrite |
Replace a product or table file that the manifest does not record (edited by hand or left by another tool) and go on through every point; without it such a file stops the command, which names the file |
--new-pproc |
Accept a PPROC file that differs from the planned one, so a new grouping of the products (an edited [plots] table) needs no new plan and no new run |
--sims POL [POL ...] |
Only these simulations, by POL, space or comma separated (--sims 1001 1002 or --sims 1001,1002); an id the matrix lacks is refused |
--points NAME [NAME ...] |
Only these points, named DP-name or POL/DP-name, within --sims when given; a name no point carries is refused |
--hpc NAME |
The HPC profile inputs/hpc/<NAME>.toml to use when the workspace holds several |
--local |
==SUPPRESS== |
--verbose |
Print details too; the same as --log-level verbose |
--log-level {quiet,normal,verbose} |
Console verbosity: quiet prints errors and the final summary, normal adds progress and per-point lines (default), verbose adds details |
--runs NAME |
Another run manifest in the workspace root (default: runs.json) |
--archive |
Keep a copy of each replaced summary, table and polar under archive/<stamp>/; without it they are overwritten in place |
--watch |
Keep sweeping until no submitted point is outstanding, instead of once |
--interval INTERVAL |
Seconds between the two observations that decide an output is settled (size and modification time stable); without it or --watch no settle check is made |
--watch-interval WATCH_INTERVAL |
Seconds between sweeps under --watch (default: 60) |
--ended POINT [POINT ...] |
Declare these SUBMITTED points (POL/DP-name) as points whose cluster job ended without job.exit (killed by its walltime, cancelled): each is sealed COMPLETED with a failed classification, its files kept, so run --continue (from its latest restart pair) or run --force-rerun can follow. Refused for a point that is not SUBMITTED or that holds a job.exit (provisional name) |
--rounds ROUNDS |
Stop a watch after this many sweeps, whatever is still outstanding |
cfd-matrix post¶
Rebuild every product under post/<matrix>/ from runs.json and the saved outputs, without running anything.
cfd-matrix post [MATRIX] [options]
| Argument or option | Meaning |
|---|---|
[MATRIX] |
Recorded matrix name (default: all) |
--workspace WORKSPACE |
Campaign workspace (default: the current directory) |
--sims POL [POL ...] |
Only these simulations, by POL, space or comma separated (--sims 1001 1002 or --sims 1001,1002); an id the matrix lacks is refused |
--points NAME [NAME ...] |
Only these points |
--runs NAME |
Another run manifest in the workspace root (default: runs.json) |
--archive |
Keep a copy of each replaced product under archive/<stamp>/ |
--verbose |
Print details too; the same as --log-level verbose |
--log-level {quiet,normal,verbose} |
Console verbosity: quiet prints errors and the final summary, normal adds progress and per-point lines (default), verbose adds details |
--overwrite |
Replace a product or table file that the manifest does not record (edited by hand or left by another tool) and go on through every point; without it such a file stops the command, which names the file |
--new-pproc |
Accept a PPROC file that differs from the planned one, so a new grouping of the products (an edited [plots] table) needs no new plan and no new run |
Correct the records¶
cfd-workspace mark-failed¶
Mark points FAILED with a reason, whatever they ended in (preview unless --apply).
cfd-workspace mark-failed [options]
| Argument or option | Meaning |
|---|---|
--sims POL [POL ...] |
The simulations to mark, by POL |
--reason REASON |
Why, recorded as given |
--points NAME [NAME ...] |
Only these points of the sims |
--workspace WORKSPACE |
Campaign workspace (default: the current directory) |
--runs NAME |
Another run manifest in the workspace root (default: runs.json) |
--apply |
Change files; without it the command previews and changes nothing |
--verbose |
Print details too; the same as --log-level verbose |
--log-level {quiet,normal,verbose} |
Console verbosity: quiet prints errors and the final summary, normal adds progress and per-point lines (default), verbose adds details |
cfd-workspace mark-converged¶
Record the verdict that completed points converged (preview unless --apply).
cfd-workspace mark-converged [options]
| Argument or option | Meaning |
|---|---|
--sims POL [POL ...] |
The simulations to mark, by POL |
--reason REASON |
Why, recorded as given |
--points NAME [NAME ...] |
Only these points of the sims |
--workspace WORKSPACE |
Campaign workspace (default: the current directory) |
--runs NAME |
Another run manifest in the workspace root (default: runs.json) |
--apply |
Change files; without it the command previews and changes nothing |
--verbose |
Print details too; the same as --log-level verbose |
--log-level {quiet,normal,verbose} |
Console verbosity: quiet prints errors and the final summary, normal adds progress and per-point lines (default), verbose adds details |
cfd-workspace restore¶
Restore archived inputs or results from archive/<stamp> (preview unless --apply).
cfd-workspace restore {runs,storage,products,plan} [options]
| Argument or option | Meaning |
|---|---|
{runs,storage,products,plan} |
The file to restore |
--workspace WORKSPACE |
Campaign workspace (default: the current directory) |
--stamp STAMP |
The archive stamp to restore from (default: the latest) |
--matrix MATRIX |
For products and plan: the matrix whose file to restore |
--apply |
Change files; without it the command previews and changes nothing |
--verbose |
Print details too; the same as --log-level verbose |
--log-level {quiet,normal,verbose} |
Console verbosity: quiet prints errors and the final summary, normal adds progress and per-point lines (default), verbose adds details |
cfd-workspace rebuild¶
Rebuild run records from the sim folders on disk (preview unless --apply).
cfd-workspace rebuild [options]
| Argument or option | Meaning |
|---|---|
--workspace WORKSPACE |
Campaign workspace (default: the current directory) |
--runs NAME |
Another run manifest in the workspace root (default: runs.json) |
--out NAME |
Write the rebuilt records to this manifest in the workspace root |
--all-sims |
Rebuild every sim folder on disk, recorded or not |
--sims POL [POL ...] |
Rebuild these simulations |
--matrix MATRIX |
The matrix the simulations ran from |
--apply |
Change files; without it the command previews and changes nothing |
--verbose |
Print details too; the same as --log-level verbose |
--log-level {quiet,normal,verbose} |
Console verbosity: quiet prints errors and the final summary, normal adds progress and per-point lines (default), verbose adds details |
cfd-workspace archive¶
Moves sims/sim_<sim_id>/ of a recorded simulation into archive/<stamp>/ and moves its records from runs.json to the manifest history, so the simulation can be run again into a clean folder while its evidence stays. Refuses a simulation the manifest does not record. It does not read the status of the runs: do not archive a simulation whose run is still going. It acts at once, with no preview, as pyflightstream's archive does; look first with cfd-matrix status --points --sims <POL>.
cfd-workspace archive [ROOT] SIM_ID [options]
| Argument or option | Meaning |
|---|---|
[ROOT] |
The campaign root, an alias of --workspace |
SIM_ID |
The simulation to archive, as the manifest records it (sims/sim_<sim_id>/) |
--workspace WORKSPACE |
Campaign workspace (default: the current directory) |
--verbose |
Print details too; the same as --log-level verbose |
--log-level {quiet,normal,verbose} |
Console verbosity: quiet prints errors and the final summary, normal adds progress and per-point lines (default), verbose adds details |
Manage storage¶
cfd-workspace space-in-use¶
Report disk space by folder, by sim and by extension.
cfd-workspace space-in-use [options]
| Argument or option | Meaning |
|---|---|
--workspace WORKSPACE |
Campaign workspace (default: the current directory) |
--top TOP |
Rows shown per grouping (default: 15) |
--verbose |
Print details too; the same as --log-level verbose |
--log-level {quiet,normal,verbose} |
Console verbosity: quiet prints errors and the final summary, normal adds progress and per-point lines (default), verbose adds details |
cfd-workspace free-space¶
Run a storage recipe inputs/management/<recipe>.toml (preview unless --apply).
cfd-workspace free-space [RECIPE] [options]
| Argument or option | Meaning |
|---|---|
[RECIPE] |
The recipe id: a file stem in inputs/management/ (with --list alone: list them) |
--workspace WORKSPACE |
Campaign workspace (default: the current directory) |
--apply |
Change files; without it the command previews and changes nothing |
--list |
Print every path a step touches, with its size and what happens to it |
--runs NAME |
Another run manifest in the workspace root (default: runs.json) |
--verbose |
Print details too; the same as --log-level verbose |
--log-level {quiet,normal,verbose} |
Console verbosity: quiet prints errors and the final summary, normal adds progress and per-point lines (default), verbose adds details |
cfd-workspace delete-sims¶
Delete simulations, their folders and their records (preview unless --apply).
cfd-workspace delete-sims [options]
| Argument or option | Meaning |
|---|---|
--sims POL [POL ...] |
The simulations to delete |
--workspace WORKSPACE |
Campaign workspace (default: the current directory) |
--matrix-products {points-only,regenerate} |
What happens to a matrix product that also holds the deleted points |
--force |
Delete a sim whatever the status of its records; without it a SUBMITTED point refuses |
--apply |
Change files; without it the command previews and changes nothing |
--archive |
Keep replaced matrix products when regenerating |
--runs NAME |
Another run manifest in the workspace root (default: runs.json) |
--verbose |
Print details too; the same as --log-level verbose |
--log-level {quiet,normal,verbose} |
Console verbosity: quiet prints errors and the final summary, normal adds progress and per-point lines (default), verbose adds details |
cfd-workspace sync¶
Bring records and results from the workspaces of inputs/sync-workspaces.toml.
cfd-workspace sync {runs,post,all} [options]
| Argument or option | Meaning |
|---|---|
{runs,post,all} |
What to bring; each level adds to the one before |
--workspace WORKSPACE |
Campaign workspace (default: the current directory) |
--from SOURCE |
One workspace name from sync-workspaces.toml (default: every one) |
--apply |
Change files; without it the command previews and changes nothing |
--prefer-other |
On a record conflict, take the other record (levels post and all need --overwrite) |
--overwrite |
On a file conflict, archive main's copy and take the other's |
--restore |
With --apply, remind to rebuild the records of sim folders no record carries |
--include-archives |
Also bring the files under folders named archive |
--runs NAME |
Another run manifest in the workspace root (default: runs.json) |
--verbose |
Print details too; the same as --log-level verbose |
--log-level {quiet,normal,verbose} |
Console verbosity: quiet prints errors and the final summary, normal adds progress and per-point lines (default), verbose adds details |
FlightStream workspaces¶
In a FlightStream workspace the two programs take the commands and options of the FlightStream support instead of the ones above; see FlightStream.