Skip to content

How to get the geometry proprieties (such as pore/throat diameter) of designated pores of throats? #1976

Answered by ma-sadeghi
mourendong asked this question in Q&A
Discussion options

You must be logged in to vote

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:

# 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], o…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@mourendong
Comment options

@mourendong
Comment options

Answer selected by ma-sadeghi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants