set_outflow_BC#

AdvectionDiffusion.set_outflow_BC(pores, mode='add')[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. The default value is ‘merge’. For definition of various modes, see the docstring for set_BC.

  • force (bool, optional) – If True then the 'mode' is applied to all other bctypes as well. The default is False.

Notes

Outflow condition means that the gradient of the solved quantity does not change, i.e. is 0.