-
-
Notifications
You must be signed in to change notification settings - Fork 549
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
Current-driven LAM #3253
Current-driven LAM #3253
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## develop #3253 +/- ##
========================================
Coverage 99.71% 99.71%
========================================
Files 248 248
Lines 18824 18871 +47
========================================
+ Hits 18770 18817 +47
Misses 54 54
☔ View full report in Codecov by Sentry. |
Can you add an integration test as well? |
For the integration tests I need parameter values, but I don't have any (need to check the Safari & Delacourt paper, but not sure they will translate). Shall I just some dummy parameters (i.e. made up) and define them in place for the integration tests? I want to update the notebook anyway, so I will come up with some parameters for that too. |
Yes dummy parameters are fine |
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Requesting also @DrSOKane review as I made some changes to the LAM submodels notebook and I believe he was the one who wrote it. |
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.
This new LAM option implements the empirical model of Delacourt and Safari (2012) in PyBaMM. As it is a purely empirical model, I don't see much point in making it compatible with the other LAM models. However, in both the example and the tests, only the linear term of their equation ([26] in Reniers, Mulder and Howey 2019) is included and the nonlinear term is left out. Can you try including the nonlinear term and seeing what happens?
@all-contributors add @DrSOKane for pull request review |
I've put up a pull request to add @DrSOKane! 🎉 |
Question for @brosaplanella and @DrSOKane : should the minus sign for the current-driven LAM term be in the model or in the parameter? |
I agree, but thought it would be better to stick to the notation in Reniers et al |
Description
Implement current-driven LAM submodel. At the moment it cannot be combined with the other ones, but that's because I wasn't sure how we should set the options (i.e. single string, list of strings...). Happy to leave it as is for the time being or to implement a fix if we agree on a format.
Fixes #3252
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
(or$ nox -s pre-commit
) (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
(or$ nox -s tests
)$ python run-tests.py --doctest
(or$ nox -s doctests
)You can run integration tests, unit tests, and doctests together at once, using
$ python run-tests.py --quick
(or$ nox -s quick
).Further checks: