Issue 2418 dimensional - #2419
Conversation
…M into issue-2418-dimensional
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
…M into issue-2418-dimensional
…M into issue-2418-dimensional
rtimms
left a comment
There was a problem hiding this comment.
Thanks, @tinosulzer, looks great! A few minor changes and a couple of things to check. This is going to make contributing models much simpler.
…am/PyBaMM into issue-2418-dimensional
Divided by 3600 to replace t0_cr
brosaplanella
left a comment
There was a problem hiding this comment.
Looks great, amazing job @tinosulzer! Just a few very minor comments.
| ] | ||
|
|
||
| self.algebraic[delta_phi] = sum_a_j_av - sum_a_j | ||
| self.algebraic[delta_phi] = (sum_a_j_av - sum_a_j) / self.param.a_j_scale |
There was a problem hiding this comment.
Is dividing by self.param.a_j_scale just to have a better conditioned problem?
| phase_name = self.phase_name | ||
|
|
||
| if isinstance(self, pybamm.kinetics.NoReaction): | ||
| a = 1 |
There was a problem hiding this comment.
Was this a bug or was it changed later one?(Asking because we have an issue with calendar ageing that could be related).
There was a problem hiding this comment.
for NoReaction it should have no effect on results since j=0 and a only ever appears as a * j
Co-authored-by: Ferran Brosa Planella <Ferran.Brosa-Planella@warwick.ac.uk>
Description
Makes all models dimensional. Major changes:
scaleandreferenceattributes for variables, which can be set to make sure that variables are order 1. Algebraic equations also have to be multiplied by an appropriate number (e.g.L_x**2) to make them order 1 and hence pass the tolerance check.Most models are now a lot faster but some of the degradation models might be a bit slower, possibly less robust.
Fixes #2418
Fixes #2281
Fixes #2690
Fixes #1260
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: