Skip to content

[Bug]: create_from_BPX method incompatible with "lumped" thermal model #2860

Description

@darryl-ad

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:

  1. 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.

  2. 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]']\"",
	....

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingdifficulty: easyA good issue for someone new. Can be done in a few hourspriority: mediumTo be resolved if time allows

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions