pyopmspe11.utils.writefile module
Utility functions to write necessary files and variables
- pyopmspe11.utils.writefile.compact_format_numeric(v: NDArray) list
Use the ‘*’ notation to reduce size of created files
- pyopmspe11.utils.writefile.create_corner_point_grid(cfg: Config, xcoord: NDArray, ycoord: NDArray, zcoord: NDArray) 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) NDArray
Keep only 8 significant digits to reduce size of created files
- pyopmspe11.utils.writefile.write_keyword(cfg: Config, name: str, values: NDArray) 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, fluxnum: NDArray, xmx: NDArray, zmz: NDArray | None = None, porv: list | None = None) None
Write used keywords for OPM Flow