-
Notifications
You must be signed in to change notification settings - Fork 27
Unit fuel meters #2138
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
base: battery-resilience-refactor
Are you sure you want to change the base?
Unit fuel meters #2138
Conversation
ReportSimulationOutput/measure.rb
Outdated
| if @hpxml_bldgs.size == 1 | ||
| Model.add_output_meter(model, meter_name: "#{fuel.meter.gsub(':', '_')}_CustomMeter", reporting_frequency: 'runperiod') # Used for error checking | ||
| else | ||
| @hpxml_bldgs.each do |hpxml_bldg| | ||
| unit_num = @hpxml_bldgs.index(hpxml_bldg) + 1 | ||
| Model.add_output_meter(model, meter_name: "unit#{unit_num}_#{fuel.meter.gsub(':', '_')}_CustomMeter", reporting_frequency: 'runperiod') # Used for error checking | ||
| end | ||
| 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.
Wrap this in a method?
HPXMLtoOpenStudio/measure.rb
Outdated
| Outputs.create_unit_fuel_meter(model, EPlus::FuelTypeElectricity, 'ElectricityProduced:Facility') | ||
| Outputs.create_unit_fuel_meter(model, EPlus::FuelTypeElectricity, 'ElectricStorage:ElectricityProduced') |
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.
Using these meters is motivated by resilience calculations for batteries. Should we additionally create unit meters for MeterCustomElectricityTotal, MeterCustomElectricityNet, and MeterCustomElectricityPV so that we can support reporting out Electricity Total and Net for each unit?
Fuel Use: Unit1: Electricity: Total (MBtu), x
Fuel Use: Unit1: Electricity: Net (MBtu), y
Fuel Use: Unit1: Natural Gas: Total (MBtu), z
...
…tal and Net for each unit.
| Annual Energy by Fuel Use by Unit | ||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
|
||
| Fuel uses by unit are listed below. | ||
|
|
||
| ================================================== =========================== | ||
| Type Notes | ||
| ================================================== =========================== | ||
| Fuel Use: <BuildingID>: Electricity: Total (MBtu) Total electricity consumption | ||
| Fuel Use: <BuildingID>: Electricity: Net (MBtu) Total energy consumption minus power produced by PV | ||
| Fuel Use: <BuildingID>: Natural Gas: Total (MBtu) | ||
| Fuel Use: <BuildingID>: Fuel Oil: Total (MBtu) Includes "fuel oil", "fuel oil 1", "fuel oil 2", "fuel oil 4", "fuel oil 5/6", "kerosene", and "diesel" | ||
| Fuel Use: <BuildingID>: Propane: Total (MBtu) | ||
| Fuel Use: <BuildingID>: Wood Cord: Total (MBtu) | ||
| Fuel Use: <BuildingID>: Wood Pellets: Total (MBtu) | ||
| Fuel Use: <BuildingID>: Coal: Total (MBtu) Includes "coal", "anthracite coal", "bituminous coal", and "coke" |
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.
Note about only populating these outputs if running whole-building simulation (i.e., more than 1 dwelling unit)?
|
We should think about how this interacts with modeling central/shared systems. |
Pull Request Description
Addresses #1499. Adds custom meters to calculate energy use for each dwelling unit.
Checklist
Not all may apply:
EPvalidator.sch) has been updatedopenstudio tasks.rb update_hpxmls)HPXMLtoOpenStudio/tests/test*.rband/orworkflow/tests/test*.rb)openstudio tasks.rb update_measureshas been run