Command Line Interface
flow_state includes a CLI for quick calculations without writing Python code.
Commands
flow-state init
Generate a template configuration file:
flow-state solve
Compute flow state from direct options or a config file.
Direct Options
For quick one-off calculations:
Config File
For reproducible/documented conditions:
See Config Files for the TOML format and Examples for downloadable configs.
Options Reference
| Option | Short | Description |
|---|---|---|
--mach |
-m |
Mach number |
--pres-stag |
Stagnation pressure (default: Pa) | |
--pres-stag-unit |
Pressure unit: Pa, psi, atm, bar | |
--temp-stag |
Stagnation temperature [K] | |
--altitude |
-a |
Altitude (default: m) |
--altitude-unit |
Altitude unit: m, ft, km | |
--atm |
Atmosphere model: ussa76, cira86 | |
--gas |
Gas type: air, n2 | |
--lref |
Reference length [m] | |
--config |
-c |
Config file (TOML) |
--output |
-o |
Output file (JSON) |
--quiet |
-q |
Suppress summary output |
Output
By default, prints a summary to stdout:
Use --output to write JSON, --quiet to suppress the summary.