Replies: 1 comment
-
Your code runs ok for me. I just used a random array instead of your import numpy as np
import openpnm as op
pn = op.network.Cubic(shape=[5, 5, 1], spacing=0.0001, connectivity=14)
geom = op.geometry.GenericGeometry(network=pn, pores=pn.Ps, throats=pn.Ts, name='geom')
geom['pore.diameter'] = np.random.rand(pn.Np)
geom.add_model(propname='throat.diameter',
model=op.models.misc.from_neighbor_pores,
prop='pore.diameter',
mode='min') |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I have an array of diameters from a mercury porosimetry test that was performed on a sample, rather than using 'seed' I want to manually input the diameters instead from my excel sheet.
When I try to run the code it states that pore.diameter is missing and so throat.diameter cannot run, am I supposed to add a model for the diameter as well? What do I put in place of the model, scale, loc, and seed?
Beta Was this translation helpful? Give feedback.
All reactions