Replies: 1 comment
-
I am not sure I follow the boundary condition you are trying to implement, but if it is a Robin boundary condition the best way is to implement it as a Neumann boundary condition, where the RHS depends on the boundary value. Also note that the keys of the boundary condition dictionary should be the variables, so defining the boundary condition for |
Beta Was this translation helpful? Give feedback.
0 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.
-
Hi, I do not quite understand what pybamm.boundary_value() returns. I have attached an example code below. It outputs at the end for the variable phi (an algebraic variable) at two different times:
pybamm.boundary_value seems to hit neither of these values. What is it calculating instead?
In the end I want to implement boundary conditions which depend on either a boundary value or gradient:
If I use the commented out verion, i.e replace lines 62 & 63 with
and lines 90 & 94 with
it fails at about t=7.6. Just before, the bc. I wanted to set, that gradmu1=gradmu2=0 on the left hand side also fails, most likely triggering the instability.
How would I enforce this boundary condition, if not using boundary_value, or what is the correct syntax?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions