Replies: 1 comment 2 replies
-
If you have the network in OpenPNM already then you can computer the vector of each throat by looking at the coordinates of the pores on each end. For instance you can do: crds_1 = pn['pore.coords'][pn['throat.conns'][:, 0]]
crds_2 = pn['pore.coords'][pn['throat.conns'][:, 1]]
# The above can be done with one line if you use a few tricks:
crds1, crds2 = pn.coords[pn.conns.T] You then have the [x, y, z] coords of the pores on each end, so could compute the vector or look at the length. The trick would be that each image you process will have different labels for the pores, so tracking the movement of an exact set of pores will be hard. You can do overalls stats and histograms though. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi I am quite new to porsepy and openpnm. I want to see how porous and trhoats are changing in the three principle axes X Y Z.
I have a binary image volume and I have managed to export the network of this volume with using the snow algorithm. I have also managed to view it with paraview. My question is if it is possible with openpnm to get information for throats and porous in the three different main orientations X Y Z and plot it in a histogram for example. When I will achieve this I would like to further plot the change of this 3d structure with time any recommendations of how I could do that it would be higgle appreciated. Thanks in advance .
Beta Was this translation helpful? Give feedback.
All reactions