label_faces#

label_faces(network, tol=0.0, label='surface')[source]#

Finds pores on the surface of the network and labels them according to whether they are on the top, bottom, etc.

This function assumes the network is cubic in shape

Parameters:
  • network (Network) – The network to apply the labels

  • tol (scalar) – The tolerance for defining what counts as a surface pore, which is specifically meant for random networks. All pores with tol of the maximum or minimum along each axis are counts as pores. The default is 0.

  • label (str) – An identifying label to isolate the pores on the faces of the network. The default is ‘surface’. Surface pores can be found using find_surface_pores.