Closed 1836005678 closed 1 year ago
I find that I have used the wrong model. This parameter set is for MPMe model according to the reference. However, the MPM model still can not work well using this parameter set, as the set miss the item "Negative area-weighted particle-size distribution [m-1]".
Log files: KeyError: "'Negative area-weighted particle-size distribution [m-1]' not found. Best matches are ['Negative particle radius [m]', 'Negative electrode diffusivity [m2.s-1]', 'Negative current collector conductivity [S.m-1]']"
Item 'Negative particle radius [m]' equals to 2.5e-06. However, in the original reference, it is indeed provided in the form of distribution function, thus there are 10% / 22% / 30% / 25% / 13% particles , whose radius equal to 1.5e-06 / 2.0e-06 / 2.5e-06 / 3.0e-06 / 3.7e-06 m. The parameter set may need to be adjusted.
First post: For the Mohtat2020 parameter set you have to start with a charge since the parameters are given for 0% SOC. We are working on standardizing the parameter sets to all start at 100% SOC.
Second post: indeed, the Mohtat2020 parameter set comes from an MPMe paper, but it still works with DFN. To add the relevant parameters for MPM to any parameter set, do
parameter_values = pybamm.get_size_distribution_parameters(parameter_values)
First post:
100% SOC Parameter value solved by sim.build(initial_soc=1)
for Mohtat2020
"Initial concentration in negative electrode [mol.m-3]": 23956.1769437291,
"Initial concentration in positive electrode [mol.m-3]": 1186.8414661132,
Maybe helpful for developers.
PyBaMM Version
22.11.1+22.11.1
Python Version
3.8(Online Colab)+3.9(Local VSCode)
Describe the bug
According to Pybamm Document (https://pybamm.readthedocs.io/en/latest/source/parameters/parameter_sets.html), there are 14 parameter sets for use (['Ai2020', 'Chen2020', 'Chen2020_composite', 'ECM_Example', 'Ecker2015', 'Marquis2019', 'Mohtat2020', 'NCA_Kim2011', 'OKane2022', 'ORegan2022', 'Prada2013', 'Ramadass2004', 'Sulzer2019', 'Xu2019']), while 12 of them are for DFN model (['Ai2020', 'Chen2020', 'Chen2020_composite', 'Ecker2015', 'Marquis2019', 'Mohtat2020', 'NCA_Kim2011', 'OKane2022', 'ORegan2022', 'Prada2013', 'Ramadass2004', 'Xu2019']), in which only 9 of them can work well in my program. Unfortunately, the set 'Mohtat2020' can not work well, as to it comes to the model event "['Minimum voltage'] are non-positive at initial conditions". I have changed the parameter 'Current function [A]' to other values rather than the default 5A, but the event still happened. Please tell me how to deal with this problem. Thank you very much!
Steps to Reproduce
Python Code: import pybamm parameter_values = pybamm.ParameterValues("Mohtat2020") model = pybamm.lithium_ion.DFN() sim = pybamm.Simulation(model, parameter_values=parameter_values) sim.solve([0, 3600]) sim.plot()
Relevant log output