pofff.utils.writefile module
Utility functions to write OPM/pofff files and variables.
- pofff.utils.writefile.compact_format(values)
Encode values using Eclipse-style n*value compaction. Uses NumPy for efficient run-length encoding.
- pofff.utils.writefile.create_corner_point_grid(cfg, xcoord, zcoord)
Write COORD and ZCORN sections for a corner-point grid. Output is bit-identical to the original implementation.
- pofff.utils.writefile.write_files(cfg)
Generate all OPM, ERT, and Everest files using mako templates.
- pofff.utils.writefile.write_keywords(cfg)
Write OPM keyword include files (FIPNUM, FLUXNUM, DX, DZ, etc.).