pycopm.utils.generate_files module
Create modified (coarser, finner, submodels, transformations) OPM files.
- pycopm.utils.generate_files.bool_mult(dic, nrwo, mults)
Set to True if the keyword is found
- Args:
dic (dict): Global dictionary
nrwo (str): Entry of the deck
mults (list): Name of MULT* keywords
- Returns:
dic (dict): Modified global dictionary
- pycopm.utils.generate_files.check_mult(dic, mults)
Check for MULT* to avoid writing them if only MULTFLT is used. We look at most for three levels of INCLUDE
- Args:
dic (dict): Global dictionary
mults (list): Name of MULT* keywords
- Returns:
dic (dict): Modified global dictionary
- pycopm.utils.generate_files.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
- pycopm.utils.generate_files.compact_perm(dic, names)
Use COPY and MULTIPLY is PERMY and PERMZ can be generated from PERMX
- Args:
dic (dict): Global dictionary
names (list): Properties to write the .INC
- Returns:
names (list): Modified properties to write the .INC
- pycopm.utils.generate_files.create_deck(dic)
Main script to call the diffeent methods to generate the opm files
- Args:
dic (dict): Global dictionary
- Returns:
dic (dict): Modified global dictionary
- pycopm.utils.generate_files.handle_nnc_trans(dic)
Map the trans from the non-neighbouring connections
- Args:
dic (dict): Global dictionary
- Returns:
dic (dict): Modified global dictionary
- pycopm.utils.generate_files.initialize_variables(dic)
Use opm to read the dry run
- Args:
dic (dict): Global dictionary
- Returns:
dic (dict): Modified global dictionary
- pycopm.utils.generate_files.search_file(dic, path, mults)
Check the file for the keywords
- Args:
dic (dict): Global dictionary
path (str): Path to the file
mults (list): Name of MULT* keywords
- Returns:
dic (dict): Modified global dictionary
- pycopm.utils.generate_files.write_grid(dic, dual)
Write the corner-point grid
- Args:
dic (dict): Global dictionary
- Returns:
None
- pycopm.utils.generate_files.write_props(dic, n)
Write the modified properties
- Args:
dic (dict): Global dictionary
- Returns:
None