Skip to content
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

Closed
jgostick opened this issue Aug 27, 2013 · 1 comment
Closed

InvasionPercolation fails with list of inlets #1

jgostick opened this issue Aug 27, 2013 · 1 comment
Assignees
Labels

Comments

@jgostick
Copy link
Member

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.

@ghost ghost assigned maghighi Aug 27, 2013
@jgostick
Copy link
Member Author

jgostick commented Sep 9, 2013

This is closed. The solution is to use "InvasionPercolationAlgorithmTiming" instead.

@jgostick jgostick closed this as completed Sep 9, 2013
jhinebau added a commit that referenced this issue Jul 31, 2014
jhinebau added a commit that referenced this issue Aug 27, 2014
Feature/uof t work

Former-commit-id: c666e23
Former-commit-id: 22aa150
jhinebau added a commit that referenced this issue Sep 13, 2014
Feature/uof t work

Former-commit-id: c666e23
Former-commit-id: 22aa150
MohammadMehrnia787 added a commit that referenced this issue Nov 23, 2023
tutorials #1 to 10
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
Labels
Projects
None yet
Development

No branches or pull requests

2 participants