expreccs.core.expreccs module
Command-line entry point and top-level workflow coordination for expreccs.
expreccs creates and runs reference, regional, and site-scale OPM Flow models
for hierarchical CO2 storage studies. It can also project boundary data between
existing regional and site decks, perform iterative back-coupling, and generate
comparison figures.
This module parses and validates command-line arguments, initializes the shared
runtime configuration, dispatches the selected modeling workflow, and reports
generated outputs. Grid mapping, deck writing, simulation execution, result
processing, and plotting are delegated to utility and visualization modules.
-
main(argv=None)[source]
Run the expreccs command-line workflow.
- Parameters:
- argvlist[str] | None, optional
Arguments to parse instead of sys.argv[1:].
- Parameters:
argv (list[str] | None)
- Return type:
None
-
parse_args(argv=None)[source]
Create the CLI parser and parse expreccs arguments.
- Parameters:
- argvlist[str] | None, optional
Arguments to parse instead of sys.argv[1:].
- Parameters:
argv (list[str] | None)
- Return type:
Namespace
-
check_cmdargs(cmdargs)[source]
Validate command-line values and incompatible operations.
- Parameters:
- cmdargsargparse.Namespace
Parsed command-line arguments.
- Raises:
- SystemExit
If an input value is invalid or required input cannot be used.
- Parameters:
cmdargs (Namespace)
- Return type:
None