General options#
Input configuration#
- -i <file>, --input <file>#
Path to the TOML configuration file.
Default:
input.tomlThe value is stripped of leading and trailing whitespace. It must be non-empty and use the
.tomlextension. The extension check is case-insensitive.Examples:
pyopmnearwell -i examples/h2o.toml pyopmnearwell --input examples/co2.toml
Output directory#
- -o <directory>, --output <directory>#
Base output directory for generated deck files and simulation results.
Default:
outputThe value is stripped of leading and trailing whitespace and must be non-empty. pyopmnearwell converts it to an absolute path and creates it when needed.
The internal layout depends on
--mode. Thesinglemode writes generated input and simulation files directly in this directory. Other modes usepreprocessingandoutputsubdirectories where applicable.Examples:
pyopmnearwell -i examples/co2.toml -o co2 pyopmnearwell -i examples/h2o.toml --output test_outputs/h2o
Execution mode#
- -m <mode>, --mode <mode>#
Select which workflow stages to run.
Choices:
deck,flow,single,allDefault:
alldeckGenerate the OPM Flow deck and required include files without running the simulator.
flowRun OPM Flow using the selected configuration and the expected generated input files.
singleGenerate the deck and run OPM Flow with both input and result files in the selected output directory.
allGenerate the deck under
preprocessingand run OPM Flow with results underoutput.
See Execution modes for workflow diagrams, expected directories, and examples.
Cell-result vectors#
- -v <choice>, --vectors <choice>#
Control whether OPM Flow writes cell-result vectors.
Choices:
0,1Default:
11Request cell-result files such as EGRID, INIT, and UNRST.
0Disable those cell-result vectors when they are not needed.
Option summary#
The complete short-form invocation is:
pyopmnearwell -i <file.toml> -o <directory> -m <mode> -v <0-or-1>
The equivalent long-form invocation is:
pyopmnearwell --input <file.toml> --output <directory> --mode <mode> --vectors <0-or-1>