- openpnm.topotools.label_faces(network, tol=0.0, label='surface')¶
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 (i.e. with six flat sides)
network (GenericNetwork) – 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
tolof 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