- TransientAdvectionDiffusion.set_outflow_BC(pores, mode='merge')¶
Adds outflow boundary condition to the selected pores
pores (array_like) – The pore indices where the condition should be applied
mode (str, optional) –
Controls how the boundary conditions are applied. Options are:
- ’merge’ (default)
Adds supplied boundary conditions to already existing conditions, and also overwrites any existing values. If at rate or value BC exists at the given locations, these are deleted, and outflow conditions are given priority.
Deletes all boundary conditions of the given type then adds the specified new ones.
Outflow condition means that the gradient of the solved quantity does not change, i.e. is 0.