forked from PMEAL/OpenPNM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
example_bot.py
18 lines (17 loc) · 864 Bytes
/
example_bot.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import openpnm as op
ws = op.Workspace()
ws.settings['loglevel'] = 30
proj = ws.new_project()
net, geo, phase = op.materials.BundleOfTubes(shape=50, spacing=0.0001, length=0.001,
psd_params={'distribution': 'weibull',
'loc': 0.000001,
'scale': 0.00004,
'shape': 2.2},
settings={'adjust_psd': 'normalize',
'seed': 0})
hg = op.phases.Mercury(network=net)
phys = op.physics.Classic(network=net, phase=hg, geometry=geo)
mip = op.algorithms.Porosimetry(network=net, phase=hg)
mip.set_inlets(pores=net.pores('top'))
mip.run()
mip.plot_intrusion_curve()