-
-
Notifications
You must be signed in to change notification settings - Fork 602
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 546 models #564
Issue 546 models #564
Conversation
Codecov Report
@@ Coverage Diff @@
## issue-546-2plus1-lead-acid #564 +/- ##
=============================================================
Coverage ? 96.47%
=============================================================
Files ? 151
Lines ? 7433
Branches ? 0
=============================================================
Hits ? 7171
Misses ? 262
Partials ? 0
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #564 +/- ##
==========================================
+ Coverage 98.05% 98.24% +0.18%
==========================================
Files 151 151
Lines 7319 7393 +74
==========================================
+ Hits 7177 7263 +86
+ Misses 142 130 -12
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.
looks great thanks @tinosulzer !
pybamm/models/submodels/current_collector/quite_conductive_potential_pair.py
Outdated
Show resolved
Hide resolved
pybamm/models/submodels/current_collector/quite_conductive_potential_pair.py
Show resolved
Hide resolved
i_cc = pybamm.FullBroadcast(pybamm.Scalar(0), whole_cell, "current collector") | ||
|
||
# TODO: grad not implemented for 2D yet | ||
i_cc = pybamm.Scalar(0) | ||
i_boundary_cc = pybamm.PrimaryBroadcast( |
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.
for 1D do we expect the i_boundary_cc
to be current_with_time
or current_with_time/cc_area
? Not for this issue, but I'm not sure if it would be more user friendly to provide cell capacity in the csv files and then set the typical current to be the 1C discharge current and C-rate to be 1 by default (obviously the user can adjust these later)
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.
In 1D I think it should be (dimensionless) current_with_time
, which is the same as dimensionless current_density_with_time
but not the same as current_with_time/cc_area
.
Don't completely understand the point about 1C discharge currents?
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.
ah ok. for the 1C thing I was just thinking that for users it might seem strange to provide the typical current in a parameter file, and may be more natural to give the cell capacity as the parameter, which then sets the default typical current (to the 1C discharge current). maybe this is a bit of a non-issue though
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.
Ok - I guess ideal scenario is you can do either and it updates the other. Isn't most battery data current vs voltage rather than Crate vs voltage though?
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.
Even if you are reading in current vs voltage data you still only set one typical current used to non-dimensionlise. As you say, setting either would be best. In any case, I think the default current shouldn't be set to 1A and should instead be set based on the cell capacity (if provided). Then if you are going to be loading in current vs voltage data you might want to change this to a typical current based on your data and then the C-rate changes accordingly (I feel like I'm not explaining this very well haha)
Description
Add some 1+1D models for lead-acid
Fixes #546
Type of change
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: