find_isolated_clusters#
- find_isolated_clusters(network, mask, inlets)[source]#
Identifies pores and throats that are invaded but not connected to the inlets
- Parameters:
network (dict) – The OpenPNM Network
mask (ndarray) – A boolean mask of either Nt or Np length with
True
values indicating invaded bonds or sites. If this array is Nt-long then then bond percolation is used to identify clusters, whereas site percolation is used if it is Np-long.inlets (ndarray) – A array containing indices of the pores which define the inlets. Any clusters not connected to these sites are considered isolated.
- Returns:
sites – An ndarray containing the indices of invaded pores which are not connected to the given
inlets
.- Return type:
ndarray