expreccs.utils.writefile module#
Generate OPM Flow decks, include files, grids, schedules, and output folders.
Mako templates are populated from the shared expreccs configuration. The module also writes compact repeated-value keywords, saturation-function tables, regional multiplier files, derived schedules, and workflow-specific directory structures.
- write_files(dic, reservoir, iteration=0)[source]#
Write projected deck and boundary-condition include files.
- Parameters:
- dicAny
Shared mutable expreccs configuration and runtime data.
- reservoirAny
Reservoir case name.
- iterationAny, optional
Iteration suffix or index.
- write_grid(dic, name, reservoir)[source]#
Write a corner-point grid include file.
- Parameters:
- dicAny
Shared mutable expreccs configuration and runtime data.
- nameAny
Model or folder name.
- reservoirAny
Reservoir case name.
- compact_format(values)[source]#
Compress repeated numeric values using OPM notation.
- Parameters:
- valuesAny
Values.
- Returns:
- list[str]
OPM-formatted value groups.