-
-
Notifications
You must be signed in to change notification settings - Fork 555
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
Changed fundamental SEI variable from thickness to concentration #3171
base: develop
Are you sure you want to change the base?
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## develop #3171 +/- ##
===========================================
- Coverage 99.59% 99.58% -0.01%
===========================================
Files 257 258 +1
Lines 20802 20822 +20
===========================================
+ Hits 20718 20736 +18
- Misses 84 86 +2 ☔ View full report in Codecov by Sentry. |
…issue-3006-SEI-LAM
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, this is great! Exactly what I was envisioning.
Could you post some "before and after" plots of SEI thickness and concentration vs time just to confirm that the results are unchanged (except where the lithium conservation bugs are fixed)?
Are there any tests you can think of adding to verify that lithium is now conserved (these tests should fail on develop but pass on this branch)?
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, test looks good, need to fix the failing example though
A bit more information on the glithces Simon found regarding however, when I do |
@DrSOKane, thanks for this! have you had any luck in debugging the notebook? would be good to get this in for the next release |
Might be worth to merge develop into this branch first, as we have improved how notebooks are tested, which might help debug. |
Note: that also means they need to be written in a slightly different way, i.e. in a literate programming sense rather than as a Python script which they were earlier converted to at the time of testing |
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Update: It's worse than I thought. This bug also exists for the lithium plating model! If you run either SEI or lithium-plating with |
@DrSOKane can you update this branch and then point me to where things break and I can take a look? This is what we worked on debugging when I visited Imperial earlier this year, right? |
Description
Previously, lithium was not conserved if both SEI growth and loss of active material were enabled. To fix this, the fundamental variable to be solved for is now SEI concentration, not thickness. This has the added bonus of simplifying the SEI on cracks model.
Fixes #3006
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:
$ pre-commit run
(see CONTRIBUTING.md for how to set this up to run automatically when committing locally, in just two lines of code)$ python run-tests.py --all
$ python run-tests.py --doctest
You can run unit and doctests together at once, using
$ python run-tests.py --quick
.Further checks: