pyopmspe11.utils.mapproperties module
Utiliy function for the grid and locations in the geological models.
- pyopmspe11.utils.mapproperties.add_pv_fipnum_front_back(dic)
Add the buffer pore volume and bc labels also on the front and back boundaries.
- Args:
dic (dict): Global dictionary
- Returns:
dic (dict): Modified global dictionary
- pyopmspe11.utils.mapproperties.boxes(dic, x_c, z_c, idx, satnum)
Find the global indices for the different boxes for the report data
- Args:
dic (dict): Global dictionary
x_c (float): x-position of the cell center
z_c (float): z-position of the cell center
idx (int): i index of the cell position
satnum (int): Number of the facie in the cell
- Returns:
dic (dict): Modified global dictionary
- pyopmspe11.utils.mapproperties.check_facie1(dic, satnum, numa, numb)
Handle the overlaping with facie 1
- Args:
dic (dict): Global dictionary
satnum (int): Number of the facie in the cell
numa (int): Fipnum to assign to the cell if it overlaps with Facie 1
numb (int): Fipnum to assign to the cell otherwise.
- Returns:
dic (dict): Modified global dictionary
- pyopmspe11.utils.mapproperties.corner(dic)
Create a SPE11 corner-point grid
- Args:
dic (dict): Global dictionary
- Returns:
dic (dict): Modified global dictionary
- pyopmspe11.utils.mapproperties.corner_point_handling_spe11a(dic)
Locate the geological positions in the corner-point grid for the spe11a
- Args:
dic (dict): Global dictionary
- Returns:
dic (dict): Modified global dictionary
- pyopmspe11.utils.mapproperties.corner_point_handling_spe11bc(dic)
Locate the geological positions in the corner-point grid for the spe11b/c
- Args:
dic (dict): Global dictionary
- Returns:
dic (dict): Modified global dictionary
- pyopmspe11.utils.mapproperties.get_cell_info(dic, i)
Get the cell center coordinate and ijk from the simulation cell
- Args:
dic (dict): Global dictionary
i (int): Global cell index
- Returns:
dic (dict): Modified global dictionary
- pyopmspe11.utils.mapproperties.get_lines(dic)
Read the points in the z-surface lines
- Args:
dic (dict): Global dictionary
- Returns:
lines (list): List with the coordinates of the geological lines
- pyopmspe11.utils.mapproperties.getfacies(dic)
Function to read the reference Gmsh file
- Args:
dic (dict): Global dictionary
- Returns:
dic (dict): Modified global dictionary
- pyopmspe11.utils.mapproperties.grid(dic)
Handle the different grid types (Cartesian, tensor, and corner-point grids)
- Args:
dic (dict): Global dictionary
- Returns:
dic (dict): Modified global dictionary
- pyopmspe11.utils.mapproperties.locate_wells_sensors(dic)
Find the wells/sources and sensors ijk positions
- Args:
dic (dict): Global dictionary
- Returns:
dic (dict): Modified global dictionary
- pyopmspe11.utils.mapproperties.map_z(dic, j)
Function to return the z position of the parabola for the wells
- Args:
dic (dict): Global dictionary
j : Cell id along the y axis
- Returns:
z: Position dic (dict): Global dictionary
- pyopmspe11.utils.mapproperties.positions(dic)
Function to locate sand and well positions
- Args:
dic (dict): Global dictionary
- Returns:
dic (dict): Modified global dictionary
- pyopmspe11.utils.mapproperties.refinement_z(xci, zci, ncx, ncz, znr)
Refinment of the grid in the z-dir
- Args:
xci (list): Floats with the x-coordinates of the cell corners
zci (list): Floats with the z-coordinates of the cell corners
ncx (int): Number of cells in the x-dir
ncz (int): Number of cells in the z-dir
znr (list): Integers with the number of z-refinments per cell
- Returns:
xcr (list): Floats with the new x-coordinates of the cell corners
zcr (list): Floats with the new z-coordinates of the cell corners
ncx (int): New number of cells in the x-dir
ncz (int): New number of cells in the z-dir
- pyopmspe11.utils.mapproperties.sensors(dic)
Find the i,j,k sensor indices
- Args:
dic (dict): Global dictionary
- Returns:
dic (dict): Modified global dictionary
- pyopmspe11.utils.mapproperties.set_back_front_fipnums(dic, ind)
For the front and back boundaries in spe11c:
Box A: Fipnum 13
Satnum 1 and Box A: Fipnum 14
Box B: Fipnum 15
Satnum 1 and Box B: Fipnum 16
Box C: Fipnum 17
Satnum 1 and Box C: Fipnum 18
- Args:
dic (dict): Global dictionary ind (int): ID index for the property
- Returns:
dic (dict): Modified global dictionary
- pyopmspe11.utils.mapproperties.structured_handling_spe11a(dic)
Locate the geological positions in the tensor/cartesian grid for spe11a
- Args:
dic (dict): Global dictionary
- Returns:
dic (dict): Modified global dictionary
- pyopmspe11.utils.mapproperties.structured_handling_spe11bc(dic)
Locate the geological positions in the tensor/cartesian grid for the spe11b/c
- Args:
dic (dict): Global dictionary
- Returns:
dic (dict): Modified global dictionary
- pyopmspe11.utils.mapproperties.wells(dic)
Function to find the wells/sources index
- Args:
dic (dict): Global dictionary
- Returns:
dic (dict): Modified global dictionary