filter_pores_by_z

openpnm.topotools.filter_pores_by_z(network, pores, z=1)[source]

Find pores with a given number of neighbors

Parameters
  • network (GenericNetwork) – The network on which the query is to be performed

  • pores (array_like) – The pores to be filtered

  • z (int) – The coordination number to filter by

Returns

pores – A list of pores which satisfy the criteria

Return type

array_like