You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mip = op.algorithms.OrdinaryPercolation(network=pn)
mip.setup(phase=Hg, pore_volume='pore.volume', throat_volume='throat.volume') # A high probability of error here.
mip.set_inlets(pores=pn.pores('inlets'))
mip.set_outlets(pores=pn.pores('outlets'))
mip.run(points=40)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Dear professor @jgostick
I want to simulate the Pc using my pore network model because I am not skilled in SNOW. But it not run. Could you please help me to check it?
My code:
`import openpnm as op
import matplotlib.pyplot as plt
import matplotlib
matplotlib.use('TkAgg')
ws = op.Workspace()
ws.clear()
path = 'D:\simulation\Mytest\PNM'
prefix='network'
project = op.io.Statoil.import_data(path=path, prefix=prefix)
pn = project.network
geo = op.geometry.GenericGeometry(network=pn)
Hg = op.phases.Mercury(network=pn)
phys = op.physics.Standard(network=pn, phase=Hg, geometry=geo)
mip = op.algorithms.OrdinaryPercolation(network=pn)
mip.setup(phase=Hg, pore_volume='pore.volume', throat_volume='throat.volume') # A high probability of error here.
mip.set_inlets(pores=pn.pores('inlets'))
mip.set_outlets(pores=pn.pores('outlets'))
mip.run(points=40)
data = mip.get_intrusion_data()
plt.semilogx(data.Pcap, data.Snwp, color='k', linestyle='solid', linewidth=1,marker='o', markersize=5)
plt.xlabel('Pc')
plt.ylabel('S')
plt.show()`
By running

print(pn)
it shows this:Much Thanks!
Duck.
Beta Was this translation helpful? Give feedback.
All reactions