pygeon.grids.mortar_grid module
This module contains the MortarGrid class.
- class pygeon.grids.mortar_grid.MortarGrid(*args, **kwargs)[source]
Bases:
MortarGridA class representing a mortar grid, which is used for the discretization of interfaces between subdomains in a numerical simulation.
- assign_sd_pair(sd_pair)[source]
- compute_geometry()[source]
Computes the geometry of the MortarGrid.
- Parameters:
sd_pair – The pair of subdomains.
- Returns:
None
- compute_ridges()[source]
Assign the face-ridge and ridge-peak connectivities to the mortar grid
- Parameters:
sd_pair (Tuple[pp.Grid, pp.Grid]) – Pair of adjacent subdomains.
- Returns:
None
- assign_signed_mortar_to_primary()[source]
Compute the mapping from mortar cells to the faces of the primary grid that respects orientation.
- Parameters:
sd_pair (Tuple[pp.Grid, pp.Grid]) – Pair of adjacent subdomains.
- Returns:
A sparse matrix representing the mapping from mortar cells to primary grid faces. The matrix has dimensions num_primary_faces x num_mortar_cells.
- Return type:
sps.csc_array
- assign_cell_faces()[source]
Assign the connectivity between cells of the secondary grid and faces of the primary grid.
This method calculates and assigns the connectivity between the cells of the secondary grid and the faces of the primary grid. It uses the signed mortar values and the secondary-to-mortar interface function to determine the connectivity.
- Parameters:
None
- Returns:
None