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

Addresses #403, remove redundant enduses #405

Merged
merged 15 commits into from
Feb 25, 2020
Merged

Addresses #403, remove redundant enduses #405

merged 15 commits into from
Feb 25, 2020

Conversation

joseph-robertson
Copy link
Contributor

@joseph-robertson joseph-robertson commented Feb 17, 2020

Addresses #403.

Pull Request Description

  • Remove all the net site columns
  • Leave total columns for both true and false
  • Total columns become net of pv
  • Change the default of include_enduse_subcategories from false to true

Checklist

Not all may apply:

  • Unit tests have been added or updated
  • All rake tasks have been run, and pass
  • PAT project measures/outputs have been updated
  • Documentation has been modified appropriately
  • Any new options are added to project_testing
  • project_testing runs without any failures
  • No unexpected regression test changes
  • All tests are passing (green) on circleci
  • The changelog has been updated appropriately
  • This branch is up-to-date with master

For more information on how to perform these checklist items, see the documentation's Advanced Tutorial.

@joseph-robertson joseph-robertson self-assigned this Feb 17, 2020
@joseph-robertson joseph-robertson marked this pull request as ready for review February 17, 2020 18:26
arg.setDisplayName("Include End Use Subcategories")
arg.setDescription("Whether to report end use subcategories: appliances, plug loads, fans, large uncommon loads.")
arg.setDisplayName("Include Disaggregated Interior Equipment")
arg.setDescription("Whether to report interior equipment broken out into components: appliances, plug loads, exhaust fans, large uncommon loads, etc. For each fuel type, total/net energy consumption will not be reported.")
arg.setDefaultValue(false)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we default this to True?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, although I think this would then require change to buildstockbatch, right?

@@ -37,8 +37,8 @@ def arguments

# make an argument for including optional end use subcategories
arg = OpenStudio::Measure::OSArgument::makeBoolArgument("include_enduse_subcategories", true)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe change argument name to "disaggregate_interior_equipment" ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I intentionally left it so that no changes to buildstockbatch would need to be made. Perhaps though we shouldn't take the easy road.

report_sim_output(runner, "net_site_electricity_kwh", electricity.total_end_uses[0] - electricity.photovoltaics[0], "GJ", elec_site_units)
unless include_enduse_subcategories
report_sim_output(runner, "total_site_electricity_kwh", electricity.total_end_uses[0], "GJ", elec_site_units)
report_sim_output(runner, "net_site_electricity_kwh", electricity.total_end_uses[0] + electricity.photovoltaics[0], "GJ", elec_site_units)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We probably don't need both net_site_electricity_kwh and total_site_electricity_kwh.
And, we probably want total_site_electricity_kwh, regardless of include_enduse_subcategories is true or false.

Copy link
Contributor Author

@joseph-robertson joseph-robertson Feb 17, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We talked. We decided to:

  • Remove all the net site columns
  • Leave total columns for both true and false
  • Total columns become net of pv
  • Change the default from false to true

The only difference between false and true is that interior equipment is replaced with each of its components.

@joseph-robertson
Copy link
Contributor Author

@rajeee You good with this now?

@@ -649,19 +648,16 @@ def fuel_oil(sql_file, ann_env_pd)

fuelOilHeating = add_unit(sql_file, fuelOilHeating, units_represented, "SELECT VariableValue/1000000000 FROM ReportMeterData WHERE ReportMeterDataDictionaryIndex IN (SELECT ReportMeterDataDictionaryIndex FROM ReportMeterDataDictionary WHERE VariableType='Sum' AND VariableName IN ('#{unit_name}:FUELOILHEATING') AND ReportingFrequency='#{@reporting_frequency_eplus}' AND VariableUnits='J') AND TimeIndex IN (SELECT TimeIndex FROM Time WHERE EnvironmentPeriodIndex='#{env_period_ix}')")
centralFuelOilHeating = apportion_central(centralFuelOilHeating, modeledCentralFuelOilHeating, units_represented, units.length)
fuelOilInteriorEquipment = add_unit(sql_file, fuelOilInteriorEquipment, units_represented, "SELECT VariableValue/1000000000 FROM ReportMeterData WHERE ReportMeterDataDictionaryIndex IN (SELECT ReportMeterDataDictionaryIndex FROM ReportMeterDataDictionary WHERE VariableType='Sum' AND VariableName IN ('#{unit_name}:FUELOILINTERIOREQUIPMENT') AND ReportingFrequency='#{@reporting_frequency_eplus}' AND VariableUnits='J') AND TimeIndex IN (SELECT TimeIndex FROM Time WHERE EnvironmentPeriodIndex='#{env_period_ix}')")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is fuelOilInteriorEquipment removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't model any interior equipment that consumes fuel oil.

@joseph-robertson joseph-robertson merged commit 0613ef1 into master Feb 25, 2020
@joseph-robertson joseph-robertson deleted the issue-403 branch February 25, 2020 21:00
joseph-robertson added a commit that referenced this pull request Jun 4, 2020
abe59f87e Add schedule args for refrigerator, range.
f8afa69be Merge branch 'master' into build-res-hpxml-v3
036948c90 Merge pull request #408 from NREL/appl-schedules
2905a5c22 Clarify that elements are on the CookingRange, not Oven, element. [ci skip]
7f7a9a5c3 Small update to docs. [ci skip]
12728f67d Update docs for optional schedules.
402655e73 Update epvalidator for optional schedules.
a3ca8fdfb Remove hardcoded schedules for refrigerator, cooking range.
65f888e71 Default refrigerator, cooking range schedules.
bd0821073 Add schedule fracs and mults to refrigerator, cooking range classes.
a5392f2e0 Merge pull request #405 from NREL/cleanup_sample_files
4b8caa56d Merge branch 'master' of https://github.com/NREL/OpenStudio-HPXML into cleanup_sample_files
0459c7238 Merge pull request #406 from NREL/conditioned_ducts_lto_warning
88208ff0f Update test.
b1d5070d0 Adds a warning if a HVACDistribution system has ducts entirely within conditioned space and non-zero leakage to the outside.
415dc76f8 Merge branch 'master' of https://github.com/NREL/OpenStudio-HPXML into cleanup_sample_files
354755974 Cleanup sample files.
fd3526eda Merge pull request #403 from NREL/hp_defrost_control
d5474a4bd Changes heat pump defrost control from OnDemand to Timed.

git-subtree-dir: resources/hpxml-measures
git-subtree-split: abe59f87e214dea8c1a4a0b34365520aba0c353b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants