reduce_coordination#

reduce_coordination(network, z)[source]#

Deletes throats on network to match specified average coordination number

Parameters:
  • target (Network) – The network whose throats are to be trimmed

  • z (scalar) – The desired average coordination number. It is not possible to specify the distribution of the coordination, only the mean value.

Returns:

trim – A boolean array with True values indicating which pores to trim (using op.topotools.trim) to obtain the desired average coordination number.

Return type:

ndarray

Notes

This method first finds the minimum spanning tree of the network using random weights on each throat, then assures that these throats are not deleted, in order to maintain network connectivity. The list of throats to trim is generated randomly from the throats not on the spanning tree.