pyopmspe11.utils.writefile module
Utility functions to write necessary files and variables
- pyopmspe11.utils.writefile.compact_format_numeric(v: ndarray[tuple[Any, ...], dtype[_ScalarT]]) list
Use the ‘*’ notation to reduce size of created files
- pyopmspe11.utils.writefile.create_corner_point_grid(cfg: Config, xcoord: ndarray[tuple[Any, ...], dtype[_ScalarT]], ycoord: ndarray[tuple[Any, ...], dtype[_ScalarT]], zcoord: ndarray[tuple[Any, ...], dtype[_ScalarT]]) None
Construct COORD and ZCORN
- pyopmspe11.utils.writefile.opm_files(cfg: Config) None
Write opm-related files by running mako templates
- pyopmspe11.utils.writefile.round_like_e(v: ndarray[tuple[Any, ...], dtype[_ScalarT]]) ndarray[tuple[Any, ...], dtype[_ScalarT]]
Keep only 8 significant digits to reduce size of created files
- pyopmspe11.utils.writefile.write_keyword(cfg: Config, name: str, values: ndarray[tuple[Any, ...], dtype[_ScalarT]]) None
Write the given keyword
- pyopmspe11.utils.writefile.write_keyword_pv(cfg: Config, porv: list) None
Write the added pore volume on the boundaries
- pyopmspe11.utils.writefile.write_keywords(cfg: Config, fipnum: ndarray[tuple[Any, ...], dtype[_ScalarT]], fluxnum: ndarray[tuple[Any, ...], dtype[_ScalarT]], xmx: ndarray[tuple[Any, ...], dtype[_ScalarT]], zmz: ndarray[tuple[Any, ...], dtype[_ScalarT]] | None = None, porv: list | None = None) None
Write used keywords for OPM Flow