PMEAL / OpenPNM

A Python package for performing pore network modeling of porous media
http://openpnm.org
MIT License
446 stars 174 forks source link

questions about the advanced tutorial #1196

Closed xu-kai-xu closed 5 years ago

xu-kai-xu commented 5 years ago

i am learnin the advanced tutorial. i find in th 143 cells(or something else labeled 143), a method is supplied to draw the drainage curve plot_drainage_curve, and get data get_drainage_data. but i can not find it in the method of inv, i just find plot_intrusion_curve and get_intrusion_data. maybe the name of the method has changed since the update of 2.0? and i got a plot of 5 points rather than 25 points. did something goes wrong?, i saw that the run method would get 25 points to generate the plot. 001

and the final relative permeability is [nan]. i do not understand what it means. is that wrong?

jgostick commented 5 years ago

I is called plot_intrusion_curve now, when using the Porosimetry class. If your network is small then the the curve will not look good. Also, because the graph uses a log axis the first point at 0,0 goes off to infinity on the left side of the graph which makes it look like the curve starts at S>0. I have actually fixed in this in a PR, but it's not merged yet.