cluster_size

openpnm.models.network.cluster_size(target, cluster=None)[source]

Find the size of the cluster to which each pore belongs

Parameters
  • network (dict) – The GenericNetwork

  • cluster (str, optional) – Dict key pointing to the array containing the cluster number of each pore. If not provided then it will be calculated.

Returns

cluster_size – An Np-long array containing the size of the cluster to which each pore belongs

Return type

ndarray