Half Cell model #1717
-
Hello, I am trying to use the new half cell model of the new release
but I get the error: KeyError: KeyError("'Typical plated lithium concentration [mol.m-3]' not found. Best matches are ['Typical electrolyte concentration [mol.m-3]', 'Bulk solvent concentration [mol.m-3]', 'Lithium interstitial reference concentration [mol.m-3]']") Am I using it wrong? Best regards |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
The reason is that the parameter set you are using does not have a lithium plating parameter set. You can either add it to a parameter set by doing: chemistry = pybamm.parameter_sets.Chen2020
chemistry["lithium plating"] = "okane2020_Li_plating"
param = pybamm.ParameterValues(chemistry=chemistry) or you can use a parameter set that already has it (e.g. Chen2020_plating) param = pybamm.ParameterValues(chemistry=pybamm.parameter_sets.Chen2020_plating) |
Beta Was this translation helpful? Give feedback.
-
Thanks! I added the lithium parameter set and now it works. I'd also love to contribute but I won't have time to do it until january since I am in the final stages of my master thesis. There is also another error when using the Half cell model with the experiment class:
KeyError: "'Negative electrode capacity [A.h]' not found. Best matches are ['Positive electrode capacity [A.h]', 'Negative electrode temperature [K]', 'Negative electrode exchange current density [A.m-2]']" **edit for clarity Is the experiment class not compatible with the Halfcell model yet? |
Beta Was this translation helpful? Give feedback.
The reason is that the parameter set you are using does not have a lithium plating parameter set. You can either add it to a parameter set by doing:
or you can use a parameter set that already has it (e.g. Chen2020_plating)