pyopmspe11.utils.runs module
Coordinate simulation, data-generation, and plotting operations.
The module runs OPM Flow with the generated deck and converts Config values to
the dictionaries accepted by the data and plotting entry points.
-
run_flow(cfg, flowfol)[source]
Run OPM Flow for the generated simulation deck.
The configured Flow command is combined with the output directory and generated
DATA file before execution.
- Parameters:
- cfgConfig
Initialized runtime configuration.
- flowfolstr
Directory in which OPM Flow writes simulation results.
- Raises:
- subprocess.CalledProcessError
If an invoked process exits with a nonzero status.
- Parameters:
-
- Return type:
None
-
generate_plots(cfg)[source]
Generate figures for the configured benchmark outputs.
- Parameters:
- cfgConfig
Initialized runtime configuration.
- Returns:
- list[str]
Names of the generated figure files.
- Parameters:
cfg (Config)
- Return type:
list[str]
-
generate_benchmark_data(cfg)[source]
Generate benchmark CSV data for the configured simulation.
- Parameters:
- cfgConfig
Initialized runtime configuration.
- Returns:
- list[str]
Names of the generated benchmark CSV files.
- Parameters:
cfg (Config)
- Return type:
list[str]