-
Notifications
You must be signed in to change notification settings - Fork 17
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
Model EV Batteries #1533
base: master
Are you sure you want to change the base?
Model EV Batteries #1533
Conversation
…o ev_batteries # Conflicts: # BuildResidentialHPXML/measure.rb # HPXMLtoOpenStudio/resources/battery.rb # HPXMLtoOpenStudio/resources/hpxml_defaults.rb
… into ev_batteries
Yes, for now we plan to limit to 1 EV/unit. However, the current implementation does allow for one home battery and one EV battery and expects separate schedules for each. |
I assume that probably won't work, for the same reason that modeling two home batteries wasn't previously supported. But we can worry about that later. More of a heads up for now. |
Possibility for upcoming release. I will pull in master and resolve conflicts. Need to allow a simple (smooth) schedule default. It should already be working w/ power outages and vacancies. |
…o ev_batteries # Conflicts: # BuildResidentialHPXML/measure.xml # HPXMLtoOpenStudio/measure.rb # HPXMLtoOpenStudio/measure.xml # HPXMLtoOpenStudio/resources/battery.rb # HPXMLtoOpenStudio/resources/data/unavailable_periods.csv # HPXMLtoOpenStudio/resources/defaults.rb # HPXMLtoOpenStudio/resources/hpxml_schema/HPXML.xsd # HPXMLtoOpenStudio/resources/schedules.rb # ReportSimulationOutput/measure.xml # workflow/tests/base_results/results_simulations_energy.csv
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 was not a thorough review, just some random things I saw while pulling in master and resolving conflicts.
# HPXML EV Battery # | ||
# ---------------- # | ||
|
||
if ['base-battery-ev-lifetime-model.xml'].include? hpxml_file |
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.
Surprised to see this. We previously disabled this model for home batteries (as part of this PR). I don't remember why offhand without digging in. Are we sure we want to use/allow it here?
next unless subcategory.start_with? obj_name | ||
fail 'Unepected error: multiple matches.' unless end_use.nil? | ||
|
||
### FIXME: ensure loss program applies to the correct battery |
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.
Need to address?
def test_ev_battery_home_battery | ||
# TO-DO: test two batteries, one EV, one home | ||
end | ||
|
||
def test_ev_battery_scheduled_default | ||
# TO-DO: test ev battery with schedule (so it is modeled) but with all other fields defaulted | ||
end |
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.
TODO
… in the reporting measure
… are not end-uses; move discharging energy from end-uses to this class
… into ev_batteries
… into ev_batteries
Pull Request Description
Allows a new battery object specific to EVs. Implemented in a way such that it could eventually support bidirectional charging, but not included in this PR.
Companion HPXML PR: hpxmlwg/hpxml#403
Checklist
PR Author: Check these when they're done. Not all may apply.
strikethroughand check any that do not apply.PR Reviewer: Verify each has been completed.
EPvalidator.xml
) has been updatedtasks.rb
)HPXMLtoOpenStudio/tests
and/orworkflow/tests/hpxml_translator_test.rb
)openstudio tasks.rb update_measures
has been run