pycopm.utils.input_values module

Utiliy functions to set the requiried input values by pycopm.

pycopm.utils.input_values.assign_hm_parameters(lol, dic, ind)

Function to process the saturation functions

Args:

lol (list): List of lines read from the input file

dic (dict): Global dictionary with required parameters

ind (int): Number of line of the last opm flags in the input file

Returns:

dic (dict): Modified global dictionary

pycopm.utils.input_values.assign_standard_values(lol, dic, inc, num_lin)

Function to process the ert and opm flags

Args:

lol (list): List of lines read from the input file

dic (dict): Global dictionary with required parameters

inc (int): Number of line in input file before the first injection value

num_lin (list): List with the number of opm and ert flags

Returns:

ind (int): Number of line of the last opm flags in the input file

pycopm.utils.input_values.get_number_of_lines(lol, inc)

Function to obtain the number of OPM and ERT flags

Args:

lol (list): List of lines read from the input file

inc (int): Number of line in the input file before the first injection value

Returns:

num_lin (list): List with the number of opm flags, and ert flags

pycopm.utils.input_values.initialize_values(dic)

Function to initialize the dic variables.

Args:

dic (dict): Global dictionary with required parameters

Returns:

dic1 (dict): Local dictionary

pycopm.utils.input_values.process_input(dic, in_file)

Function to process the input file

Args:

dic (dict): Global dictionary with required parameters

in_file (str): Name of the input text file

Returns:

dic (dict): Modified global dictionary

pycopm.utils.input_values.read_reference(dic)

Function to read the cell quantities from the uncoarser simulation output.

Args:

dic (dict): Global dictionary with required parameters

Returns:

dic (dict): Modified global dictionary

pycopm.utils.input_values.read_the_first_part(lol, dic)

Function to process the first 29 lines of the input file

Args:

lol (list): List of lines read from the input file

dic (dict): Global dictionary with required parameters

Returns:

inc (int): Number of line in the input file before the first injection value