Skip to content
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

Partially reversible lithium plating #2043

Merged
merged 25 commits into from
Jun 16, 2022
Merged

Conversation

DrSOKane
Copy link
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
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

@codecov
Copy link

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
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
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
Member

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

@DrSOKane
Copy link
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