How to add a new thermal model to pybamm so that it can be solved with DFN together? #3070
-
Hi team, I have another question...How can a user-defined thermal model be added to pybamm and called like: options = {"thermal": "lumped"} Thank you very much! Looking forward to a reply :) |
Beta Was this translation helpful? Give feedback.
Answered by
brosaplanella
Jun 30, 2023
Replies: 1 comment 4 replies
-
You should add a submodel in the thermal submodels folder (note that this requires cloning the repository and installing from source). You can take as an example one of the existing models (e.g. lumped), just note that a lot of functionality is inherited from base_thermal.py. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You mean solving DFN first and then using the result for the thermal model? It should be possible but not sure what the most efficient approach would be.