Repository navigation
Newman tobias model - #1423
Newman tobias model#1423
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #1423 +/- ##
========================================
Coverage 98.27% 98.28%
========================================
Files 279 280 +1
Lines 16131 16165 +34
========================================
+ Hits 15853 15887 +34
Misses 278 278
Continue to review full report at Codecov.
|
|
|
||
| self.initial_conditions = {c_e: self.param.c_e_init} | ||
|
|
||
| def set_boundary_conditions(self, variables): |
There was a problem hiding this comment.
I think at some point we moved these into the submodels to be clearer what the submodels are. It's not too much repeated code.
There was a problem hiding this comment.
Makes sense, I will put them back. I did it this way as you also need to provide boundary conditions for the constant concentration model so that grad(c_e) ends up having the correct shape.
| param["Positive particle radius [m]"] = positive_radius | ||
| # Only get 3dp of accuracy in some tests at 1C with particle distribution | ||
| # TODO: investigate if there is a bug or some way to improve the | ||
| # implementation |
There was a problem hiding this comment.
looks like it. you can get 4dp of accuracy everywhere else.
Description
Adds a new lithium-ion model based on the formulation in JS Newman and CW Tobias. "Theoretical Analysis of Current Distribution in Porous Electrodes". Journal of The Electrochemical Society,1962.
The model assumes uniform (constant) concentration in the electrolyte and includes a single ODE in each electrode for the average particle concentration. Options can be passed to allow different particle models, but there is only ever a single particle in each electrode (i.e. we solve for the x-averaged concentration).
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:
$ flake8$ python run-tests.py --unit$ cd docsand then$ make clean; make htmlYou can run all three at once, using
$ python run-tests.py --quick.Further checks: