reservoirflow.models.BlackOil.set_boundary#
- BlackOil.set_boundary(cell_b_id: int, cond: str, v: float)#
Set a boundary condition in a cell.
- Parameters:
id_b (int, optional) – boundary cell id based on natural order as int.
cond (str) – boundary constant condition. Three conditions are possible: (2) Constant rate: str in [‘rate’, ‘q’], (1) Constant pressure: str in [‘pressure’, ‘press’, ‘p’], (3) Constant pressure gradient: str in [‘gradient’, ‘grad’, ‘g’].
v (int, float) – constant value to specify the condition in cond argument.