reservoirflow.grids.RegularCartesian.get_prop#
- RegularCartesian.get_prop(name, boundary: bool = True, fshape: bool = True, fmt='array')#
Get property values in all cells.
- Parameters:
name (str) – property name as a string from props attribute keys.
boundary (bool, optional) – include boundary cells.
fshape (bool, optional) – reshape to flow shape instead of flatten. If set to True, fmt argument will be ignored.
fmt (str, optional) – output format as str from [‘array’, ‘list’, ‘tuple’, ‘set’]. This argument is ignored if fshape argument is set to True. For a better performance, use ‘set’ to check if an item is in a list or not. Use tuples to iterate through items. When option ‘array’ is used, utils.helpers.isin() must be used to check if a tuple of 3 is in the array.
- Raises:
ValueError – Property name is unknown or not defined.