-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
InvasionPercolation fails with list of inlets #1
Labels
Comments
ghost
assigned maghighi
Aug 27, 2013
This is closed. The solution is to use "InvasionPercolationAlgorithmTiming" instead. |
MohammadMehrnia787
added a commit
that referenced
this issue
Dec 6, 2023
the typos of examples #1-10 (excluding porosity and extracted) network are fixed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I made a list of inlet pores using the following logic:
inlets = pn.pore_properties['numbering'][pn.pore_properties['coords'][:,2]<4](This is basically all pores on the left hand side of the image)
I then called the IP algorithm with this list of inlets as follows:
OpenPNM.ALG.InvasionPercolationAlgorithm(pn, npts=100, inlets=inlets, outlets=outlets).run()
I got some sort of broadcast error:
File "OpenPNM\ALG__InvasionPercolationAlgorithm__.py", line 190, in _setup_for_IP
self.plists[clusterNumber-1] = self.NewPore
ValueError: could not broadcast input array from shape (0) into shape (1)
When I called the algorithm with a inlets = [1] it worked fine, so the problems appears to be related to lists.
The text was updated successfully, but these errors were encountered: