reservoirflow.grids.RegularCartesian.get_ones#
- RegularCartesian.get_ones(boundary: bool = True, fshape: bool = False, sparse: bool = False)#
Returns array of ones.
- Parameters:
boundary (bool, optional) – include boundary cells.
fshape (bool, optional) – reshape to flow shape instead of flatten.
sparse (bool, optional) – values as sparse matrix (True) or as ndarray (False).
- Returns:
array in flow shape filled with ones.
- Return type:
array