trim_nonpercolating_paths(im, inlets, outlets)¶
Remove all nonpercolating paths between specified edges or faces
im (ND-array) – The image of the porous material with
`Truevalues indicating the phase of interest
inlets (ND-image) – A boolean mask indicating locations of inlets, such as produced by
outlets (ND-image) – A boolean mask indicating locations of outlets, such as produced by
image – A copy of
imwith all the nonpercolating paths removed
- Return type
This function is essential when performing transport simulations on an image since image regions that do not span between the desired inlet and outlet do not contribute to the transport.
Click here to view online example.