-
-
Notifications
You must be signed in to change notification settings - Fork 553
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
Issue 492 potentiostatic #751
Conversation
Codecov Report
@@ Coverage Diff @@
## master #751 +/- ##
==========================================
- Coverage 98.39% 98.35% -0.04%
==========================================
Files 176 179 +3
Lines 9701 9810 +109
==========================================
+ Hits 9545 9649 +104
- Misses 156 161 +5
Continue to review full report at Codecov.
|
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 looks great, thanks @tinosulzer !
@@ -10,8 +10,7 @@ Number of electrodes connected in parallel to make a cell,8,Manufacturer, | |||
Number of cells connected in series to make a battery,6,Manufacturer, | |||
Lower voltage cut-off [V],1.73,,(just under) 10.5V across 6-cell battery | |||
Upper voltage cut-off [V],2.44,,(just over) 14.5V across 6-cell battery | |||
C-rate,1,, | |||
Current function,[constant],, | |||
C-rate,0.1,, |
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.
should this still be 1?
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.
one of the tests failed when it was 1C so I just lazily changed it so 0.1C, don't really care about lead-acid any more ...
@@ -34,3 +34,4 @@ Positive current collector thermal conductivity [W.m-1.K-1],237,, | |||
,,, | |||
# Electrical,,, | |||
Cell capacity [A.h],0.680616,,24 Ah/m2 * 0.137m * 0.207m | |||
Typical current [A],1.46925726107,,1C current |
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.
should this just be equal to the cell capacity?
from .base_external_circuit import BaseModel, LeadingOrderBaseModel | ||
|
||
|
||
class FunctionControl(BaseModel): |
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 is great!
# reset processed symbols | ||
self._processed_symbols = {} | ||
|
||
def check_and_update_parameter_values(self, values): | ||
# Make sure "C-rate" and current are both non-zero | ||
if "C-rate" in values and values["C-rate"] == 0: | ||
# Make typical current is non-zero |
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.
make sure typical...
Description
Add models for voltage-controlled and power-controlled discharge
Fixes #492
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 docs
and then$ make clean; make html
You can run all three at once, using
$ python run-tests.py --quick
.Further checks: