-
-
Notifications
You must be signed in to change notification settings - Fork 563
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: create_from_BPX
method incompatible with "lumped" thermal model
#2860
Comments
Thanks for pointing this out! Currently we assign the lumped value to each component but we miss the current collectors. Should be an easy fix by adding the current collectors domains to this line. Do you think you could have a go? |
Thanks @rtimms, I'm happy to give this a go. However I don't think your quick fix will cover all the issues listed, just the current collector density, heat capacity, and thermal conductivity. Let me know what you think of the following:
|
The better fix for this would be to use the lumped properties directly if you choose |
@darryl-ad any progress on this? |
@rtimms sorry I've been on holiday. I'll can get to it soon if you still need, so you can include it in the 23.5 release. I just need to get up to speed on your contribution guidelines and dev install instructions |
Thanks, @darryl-ad! @RuiheLi has started looking at this so I'll let you two coordinate |
@RuiheLi I'm working on this now. Took me a long time to get a PyBaMM dev install working with all tests passing. |
Hi~ @darryl-ad, I will start working on it today. |
@RuiheLi I'm set up now so I'm happy to do it :) |
@darryl-ad thanks! Let us know if there any installation issues we can fix or areas we can improve the docs |
@darryl-ad Thanks! I am very happy to discuss with you if you need any support. |
@RuiheLi @rtimms that should be fixed now.
I left the total heat transfer coefficient out, but if you want it might make sense to add a default value of 0 to allow simulations to run without any extra user parameters required. I agree with Rob that these are quick-fix solutions, and also recommend that the assignment of the component thermal properties should be moved elsewhere. I also recommend correcting the specific heat capacity units in the BPX code, then removing my correction here. Some extra unit tests to cover BPX functionality might be needed too! |
PS - I left my solutions to the installation issues I encountered here |
Fixed by #2987 |
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
The text was updated successfully, but these errors were encountered: