-
-
Notifications
You must be signed in to change notification settings - Fork 590
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 757 rate capability #845
Issue 757 rate capability #845
Conversation
…brosa/PyBaMM into issue-757-rate-capability
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.
thanks @ferranbrosa , looks good. However, I don't think we need a separate script for high C-rate DFN, adding some comments to the existing DFN script to explain how you would change it to high C-rate should be enough
examples/scripts/DFN_high_Crate.py
Outdated
disc.process_model(model) | ||
|
||
# solve model | ||
t_eval = np.linspace(0, 0.2, 1E4) |
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.
needs to be updated with t_eval in seconds
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.
I did this such a long time ago that I thought someone else had done it haha. I have removed it now.
plt.scatter(currents * voltage_av, capacities * voltage_av) | ||
plt.xlabel('Power [W]') | ||
plt.ylabel('Energy [Wh]') | ||
|
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.
nice!
.gitignore
Outdated
@@ -91,3 +91,6 @@ cmake_install.cmake | |||
|
|||
|
|||
third-party/pybind11 | |||
|
|||
# LGM50 results | |||
results/LGM50/ |
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 can be removed?
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.
Done
Codecov Report
@@ Coverage Diff @@
## master #845 +/- ##
==========================================
+ Coverage 98.19% 98.24% +0.05%
==========================================
Files 181 180 -1
Lines 10227 10277 +50
==========================================
+ Hits 10042 10097 +55
+ Misses 185 180 -5
Continue to review full report at Codecov.
|
Description
I have added an example script that generates rate capability plots. The implementation is not the best, so feedback on how to make it more efficient is welcome. In any case, I think it is a good first step to include in v0.2.
Because it is an example, rather than a new feature, I haven't added to CHANGELOG.md.
Fixes #757
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: