Replies: 2 comments 4 replies
-
Generating a pore network with specific properties is a common task, but it's a bit of a pain to do. There is an example notebook here that explains how to adjust the pore and throat size distribution of a network. This example assumed that you'll be doing it by hand. It is possible to automate things using various optimization techniques, but this is quite technical and it might be faster to just do it by hand. Examples of automated approaches are a recent paper by Matthews' group, and another one by Sharqawy. I did one during my PhD manually, which may also be useful for seeing the process. |
Beta Was this translation helpful? Give feedback.
-
@fb638, hi, sorry for the delayed reply. I did generate a PNM with random pore size distribution and pore locations. The general idea is the following:
from scipy.stats import weibull_min
def weibull_gene():
# generation pore size distribution pore size
c = 1.7 # weibull distribution parameters
r1 = weibull_min.rvs(c=c, size=1000)
dis = r1.max() - r1.min()
rmin = r1.min()
# scale the min and max to what you need
r1 = 2.5e-5 + (r1-rmin) / dis * 2.5e-5
return(r1)
|
Beta Was this translation helpful? Give feedback.
-
I am creating this discussion to answer a question posted by @fb638 on a different thread that deserved its own thread.
@fb638 asked:
Beta Was this translation helpful? Give feedback.
All reactions