Skip to content
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

Optionally calculate simple utility bills #984

Merged
merged 23 commits into from
Sep 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
d476d8e
Add utility bill scenarios arg to buildexistingmodel.
joseph-robertson Sep 1, 2022
5ec6415
Update run_analysis to call utility bill reporting measure.
joseph-robertson Sep 1, 2022
ad00399
Stub utility_bills block in example yml files.
joseph-robertson Sep 1, 2022
da4a69f
Point to bsb branch in config.
joseph-robertson Sep 2, 2022
ec0f188
Update run_analysis test.
joseph-robertson Sep 2, 2022
6926f6b
Latest results.
Sep 2, 2022
ef01f2f
Assign utility bill scenario names from applyupgrade measure.
joseph-robertson Sep 6, 2022
9aa395c
Include utility bills in stored output results.
joseph-robertson Sep 6, 2022
10d9f3e
Latest results.
Sep 6, 2022
562dfba
Update project yml files.
joseph-robertson Sep 7, 2022
70b641a
Update arguments in meta measures.
joseph-robertson Sep 7, 2022
8d53520
Update run_analysis script.
joseph-robertson Sep 7, 2022
e0283ac
Update docs.
joseph-robertson Sep 7, 2022
70adac5
Updates to example yml files.
joseph-robertson Sep 7, 2022
24c9b60
Revert a change in output processing.
joseph-robertson Sep 7, 2022
16b128a
Latest results.
Sep 7, 2022
64398ef
Put scenario names back in applyupgrade measure.
joseph-robertson Sep 8, 2022
d35e6e3
Merge branch 'simple-bill-calcs' of github.com:NREL/resstock into sim…
joseph-robertson Sep 8, 2022
c8e6f9a
Latest results.
Sep 8, 2022
feebb1b
Change name of testing bills scenario so they line up with national.
joseph-robertson Sep 8, 2022
ad62ebc
Latest results.
Sep 8, 2022
ecd8fdd
Update the changelog. [ci skip]
joseph-robertson Sep 9, 2022
9b6f93a
Revert config pointer to bsb branch.
joseph-robertson Sep 9, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ Features
- Add Income and Tenure tsv, update PUMS tsvs from 2017 5-yrs to 2019 5-yrs, update dependencies and fix encoding error in Occupants.tsv ([#900](https://github.com/NREL/resstock/pull/900))
- Add Income and Tenure into Geometry Floor Area ([#949](https://github.com/NREL/resstock/pull/949))
- Add distributions for partial space cooling ([#964](https://github.com/NREL/resstock/pull/964))
- Add ability to calculate emissions for various scenarios ([#791](https://github.com/NREL/resstock/pull/791))
- Add ability to calculate simple utility bills for various scenarios ([#984](https://github.com/NREL/resstock/pull/984))

Fixes
- Clean up option names for natural ventilation and hot water distribution ([#828](https://github.com/NREL/resstock/pull/828))
Expand Down
17 changes: 17 additions & 0 deletions docs/read_the_docs/source/tutorial/setup_analysis_project.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,23 @@ This measure creates the baseline scenario. Set the following inputs:
#. ``Emissions: Propane Values``: Propane emissions factors values, specified as an annual factor. If multiple scenarios, use a comma-separated list. Units are lb/MBtu (million Btu).
#. ``Emissions: Fuel Oil Values``: Fuel oil emissions factors values, specified as an annual factor. If multiple scenarios, use a comma-separated list. Units are lb/MBtu (million Btu).
#. ``Emissions: Wood Values``: Wood emissions factors values, specified as an annual factor. If multiple scenarios, use a comma-separated list. Units are lb/MBtu (million Btu).
#. ``Utility Bills: Scenario Names``: Names of utility bill scenarios. If multiple scenarios, use a comma-separated list.
#. ``Utility Bills: Electricity Fixed Charges``: Electricity monthly fixed charges. If multiple scenarios, use a comma-separated list.
#. ``Utility Bills: Electricity Marginal Rates``: Electricity marginal rates. If multiple scenarios, use a comma-separated list. Units are $/kWh.
#. ``Utility Bills: Natural Gas Fixed Charges``: Natural gas monthly fixed charges. If multiple scenarios, use a comma-separated list.
#. ``Utility Bills: Natural Gas Marginal Rates``: Natural gas marginal rates. If multiple scenarios, use a comma-separated list. Units are $/therm.
#. ``Utility Bills: Propane Fixed Charges``: Propane monthly fixed charges. If multiple scenarios, use a comma-separated list.
#. ``Utility Bills: Propane Marginal Rates``: Propane marginal rates. If multiple scenarios, use a comma-separated list. Units are $/gallon.
#. ``Utility Bills: Fuel Oil Fixed Charges``: Fuel oil monthly fixed charges. If multiple scenarios, use a comma-separated list.
#. ``Utility Bills: Fuel Oil Marginal Rates``: Fuel oil marginal rates. If multiple scenarios, use a comma-separated list. Units are $/gallon.
#. ``Utility Bills: Wood Fixed Charges``: Wood monthly fixed charges. If multiple scenarios, use a comma-separated list.
#. ``Utility Bills: Wood Marginal Rates``: Wood marginal rates. If multiple scenarios, use a comma-separated list. Units are $/kBtu.
#. ``Utility Bills: PV Compensation Types``: Photovoltaic compensation types. Can be NetMetering or FeedInTariff. If multiple scenarios, use a comma-separated list.
#. ``Utility Bills: PV Net Metering Annual Excess Sellback Rate Types``: Photovoltaic net metering annual excess sellback rate types. Can be User-Specified or Retail Electricity Cost. Applies if compensation type is NetMetering. If multiple scenarios, use a comma-separated list.
#. ``Utility Bills: PV Net Metering Annual Excess Sellback Rates``: Photovoltaic net metering annual excess sellback rates. Applies if compensation type is NetMetering. If multiple scenarios, use a comma-separated list. Units are $/kWh.
#. ``Utility Bills: PV Feed-In Tariff Rates``: Photovoltaic annual full/gross feed-in tariff rates. Applies if compensation type is FeedInTariff. If multiple scenarios, use a comma-separated list. Units are $/kWh.
#. ``Utility Bills: PV Monthly Grid Connection Fee Units``: Photovoltaic monthly grid connection fee units. Can be $ or $/kW. If multiple scenarios, use a comma-separated list.
#. ``Utility Bills: PV Monthly Grid Connection Fees``: Photovoltaic monthly grid connection fees. If multiple scenarios, use a comma-separated list.

As a meta measure, the ``BuildExistingModel`` measure incrementally applies the following OpenStudio measures to create residential building models:

Expand Down
19 changes: 19 additions & 0 deletions measures/ApplyUpgrade/measure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,25 @@ def run(model, runner, user_arguments)
measures['BuildResidentialHPXML'][0]['emissions_fuel_oil_values'] = values['emissions_fuel_oil_values']
measures['BuildResidentialHPXML'][0]['emissions_wood_values'] = values['emissions_wood_values']

# Utility Bills
measures['BuildResidentialHPXML'][0]['utility_bill_scenario_names'] = values['utility_bill_scenario_names']
measures['BuildResidentialHPXML'][0]['utility_bill_electricity_fixed_charges'] = values['utility_bill_electricity_fixed_charges']
measures['BuildResidentialHPXML'][0]['utility_bill_electricity_marginal_rates'] = values['utility_bill_electricity_marginal_rates']
measures['BuildResidentialHPXML'][0]['utility_bill_natural_gas_fixed_charges'] = values['utility_bill_natural_gas_fixed_charges']
measures['BuildResidentialHPXML'][0]['utility_bill_natural_gas_marginal_rates'] = values['utility_bill_natural_gas_marginal_rates']
measures['BuildResidentialHPXML'][0]['utility_bill_propane_fixed_charges'] = values['utility_bill_propane_fixed_charges']
measures['BuildResidentialHPXML'][0]['utility_bill_propane_marginal_rates'] = values['utility_bill_propane_marginal_rates']
measures['BuildResidentialHPXML'][0]['utility_bill_fuel_oil_fixed_charges'] = values['utility_bill_fuel_oil_fixed_charges']
measures['BuildResidentialHPXML'][0]['utility_bill_fuel_oil_marginal_rates'] = values['utility_bill_fuel_oil_marginal_rates']
measures['BuildResidentialHPXML'][0]['utility_bill_wood_fixed_charges'] = values['utility_bill_wood_fixed_charges']
measures['BuildResidentialHPXML'][0]['utility_bill_wood_marginal_rates'] = values['utility_bill_wood_marginal_rates']
measures['BuildResidentialHPXML'][0]['utility_bill_pv_compensation_types'] = values['utility_bill_pv_compensation_types']
measures['BuildResidentialHPXML'][0]['utility_bill_pv_net_metering_annual_excess_sellback_rate_types'] = values['utility_bill_pv_net_metering_annual_excess_sellback_rate_types']
measures['BuildResidentialHPXML'][0]['utility_bill_pv_net_metering_annual_excess_sellback_rates'] = values['utility_bill_pv_net_metering_annual_excess_sellback_rates']
measures['BuildResidentialHPXML'][0]['utility_bill_pv_feed_in_tariff_rates'] = values['utility_bill_pv_feed_in_tariff_rates']
measures['BuildResidentialHPXML'][0]['utility_bill_pv_monthly_grid_connection_fee_units'] = values['utility_bill_pv_monthly_grid_connection_fee_units']
measures['BuildResidentialHPXML'][0]['utility_bill_pv_monthly_grid_connection_fees'] = values['utility_bill_pv_monthly_grid_connection_fees']

# Get registered values and pass them to BuildResidentialScheduleFile
measures['BuildResidentialScheduleFile'][0]['schedules_random_seed'] = values['building_id']
measures['BuildResidentialScheduleFile'][0]['output_csv_path'] = File.expand_path('../schedules.csv')
Expand Down
18 changes: 9 additions & 9 deletions measures/ApplyUpgrade/measure.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<schema_version>3.0</schema_version>
<name>apply_upgrade</name>
<uid>33f1654c-f734-43d1-b35d-9d2856e41b5a</uid>
<version_id>1b1e80d0-9b88-4758-aaeb-d603f9c35857</version_id>
<version_modified>20220610T190228Z</version_modified>
<version_id>b3527288-4721-4237-a024-9bbe70744caf</version_id>
<version_modified>20220908T020038Z</version_modified>
<xml_checksum>9339BE01</xml_checksum>
<class_name>ApplyUpgrade</class_name>
<display_name>Apply Upgrade</display_name>
Expand Down Expand Up @@ -6327,6 +6327,12 @@
<usage_type>resource</usage_type>
<checksum>F595D17B</checksum>
</file>
<file>
<filename>apply_upgrade_test.rb</filename>
<filetype>rb</filetype>
<usage_type>test</usage_type>
<checksum>4D55D0B8</checksum>
</file>
<file>
<version>
<software_program>OpenStudio</software_program>
Expand All @@ -6336,13 +6342,7 @@
<filename>measure.rb</filename>
<filetype>rb</filetype>
<usage_type>script</usage_type>
<checksum>0DFCB95E</checksum>
</file>
<file>
<filename>apply_upgrade_test.rb</filename>
<filetype>rb</filetype>
<usage_type>test</usage_type>
<checksum>4D55D0B8</checksum>
<checksum>7C582801</checksum>
</file>
</files>
</measure>
Loading