How to get the geometry proprieties (such as pore/throat diameter) of designated pores of throats? #1976
-
How to get the geometry proprieties (such as pore/throat diameter) of designated pores of throats? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
If I understood your question properly, here's an example:
If you call More generally, we have # Map pores with "network" indices = [0] to local indices in geo1
geo1.map_pores(pores=[0], origin=net) # should return 0
# Map pores with "network" indices = [1] to local indices in geo1
geo1.map_pores(pores=[0], origin=net) # should return [] since pore 0 doesn't belong to geo1
# Map pores with "network" indices = [2] to local indices in geo1
geo1.map_pores(pores=[0], origin=net) # should return [1]
# Map pores with "geo2" indices = [1] to global indices in network
net.map_pores(pores=[1], origin=geo2) # should return [4] since pore 1 in geo2 is pore 4 in the network Hope this clarifies the issue. |
Beta Was this translation helpful? Give feedback.
If I understood your question properly, here's an example:
net
consists of pores[0, 1, 2, 3, 4]
geo1
consists of pores[0, 2, 3]
geo2
consists of pores[1, 4]
If you call
geo1.pores()
, you'll get:[0, 1, 2]
. Now, if you want to see which indices do these pores correspond to in the network, you can use:geo1.pores(target=net)
, which will return[0, 2, 3]
.More generally, we have
map_pores
method that maps local to global indices and vice versa. Here's how the API looks like: