ispercolating

openpnm.topotools.ispercolating(am, inlets, outlets, mode='site')[source]

Determines if a percolating clusters exists in the network spanning the given inlet and outlet sites

Parameters
  • am (adjacency_matrix) – The adjacency matrix with the data attribute indicating if a bond is occupied or not

  • inlets (array_like) – An array of indices indicating which sites are part of the inlets

  • outlets (array_like) – An array of indices indicating which sites are part of the outlets

  • mode (str) – Indicates which type of percolation to apply, either ‘site’ or ‘bond’