Modifying stress induced diffusion equation in Composite electrode model #4510
Unanswered
MehrabHasan
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Stress-induced diffusion is already included in PyBaMM! It should be applied automatically if the particle mechanics option is "swelling only" or "swelling and cracking". |
Beta Was this translation helpful? Give feedback.
1 reply
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am trying to apply the stress-induced diffusion equation to do so I am trying to modify the concentration equations in the Composite electrode source code. But I have a 2nd order pde term and I cannot include that in the self.rhs. Whenever I try to do so, I get an error that initial_conditions shape and self.rhs shape are not matching. How can I fix that? I am getting the following error:
"ModelError: rhs and initial conditions must have the same shape after discretization but rhs.shape = (420, 1) and initial_conditions.shape = (400, 1) for variable 'Negative primary particle concentration [mol.m-3]'."
Following is the equation, I am trying to model.
equation.pdf
Beta Was this translation helpful? Give feedback.
All reactions