Replies: 1 comment 2 replies
-
I think what's happening is that you're changing the variable that goes into the We now have some functions that make |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
yesterday i checked out the new version of PyBaMM. In my setup i usually encounter thick eledtrodes with high amounts of elctrolyte depletion (see #1982). For this reason i introduced back in version 22.3 the electrolyte concentration as a heaviside step function which sets every concentration smaller 0 to 1e-10.
I wanted to introduce this in version 22.10 in
base_electrolyte_diffusion.py
in_get_standard_domain_concentration_variables
but somehow the pybamm.EqualHeaviside changes the shape of the array.A minimum working example is the following:
While having the follwoling line introduced after line 64 in
base_electrolyte_diffusion.py
in_get_standard_domain_concentration_variables
:c_e_k = 1e-10 + (c_e_k - 1e-10) * pybamm.EqualHeaviside(0, c_e_k)
So why do you think EqualHeaviside changes the shape of the array? Or is this behaviour of "concentrations must not be negative" already handled somehow differently?
Beta Was this translation helpful? Give feedback.
All reactions