-
-
Notifications
You must be signed in to change notification settings - Fork 572
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
#1957 return heat source in isothermal models #1958
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #1958 +/- ##
========================================
Coverage 99.32% 99.32%
========================================
Files 346 346
Lines 19058 19064 +6
========================================
+ Hits 18930 18936 +6
Misses 128 128
Continue to review full report at Codecov.
|
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.
Looks good! I didn't review the last PR, so is there any tests that checks that the heat source terms are calculated correctly?
Do you mean to test if the variables have the correct expression (i.e. zero or not)? Or some numerical check on the actual values? |
I guess both, though just realised I don't know if we are testing this for the other variables anyway haha |
We compare outputs across different models that should be the same and have some tests on variables for things like conservation or checking that things that should be increasing are increasing etc., but we don't test for correct values. I'll merge this for now, but maybe we can revisit if there are any useful extra tests on variables. |
Description
Fixes a bug where the isothermal submodel doesn't calculate any heat source terms. There is a new option "calculate heat source for isothermal models" that is "false" by default and "true" otherwise. Default is "false" since this option may require additional parameters not needed by the electrochemical model (specifically current collector parameters).
Fixes #1957
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:
$ flake8
$ python run-tests.py --unit
$ cd docs
and then$ make clean; make html
You can run all three at once, using
$ python run-tests.py --quick
.Further checks: