-
-
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
Drive Cycle in Experiment #1279
Conversation
Added the functionality to simulate drive cycle using experiment class. And an Example Script has also been added.
Codecov Report
@@ Coverage Diff @@
## develop #1279 +/- ##
===========================================
- Coverage 98.07% 97.86% -0.22%
===========================================
Files 270 270
Lines 15030 15065 +35
===========================================
+ Hits 14741 14743 +2
- Misses 289 322 +33
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.
pybamm/experiments/experiment.py
Outdated
# because drive cycles are sampled at 1Hz frequency | ||
time = 1 | ||
period = 1 | ||
events = None |
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.
drive cycles should still (optionally) allow for events
Issue 1194 initial conditions
Issue 1244 algebraic j
Sucessfully implemented for event. Until event is not causing the solver to stop.
@alibh95 I have an idea for how to do this slightly differently. Are you still working on it? |
@tinosulzer Yes, I am working on this issue. Till now I am able to add the functionality of "for event" but unable to add the functionality of "until event". |
Description
Added the functionality to simulate drive cycle using the experiment class.
Fixes # (issue)
#1193
#1265
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: