expreccs.utils.writefile module
Utiliy functions for necessary files and variables to run OPM Flow.
- expreccs.utils.writefile.compact_format(values)
Use the ‘n*x’ notation to write repited values to save storage
- Args:
values (list): List with the variable values
- Returns:
values (list): List with the compacted variable values
- expreccs.utils.writefile.write_files(dic, reservoir, iteration=0)
Function to write opm-related reference files by running mako templates
- Args:
dic (dict): Global dictionary
reservoir (str): Name of the geological model
- Returns:
None
- expreccs.utils.writefile.write_folders(dic)
Function to make the output folders
- Args:
dic (dict): Global dictionary
- Returns:
None
- expreccs.utils.writefile.write_grid(dic, name, reservoir)
Write the corner-point grid
- Args:
dic (dict): Global dictionary
name (str): Name of the case
reservoir (str): Name without bc prefix
- Returns:
None
- expreccs.utils.writefile.write_properties(dic)
Write some numpy files used in the plotting routine
- Args:
dic (dict): Global dictionary
- Returns:
dic (dict): Modified global dictionary