Task Cookbook
Copy/paste recipes for common operations. The web UI is the primary interface; CLI alternatives are noted where available.
Preparation
Generate cases from a DOE
prepare is a CLI-only step (there is no UI equivalent):
Code
Run this again after adding rows to doe.csv: unchanged cases are kept and
new ones are added.
Important: after adding a column or changing the template, existing cases no
longer match. prepare stops at the first one (Existing case differs from current DOE/template content). Generate into a new folder, or remove those
cases first.
Add new cases to an existing campaign
Add rows to doe.csv, then run prepare again. New rows create new case folders,
while existing unchanged cases are kept.
If prepare reports a conflict on an existing case, either:
- generate into a new output folder, or
- remove the conflicting
RUNS/caseXXXXfolders first, then runprepareagain.
Validate environment before launching
Code
Fix all [FAIL] lines from doctor before proceeding.
Launching
Launch all cases
In the Status panel: Ctrl/Cmd + A → Run → fill in n, nt,
max parallel → Run.
CLI alternative:
Code
Launch specific cases only
In the Status panel: select the target rows → Run.
CLI alternative:
Code
Re-run only failed cases
In the Status panel: filter by FAILED status → select all → Run.
CLI alternative:
Code
Launch on Slurm with many cases
Same UI flow: with use_slurm = true in csauto.toml, each submission goes
through sbatch automatically. Verify with squeue -u "$USER" in the terminal.
CLI alternative:
Code
Monitoring
Open the web UI (local)
Code
serve uses the primary FastAPI server.
Open the web UI (remote server or HPC)
On the server:
Code
On your laptop:
Code
Check run status
In the Status panel: the table refreshes automatically. Sort, filter, or search by case ID, status, or DOE column.
CLI alternative:
Code
Stream a case log in real time
In the Log Tail tab: select the case and file (the solver's main log comes
first: run_solver.log for code_saturne, csauto.stdout for code_aster), set
line count, enable auto-scroll.
CLI alternative:
Code
Inspect residuals
In the Residuals Plot tab: select the Cases and Variables, and choose Start from. The plot updates by itself (Refresh when auto-refresh is off); Download as PNG saves it.
CLI alternative (export to CSV + SVG):
Code
Inspect performance metrics
In the Timing Snapshot tab: every case with a timing log is listed. Narrow the list with Cases, export it with Download as CSV.
CLI alternative:
Code
Scan for errors after a failure
In the Recent Errors tab: select the case in Cases and a Severity (All, Error, Warn, Info). The list updates by itself (Refresh when auto-refresh is off).
Restart
Restart from checkpoint
Restart is available for code_saturne. In the Status panel:
- Select the case(s) to restart
- Click Restart
- Choose the Mode, how far to go:
- Additional iterations, then the number of iterations
- Additional physical time, then the time in seconds
- With one case selected, Restart from picks the run to restart from (default: Latest run, the newest run with a checkpoint). With several cases, each one restarts from its own latest run.
- Click Restart in the popup
Through the API, restart_path picks the run the same way (for example
"restart_path": "20260308-1413").
API alternative:
Code
Steer a running case without killing it
A code_saturne case about to hit its time step limit doesn't need a kill +
restart round trip. Use csauto control (or the Status panel's Control
menu) instead:
Code
The actions come from the solver; csauto doctor RUNS lists them.
API alternative:
Code
See docs/cli.md for details on each action.
Kill running cases
In the Status panel: select the running cases → Kill. Prefer the
stop control action (above) when you just want the run to wind down cleanly:
Kill discards in-flight work and requires restarting from the last checkpoint.
API alternative:
Code
Cleanup
In the Status panel: select cases → Clean. The popup lets you choose
which runs to keep or delete. Of the results, Clean deletes only the solver's
run folders (each RESU/<run> for code_saturne, RESU itself for code_aster).
It also cuts the solver's logs over 50 MB down to their last 50 MB and removes
.csauto.cid. It skips running and pending cases, and returns a finished case
to PREPARED once all its runs are gone.
CLI alternative (always preview with --dry-run first):
Code
Remove every run (disk space emergency):
Code
Comparing cases
In the Compare panel:
- Pick the First case and the Second case (the arrows button swaps them)
- Pick the File (code_saturne:
setup.xml,doe_row.csv,run_solver.log,performance.log; code_aster: the export file,doe_row.csv)
The DOE values that differ and the side-by-side diff appear at once; type in
the Search box to jump between matching lines. A regex filter is available
through GET /api/compare_runs (filter).
Marking convergence
Right-click a DONE or FAILED row in the Status panel:
- Mark Converged
- Mark Not Converged
- Clear Mark (remove label)
Authentication for remote UI
Code
API call with token:
Code