Skip to content

Partially reversible lithium plating#2043

Merged
valentinsulzer merged 25 commits into
pybamm-team:developfrom
DrSOKane:GEM
Jun 16, 2022
Merged

Partially reversible lithium plating#2043
valentinsulzer merged 25 commits into
pybamm-team:developfrom
DrSOKane:GEM

Conversation

@DrSOKane
Copy link
Copy Markdown
Contributor

Description

The partially reversible lithium plating model proposed by O'Kane et al. (2022) is added to PyBaMM.

Fixes # 1807

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.

  • [Y] New feature (non-breaking change which adds functionality)
  • Optimization (back-end change that speeds up the code)
  • Bug fix (non-breaking change which fixes an issue)

Key checklist:

  • [Y] No style issues: $ flake8
  • [N] All tests pass: $ python run-tests.py --unit
    test_symbol/test_visualize fails
  • [Y] The documentation builds: $ cd docs and then $ make clean; make html

You can run all three at once, using $ python run-tests.py --quick.

Further checks:

  • [Y] Code is commented, particularly in hard-to-understand areas
  • [Y] Tests added that prove fix is effective or that feature works

Copy link
Copy Markdown
Member

@valentinsulzer valentinsulzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comments. Also, please add tests for partially reversible plating

Comment thread pybamm/models/submodels/interface/lithium_plating/plating.py Outdated
Comment thread pybamm/models/submodels/interface/lithium_plating/plating.py Outdated
Comment thread pybamm/parameters/lithium_ion_parameters.py Outdated
Comment thread tests/unit/test_parameters/test_parameter_sets/test_OKane2020.py Outdated
@codecov
Copy link
Copy Markdown

codecov Bot commented May 4, 2022

Codecov Report

Merging #2043 (ad9e600) into develop (9d3b1c3) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff            @@
##           develop    #2043   +/-   ##
========================================
  Coverage    99.38%   99.38%           
========================================
  Files          348      352    +4     
  Lines        19234    19289   +55     
========================================
+ Hits         19115    19170   +55     
  Misses         119      119           
Impacted Files Coverage Δ
...s/graphite_Chen2020/graphite_LGM50_ocp_Chen2020.py 100.00% <ø> (ø)
...graphite_ORegan2021/graphite_LGM50_ocp_Chen2020.py 100.00% <ø> (ø)
...s/LiNiCoO2_Ecker2015/nco_ocp_Ecker2015_function.py 100.00% <ø> (ø)
...2_Li_plating/SEI_limited_dead_lithium_OKane2022.py 100.00% <100.00%> (ø)
...ting/plating_exchange_current_density_OKane2020.py 100.00% <100.00%> (ø)
...ng/stripping_exchange_current_density_OKane2020.py 100.00% <100.00%> (ø)
...te_Chen2020_plating/graphite_LGM50_ocp_Chen2020.py 100.00% <100.00%> (ø)
..._electrolyte_exchange_current_density_Ecker2015.py 100.00% <100.00%> (ø)
..._electrolyte_exchange_current_density_Ecker2015.py 100.00% <100.00%> (ø)
...m/models/full_battery_models/base_battery_model.py 99.76% <100.00%> (+<0.01%) ⬆️
... and 6 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9d3b1c3...ad9e600. Read the comment docs.

@DrSOKane
Copy link
Copy Markdown
Contributor Author

DrSOKane commented May 4, 2022

For some reason, merging UpdateParameters into this branch fixed the error stopping that from being merged into develop, so that pull request is now closed and the same changes proposed as part of this one.

Copy link
Copy Markdown
Member

@valentinsulzer valentinsulzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great now, thanks @DrSOKane !

@valentinsulzer valentinsulzer merged commit 924b7e7 into pybamm-team:develop Jun 16, 2022
@valentinsulzer
Copy link
Copy Markdown
Member

Forgot to ask for a new line in CHANGELOG, can you do that?

@DrSOKane
Copy link
Copy Markdown
Contributor Author

DrSOKane commented Oct 11, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants