Removing pores above or below a size threshold #2023
-
Hello everyone, Does anyone know how I would go about removing all pores above or below a volume or diameter threshold so I can output a pore size distribution, total pore volume or geometry minus those values? I have extracted a SNOW network from tomography using PoreSpy but want to edit out pores above and below a specific size to calculate pore volumes within a range. I imagine there's an easier way than editing the geometry, maybe just filtering the output? Also can we only plot pore size distribution histograms? Are there options for line graphs instead? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hi, it's actually quite straightforward: mask = net["pore.diameter"] > threshold
op.topotools.trim(network, pores=mask) Note: it's crucial that you do the query on your network object, rather than your geometry, as network indices are global whereas geometry indices are local (of course, if you only have only geometry, then the indices are identical, but for more than 1 geometry, you get different results). |
Beta Was this translation helpful? Give feedback.
-
Hi, @ma-sadeghi, the way that removes pores or throats that will change the serial number of pores or throats. |
Beta Was this translation helpful? Give feedback.
Hi, it's actually quite straightforward:
Note: it's crucial that you do the query on your network object, rather than your geometry, as network indices are global whereas geometry indices are local (of course, if you only have only geometry, then the indices are identical, but for more than 1 geometry, you get different results).