pofff.utils.mapproperties module

Utiliy function for the grid and locations in the geological models.

pofff.utils.mapproperties.boxes(dic, x_c, z_c, fluxnum)

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

fluxnum (int): Number of the facie in the cell

Returns:

dic (dict): Modified global dictionary

pofff.utils.mapproperties.check_facie1(dic, fluxnum, numa, numb)

Handle the overlaping with facie 1

Args:

dic (dict): Global dictionary

fluxnum (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

pofff.utils.mapproperties.corner(dic)

Create a FludFlower corner-point grid

Args:

dic (dict): Global dictionary

Returns:

dic (dict): Modified global dictionary

pofff.utils.mapproperties.corner_point_handling_fluidflower(dic)

Locate the geological positions in the corner-point grid for the fluidflower

Args:

dic (dict): Global dictionary

Returns:

dic (dict): Modified global dictionary

pofff.utils.mapproperties.get_cellmaps(dic)

Write the mapping between simulation and reporting grid

Args:

dic (dict): Global dictionary

Returns:

None

pofff.utils.mapproperties.get_lines(dic)

Read the points in the z-surface lines

Args:

dic (dict): Global dictionary

Returns:

horizonts (list): List with the coordinates of the horizonts

pofff.utils.mapproperties.getpolygons(dic)

Function to create the polygons from the benchmark geo file

Args:

dic (dict): Global dictionary

Returns:

dic (dict): Modified global dictionary

pofff.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

pofff.utils.mapproperties.positions(dic)

Function to locate sand and well positions

Args:

dic (dict): Global dictionary

Returns:

dic (dict): Modified global dictionary

pofff.utils.mapproperties.refinement_z(xci, zci, ncx, ncz, znr)

Refinement 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-refinements 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

pofff.utils.mapproperties.sensors(dic)

Find the i,j,k sensor indices

Args:

dic (dict): Global dictionary

Returns:

dic (dict): Modified global dictionary

pofff.utils.mapproperties.structured_handling_fluidflower(dic)

Locate the geological positions in the tensor/cartesian grid for fluidflower

Args:

dic (dict): Global dictionary

Returns:

dic (dict): Modified global dictionary

pofff.utils.mapproperties.wells(dic)

Function to find the wells/sources index

Args:

dic (dict): Global dictionary

Returns:

dic (dict): Modified global dictionary