Variable scale and reference - #2440
Conversation
Codecov ReportBase: 99.72% // Head: 99.72% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## more-simplifications #2440 +/- ##
=====================================================
Coverage 99.72% 99.72%
=====================================================
Files 258 258
Lines 19211 19258 +47
=====================================================
+ Hits 19158 19205 +47
Misses 53 53
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
brosaplanella
left a comment
There was a problem hiding this comment.
Looks good, but the dimensional DFN is not there yet, is it?
| (can be model.rhs, model.algebraic, model.initial_conditions or | ||
| model.variables) | ||
| ics : bool, optional | ||
| Whether the equations are initial conditions. If True, the equations are |
There was a problem hiding this comment.
| Whether the equations are initial conditions. If True, the equations are | |
| Whether the equations have initial conditions. If True, the equations are |
There was a problem hiding this comment.
This is meant to be are, this is the function that discretises the equations (rhs, algebraic, initial conditions) and there is a special case for initial conditions (reference only gets taken away from initial conditions)
| return self.kappa_e_dimensional(c_e_dimensional, self.T_ref) / kappa_scale | ||
|
|
||
| def chiT_over_c(self, c_e, T): | ||
| def chiRT_over_Fc(self, c_e, T): |
There was a problem hiding this comment.
What's the meaning of Fc?
There was a problem hiding this comment.
Faraday's constant times c
|
I removed the dimensional DFN since when we eventually dimensionalize all the models it will not be there, so I don't want people adding it to their code. This PR now only adds the scaling and reference |
Description
Adds
scaleandreferenceattributes to a variable, which are used to multiply and/or add a value to a variable to make the resulting numerics better conditioned.Progress towards #2418
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: