How to generate a pore network model with different pore distribution in the upper and lower layers? #2750
Replies: 1 comment 4 replies
-
import openpnm as op pn = op.network.Cubic(shape=[20,20,5], spacing=[1e-6,1e-6,1e-6]) np.random.seed(0) # Set the state of the random number generator to "0" fig, ax = plt.subplots() np.random.seed(0) # Set the state of the random number generator to "0" fig, ax = plt.subplots() z_move= 6e-6 ax = op.visualization.plot_connections(pn, color_by=pn['throat.diameter'], linewidth=4) Here is my code part, can you help me see where the problem is? |
Beta Was this translation helpful? Give feedback.
-
Dear Professor Jeff Gostick,
I hope this email finds you well. Thank you for your previous responses. I am reaching out to you regarding a new issue I have encountered.
I am trying to generate two models with different pore distributions in a network model using the stitch function. I followed your tutorial on Calibrating a Network Using Mercury Intrusion Data on the website for pore distribution. However, even after using pn.regenerate_models(), I am still unable to obtain the model with different pore distributions in the upper and lower layers.
Could you please advise me on how to address this issue? Your prompt response would be greatly appreciated.
Best regards,
xu
Beta Was this translation helpful? Give feedback.
All reactions