CLI Usage
The cfd-io command-line tool provides two subcommands:
| Command | Description |
|---|---|
info |
Inspect file metadata without loading data |
convert |
Convert CFD data between file formats |
Note
Options can be placed before or after positional arguments.
info
Show metadata summary for a data file.
| Argument | Description |
|---|---|
PATH |
Path to a data file (.h5, .x, .dat, .plt) |
Examples
convert
Convert CFD data between formats. Format is auto-detected from file extensions.
| Argument / Option | Short | Description |
|---|---|---|
INPUT_PATH |
Input file path | |
--output PATH |
-o |
Output file path (default: output.h5) |
--grid PATH |
-g |
Input grid file (required for split formats) |
--output-grid PATH |
Output grid file (required when writing split formats) | |
--debug |
Enable debug logging | |
--mach FLOAT |
Store Mach number as metadata | |
--re FLOAT |
Store unit Reynolds number as metadata | |
--temp-inf FLOAT |
Store freestream temperature as metadata |
Split formats
Formats like .s8 / .s4 store grid and flow in separate files.
Use --grid to provide the input grid file, and --output-grid
when writing to a split format.