-
Hello everyone. I have hit another snag using OpenPNM and I'm not sure how to resolve it. I am currently working on two OpenPNM projects simultaneously, each containing a different network with associated geometry at different scales. I have project 1 (at a scale of 1) containing pn1 and geo1, and project 2 (at a scale of 0.1) containing pn2 and geo2. What I would like to do is something similar to the "tile" command for numpy arrays. I would like to expand project 2 ten times, repeating it's pore information. Similar to: The intention being to extrapolate project 2 to the same size as project 1. I am then planning to merge the two networks together into one. What I would like to show is a prediction of the pore volume contribution from the smaller network at the size of the larger network and the predicted total pore volume and pore network distribution of the combined and extrapolated networks. Unfortunately I can't figure out how to tile the project 2 array and merge project 1 and 2 thereafter. Would this be possible? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @baq99 For part 2, I cannot quite picture what you mean by merging the two networks into one. Would these be superimposed somehow? Also, on a related note, since your project seems to invovle a lot of volume calculations, be careful about the overlap between pores and throats. Depending on how to you define the geometry there can either be a lens created by the overlap, or gap between the pore and end of the throat. In the former case you may count the volume twice, while in the later case you will be missing some volume. There are models in openpnm.models.geometry.throat_volume called pendular_ring and lens, which help address this. |
Beta Was this translation helpful? Give feedback.
Hi @baq99
For part 1 of your mission we have a function called 'openpn.topotools.stitch' that may do the trick for you. It was really designed to stitch two networks together so I'm not sure how it'll fair with N by N networks.
For part 2, I cannot quite picture what you mean by merging the two networks into one. Would these be superimposed somehow?
Also, on a related note, since your project seems to invovle a lot of volume calculations, be careful about the overlap between pores and throats. Depending on how to you define the geometry there can either be a lens created by the overlap, or gap between the pore and end of the throat. In the former case you may count the volume twice, while…