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

Issue 3339 dead lithium #3485

Merged
merged 17 commits into from
Nov 22, 2023

Conversation

DrSOKane
Copy link
Contributor

Description

The irreversible plating model now increases the f"{Domain} dead lithium concentration [mol.m-3]" variable, not the f"{Domain} lithium plating concentration [mol.m-3]" variable as it did previously. The f"Loss of lithium to {domain} plating [mol]" and f"Loss of capacity to {domain} plating [A.h]" variables are unchanged because they include both plated lithium and dead lithium.

Fixes #3339

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@codecov
Copy link

codecov bot commented Oct 30, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (6851496) 99.58% compared to head (147a057) 99.58%.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #3485   +/-   ##
========================================
  Coverage    99.58%   99.58%           
========================================
  Files          256      256           
  Lines        20119    20126    +7     
========================================
+ Hits         20036    20043    +7     
  Misses          83       83           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Sponsor Member

@brosaplanella brosaplanella left a comment

Choose a reason for hiding this comment

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

Looks good Simon, thanks! Just a couple of small comments.

Copy link
Sponsor Member

Choose a reason for hiding this comment

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

I have noticed that both Plated lithium capacity and Intercalated lithium capacity have units of Ah rather than A.h (that's a legacy thing, not introduced in this issue). Could you change it to A.h so it is consistent with the other variable names?

CHANGELOG.md Outdated
@@ -19,6 +19,7 @@

## Bug fixes

- The irreversible plating model now increments `f"{Domain} dead lithium concentration [mol.m-3]"`, not `f"{Domain} lithium plating concentration [mol.m-3]"` as it did previously. ([#3485](https://github.com/pybamm-team/PyBaMM/pull/3485))
Copy link
Sponsor Member

Choose a reason for hiding this comment

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

Can you move this to the unreleased version?

@brosaplanella
Copy link
Sponsor Member

Sorry for the delay on getting back to this. CHANGELOG needs fixing as we updated develop, happy for this to be merged once that is fixed.

@DrSOKane
Copy link
Contributor Author

Sorry for the delay on getting back to this. CHANGELOG needs fixing as we updated develop, happy for this to be merged once that is fixed.

Ruff is now failing, saying that plot is undefined in lithium-plating.ipynb.

@brosaplanella
Copy link
Sponsor Member

I think @Saransh-cpp fixed it in #3519

@Saransh-cpp
Copy link
Member

Yes, please ignore the example notebooks and ruff failure. I will look into it this weekend.

Copy link
Member

@Saransh-cpp Saransh-cpp left a comment

Choose a reason for hiding this comment

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

Sorry for all the trouble, @DrSOKane. Everything should work now once you merge in develop and resolve the conflicts!

Copy link
Sponsor Member

@brosaplanella brosaplanella left a comment

Choose a reason for hiding this comment

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

Just a small change in the CHANGELOG as an entry is duplicate (see the suggestion).

CHANGELOG.md Outdated
@@ -4,6 +4,8 @@

- Fixed bug that made identical Experiment steps with different end times crash ([#3516](https://github.com/pybamm-team/PyBaMM/pull/3516))
- Fixed bug in calculation of theoretical energy that made it very slow ([#3506](https://github.com/pybamm-team/PyBaMM/pull/3506))
- The irreversible plating model now increments `f"{Domain} dead lithium concentration [mol.m-3]"`, not `f"{Domain} lithium plating concentration [mol.m-3]"` as it did previously. ([#3485](https://github.com/pybamm-team/PyBaMM/pull/3485))
- Fixed a bug where the JaxSolver would fails when using GPU support with no input parameters ([#3423](https://github.com/pybamm-team/PyBaMM/pull/3423))
Copy link
Sponsor Member

Choose a reason for hiding this comment

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

Suggested change
- Fixed a bug where the JaxSolver would fails when using GPU support with no input parameters ([#3423](https://github.com/pybamm-team/PyBaMM/pull/3423))

Copy link
Contributor Author

Choose a reason for hiding this comment

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

How is this a dupicate?

Copy link
Sponsor Member

Choose a reason for hiding this comment

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

That one made it in the release, see line 29 of the CHANGELOG

@brosaplanella brosaplanella merged commit 2ee8da2 into pybamm-team:develop Nov 22, 2023
34 of 35 checks passed
@brosaplanella
Copy link
Sponsor Member

Thanks Simon, and sorry for all the back and forth!

js1tr3 pushed a commit to js1tr3/PyBaMM that referenced this pull request Aug 12, 2024
* fixed tests

* Added graphite half-cell parameter files

* Revert "Added graphite half-cell parameter files"

This reverts commit 78001e8.

* Revert "fixed tests"

This reverts commit cf53ff1.

* ruff

* changelog

* coverage

* Fixed minor error in example notebook

* Removed duplicate entry from changelog
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.

[Bug]: Dead lithium not recorded in irreversible lithium plating model
3 participants