-
-
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
Issue 983 half cell #1121
Issue 983 half cell #1121
Conversation
…PyBaMM into issue-983-half-cell
Codecov Report
@@ Coverage Diff @@
## develop #1121 +/- ##
===========================================
+ Coverage 97.87% 97.90% +0.02%
===========================================
Files 245 246 +1
Lines 13382 13572 +190
===========================================
+ Hits 13098 13287 +189
- Misses 284 285 +1
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.
Thanks @ferranbrosa , the model looks good. There should be a test that the half-cell DFN can be solved (without Simulation
)
pybamm/models/full_battery_models/lithium_ion/basic_dfn_half_cell.py
Outdated
Show resolved
Hide resolved
pybamm/models/full_battery_models/lithium_ion/basic_dfn_half_cell.py
Outdated
Show resolved
Hide resolved
pybamm/models/full_battery_models/lithium_ion/basic_dfn_half_cell.py
Outdated
Show resolved
Hide resolved
pybamm/models/full_battery_models/lithium_ion/basic_dfn_half_cell.py
Outdated
Show resolved
Hide resolved
pybamm/models/full_battery_models/lithium_ion/basic_dfn_half_cell.py
Outdated
Show resolved
Hide resolved
pybamm/models/full_battery_models/lithium_ion/basic_dfn_half_cell.py
Outdated
Show resolved
Hide resolved
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.
Hi Ferran, I've run the code and checked the plots for positive and negative and seems fine. I think as this is a work in progress we should merge - it would be nice to have this fully integrated into the modelling framework so we can add thermal models etc and look at changes in entropy on the half cells. I think actually a lot of microstructure models are just done on half cells so it would be a really useful feature and we should think about how to do it by just flexibly specifying what each electrode is. I don't know if that would cause too many headaches
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 to me once the tests are fixed!
Description
Basic DFN model for a half-cell. This is an experimental functionality which doesn't support all PyBaMM features (e.g. experiments) and which will be integrated into the submodel structure in the future.
Fixes #983
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: