PyBaMM Version
23.1
Python Version
3.9.12
Describe the bug
The parameter set created using the create_from_BPX method is not compatible with the "lumped" thermal model.
The following issues exist:
-
The "lumped" model calls the current collector variables, which create_from_BPX does not generate. These include density, heat capacity, thermal conductivity, thickness, and conductivity.
-
The specific heat capacities generated by create_from_BPX are of units "[J.K-1.kg-1]" instead of the "[J.kg-1.K-1]" expected by PyBaMM. This applies to the negative electrode, positive electrode, and separator specific heat capacities.
Steps to Reproduce
params = pybamm.ParameterValues.create_from_bpx("exampleBPX.json")
sim = pybamm.Simulation( pybamm.lithium_ion.DFN(options={"thermal":"lumped", "cell geometry": "arbitrary"}), parameter_values=params )
sol = sim.solve()
Relevant log output
{
"name": "KeyError",
"message": "\"'Negative current collector density [kg.m-3]' not found. Best matches are ['Negative electrode density [kg.m-3]', 'Positive electrode density [kg.m-3]', 'Separator density [kg.m-3]']\"",
....
PyBaMM Version
23.1
Python Version
3.9.12
Describe the bug
The parameter set created using the
create_from_BPXmethod is not compatible with the "lumped" thermal model.The following issues exist:
The "lumped" model calls the current collector variables, which
create_from_BPXdoes not generate. These include density, heat capacity, thermal conductivity, thickness, and conductivity.The specific heat capacities generated by
create_from_BPXare of units "[J.K-1.kg-1]" instead of the "[J.kg-1.K-1]" expected by PyBaMM. This applies to the negative electrode, positive electrode, and separator specific heat capacities.Steps to Reproduce
params = pybamm.ParameterValues.create_from_bpx("exampleBPX.json")sim = pybamm.Simulation( pybamm.lithium_ion.DFN(options={"thermal":"lumped", "cell geometry": "arbitrary"}), parameter_values=params )sol = sim.solve()Relevant log output
{ "name": "KeyError", "message": "\"'Negative current collector density [kg.m-3]' not found. Best matches are ['Negative electrode density [kg.m-3]', 'Positive electrode density [kg.m-3]', 'Separator density [kg.m-3]']\"", ....