2D Two-Phase Drainage Simulation #2825
-
Hello OpenPNM Community, I'm currently working on a project involving a 2D TIFF image of a pore network and the implementation of a two-phase drainage simulation in OpenPNM. In this simulation, I aim to incorporate contact angle modeling, define viscosities for both air and water, and apply a pressure difference. I have explored the OpenPNM example regarding drainage, but I noticed that it primarily focuses on creating random shapes. However, my specific challenge is to adapt this to work with a pore network extracted from an image. I've made several attempts to extract the network from the 2D single image, but I've encountered persistent errors. I'm seeking guidance on how to approach this task in OpenPNM, and I'm also curious if anyone in the community has a similar code or script they'd be willing to share as a reference. Your expertise, insights, and the possibility of code sharing would be immensely helpful in resolving these issues and progressing with this simulation. Thank you all for your assistance! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
You'll want to look at porespy, which is OpenPNM's sibling package that contains all the image analysis tools including network extraction. Specifically this example and this one |
Beta Was this translation helpful? Give feedback.
-
Hi this is a manuscript, but the effect is not ideal. It may be because your image throat is too thin. |
Beta Was this translation helpful? Give feedback.
Hi this is a manuscript, but the effect is not ideal. It may be because your image throat is too thin.