pofff.utils.writefile module
Utility functions to write OPM/pofff files and variables.
- pofff.utils.writefile.compact_format(values: list) list
Encode values using Eclipse-style n*value compaction. Uses NumPy for efficient run-length encoding.
- pofff.utils.writefile.create_corner_point_grid(cfg: PofffConfig, xcoord: ndarray[tuple[Any, ...], dtype[_ScalarT]], zcoord: ndarray[tuple[Any, ...], dtype[_ScalarT]]) None
Write COORD and ZCORN sections for a corner-point grid. Output is bit-identical to the original implementation.
- pofff.utils.writefile.render_bcprop(cfg: PofffConfig) None
Generate bcprop.py
- pofff.utils.writefile.render_copyd(cfg: PofffConfig) None
Generate copyd.py
- pofff.utils.writefile.render_equalreg(cfg: PofffConfig) None
Generate equalreg.py
- pofff.utils.writefile.render_ert(cfg: PofffConfig) None
Generate ert.txt
- pofff.utils.writefile.render_everest(cfg: PofffConfig) None
Generate everest.yml
- pofff.utils.writefile.render_flow(cfg: PofffConfig) None
Generate flow.py
- pofff.utils.writefile.render_monotonic(cfg: PofffConfig) None
Generate monotonic.py
- pofff.utils.writefile.render_satufunc(cfg: PofffConfig) None
Generate satufunc.py
- pofff.utils.writefile.render_scale(cfg: PofffConfig) None
Generate scale.py
- pofff.utils.writefile.write_files(cfg: PofffConfig) None
Generate all OPM, ERT, and Everest files using mako templates.
- pofff.utils.writefile.write_keywords(cfg: PofffConfig) None
Write OPM keyword include files (FIPNUM, FLUXNUM, DX, DZ, etc.).