How to make the side reactions (SEI, Li plating, etc) in the interface dependent of stoichiometry #3893
Unanswered
Brushnie33
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hi, I got a similar problem recently. Did you find a solution for the domain children problem? |
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
-
It is straightforward to change a parameter from pybamm.Parameter to pybamm.FunctionParameter, but the challenge is to specify the sto parameter in the side reactions in the interface folder, for instance, if I would like to make the "SEI kinetic rate constant [m.s-1]" to be dependent of sto, I could define it in the class of ParticleLithiumIonParameters(BaseParameters):
And in the sei_growth.py codes, if I add the following codes:
sto = variables[f"{Domain} particle concentration"]
And change phase_param.k_sei to phase_param.k_sei(sto) in the following equation:
k_exp = phase_param.k_sei(sto) * pybamm.exp(-alpha_SEI * F_RT * eta_SEI)
And in the parameter file, I added the function:
And change the value for the k_sei:
"SEI kinetic rate constant [m.s-1]": k_sei_function, # 1e-12,
I got errors:
Beta Was this translation helpful? Give feedback.
All reactions