set_outlet_BC#

Drainage.set_outlet_BC(pores, mode='add')[source]#

Specify the pores from which defending fluid exits the network.

This is optional and only required if trapping is to be considered.

Parameters:
  • pores (ndarray) – The list of outlet pores

  • mode (str) –

    How the boundary conditions should be applied. Options are:

    mode

    meaning

    ’add’

    (default) Adds the supplied boundary conditions to the given locations. Raises an exception if values of any type already exist in the given locations.

    ’overwrite’

    Adds supplied boundary conditions to the given locations, including overwriting conditions of the given type or any other type that may be present in the given locations.

    ’remove’

    Removes boundary conditions of the specified type from the specified locations. If bctype is not specified then all types are removed. If no locations are given then values are remvoed from all locations.