expreccs.utils.reg_sit_given_decks module
Utiliy script for creating a deck with projected pressures from given regional and site decks.
- expreccs.utils.reg_sit_given_decks.check_intersection(dic, ind, gind, i, n)
Check if there are nnc in the regional/site overlapping
- Args:
dic (dict): Global dictionary
ind (int): Index for the closest cell
gind (int): Global cell index in the regional model
i (int): Position of the x, y, or z coords
n (int): Position for the cardinal direction
- Returns:
lines (list): Horizontal and vertical lines in the regional model
- expreccs.utils.reg_sit_given_decks.check_regional_neighbours(dic, gind, p, n, d_z)
Add to the interpolator neighbouring regional cells
- Args:
dic (dict): Global dictionary
gind (int): Global cell index
p (str): Cardinal direction
n (int): Side number
d_z (float): Thickness regional cell
- Returns:
dic (dict): Modified global dictionary
- expreccs.utils.reg_sit_given_decks.create_deck(dic)
Create a deck from given reg and site decks with projected pressures
- Args:
dic (dict): Global dictionary
- Returns:
dic (dict): Modified global dictionary
- expreccs.utils.reg_sit_given_decks.dynamic_interpolator(dic)
Project the pressures from the regional to the site over time
- Args:
dic (dict): Global dictionary
- Returns:
dic (dict): Modified global dictionary
- expreccs.utils.reg_sit_given_decks.extract_site_borders(dic)
Get the index/coord from the site border
- Args:
dic (dict): Global dictionary
- Returns:
dic (dict): Modified global dictionary
- expreccs.utils.reg_sit_given_decks.find_ij_orientation(dic)
Find if the counting is left/right handed
- Args:
dic (dict): Global dictionary
- Returns:
dic (dict): Modified global dictionary
- expreccs.utils.reg_sit_given_decks.find_regional_cells(dic)
Find the cells to build the interpolator
- Args:
dic (dict): Global dictionary
- Returns:
dic (dict): Modified global dictionary
- expreccs.utils.reg_sit_given_decks.get_bccon(dic, boundary, dire)
Process the regional and site grid coordinates
- Args:
dic (dict): Global dictionary
boundary (list): Modified global dictionary
dire (list): Direction of the bc connection
- Returns:
coords (list): xy coordinates of the site boundaries
dic (dict): Modify global dictionary
- expreccs.utils.reg_sit_given_decks.get_xymaps(dic, coords)
Process the spatial maps of the boundary cells
- Args:
dic (dict): Global dictionary
coords (list): xy coordinates of the site boundaries
- Returns:
x (array): x coordinates of the site boundaries
y (array): y coordinates of the site boundaries
z (array): z coordinates of the site boundaries
inds (list): Active indices of the boundaries
fipr (arrays): Number of fipnum
offset (list): Offset fot the hydrostaic pressure
- expreccs.utils.reg_sit_given_decks.handle_grid_coord(dic)
Process the regional and site grid coordinates
- Args:
dic (dict): Global dictionary
- Returns:
dic (dict): Modified global dictionary
- expreccs.utils.reg_sit_given_decks.project_pressures(dic, i)
Project the pressures at restart number i
- Args:
dic (dict): Global dictionary
i (int): Index of report step in the site
- Returns:
dic (dict): Modified global dictionary
- expreccs.utils.reg_sit_given_decks.site_contour(grid, start)
Process the site contour
- Args:
grid (array): Binary map of the active cells in the grid
start (array): Initial coordinates in the conrour
- Returns:
boundary (list): Modified global dictionary
dir (list): Direction of the bc connection
- expreccs.utils.reg_sit_given_decks.temporal_interpolation(dic)
Function to interpolate BC pressure values in time
- Args:
dic (dict): Global dictionary
- Returns:
dic (dict): Modified global dictionary
- expreccs.utils.reg_sit_given_decks.write_files(dic)
Write the files with the projected pressures
- Args:
dic (dict): Global dictionary
- Returns:
dic (dict): Modified global dictionary