-
-
Notifications
You must be signed in to change notification settings - Fork 568
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
[Bug]: Issue with SEI + Composite Integrations #4123
Comments
…tions updated (#4153) * #4123 fix * Updated plating.py with same bug fix from issue 4123 * Bug fix combined to one line * style: pre-commit fixes --------- Co-authored-by: Caitlin Parke <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Hey Folks - The PR seemed to fix my issue when I declared SEI on both Si/Gr phases in Chen2020, but now I am seeing a different error when defining a single SEI on one phase with "none" on the other/cathode.
Is giving me this error UnboundLocalError Traceback (most recent call last) UnboundLocalError: cannot access local variable 'j_sei' where it is not associated with a valueWas curious if I missed another model option or if this is expected behavior? Thanks! |
…tions updated (pybamm-team#4153) * pybamm-team#4123 fix * Updated plating.py with same bug fix from issue 4123 * Bug fix combined to one line * style: pre-commit fixes --------- Co-authored-by: Caitlin Parke <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
PyBaMM Version
24.1
Python Version
3.10
Describe the bug
I am having an issue running an SEI submodel on both anode phases of the chen2020 composite electrode. It only seems to work when I use SEI: "single option","none" instead of the OCP formatting for model options
Its interesting that the solution output for running chen2020_composite works fine when the model option is "SEI": (("solvent-diffusion limited"),"none"). Despite the lack of domain submodel specification (primary/secondary) at the model init step, it still solves the model, but the output variables do not have negative electrode domain specified for SEI growth.
Please let me know if you see an easy workaround. I am trying to simply play around with SEI growth on a specific domain of a composite electrode (or both)
Steps to Reproduce
This is the problem code. It also fails to execute when SEI is only defined for a single anode phase (none for both others in the stack). It only works when you define a single submodel per electrode, despite the chen2020_composite parameter set having domain-specified phases for degradation
Relevant log output
The text was updated successfully, but these errors were encountered: