trim

openpnm.topotools.trim(network, pores=[], throats=[])[source]

Remove pores or throats from the network

Parameters
  • network (GenericNetwork) – The Network from which pores or throats should be removed

  • throats) (pores (or) – The indices of the of the pores or throats to be removed from the network.

Examples

>>> import openpnm as op
>>> pn = op.network.Cubic(shape=[5, 5, 5])
>>> pn.Np
125
>>> pn.Nt
300
>>> op.topotools.trim(network=pn, pores=[1])
>>> pn.Np
124
>>> pn.Nt
296