-
Hello community! im=imageio.volread('MyData.tif') I am asking this as I noticed that usually following these lines gives quite similar results to other pores extraction software, only there seems to be slightly more small pores from OpenPNM. I understand that different algorithms may give different results, I just want to make sure that this is the reason. Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 6 replies
-
Network extraction algorithms are all different and sensitive to different features of the image, so I don't think that looking at the psd of a network is the right approach. You're better off just analysing the image directly, with local thickness or chord length distributions, for example. The porespy docs has a few examples of things you can do. |
Beta Was this translation helpful? Give feedback.
-
Thank you very much sir @jgostick. I am interested in finding the PSD as I am trying to relate it to other properties such as reactivity or pore clogging. That is why I wanted to find the PSD and Im not sure if just using the command a=pn['pore.equivalent_diameter'] suffices. |
Beta Was this translation helpful? Give feedback.
-
Many thanks sir. |
Beta Was this translation helpful? Give feedback.
-
Hello, I would like to calculate the Pore Size Distribution (PSD) for a 3D geometry. The pores in the 3D structure are represented as spheres within a TPMS (Triply Periodic Minimal Surface) structure. Additionally, I'm interested in extracting the network and connectivity of the pores. Since I'm not familiar with Python, any assistance with these tasks would be greatly appreciated. Thank you |
Beta Was this translation helpful? Give feedback.
The PSD of the network is best found using something simple like
plt.hist(pn['pore.equivalent_diameter'], density=True)
. This will give you official PSD where the area under the curve is 1.0. I think there is also an option to documulative=True
. You can also just get the histogram from numpy usingnp.hist
then you have more direct access to the data so you can fit curves for instance, then compare the fitting parameters of different situations, instead of doing max/min/mean as I think you were suggesting.