pycopm.utils.grid_builder module

Utiliy functions for the generation of coarse corner-point grids.

pycopm.utils.grid_builder.coarser_grid(dic)

Method to coarse the grid

Args:

dic (dict): Global dictionary

Returns:

dic (dict): Modified global dictionary

pycopm.utils.grid_builder.handle_face_dir_im(dic, cell_index, i, j, k)

Method for the face I- dir

Args:

dic (dict): Global dictionary

cell_index (int): Global index of the cell position

i (int): i index of the cell position

j (int): j index of the cell position

k (int): k index of the cell position

Returns:

dic (dict): Modified global dictionary

pycopm.utils.grid_builder.handle_face_dir_ip(dic, cell_index, i, j, k)

Method for the face I+ dir

Args:

dic (dict): Global dictionary

cell_index (int): Global index of the cell position

i (int): i index of the cell position

j (int): j index of the cell position

k (int): k index of the cell position

Returns:

dic (dict): Modified global dictionary

pycopm.utils.grid_builder.handle_face_dir_jm(dic, cell_index, j)

Method for the face J- dir

Args:

dic (dict): Global dictionary

cell_index (int): Global index of the cell position

j (int): j index of the cell position

Returns:

dic (dict): Modified global dictionary

pycopm.utils.grid_builder.handle_face_dir_jp(dic, cell_index, j)

Method for the face J+ dir

Args:

dic (dict): Global dictionary

cell_index (int): Global index of the cell position

j (int): j index of the cell position

Returns:

dic (dict): Modified global dictionary

pycopm.utils.grid_builder.handle_faults(dic)

Method for the fault i,j,k mapping from reference to coarse positions

Args:

dic (dict): Global dictionary

Returns:

dic (dict): Modified global dictionary