Replies: 2 comments 2 replies
-
Hi @pbriml. We've decided to keep the built-in algorithms at a minimum, and instead provide more "example notebooks". The main reason is that these algorithms are often times very complex, which makes code maintenance very difficult. If you're interested, we'd more than welcome a pull request on creating an example notebook for a simple Nernst Planck implementation. The functionality is there, we just removed the pore-scale models specific to this particular algorith, which you can easily pull from an earlier version/tag. |
Beta Was this translation helpful? Give feedback.
-
Hello, I have a few questions that I am hoping one of the devs may be able to answer. I have been working to adapt this script (example_nernstplanck_2d.py) to be compatible with OpenPNM v3. So far, I have been able to make decent progress and have adapted the following files:
I am, admittedly, not much of a developer and all of my research thus far has been focused on scientific computing rather than development (i.e. workflows, multiphysics simulations in Comsol & python, DFT calculations, post-processing, etc.). The way I've been calling all these edited files is by importing them into the simulation rather than the built-in OpenPNM packages. Currently, I have the following issue occur when I try to run the main file (2D_Nernst_Planck_recreation.py):
When debugging, I have found that the issue occurs in the IonicConduction algorithm when trying to add the pore scale charge conservation model to the simulation:
Specifically, in these lines:
I have done my best to adapt the attached files to OpenPNM v3, but I am really stuck on this error and am hoping for some guidance. I am also happy to send a more detailed description of the problem &/or my set-up in an email if that's more convenient. Thanks! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I am working to develop a pore network model that uses the discretized Nernst-Planck and charge conservation equations (still deciding between Poisson's or electroneutrality) as described in this work:
In v3 of OpenPNM, it does not appear that there is a pre-built algorithm for Nernst-Planck charge transport or charge conservation.
Do the developers have plans to add this functionality anytime soon, or do they have recommendations for ways to do this manually? Any tips/tricks are appreciated!
I was thinking about perhaps doing a manual definition of conductance as is done similarly in this example:
And then coupling with one of the transport algorithms? Would this idea also be suitable for charge conservation?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions