- openpnm.topotools.trim(network, pores=, throats=)¶
Remove pores or throats from the network
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.
>>> import openpnm as op >>> pn = op.network.Cubic(shape=[5, 5, 5]) >>> pn.Np 125 >>> pn.Nt 300 >>> op.topotools.trim(network=pn, pores=) >>> pn.Np 124 >>> pn.Nt 296