-
-
Notifications
You must be signed in to change notification settings - Fork 547
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
Surface temperature model #4203
Conversation
Still need to add tests and update examples |
I am happy to review this when ready |
@TomTranter ready for review |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #4203 +/- ##
===========================================
- Coverage 99.46% 99.42% -0.05%
===========================================
Files 289 292 +3
Lines 22200 22215 +15
===========================================
+ Hits 22081 22087 +6
- Misses 119 128 +9 ☔ View full report in Codecov by Sentry. |
Looks like the examples are failing here:
The variable submod does not get defined before assignment. PyCharm identifies that the variable may be undefined. We should probably make sure our inspection tools flag this |
I'd like to stick as closely as possible to what is implemented in the referred paper, so that we can say "this is the model from this paper" rather than having to justify choices of equations and parameters. Especially as this model already gives good fit to some data I've been looking at |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @valentinsulzer ! looks good to me once the conflicts are fixed
class Lumped(pybamm.BaseSubModel): | ||
""" | ||
Class for the lumped surface temperature submodel, which adds an ODE for the | ||
surface temperature. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might be worth putting the citation in the docs
Description
From Lin et al 2014 (kudos @js1tr3 et al)
Fixes #4022
Type of change
Please add a line in the relevant section of CHANGELOG.md to document the change (include PR #) - note reverse order of PR #s. If necessary, also add to the list of breaking changes.
Key checklist:
$ pre-commit run
(or$ nox -s pre-commit
) (see CONTRIBUTING.md for how to set this up to run automatically when committing locally, in just two lines of code)$ python run-tests.py --all
(or$ nox -s tests
)$ python run-tests.py --doctest
(or$ nox -s doctests
)You can run integration tests, unit tests, and doctests together at once, using
$ python run-tests.py --quick
(or$ nox -s quick
).Further checks: