reservoirflow.grids.RegularCartesian.get_cells_G#

RegularCartesian.get_cells_G(boundary: bool = False, sparse: bool = True)#

Returns cells geometric factor (G) Matrix.

This matrix is essential to build the coefficient matrix (A). Note that this matrix should not include boundary. However, boundary argument is included just for testing purposes.

Parameters:

sparse (bool, optional) – _description_

Returns:

G matrix for the entire grid model without boundary.

Return type:

ndarray or sparse matrix