How to generate pore network with different connectivity? #2370
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
You can take a look at this website. https://github.com/PMEAL/OpenPNM/blob/dev/examples/tutorials/network/cubic_networks.ipynb |
Beta Was this translation helpful? Give feedback.
-
Another options is to put points in 2D or 3D space, then pass those to the Voronoi class. For instance, if you generate a triangular lattice of points using PoreSpy (see example here), with a radius of 1 to get points instead of spheres, then you can use |
Beta Was this translation helpful? Give feedback.
Another options is to put points in 2D or 3D space, then pass those to the Voronoi class. For instance, if you generate a triangular lattice of points using PoreSpy (see example here), with a radius of 1 to get points instead of spheres, then you can use
pts = np.where(~im)
to get the x,y locations of each point (in voxels). Passing these into theVoronoi
class should generate the hexahedral grid above. It also occurs to me that if you use the DelaunayVoronoiDual class you will get the triangular mesh as the combination of delaunay and voronoi networks, plus the interconnections. I haven't tried this myself, but I'm 99% sure it should just work.