set_outflow_BC¶
- AdvectionDiffusion.set_outflow_BC(pores, mode='merge')[source]¶
Adds outflow boundary condition to the selected pores
- Parameters
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.
- ’overwrite’
Deletes all boundary conditions of the given type then adds the specified new ones.
Notes
Outflow condition means that the gradient of the solved quantity does not change, i.e. is 0.