urbanopt-cli 0.10.0 → 0.11.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/release.yml +24 -0
- data/.github/workflows/nightly_ci_build.yml +37 -33
- data/.gitignore +1 -0
- data/CHANGELOG.md +25 -0
- data/CMakeLists.txt +7 -7
- data/FindOpenStudioSDK.cmake +10 -10
- data/LICENSE.md +8 -35
- data/README.md +25 -10
- data/example_files/Gemfile +9 -9
- data/example_files/example_project_combined.json +6 -2
- data/example_files/example_project_with_ghe.json +859 -0
- data/example_files/mappers/Baseline.rb +39 -415
- data/example_files/mappers/ChilledWaterStorage.rb +1 -1
- data/example_files/mappers/CreateBar.rb +1 -1
- data/example_files/mappers/EvCharging.rb +1 -1
- data/example_files/mappers/FlexibleHotWater.rb +1 -1
- data/example_files/mappers/Floorspace.rb +1 -1
- data/example_files/mappers/HighEfficiency.rb +1 -1
- data/example_files/mappers/HighEfficiencyCreateBar.rb +1 -1
- data/example_files/mappers/HighEfficiencyFloorspace.rb +1 -1
- data/example_files/mappers/PeakHoursMelsShedding.rb +1 -1
- data/example_files/mappers/PeakHoursThermostatAdjust.rb +1 -1
- data/example_files/mappers/ThermalStorage.rb +1 -1
- data/example_files/mappers/base_workflow.osw +11 -4
- data/example_files/mappers/residential/template/util.rb +138 -0
- data/example_files/mappers/residential/util.rb +276 -0
- data/example_files/measures/BuildResidentialModel/measure.rb +118 -230
- data/example_files/measures/BuildResidentialModel/measure.xml +344 -233
- data/example_files/measures/BuildResidentialModel/resources/geometry.rb +7 -2
- data/example_files/measures/BuildResidentialModel/resources/unit_conversions.rb +5 -0
- data/example_files/measures/BuildResidentialModel/resources/util.rb +5 -0
- data/example_files/measures/BuildResidentialModel/tests/test_build_residential_model.rb +344 -0
- data/example_files/measures/BuildResidentialModel/tests/xml_building/17/feature1.xml +2112 -0
- data/example_files/measures/BuildResidentialModel/tests/xml_building/17/feature2.xml +2112 -0
- data/example_files/osm_building/7.osm +0 -2
- data/example_files/osm_building/8.osm +0 -2
- data/example_files/osm_building/9.osm +0 -2
- data/example_files/python_deps/dependencies.json +4 -3
- data/example_files/resources/hpxml-measures/.gitattributes +3 -0
- data/example_files/resources/hpxml-measures/.github/pull_request_template.md +2 -2
- data/example_files/resources/hpxml-measures/.github/workflows/add_to_project.yml +17 -0
- data/example_files/resources/hpxml-measures/.github/workflows/config.yml +37 -8
- data/example_files/resources/hpxml-measures/.gitignore +1 -0
- data/example_files/resources/hpxml-measures/.readthedocs.yml +6 -2
- data/example_files/resources/hpxml-measures/BuildResidentialHPXML/README.md +5596 -0
- data/example_files/resources/hpxml-measures/BuildResidentialHPXML/README.md.erb +41 -0
- data/example_files/resources/hpxml-measures/BuildResidentialHPXML/measure.rb +1324 -1035
- data/example_files/resources/hpxml-measures/BuildResidentialHPXML/measure.xml +325 -236
- data/example_files/resources/hpxml-measures/BuildResidentialHPXML/resources/geometry.rb +119 -152
- data/example_files/resources/hpxml-measures/BuildResidentialHPXML/tests/{build_residential_hpxml_test.rb → test_build_residential_hpxml.rb} +225 -107
- data/example_files/resources/hpxml-measures/BuildResidentialScheduleFile/README.md +96 -0
- data/example_files/resources/hpxml-measures/BuildResidentialScheduleFile/README.md.erb +41 -0
- data/example_files/resources/hpxml-measures/BuildResidentialScheduleFile/measure.rb +73 -31
- data/example_files/resources/hpxml-measures/BuildResidentialScheduleFile/measure.xml +60 -40
- data/example_files/resources/hpxml-measures/BuildResidentialScheduleFile/resources/README.md +48 -23
- data/example_files/resources/hpxml-measures/BuildResidentialScheduleFile/resources/constants.rb +5 -0
- data/example_files/resources/hpxml-measures/BuildResidentialScheduleFile/resources/schedules.rb +6 -12
- data/example_files/resources/hpxml-measures/BuildResidentialScheduleFile/tests/{build_residential_schedule_file_test.rb → test_build_residential_schedule_file.rb} +162 -35
- data/example_files/resources/hpxml-measures/Changelog.md +57 -1
- data/example_files/resources/hpxml-measures/Gemfile +1 -1
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/README.md +83 -0
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/README.md.erb +41 -0
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/measure.rb +1081 -878
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/measure.xml +258 -204
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/resources/airflow.rb +205 -178
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/resources/battery.rb +43 -18
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/resources/constants.rb +37 -112
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/resources/constructions.rb +34 -73
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/resources/data/Xing_okstate_0664D_13659_Table_A-3.csv +4165 -0
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/resources/data/unavailable_periods.csv +2 -2
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/resources/energyplus.rb +5 -1
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/resources/generator.rb +13 -7
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/resources/geometry.rb +95 -42
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/resources/hotwater_appliances.rb +132 -108
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/resources/hpxml.rb +1695 -1267
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/resources/hpxml_defaults.rb +668 -589
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/resources/hpxml_schema/HPXML.xsd +304 -553
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/resources/hpxml_schematron/EPvalidator.xml +197 -112
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/resources/hvac.rb +1140 -1745
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/resources/hvac_sizing.rb +412 -325
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/resources/lighting.rb +56 -48
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/resources/location.rb +49 -38
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/resources/materials.rb +5 -0
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/resources/meta_measure.rb +17 -1
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/resources/minitest_helper.rb +5 -0
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/resources/misc_loads.rb +94 -78
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/resources/output.rb +60 -2
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/resources/psychrometrics.rb +6 -1
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/resources/pv.rb +11 -5
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/resources/schedule_files/occupancy-non-stochastic.csv +1 -1
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/resources/schedule_files/occupancy-stochastic-30-mins.csv +52561 -0
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/resources/schedule_files/occupancy-stochastic_2.csv +8761 -0
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/resources/schedule_files/occupancy-stochastic_3.csv +8761 -0
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/resources/schedule_files/occupancy-stochastic_4.csv +8761 -0
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/resources/schedule_files/occupancy-stochastic_5.csv +8761 -0
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/resources/schedule_files/occupancy-stochastic_6.csv +8761 -0
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/resources/schedules.rb +129 -137
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/resources/simcontrols.rb +12 -21
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/resources/unit_conversions.rb +5 -0
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/resources/util.rb +7 -2
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/resources/utility_bills.rb +6 -1
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/resources/version.rb +7 -2
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/resources/waterheater.rb +179 -144
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/resources/weather.rb +129 -71
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/resources/xmlhelper.rb +5 -0
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/resources/xmlvalidator.rb +23 -6
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/tests/test_airflow.rb +129 -118
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/tests/test_battery.rb +25 -20
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/tests/test_defaults.rb +2282 -2239
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/tests/test_enclosure.rb +395 -204
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/tests/test_generator.rb +12 -7
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/tests/test_hotwater_appliance.rb +56 -51
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/tests/test_hvac.rb +369 -230
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/tests/test_hvac_sizing.rb +371 -191
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/tests/test_lighting.rb +27 -20
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/tests/test_location.rb +55 -5
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/tests/test_miscloads.rb +35 -30
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/tests/test_pv.rb +13 -8
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/tests/test_schedules.rb +107 -93
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/tests/test_simcontrols.rb +11 -6
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/tests/test_validation.rb +757 -573
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/tests/test_water_heater.rb +77 -72
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/tests/test_weather.rb +36 -6
- data/example_files/resources/hpxml-measures/HPXMLtoOpenStudio/tests/util.rb +5 -0
- data/example_files/resources/hpxml-measures/README.md +2 -0
- data/example_files/resources/hpxml-measures/Rakefile +10 -3
- data/example_files/resources/hpxml-measures/ReportSimulationOutput/README.md +787 -0
- data/example_files/resources/hpxml-measures/ReportSimulationOutput/README.md.erb +41 -0
- data/example_files/resources/hpxml-measures/ReportSimulationOutput/measure.rb +730 -418
- data/example_files/resources/hpxml-measures/ReportSimulationOutput/measure.xml +1215 -9
- data/example_files/resources/hpxml-measures/ReportSimulationOutput/tests/{output_report_test.rb → test_report_sim_output.rb} +130 -299
- data/example_files/resources/hpxml-measures/ReportUtilityBills/README.md +87 -0
- data/example_files/resources/hpxml-measures/ReportUtilityBills/README.md.erb +41 -0
- data/example_files/resources/hpxml-measures/ReportUtilityBills/measure.rb +261 -89
- data/example_files/resources/hpxml-measures/ReportUtilityBills/measure.xml +179 -94
- data/example_files/resources/hpxml-measures/ReportUtilityBills/resources/simple_rates/Average_retail_price_of_electricity.csv +68 -68
- data/example_files/resources/hpxml-measures/ReportUtilityBills/resources/simple_rates/NG_PRI_SUM_A_EPG0_PRS_DMCF_A.csv +3 -2
- data/example_files/resources/hpxml-measures/ReportUtilityBills/resources/simple_rates/PET_PRI_WFR_A_EPD2F_PRS_DPGAL_W.csv +713 -685
- data/example_files/resources/hpxml-measures/ReportUtilityBills/resources/simple_rates/PET_PRI_WFR_A_EPLLPA_PRS_DPGAL_W.csv +716 -688
- data/example_files/resources/hpxml-measures/ReportUtilityBills/resources/simple_rates/README.md +5 -2
- data/example_files/resources/hpxml-measures/ReportUtilityBills/resources/util.rb +18 -9
- data/example_files/resources/hpxml-measures/ReportUtilityBills/tests/test_report_utility_bills.rb +1308 -0
- data/example_files/resources/hpxml-measures/docs/requirements.txt +5 -0
- data/example_files/resources/hpxml-measures/docs/source/conf.py +1 -2
- data/example_files/resources/hpxml-measures/docs/source/intro.rst +3 -20
- data/example_files/resources/hpxml-measures/docs/source/usage_instructions.rst +1 -1
- data/example_files/resources/hpxml-measures/docs/source/workflow_inputs.rst +917 -564
- data/example_files/resources/hpxml-measures/docs/source/workflow_outputs.rst +79 -42
- data/example_files/resources/hpxml-measures/tasks.rb +2305 -2055
- data/example_files/resources/hpxml-measures/workflow/hpxml_inputs.json +270 -587
- data/example_files/resources/hpxml-measures/workflow/real_homes/house001.xml +559 -557
- data/example_files/resources/hpxml-measures/workflow/real_homes/house002.xml +522 -520
- data/example_files/resources/hpxml-measures/workflow/real_homes/house003.xml +534 -532
- data/example_files/resources/hpxml-measures/workflow/real_homes/house004.xml +547 -545
- data/example_files/resources/hpxml-measures/workflow/real_homes/house005.xml +546 -544
- data/example_files/resources/hpxml-measures/workflow/real_homes/house006.xml +603 -623
- data/example_files/resources/hpxml-measures/workflow/real_homes/house007.xml +613 -633
- data/example_files/resources/hpxml-measures/workflow/real_homes/house008.xml +699 -721
- data/example_files/resources/hpxml-measures/workflow/real_homes/house009.xml +662 -661
- data/example_files/resources/hpxml-measures/workflow/real_homes/house010.xml +657 -677
- data/example_files/resources/hpxml-measures/workflow/real_homes/house011.xml +470 -467
- data/example_files/resources/hpxml-measures/workflow/real_homes/house012.xml +441 -438
- data/example_files/resources/hpxml-measures/workflow/real_homes/house013.xml +468 -465
- data/example_files/resources/hpxml-measures/workflow/real_homes/house014.xml +469 -466
- data/example_files/resources/hpxml-measures/workflow/real_homes/house015.xml +468 -465
- data/example_files/resources/hpxml-measures/workflow/real_homes/house016.xml +717 -714
- data/example_files/resources/hpxml-measures/workflow/real_homes/house017.xml +647 -645
- data/example_files/resources/hpxml-measures/workflow/real_homes/house018.xml +569 -566
- data/example_files/resources/hpxml-measures/workflow/real_homes/house019.xml +602 -599
- data/example_files/resources/hpxml-measures/workflow/real_homes/house020.xml +630 -627
- data/example_files/resources/hpxml-measures/workflow/real_homes/house021.xml +776 -774
- data/example_files/resources/hpxml-measures/workflow/real_homes/house022.xml +670 -667
- data/example_files/resources/hpxml-measures/workflow/real_homes/house023.xml +632 -629
- data/example_files/resources/hpxml-measures/workflow/real_homes/house024.xml +731 -729
- data/example_files/resources/hpxml-measures/workflow/real_homes/house025.xml +672 -669
- data/example_files/resources/hpxml-measures/workflow/real_homes/house026.xml +667 -644
- data/example_files/resources/hpxml-measures/workflow/real_homes/house027.xml +646 -644
- data/example_files/resources/hpxml-measures/workflow/real_homes/house028.xml +690 -688
- data/example_files/resources/hpxml-measures/workflow/real_homes/house029.xml +701 -699
- data/example_files/resources/hpxml-measures/workflow/real_homes/house030.xml +637 -615
- data/example_files/resources/hpxml-measures/workflow/real_homes/house031.xml +690 -688
- data/example_files/resources/hpxml-measures/workflow/real_homes/house032.xml +557 -554
- data/example_files/resources/hpxml-measures/workflow/real_homes/house033.xml +534 -531
- data/example_files/resources/hpxml-measures/workflow/real_homes/house034.xml +636 -635
- data/example_files/resources/hpxml-measures/workflow/real_homes/house035.xml +616 -613
- data/example_files/resources/hpxml-measures/workflow/real_homes/house036.xml +601 -598
- data/example_files/resources/hpxml-measures/workflow/real_homes/house037.xml +581 -578
- data/example_files/resources/hpxml-measures/workflow/real_homes/house038.xml +624 -622
- data/example_files/resources/hpxml-measures/workflow/real_homes/house039.xml +584 -582
- data/example_files/resources/hpxml-measures/workflow/real_homes/house040.xml +631 -629
- data/example_files/resources/hpxml-measures/workflow/real_homes/house041.xml +922 -921
- data/example_files/resources/hpxml-measures/workflow/real_homes/house042.xml +855 -853
- data/example_files/resources/hpxml-measures/workflow/real_homes/house043.xml +739 -737
- data/example_files/resources/hpxml-measures/workflow/real_homes/house044.xml +798 -796
- data/example_files/resources/hpxml-measures/workflow/real_homes/house045.xml +696 -694
- data/example_files/resources/hpxml-measures/workflow/real_homes/house046.xml +487 -483
- data/example_files/resources/hpxml-measures/workflow/real_homes/house047.xml +443 -440
- data/example_files/resources/hpxml-measures/workflow/real_homes/house048.xml +688 -686
- data/example_files/resources/hpxml-measures/workflow/real_homes/house049.xml +722 -720
- data/example_files/resources/hpxml-measures/workflow/real_homes/house050.xml +619 -617
- data/example_files/resources/hpxml-measures/workflow/run_simulation.rb +13 -20
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-appliances-coal.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-appliances-dehumidifier-ief-portable.xml +11 -12
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-appliances-dehumidifier-ief-whole-home.xml +11 -12
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-appliances-dehumidifier-multiple.xml +12 -13
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-appliances-dehumidifier.xml +11 -12
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-appliances-gas.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-appliances-modified.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-appliances-none.xml +4 -4
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-appliances-oil.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-appliances-propane.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-appliances-wood.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-atticroof-cathedral.xml +11 -11
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-atticroof-conditioned.xml +10 -10
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-atticroof-flat.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-atticroof-radiant-barrier.xml +10 -11
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-atticroof-unvented-insulated-roof.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-atticroof-vented.xml +8 -8
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-battery-scheduled.xml +571 -569
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-battery.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/{base-bldgtype-multifamily-adjacent-to-multifamily-buffer-space.xml → base-bldgtype-mf-unit-adjacent-to-multifamily-buffer-space.xml} +5 -5
- data/example_files/resources/hpxml-measures/workflow/sample_files/{base-bldgtype-multifamily-adjacent-to-multiple.xml → base-bldgtype-mf-unit-adjacent-to-multiple.xml} +17 -17
- data/example_files/resources/hpxml-measures/workflow/sample_files/{base-bldgtype-multifamily-adjacent-to-non-freezing-space.xml → base-bldgtype-mf-unit-adjacent-to-non-freezing-space.xml} +5 -5
- data/example_files/resources/hpxml-measures/workflow/sample_files/{base-bldgtype-multifamily-adjacent-to-other-heated-space.xml → base-bldgtype-mf-unit-adjacent-to-other-heated-space.xml} +5 -5
- data/example_files/resources/hpxml-measures/workflow/sample_files/{base-bldgtype-multifamily-adjacent-to-other-housing-unit.xml → base-bldgtype-mf-unit-adjacent-to-other-housing-unit.xml} +5 -5
- data/example_files/resources/hpxml-measures/workflow/sample_files/{base-bldgtype-multifamily-infil-compartmentalization-test.xml → base-bldgtype-mf-unit-infil-compartmentalization-test.xml} +461 -461
- data/example_files/resources/hpxml-measures/workflow/sample_files/{base-bldgtype-multifamily-residents-1.xml → base-bldgtype-mf-unit-residents-1.xml} +453 -453
- data/example_files/resources/hpxml-measures/workflow/sample_files/{base-bldgtype-multifamily-shared-boiler-chiller-baseboard.xml → base-bldgtype-mf-unit-shared-boiler-chiller-baseboard.xml} +11 -11
- data/example_files/resources/hpxml-measures/workflow/sample_files/{base-bldgtype-multifamily-shared-boiler-chiller-fan-coil-ducted.xml → base-bldgtype-mf-unit-shared-boiler-chiller-fan-coil-ducted.xml} +11 -11
- data/example_files/resources/hpxml-measures/workflow/sample_files/{base-bldgtype-multifamily-shared-boiler-chiller-fan-coil.xml → base-bldgtype-mf-unit-shared-boiler-chiller-fan-coil.xml} +11 -11
- data/example_files/resources/hpxml-measures/workflow/sample_files/{base-bldgtype-multifamily-shared-boiler-chiller-water-loop-heat-pump.xml → base-bldgtype-mf-unit-shared-boiler-chiller-water-loop-heat-pump.xml} +11 -11
- data/example_files/resources/hpxml-measures/workflow/sample_files/{base-bldgtype-multifamily-shared-boiler-cooling-tower-water-loop-heat-pump.xml → base-bldgtype-mf-unit-shared-boiler-cooling-tower-water-loop-heat-pump.xml} +11 -11
- data/example_files/resources/hpxml-measures/workflow/sample_files/{base-bldgtype-multifamily-shared-boiler-only-baseboard.xml → base-bldgtype-mf-unit-shared-boiler-only-baseboard.xml} +11 -11
- data/example_files/resources/hpxml-measures/workflow/sample_files/{base-bldgtype-multifamily-shared-boiler-only-fan-coil-ducted.xml → base-bldgtype-mf-unit-shared-boiler-only-fan-coil-ducted.xml} +11 -11
- data/example_files/resources/hpxml-measures/workflow/sample_files/{base-bldgtype-multifamily-shared-boiler-only-fan-coil-eae.xml → base-bldgtype-mf-unit-shared-boiler-only-fan-coil-eae.xml} +11 -11
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-bldgtype-mf-unit-shared-boiler-only-fan-coil-fireplace-elec.xml +433 -0
- data/example_files/resources/hpxml-measures/workflow/sample_files/{base-bldgtype-multifamily-shared-boiler-only-fan-coil.xml → base-bldgtype-mf-unit-shared-boiler-only-fan-coil.xml} +11 -11
- data/example_files/resources/hpxml-measures/workflow/sample_files/{base-bldgtype-multifamily-shared-boiler-only-water-loop-heat-pump.xml → base-bldgtype-mf-unit-shared-boiler-only-water-loop-heat-pump.xml} +11 -11
- data/example_files/resources/hpxml-measures/workflow/sample_files/{base-bldgtype-multifamily-shared-chiller-only-baseboard.xml → base-bldgtype-mf-unit-shared-chiller-only-baseboard.xml} +11 -11
- data/example_files/resources/hpxml-measures/workflow/sample_files/{base-bldgtype-multifamily-shared-chiller-only-fan-coil-ducted.xml → base-bldgtype-mf-unit-shared-chiller-only-fan-coil-ducted.xml} +11 -11
- data/example_files/resources/hpxml-measures/workflow/sample_files/{base-bldgtype-multifamily-shared-chiller-only-fan-coil.xml → base-bldgtype-mf-unit-shared-chiller-only-fan-coil.xml} +11 -11
- data/example_files/resources/hpxml-measures/workflow/sample_files/{base-bldgtype-multifamily-shared-chiller-only-water-loop-heat-pump.xml → base-bldgtype-mf-unit-shared-chiller-only-water-loop-heat-pump.xml} +11 -11
- data/example_files/resources/hpxml-measures/workflow/sample_files/{base-bldgtype-multifamily-shared-cooling-tower-only-water-loop-heat-pump.xml → base-bldgtype-mf-unit-shared-cooling-tower-only-water-loop-heat-pump.xml} +11 -11
- data/example_files/resources/hpxml-measures/workflow/sample_files/{base-bldgtype-multifamily-shared-generator.xml → base-bldgtype-mf-unit-shared-generator.xml} +13 -13
- data/example_files/resources/hpxml-measures/workflow/sample_files/{base-bldgtype-multifamily-shared-ground-loop-ground-to-air-heat-pump.xml → base-bldgtype-mf-unit-shared-ground-loop-ground-to-air-heat-pump.xml} +13 -13
- data/example_files/resources/hpxml-measures/workflow/sample_files/{base-bldgtype-multifamily-shared-laundry-room-multiple-water-heaters.xml → base-bldgtype-mf-unit-shared-laundry-room-multiple-water-heaters.xml} +480 -480
- data/example_files/resources/hpxml-measures/workflow/sample_files/{base-bldgtype-multifamily-shared-laundry-room.xml → base-bldgtype-mf-unit-shared-laundry-room.xml} +10 -10
- data/example_files/resources/hpxml-measures/workflow/sample_files/{base-bldgtype-multifamily-shared-mechvent-multiple.xml → base-bldgtype-mf-unit-shared-mechvent-multiple.xml} +15 -15
- data/example_files/resources/hpxml-measures/workflow/sample_files/{base-bldgtype-multifamily-shared-mechvent-preconditioning.xml → base-bldgtype-mf-unit-shared-mechvent-preconditioning.xml} +13 -13
- data/example_files/resources/hpxml-measures/workflow/sample_files/{base-bldgtype-multifamily-shared-mechvent.xml → base-bldgtype-mf-unit-shared-mechvent.xml} +13 -13
- data/example_files/resources/hpxml-measures/workflow/sample_files/{base-bldgtype-multifamily-shared-pv.xml → base-bldgtype-mf-unit-shared-pv.xml} +13 -13
- data/example_files/resources/hpxml-measures/workflow/sample_files/{base-bldgtype-multifamily-shared-water-heater-recirc.xml → base-bldgtype-mf-unit-shared-water-heater-recirc.xml} +13 -13
- data/example_files/resources/hpxml-measures/workflow/sample_files/{base-bldgtype-multifamily-shared-water-heater.xml → base-bldgtype-mf-unit-shared-water-heater.xml} +13 -13
- data/example_files/resources/hpxml-measures/workflow/sample_files/{base-bldgtype-multifamily.xml → base-bldgtype-mf-unit.xml} +13 -13
- data/example_files/resources/hpxml-measures/workflow/sample_files/{base-bldgtype-attached-2stories.xml → base-bldgtype-sfa-unit-2stories.xml} +610 -610
- data/example_files/resources/hpxml-measures/workflow/sample_files/{base-bldgtype-attached-atticroof-cathedral.xml → base-bldgtype-sfa-unit-atticroof-cathedral.xml} +558 -558
- data/example_files/resources/hpxml-measures/workflow/sample_files/{base-bldgtype-attached-infil-compartmentalization-test.xml → base-bldgtype-sfa-unit-infil-compartmentalization-test.xml} +610 -610
- data/example_files/resources/hpxml-measures/workflow/sample_files/{base-bldgtype-attached.xml → base-bldgtype-sfa-unit.xml} +610 -610
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-dhw-combi-tankless-outside.xml +8 -8
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-dhw-combi-tankless.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-dhw-desuperheater-2-speed.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-dhw-desuperheater-gshp.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-dhw-desuperheater-hpwh.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-dhw-desuperheater-tankless.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-dhw-desuperheater-var-speed.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-dhw-desuperheater.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-dhw-dwhr.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-dhw-indirect-detailed-setpoints.xml +507 -505
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-dhw-indirect-dse.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-dhw-indirect-outside.xml +8 -8
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-dhw-indirect-standbyloss.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-dhw-indirect-with-solar-fraction.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-dhw-indirect.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-dhw-jacket-electric.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-dhw-jacket-gas.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-dhw-jacket-hpwh.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-dhw-jacket-indirect.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-dhw-low-flow-fixtures.xml +12 -10
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-dhw-multiple.xml +14 -14
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-dhw-none.xml +5 -5
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-dhw-recirc-demand.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-dhw-recirc-manual.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-dhw-recirc-nocontrol.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-dhw-recirc-temperature.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-dhw-recirc-timer.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-dhw-solar-direct-evacuated-tube.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-dhw-solar-direct-flat-plate.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-dhw-solar-direct-ics.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-dhw-solar-fraction.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-dhw-solar-indirect-flat-plate.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-dhw-solar-thermosyphon-flat-plate.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-dhw-tank-coal.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-dhw-tank-detailed-setpoints.xml +12 -10
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-dhw-tank-elec-uef.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-dhw-tank-gas-outside.xml +8 -8
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-dhw-tank-gas-uef-fhr.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-dhw-tank-gas-uef.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-dhw-tank-gas.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-dhw-tank-heat-pump-detailed-schedules.xml +13 -11
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-dhw-tank-heat-pump-operating-mode-heat-pump-only.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-dhw-tank-heat-pump-outside.xml +8 -8
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-dhw-tank-heat-pump-uef.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-dhw-tank-heat-pump-with-solar-fraction.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-dhw-tank-heat-pump-with-solar.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-dhw-tank-heat-pump.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-dhw-tank-model-type-stratified-detailed-occupancy-stochastic.xml +12 -10
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-dhw-tank-model-type-stratified.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-dhw-tank-oil.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-dhw-tank-wood.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-dhw-tankless-detailed-setpoints.xml +12 -10
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-dhw-tankless-electric-outside.xml +8 -8
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-dhw-tankless-electric-uef.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-dhw-tankless-electric.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-dhw-tankless-gas-uef.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-dhw-tankless-gas-with-solar-fraction.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-dhw-tankless-gas-with-solar.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-dhw-tankless-gas.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-dhw-tankless-propane.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-enclosure-2stories-garage.xml +13 -14
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-enclosure-2stories.xml +11 -11
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-enclosure-beds-1.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-enclosure-beds-2.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-enclosure-beds-4.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-enclosure-beds-5.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-enclosure-ceilingtypes.xml +576 -576
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-enclosure-floortypes.xml +519 -519
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-enclosure-garage.xml +4 -5
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-enclosure-infil-ach-house-pressure.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-enclosure-infil-cfm-house-pressure.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-enclosure-infil-cfm50.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-enclosure-infil-ela.xml +548 -548
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-enclosure-infil-flue.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-enclosure-infil-natural-ach.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-enclosure-infil-natural-cfm.xml +551 -551
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-enclosure-orientations.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-enclosure-overhangs.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-enclosure-rooftypes.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-enclosure-skylights-physical-properties.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-enclosure-skylights-shading.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-enclosure-skylights-storms.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-enclosure-skylights.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-enclosure-split-level.xml +10 -11
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-enclosure-thermal-mass.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-enclosure-walltypes.xml +19 -19
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-enclosure-windows-natural-ventilation-availability.xml +555 -553
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-enclosure-windows-none.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-enclosure-windows-physical-properties.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-enclosure-windows-shading-seasons.xml +560 -558
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-enclosure-windows-shading.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-enclosure-windows-storms.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-foundation-ambient.xml +10 -10
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-foundation-basement-garage.xml +10 -11
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-foundation-belly-wing-no-skirt.xml +496 -0
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-foundation-belly-wing-skirt.xml +496 -0
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-foundation-complex.xml +18 -18
- data/example_files/resources/hpxml-measures/workflow/sample_files/{base-schedules-simple-power-outage-natvent-unavailable.xml → base-foundation-conditioned-basement-slab-insulation-full.xml} +552 -564
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-foundation-conditioned-basement-slab-insulation.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-foundation-conditioned-basement-wall-insulation.xml +555 -555
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-foundation-conditioned-crawlspace.xml +8 -8
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-foundation-multiple.xml +5 -5
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-foundation-slab.xml +10 -11
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-foundation-unconditioned-basement-above-grade.xml +4 -4
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-foundation-unconditioned-basement-assembly-r.xml +4 -4
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-foundation-unconditioned-basement-wall-insulation.xml +4 -4
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-foundation-unconditioned-basement.xml +4 -4
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-foundation-unvented-crawlspace.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-foundation-vented-crawlspace-above-grade.xml +558 -0
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-foundation-vented-crawlspace.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-foundation-walkout-basement.xml +15 -15
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-air-to-air-heat-pump-1-speed-cooling-only.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-air-to-air-heat-pump-1-speed-heating-capacity-17f.xml +552 -552
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-air-to-air-heat-pump-1-speed-heating-only.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-air-to-air-heat-pump-1-speed-lockout-temperatures.xml +562 -562
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-air-to-air-heat-pump-1-speed-seer2-hspf2.xml +557 -557
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-air-to-air-heat-pump-1-speed.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-air-to-air-heat-pump-2-speed.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-air-to-air-heat-pump-var-speed-backup-boiler-hvac-seasons.xml +586 -586
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-air-to-air-heat-pump-var-speed-backup-boiler-switchover-temperature.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-air-to-air-heat-pump-var-speed-backup-boiler.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-air-to-air-heat-pump-var-speed-backup-furnace.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/{base-hvac-autosize-air-to-air-heat-pump-var-speed-sizing-methodology-acca.xml → base-hvac-air-to-air-heat-pump-var-speed-detailed-performance-other-temperatures.xml} +89 -13
- data/example_files/resources/hpxml-measures/workflow/sample_files/{base-hvac-autosize-air-to-air-heat-pump-var-speed-sizing-methodology-hers.xml → base-hvac-air-to-air-heat-pump-var-speed-detailed-performance.xml} +107 -13
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-air-to-air-heat-pump-var-speed.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-autosize-sizing-controls.xml +567 -565
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-autosize.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-boiler-coal-only.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-boiler-elec-only.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-boiler-gas-central-ac-1-speed.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-boiler-gas-only-pilot.xml +512 -512
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-boiler-gas-only.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-boiler-oil-only.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-boiler-propane-only.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-boiler-wood-only.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-central-ac-only-1-speed-seer2.xml +536 -536
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-central-ac-only-1-speed.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-central-ac-only-2-speed.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/{base-hvac-autosize-central-ac-only-var-speed.xml → base-hvac-central-ac-only-var-speed-detailed-performance.xml} +49 -10
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-central-ac-only-var-speed.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-central-ac-plus-air-to-air-heat-pump-heating.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-dse.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-dual-fuel-air-to-air-heat-pump-1-speed-lockout-temperatures.xml +559 -559
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-dual-fuel-air-to-air-heat-pump-1-speed.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-dual-fuel-air-to-air-heat-pump-2-speed.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-dual-fuel-air-to-air-heat-pump-var-speed.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-dual-fuel-mini-split-heat-pump-ducted.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-ducts-area-fractions.xml +11 -12
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-ducts-area-multipliers.xml +558 -558
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-ducts-buried.xml +554 -554
- data/example_files/resources/hpxml-measures/workflow/sample_files/{base-hvac-autosize-furnace-gas-room-ac.xml → base-hvac-ducts-defaults.xml} +28 -14
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-ducts-effective-rvalue.xml +552 -552
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-ducts-leakage-cfm50.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-ducts-leakage-percent.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-elec-resistance-only.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-evap-cooler-furnace-gas.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-evap-cooler-only-ducted.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-evap-cooler-only.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-fireplace-wood-only.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-floor-furnace-propane-only.xml +15 -10
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-furnace-coal-only.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-furnace-elec-central-ac-1-speed.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-furnace-elec-only.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-furnace-gas-central-ac-2-speed.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-furnace-gas-central-ac-var-speed.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-furnace-gas-only-detailed-setpoints.xml +12 -10
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-furnace-gas-only-pilot.xml +541 -541
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-furnace-gas-only.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-furnace-gas-room-ac.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-furnace-oil-only.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-furnace-propane-only.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-furnace-wood-only.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-furnace-x3-dse.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-ground-to-air-heat-pump-cooling-only.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-ground-to-air-heat-pump-heating-only.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-ground-to-air-heat-pump.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-install-quality-air-to-air-heat-pump-1-speed.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-install-quality-air-to-air-heat-pump-2-speed.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/{base-hvac-air-to-air-heat-pump-1-speed-autosized-backup.xml → base-hvac-install-quality-air-to-air-heat-pump-var-speed-detailed-performance.xml} +650 -556
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-install-quality-air-to-air-heat-pump-var-speed.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-install-quality-furnace-gas-central-ac-1-speed.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-install-quality-furnace-gas-central-ac-2-speed.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-install-quality-furnace-gas-central-ac-var-speed.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-install-quality-furnace-gas-only.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-install-quality-ground-to-air-heat-pump.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-install-quality-mini-split-air-conditioner-only-ducted.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-install-quality-mini-split-heat-pump-ducted.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-mini-split-air-conditioner-only-ducted.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/{base-hvac-autosize-mini-split-air-conditioner-only-ducted.xml → base-hvac-mini-split-air-conditioner-only-ductless-detailed-performance.xml} +50 -49
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-mini-split-air-conditioner-only-ductless.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-mini-split-heat-pump-ducted-cooling-only.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/{base-hvac-autosize-mini-split-heat-pump-ducted-sizing-methodology-maxload.xml → base-hvac-mini-split-heat-pump-ducted-detailed-performance.xml} +109 -14
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-mini-split-heat-pump-ducted-heating-only.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-mini-split-heat-pump-ducted.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-mini-split-heat-pump-ductless-backup-baseboard.xml +524 -524
- data/example_files/resources/hpxml-measures/workflow/sample_files/{base-hvac-autosize-dual-fuel-mini-split-heat-pump-ducted-backup-hardsized.xml → base-hvac-mini-split-heat-pump-ductless-backup-furnace-ducts-defaults.xml} +560 -552
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-mini-split-heat-pump-ductless-backup-furnace.xml +563 -563
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-mini-split-heat-pump-ductless-backup-stove.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/{base-hvac-autosize-dual-fuel-mini-split-heat-pump-ducted.xml → base-hvac-mini-split-heat-pump-ductless-detailed-performance.xml} +108 -60
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-mini-split-heat-pump-ductless-heating-capacity-17f.xml +505 -505
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-mini-split-heat-pump-ductless.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-multiple.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-none.xml +10 -11
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-ptac-with-heating-electricity.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-ptac-with-heating-natural-gas.xml +504 -504
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-ptac.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-pthp-heating-capacity-17f.xml +512 -512
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-pthp.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-room-ac-only-33percent.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-room-ac-only-ceer.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-room-ac-only-detailed-setpoints.xml +12 -10
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-room-ac-only.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-room-ac-with-heating.xml +504 -504
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-room-ac-with-reverse-cycle.xml +517 -517
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-seasons.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-setpoints-daily-schedules.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-setpoints-daily-setbacks.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-setpoints.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/{base-hvac-fixed-heater-gas-only.xml → base-hvac-space-heater-gas-only.xml} +10 -10
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-stove-oil-only.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-stove-wood-pellets-only.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-undersized.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-wall-furnace-elec-only.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-lighting-ceiling-fans.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-lighting-holiday.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-lighting-kwh-per-year.xml +531 -528
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-lighting-mixed.xml +536 -536
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-lighting-none-ceiling-fans.xml +515 -515
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-lighting-none.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-location-AMY-2012.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-location-baltimore-md.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-location-capetown-zaf.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-location-dallas-tx.xml +10 -11
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-location-duluth-mn.xml +4 -4
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-location-helena-mt.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-location-honolulu-hi.xml +10 -11
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-location-miami-fl.xml +10 -11
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-location-phoenix-az.xml +10 -11
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-location-portland-or.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-mechvent-balanced.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-mechvent-bath-kitchen-fans.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-mechvent-cfis-airflow-fraction-zero.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-mechvent-cfis-dse.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-mechvent-cfis-evap-cooler-only-ducted.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-mechvent-cfis-supplemental-fan-exhaust.xml +576 -576
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-mechvent-cfis-supplemental-fan-supply.xml +576 -576
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-mechvent-cfis.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-mechvent-erv-atre-asre.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-mechvent-erv.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-mechvent-exhaust-rated-flow-rate.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-mechvent-exhaust.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-mechvent-hrv-asre.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-mechvent-hrv.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-mechvent-multiple.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-mechvent-supply.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-mechvent-whole-house-fan.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-misc-additional-properties.xml +21 -19
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-misc-bills-pv-detailed-only.xml +605 -605
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-misc-bills-pv-mixed.xml +587 -587
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-misc-bills-pv.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-misc-bills.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-misc-defaults.xml +3 -3
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-misc-emissions.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-misc-generators-battery-scheduled.xml +587 -585
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-misc-generators-battery.xml +584 -584
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-misc-generators.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-misc-ground-conductivity.xml +555 -555
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-misc-loads-large-uncommon.xml +26 -26
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-misc-loads-large-uncommon2.xml +26 -26
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-misc-loads-none.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-misc-neighbor-shading-bldgtype-multifamily.xml +508 -508
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-misc-neighbor-shading.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-misc-shielding-of-home.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/{base-schedules-simple-power-outage-natvent-available.xml → base-misc-unit-multiplier.xml} +553 -564
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-misc-usage-multiplier.xml +26 -26
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-multiple-mf-units.xml +2755 -0
- data/example_files/resources/hpxml-measures/workflow/sample_files/{base-multiple-buildings.xml → base-multiple-sfd-buildings.xml} +31 -22
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-pv-battery-ah.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-pv-battery-garage.xml +4 -5
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-pv-battery-round-trip-efficiency.xml +597 -597
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-pv-battery-scheduled.xml +599 -597
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-pv-battery.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-pv-generators-battery-scheduled.xml +615 -613
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-pv-generators-battery.xml +612 -612
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-pv-generators.xml +596 -596
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-pv.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-residents-0-runperiod-1-month.xml +559 -559
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-residents-0.xml +555 -555
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-residents-1-misc-loads-large-uncommon.xml +616 -616
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-residents-1-misc-loads-large-uncommon2.xml +616 -616
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-residents-1.xml +547 -547
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-residents-5.xml +515 -515
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-schedules-detailed-all-10-mins.xml +14 -12
- data/example_files/resources/hpxml-measures/workflow/sample_files/{base-hvac-crankcase-heater-40w.xml → base-schedules-detailed-mixed-timesteps-power-outage.xml} +565 -555
- data/example_files/resources/hpxml-measures/workflow/sample_files/{base-schedules-detailed-occupancy-stochastic-vacancy-year-round.xml → base-schedules-detailed-mixed-timesteps.xml} +554 -563
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-schedules-detailed-occupancy-stochastic-10-mins.xml +12 -10
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-schedules-detailed-occupancy-stochastic-power-outage.xml +566 -564
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-schedules-detailed-occupancy-stochastic-vacancy.xml +12 -10
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-schedules-detailed-occupancy-stochastic.xml +12 -10
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-schedules-detailed-setpoints-daily-schedules.xml +12 -10
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-schedules-detailed-setpoints-daily-setbacks.xml +12 -10
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-schedules-detailed-setpoints.xml +12 -10
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-schedules-simple-power-outage.xml +619 -619
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-schedules-simple-vacancy.xml +618 -618
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-schedules-simple.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-simcontrol-calendar-year-custom.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-simcontrol-daylight-saving-custom.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-simcontrol-daylight-saving-disabled.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-simcontrol-runperiod-1-month.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-simcontrol-temperature-capacitance-multiplier.xml +553 -553
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-simcontrol-timestep-10-mins-occupancy-stochastic-10-mins.xml +12 -10
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-simcontrol-timestep-10-mins-occupancy-stochastic-60-mins.xml +12 -10
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-simcontrol-timestep-10-mins.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-simcontrol-timestep-30-mins.xml +552 -552
- data/example_files/resources/hpxml-measures/workflow/sample_files/base.xml +9 -9
- data/example_files/resources/hpxml-measures/workflow/template-build-and-run-hpxml-with-stochastic-occupancy.osw +2 -0
- data/example_files/resources/hpxml-measures/workflow/template-run-hpxml-with-stochastic-occupancy-subset.osw +2 -0
- data/example_files/resources/hpxml-measures/workflow/template-run-hpxml-with-stochastic-occupancy.osw +2 -0
- data/example_files/resources/hpxml-measures/workflow/template-run-hpxml.osw +4 -1
- data/example_files/resources/hpxml-measures/workflow/tests/ACCA_Examples/Long_Residence.xml +385 -385
- data/example_files/resources/hpxml-measures/workflow/tests/ACCA_Examples/Vatilo_Residence.xml +378 -380
- data/example_files/resources/hpxml-measures/workflow/tests/ACCA_Examples/Victor_Residence.xml +369 -369
- data/example_files/resources/hpxml-measures/workflow/tests/ASHRAE_Standard_140/L100AC.xml +7 -7
- data/example_files/resources/hpxml-measures/workflow/tests/ASHRAE_Standard_140/L100AL.xml +7 -7
- data/example_files/resources/hpxml-measures/workflow/tests/ASHRAE_Standard_140/L110AC.xml +7 -7
- data/example_files/resources/hpxml-measures/workflow/tests/ASHRAE_Standard_140/L110AL.xml +7 -7
- data/example_files/resources/hpxml-measures/workflow/tests/ASHRAE_Standard_140/L120AC.xml +7 -7
- data/example_files/resources/hpxml-measures/workflow/tests/ASHRAE_Standard_140/L120AL.xml +7 -7
- data/example_files/resources/hpxml-measures/workflow/tests/ASHRAE_Standard_140/L130AC.xml +7 -7
- data/example_files/resources/hpxml-measures/workflow/tests/ASHRAE_Standard_140/L130AL.xml +7 -7
- data/example_files/resources/hpxml-measures/workflow/tests/ASHRAE_Standard_140/L140AC.xml +7 -7
- data/example_files/resources/hpxml-measures/workflow/tests/ASHRAE_Standard_140/L140AL.xml +7 -7
- data/example_files/resources/hpxml-measures/workflow/tests/ASHRAE_Standard_140/L150AC.xml +7 -7
- data/example_files/resources/hpxml-measures/workflow/tests/ASHRAE_Standard_140/L150AL.xml +7 -7
- data/example_files/resources/hpxml-measures/workflow/tests/ASHRAE_Standard_140/L155AC.xml +7 -7
- data/example_files/resources/hpxml-measures/workflow/tests/ASHRAE_Standard_140/L155AL.xml +7 -7
- data/example_files/resources/hpxml-measures/workflow/tests/ASHRAE_Standard_140/L160AC.xml +7 -7
- data/example_files/resources/hpxml-measures/workflow/tests/ASHRAE_Standard_140/L160AL.xml +7 -7
- data/example_files/resources/hpxml-measures/workflow/tests/ASHRAE_Standard_140/L170AC.xml +7 -7
- data/example_files/resources/hpxml-measures/workflow/tests/ASHRAE_Standard_140/L170AL.xml +7 -7
- data/example_files/resources/hpxml-measures/workflow/tests/ASHRAE_Standard_140/L200AC.xml +7 -7
- data/example_files/resources/hpxml-measures/workflow/tests/ASHRAE_Standard_140/L200AL.xml +7 -7
- data/example_files/resources/hpxml-measures/workflow/tests/ASHRAE_Standard_140/L202AC.xml +7 -7
- data/example_files/resources/hpxml-measures/workflow/tests/ASHRAE_Standard_140/L202AL.xml +7 -7
- data/example_files/resources/hpxml-measures/workflow/tests/ASHRAE_Standard_140/L302XC.xml +7 -8
- data/example_files/resources/hpxml-measures/workflow/tests/ASHRAE_Standard_140/L304XC.xml +7 -8
- data/example_files/resources/hpxml-measures/workflow/tests/ASHRAE_Standard_140/L322XC.xml +6 -6
- data/example_files/resources/hpxml-measures/workflow/tests/ASHRAE_Standard_140/L324XC.xml +6 -6
- data/example_files/resources/hpxml-measures/workflow/tests/base_results/results_sizing.csv +363 -0
- data/example_files/resources/hpxml-measures/workflow/tests/base_results/results_workflow_simulations1.csv +281 -0
- data/example_files/resources/hpxml-measures/workflow/tests/base_results/results_workflow_simulations1_bills.csv +281 -0
- data/example_files/resources/hpxml-measures/workflow/tests/base_results/results_workflow_simulations2.csv +141 -0
- data/example_files/resources/hpxml-measures/workflow/tests/base_results/results_workflow_simulations2_bills.csv +141 -0
- data/example_files/resources/hpxml-measures/workflow/tests/compare.py +12 -6
- data/example_files/resources/hpxml-measures/workflow/tests/util.rb +1141 -0
- data/example_files/weather/USA_CO_Denver.Intl.AP.725650_TMY3.ddy +536 -0
- data/example_files/weather/USA_CO_Denver.Intl.AP.725650_TMY3.epw +8768 -0
- data/example_files/weather/USA_CO_Denver.Intl.AP.725650_TMY3.stat +554 -0
- data/example_files/weather/USA_FL_MacDill.AFB.747880_TMY3.ddy +536 -0
- data/example_files/weather/USA_FL_MacDill.AFB.747880_TMY3.epw +8768 -0
- data/example_files/weather/USA_FL_MacDill.AFB.747880_TMY3.stat +553 -0
- data/example_files/weather/USA_GA_Atlanta-Hartsfield-Jackson.Intl.AP.722190_TMY3-cache.csv +35 -0
- data/example_files/weather/USA_GA_Atlanta-Hartsfield-Jackson.Intl.AP.722190_TMY3.ddy +536 -0
- data/example_files/weather/USA_GA_Atlanta-Hartsfield-Jackson.Intl.AP.722190_TMY3.epw +8768 -0
- data/example_files/weather/USA_GA_Atlanta-Hartsfield-Jackson.Intl.AP.722190_TMY3.stat +553 -0
- data/example_files/weather/USA_NY_Buffalo-Greater.Buffalo.Intl.AP.725280_TMY3-cache.csv +35 -0
- data/example_files/xml_building/17/README.md +4 -2
- data/example_files/xml_building/17/feature.xml +2112 -0
- data/lib/uo_cli/version.rb +1 -1
- data/lib/uo_cli.rb +122 -22
- data/uo_cli.gemspec +6 -8
- metadata +130 -177
- data/Jenkinsfile +0 -10
- data/example_files/base_workflow_res.osw +0 -276
- data/example_files/resources/hpxml-measures/ReportUtilityBills/tests/utility_bills_test.rb +0 -1226
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-appliances-oil-location-miami-fl.xml +0 -551
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-appliances-propane-location-portland-or.xml +0 -551
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-autosize-air-to-air-heat-pump-1-speed-cooling-only.xml +0 -544
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-autosize-air-to-air-heat-pump-1-speed-heating-only.xml +0 -550
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-autosize-air-to-air-heat-pump-1-speed-sizing-methodology-acca.xml +0 -552
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-autosize-air-to-air-heat-pump-1-speed-sizing-methodology-hers.xml +0 -552
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-autosize-air-to-air-heat-pump-1-speed-sizing-methodology-maxload-miami-fl.xml +0 -552
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-autosize-air-to-air-heat-pump-1-speed-sizing-methodology-maxload.xml +0 -552
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-autosize-air-to-air-heat-pump-2-speed-sizing-methodology-acca.xml +0 -552
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-autosize-air-to-air-heat-pump-2-speed-sizing-methodology-hers.xml +0 -552
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-autosize-air-to-air-heat-pump-2-speed-sizing-methodology-maxload.xml +0 -552
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-autosize-air-to-air-heat-pump-var-speed-backup-boiler.xml +0 -569
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-autosize-air-to-air-heat-pump-var-speed-backup-furnace.xml +0 -599
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-autosize-air-to-air-heat-pump-var-speed-sizing-methodology-maxload.xml +0 -552
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-autosize-boiler-elec-only.xml +0 -506
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-autosize-boiler-gas-central-ac-1-speed.xml +0 -560
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-autosize-boiler-gas-only.xml +0 -507
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-autosize-central-ac-only-1-speed.xml +0 -536
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-autosize-central-ac-only-2-speed.xml +0 -536
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-autosize-central-ac-plus-air-to-air-heat-pump-heating.xml +0 -565
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-autosize-dual-fuel-air-to-air-heat-pump-1-speed-sizing-methodology-acca.xml +0 -553
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-autosize-dual-fuel-air-to-air-heat-pump-1-speed-sizing-methodology-hers.xml +0 -553
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-autosize-dual-fuel-air-to-air-heat-pump-1-speed-sizing-methodology-maxload.xml +0 -553
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-autosize-elec-resistance-only.xml +0 -497
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-autosize-evap-cooler-furnace-gas.xml +0 -544
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-autosize-floor-furnace-propane-only.xml +0 -500
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-autosize-furnace-elec-only.xml +0 -536
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-autosize-furnace-gas-central-ac-2-speed.xml +0 -551
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-autosize-furnace-gas-central-ac-var-speed.xml +0 -551
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-autosize-furnace-gas-only.xml +0 -536
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-autosize-ground-to-air-heat-pump-cooling-only.xml +0 -546
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-autosize-ground-to-air-heat-pump-heating-only.xml +0 -552
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-autosize-ground-to-air-heat-pump-sizing-methodology-acca.xml +0 -554
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-autosize-ground-to-air-heat-pump-sizing-methodology-hers.xml +0 -554
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-autosize-ground-to-air-heat-pump-sizing-methodology-maxload.xml +0 -554
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-autosize-mini-split-heat-pump-ducted-cooling-only.xml +0 -543
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-autosize-mini-split-heat-pump-ducted-heating-only.xml +0 -549
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-autosize-mini-split-heat-pump-ducted-sizing-methodology-acca.xml +0 -551
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-autosize-mini-split-heat-pump-ducted-sizing-methodology-hers.xml +0 -551
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-autosize-mini-split-heat-pump-ductless-backup-baseboard.xml +0 -519
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-autosize-mini-split-heat-pump-ductless-backup-stove.xml +0 -522
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-autosize-ptac-with-heating.xml +0 -503
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-autosize-ptac.xml +0 -496
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-autosize-pthp-sizing-methodology-acca.xml +0 -518
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-autosize-pthp-sizing-methodology-hers.xml +0 -518
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-autosize-pthp-sizing-methodology-maxload.xml +0 -518
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-autosize-room-ac-only.xml +0 -496
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-autosize-room-ac-with-heating.xml +0 -503
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-autosize-room-ac-with-reverse-cycle-sizing-methodology-acca.xml +0 -518
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-autosize-room-ac-with-reverse-cycle-sizing-methodology-hers.xml +0 -518
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-autosize-room-ac-with-reverse-cycle-sizing-methodology-maxload.xml +0 -518
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-autosize-stove-oil-only.xml +0 -500
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-autosize-wall-furnace-elec-only.xml +0 -500
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-floor-furnace-propane-only-pilot-light.xml +0 -506
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-portable-heater-gas-only.xml +0 -501
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-hvac-undersized-allow-increased-fixed-capacities.xml +0 -556
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-misc-bills-none.xml +0 -548
- data/example_files/resources/hpxml-measures/workflow/sample_files/base-schedules-simple-vacancy-year-round.xml +0 -619
- data/example_files/resources/hpxml-measures/workflow/tests/base_results/results.csv +0 -475
- data/example_files/resources/hpxml-measures/workflow/tests/base_results/results_bills.csv +0 -475
- data/example_files/resources/hpxml-measures/workflow/tests/hpxml_translator_test.rb +0 -1313
- data/example_files/resources/measure-info.json +0 -26
- data/example_files/resources/meta_measure.rb +0 -301
- data/example_files/xml_building/17/unit 1.xml +0 -580
- data/example_files/xml_building/17/unit 2.xml +0 -553
- data/example_files/xml_building/17/unit 3.xml +0 -553
- data/example_files/xml_building/17/unit 4.xml +0 -580
- /data/example_files/{residential → mappers/residential/template/iecc}/clothes_dryer.tsv +0 -0
- /data/example_files/{residential → mappers/residential/template/iecc}/clothes_washer.tsv +0 -0
- /data/example_files/{residential → mappers/residential/template/iecc}/cooling_system.tsv +0 -0
- /data/example_files/{residential → mappers/residential/template/iecc}/dishwasher.tsv +0 -0
- /data/example_files/{residential → mappers/residential/template/iecc}/enclosure.tsv +0 -0
- /data/example_files/{residential → mappers/residential/template/iecc}/heat_pump.tsv +0 -0
- /data/example_files/{residential → mappers/residential/template/iecc}/heating_system.tsv +0 -0
- /data/example_files/{residential → mappers/residential/template/iecc}/mechanical_ventilation.tsv +0 -0
- /data/example_files/{residential → mappers/residential/template/iecc}/refrigerator.tsv +0 -0
- /data/example_files/{residential → mappers/residential/template/iecc}/water_heater.tsv +0 -0
- /data/example_files/resources/hpxml-measures/ReportUtilityBills/tests/{JacksonElectricMemberCorp-ResidentialSeniorCitizenLowIncomeAssistance.json → Detailed Rate.json} +0 -0
@@ -1,1226 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'oga'
|
4
|
-
require_relative '../../HPXMLtoOpenStudio/resources/utility_bills'
|
5
|
-
require_relative '../../HPXMLtoOpenStudio/resources/constants'
|
6
|
-
require_relative '../../HPXMLtoOpenStudio/resources/energyplus'
|
7
|
-
require_relative '../../HPXMLtoOpenStudio/resources/hpxml'
|
8
|
-
require_relative '../../HPXMLtoOpenStudio/resources/hpxml_defaults'
|
9
|
-
require_relative '../../HPXMLtoOpenStudio/resources/minitest_helper'
|
10
|
-
require_relative '../../HPXMLtoOpenStudio/resources/schedules'
|
11
|
-
require_relative '../../HPXMLtoOpenStudio/resources/unit_conversions'
|
12
|
-
require_relative '../../HPXMLtoOpenStudio/resources/xmlhelper'
|
13
|
-
require_relative '../../HPXMLtoOpenStudio/resources/version'
|
14
|
-
require_relative '../resources/util.rb'
|
15
|
-
require 'openstudio'
|
16
|
-
require 'openstudio/measure/ShowRunnerOutput'
|
17
|
-
require_relative '../measure.rb'
|
18
|
-
require 'csv'
|
19
|
-
|
20
|
-
class ReportUtilityBillsTest < MiniTest::Test
|
21
|
-
# BEopt 2.9.0.0:
|
22
|
-
# - Standard, New Construction, Single-Family Detached
|
23
|
-
# - 600 sq ft (30 x 20)
|
24
|
-
# - EPW Location: USA_CO_Denver.Intl.AP.725650_TMY3.epw
|
25
|
-
# - Cooking Range: Propane
|
26
|
-
# - Water Heater: Oil Standard
|
27
|
-
# - PV System: None, 1.0 kW, 10.0 kW
|
28
|
-
# - Timestep: 60 min
|
29
|
-
# - User-Specified rates (calculated using default value):
|
30
|
-
# - Electricity: 0.1195179675994109 USD/kWh
|
31
|
-
# - Natural Gas: 0.7734017611590879 USD/therm
|
32
|
-
# - Fuel Oil: 3.495346153846154 USD/gal
|
33
|
-
# - Propane: 2.4532692307692305 USD/gal
|
34
|
-
# - Sample Tiered Rate
|
35
|
-
# - Tier 1: 150 Max kWh
|
36
|
-
# - Tier 2: 300 Max kWh
|
37
|
-
# - Sample Tiered Time-of-Use Rate
|
38
|
-
# - Tier 1: 150 Max kWh (Period 1 and 2)
|
39
|
-
# - Tier 2: 300 Max kWh (Period 2)
|
40
|
-
# - All other options left at default values
|
41
|
-
# Then retrieve 1.csv from output folder
|
42
|
-
|
43
|
-
def setup
|
44
|
-
@args_hash = {}
|
45
|
-
|
46
|
-
# From BEopt Output screen (Utility Bills USD/yr)
|
47
|
-
@expected_bills = {
|
48
|
-
'Test: Electricity: Fixed (USD)' => 96,
|
49
|
-
'Test: Electricity: Energy (USD)' => 632,
|
50
|
-
'Test: Electricity: PV Credit (USD)' => 0,
|
51
|
-
'Test: Natural Gas: Fixed (USD)' => 96,
|
52
|
-
'Test: Natural Gas: Energy (USD)' => 149,
|
53
|
-
'Test: Fuel Oil: Fixed (USD)' => 0,
|
54
|
-
'Test: Fuel Oil: Energy (USD)' => 462,
|
55
|
-
'Test: Propane: Fixed (USD)' => 0,
|
56
|
-
'Test: Propane: Energy (USD)' => 76,
|
57
|
-
'Test: Coal: Fixed (USD)' => 0,
|
58
|
-
'Test: Coal: Energy (USD)' => 0,
|
59
|
-
'Test: Wood Cord: Fixed (USD)' => 0,
|
60
|
-
'Test: Wood Cord: Energy (USD)' => 0,
|
61
|
-
'Test: Wood Pellets: Fixed (USD)' => 0,
|
62
|
-
'Test: Wood Pellets: Energy (USD)' => 0
|
63
|
-
}
|
64
|
-
|
65
|
-
@measure = ReportUtilityBills.new
|
66
|
-
@hpxml_path = File.join(File.dirname(__FILE__), '../../workflow/sample_files/base-pv.xml')
|
67
|
-
@hpxml = HPXML.new(hpxml_path: @hpxml_path)
|
68
|
-
@hpxml.header.utility_bill_scenarios.clear
|
69
|
-
@hpxml.header.utility_bill_scenarios.add(name: 'Test',
|
70
|
-
elec_fixed_charge: 8.0,
|
71
|
-
natural_gas_fixed_charge: 8.0,
|
72
|
-
propane_marginal_rate: 2.4532692307692305,
|
73
|
-
fuel_oil_marginal_rate: 3.495346153846154)
|
74
|
-
|
75
|
-
# Check for presence of fuels once
|
76
|
-
has_fuel = {}
|
77
|
-
hpxml_doc = @hpxml.to_oga
|
78
|
-
Constants.FossilFuels.each do |fuel|
|
79
|
-
has_fuel[fuel] = @hpxml.has_fuel(fuel, hpxml_doc)
|
80
|
-
end
|
81
|
-
|
82
|
-
HPXMLDefaults.apply_header(@hpxml, nil, nil)
|
83
|
-
HPXMLDefaults.apply_utility_bill_scenarios(nil, @hpxml, has_fuel)
|
84
|
-
|
85
|
-
@root_path = File.absolute_path(File.join(File.dirname(__FILE__), '..', '..'))
|
86
|
-
@sample_files_path = File.join(@root_path, 'workflow', 'sample_files')
|
87
|
-
@tmp_hpxml_path = File.join(@sample_files_path, 'tmp.xml')
|
88
|
-
@bills_csv = File.join(File.dirname(__FILE__), 'results_bills.csv')
|
89
|
-
|
90
|
-
@fuels_pv_none_simple = _load_timeseries(0, false)
|
91
|
-
@fuels_pv_1kw_simple = _load_timeseries(1, false)
|
92
|
-
@fuels_pv_10kw_simple = _load_timeseries(10, false)
|
93
|
-
@fuels_pv_none_detailed = _load_timeseries(0, true)
|
94
|
-
@fuels_pv_1kw_detailed = _load_timeseries(1, true)
|
95
|
-
@fuels_pv_10kw_detailed = _load_timeseries(10, true)
|
96
|
-
end
|
97
|
-
|
98
|
-
def teardown
|
99
|
-
File.delete(@tmp_hpxml_path) if File.exist? @tmp_hpxml_path
|
100
|
-
File.delete(@bills_csv) if File.exist? @bills_csv
|
101
|
-
end
|
102
|
-
|
103
|
-
# Simple (non-JSON) Calculations
|
104
|
-
|
105
|
-
def test_simple_pv_none
|
106
|
-
@hpxml.header.utility_bill_scenarios.each do |utility_bill_scenario|
|
107
|
-
actual_bills = _bill_calcs(@fuels_pv_none_simple, @hpxml.header, [], utility_bill_scenario)
|
108
|
-
expected_bills = _get_expected_bills(@expected_bills)
|
109
|
-
_check_bills(expected_bills, actual_bills)
|
110
|
-
end
|
111
|
-
end
|
112
|
-
|
113
|
-
def test_simple_pv_1kW_net_metering_user_excess_rate
|
114
|
-
@hpxml.pv_systems.each { |pv_system| pv_system.max_power_output = 1000.0 / @hpxml.pv_systems.size }
|
115
|
-
@hpxml.header.utility_bill_scenarios.each do |utility_bill_scenario|
|
116
|
-
actual_bills = _bill_calcs(@fuels_pv_1kw_simple, @hpxml.header, @hpxml.pv_systems, utility_bill_scenario)
|
117
|
-
@expected_bills['Test: Electricity: PV Credit (USD)'] = -177
|
118
|
-
expected_bills = _get_expected_bills(@expected_bills)
|
119
|
-
_check_bills(expected_bills, actual_bills)
|
120
|
-
end
|
121
|
-
end
|
122
|
-
|
123
|
-
def test_simple_pv_10kW_net_metering_user_excess_rate
|
124
|
-
@hpxml.pv_systems.each { |pv_system| pv_system.max_power_output = 10000.0 / @hpxml.pv_systems.size }
|
125
|
-
@hpxml.header.utility_bill_scenarios.each do |utility_bill_scenario|
|
126
|
-
actual_bills = _bill_calcs(@fuels_pv_10kw_simple, @hpxml.header, @hpxml.pv_systems, utility_bill_scenario)
|
127
|
-
@expected_bills['Test: Electricity: PV Credit (USD)'] = -920
|
128
|
-
expected_bills = _get_expected_bills(@expected_bills)
|
129
|
-
_check_bills(expected_bills, actual_bills)
|
130
|
-
end
|
131
|
-
end
|
132
|
-
|
133
|
-
def test_simple_pv_10kW_net_metering_retail_excess_rate
|
134
|
-
@hpxml.header.utility_bill_scenarios[-1].pv_net_metering_annual_excess_sellback_rate_type = HPXML::PVAnnualExcessSellbackRateTypeRetailElectricityCost
|
135
|
-
@hpxml.pv_systems.each { |pv_system| pv_system.max_power_output = 10000.0 / @hpxml.pv_systems.size }
|
136
|
-
@hpxml.header.utility_bill_scenarios.each do |utility_bill_scenario|
|
137
|
-
actual_bills = _bill_calcs(@fuels_pv_10kw_simple, @hpxml.header, @hpxml.pv_systems, utility_bill_scenario)
|
138
|
-
@expected_bills['Test: Electricity: PV Credit (USD)'] = -1777
|
139
|
-
expected_bills = _get_expected_bills(@expected_bills)
|
140
|
-
_check_bills(expected_bills, actual_bills)
|
141
|
-
end
|
142
|
-
end
|
143
|
-
|
144
|
-
def test_simple_pv_10kW_net_metering_zero_excess_rate
|
145
|
-
@hpxml.header.utility_bill_scenarios[-1].pv_net_metering_annual_excess_sellback_rate = 0.0
|
146
|
-
@hpxml.pv_systems.each { |pv_system| pv_system.max_power_output = 10000.0 / @hpxml.pv_systems.size }
|
147
|
-
@hpxml.header.utility_bill_scenarios.each do |utility_bill_scenario|
|
148
|
-
actual_bills = _bill_calcs(@fuels_pv_10kw_simple, @hpxml.header, @hpxml.pv_systems, utility_bill_scenario)
|
149
|
-
@expected_bills['Test: Electricity: PV Credit (USD)'] = -632
|
150
|
-
expected_bills = _get_expected_bills(@expected_bills)
|
151
|
-
_check_bills(expected_bills, actual_bills)
|
152
|
-
end
|
153
|
-
end
|
154
|
-
|
155
|
-
def test_simple_pv_1kW_feed_in_tariff
|
156
|
-
@hpxml.header.utility_bill_scenarios[-1].pv_compensation_type = HPXML::PVCompensationTypeFeedInTariff
|
157
|
-
@hpxml.header.utility_bill_scenarios[-1].pv_feed_in_tariff_rate = 0.12
|
158
|
-
@hpxml.pv_systems.each { |pv_system| pv_system.max_power_output = 1000.0 / @hpxml.pv_systems.size }
|
159
|
-
@hpxml.header.utility_bill_scenarios.each do |utility_bill_scenario|
|
160
|
-
actual_bills = _bill_calcs(@fuels_pv_1kw_simple, @hpxml.header, @hpxml.pv_systems, utility_bill_scenario)
|
161
|
-
@expected_bills['Test: Electricity: PV Credit (USD)'] = -178
|
162
|
-
expected_bills = _get_expected_bills(@expected_bills)
|
163
|
-
_check_bills(expected_bills, actual_bills)
|
164
|
-
end
|
165
|
-
end
|
166
|
-
|
167
|
-
def test_simple_pv_10kW_feed_in_tariff
|
168
|
-
@hpxml.header.utility_bill_scenarios[-1].pv_compensation_type = HPXML::PVCompensationTypeFeedInTariff
|
169
|
-
@hpxml.header.utility_bill_scenarios[-1].pv_feed_in_tariff_rate = 0.12
|
170
|
-
@hpxml.pv_systems.each { |pv_system| pv_system.max_power_output = 10000.0 / @hpxml.pv_systems.size }
|
171
|
-
@hpxml.header.utility_bill_scenarios.each do |utility_bill_scenario|
|
172
|
-
actual_bills = _bill_calcs(@fuels_pv_10kw_simple, @hpxml.header, @hpxml.pv_systems, utility_bill_scenario)
|
173
|
-
@expected_bills['Test: Electricity: PV Credit (USD)'] = -1785
|
174
|
-
expected_bills = _get_expected_bills(@expected_bills)
|
175
|
-
_check_bills(expected_bills, actual_bills)
|
176
|
-
end
|
177
|
-
end
|
178
|
-
|
179
|
-
def test_workflow_wood_cord
|
180
|
-
@args_hash['hpxml_path'] = File.absolute_path(@tmp_hpxml_path)
|
181
|
-
hpxml = HPXML.new(hpxml_path: File.join(@sample_files_path, 'base-hvac-furnace-wood-only.xml'))
|
182
|
-
hpxml.header.utility_bill_scenarios.add(name: 'Test 1', wood_marginal_rate: 0.015)
|
183
|
-
hpxml.header.utility_bill_scenarios.add(name: 'Test 2', wood_marginal_rate: 0.03)
|
184
|
-
XMLHelper.write_file(hpxml.to_oga, @tmp_hpxml_path)
|
185
|
-
actual_bills = _test_measure()
|
186
|
-
expected_val = actual_bills['Test 1: Wood Cord: Total (USD)']
|
187
|
-
assert_in_delta(expected_val * 2, actual_bills['Test 2: Wood Cord: Total (USD)'], 1)
|
188
|
-
end
|
189
|
-
|
190
|
-
def test_workflow_wood_pellets
|
191
|
-
@args_hash['hpxml_path'] = File.absolute_path(@tmp_hpxml_path)
|
192
|
-
hpxml = HPXML.new(hpxml_path: File.join(@sample_files_path, 'base-hvac-stove-wood-pellets-only.xml'))
|
193
|
-
hpxml.header.utility_bill_scenarios.add(name: 'Test 1', wood_pellets_marginal_rate: 0.02)
|
194
|
-
hpxml.header.utility_bill_scenarios.add(name: 'Test 2', wood_pellets_marginal_rate: 0.01)
|
195
|
-
XMLHelper.write_file(hpxml.to_oga, @tmp_hpxml_path)
|
196
|
-
actual_bills = _test_measure()
|
197
|
-
expected_val = actual_bills['Test 1: Wood Pellets: Total (USD)']
|
198
|
-
assert_in_delta(expected_val / 2, actual_bills['Test 2: Wood Pellets: Total (USD)'], 1)
|
199
|
-
end
|
200
|
-
|
201
|
-
def test_workflow_coal
|
202
|
-
@args_hash['hpxml_path'] = File.absolute_path(@tmp_hpxml_path)
|
203
|
-
hpxml = HPXML.new(hpxml_path: File.join(@sample_files_path, 'base-hvac-furnace-coal-only.xml'))
|
204
|
-
hpxml.header.utility_bill_scenarios.add(name: 'Test 1', coal_marginal_rate: 0.05)
|
205
|
-
hpxml.header.utility_bill_scenarios.add(name: 'Test 2', coal_marginal_rate: 0.1)
|
206
|
-
hpxml.header.utility_bill_scenarios.add(name: 'Test 3', coal_marginal_rate: 0.025)
|
207
|
-
XMLHelper.write_file(hpxml.to_oga, @tmp_hpxml_path)
|
208
|
-
actual_bills = _test_measure()
|
209
|
-
expected_val = actual_bills['Test 1: Coal: Total (USD)']
|
210
|
-
assert_in_delta(expected_val * 2, actual_bills['Test 2: Coal: Total (USD)'], 1)
|
211
|
-
assert_in_delta(expected_val / 2, actual_bills['Test 3: Coal: Total (USD)'], 1)
|
212
|
-
end
|
213
|
-
|
214
|
-
def test_workflow_leap_year
|
215
|
-
@args_hash['hpxml_path'] = File.absolute_path(@tmp_hpxml_path)
|
216
|
-
hpxml = HPXML.new(hpxml_path: File.join(@sample_files_path, 'base-location-AMY-2012.xml'))
|
217
|
-
XMLHelper.write_file(hpxml.to_oga, @tmp_hpxml_path)
|
218
|
-
actual_bills = _test_measure()
|
219
|
-
assert_operator(actual_bills['Bills: Total (USD)'], :>, 0)
|
220
|
-
end
|
221
|
-
|
222
|
-
def test_workflow_semi_annual_run_period
|
223
|
-
@args_hash['hpxml_path'] = File.absolute_path(@tmp_hpxml_path)
|
224
|
-
hpxml = HPXML.new(hpxml_path: File.join(@sample_files_path, 'base-simcontrol-runperiod-1-month.xml'))
|
225
|
-
XMLHelper.write_file(hpxml.to_oga, @tmp_hpxml_path)
|
226
|
-
actual_bills = _test_measure()
|
227
|
-
assert_operator(actual_bills['Bills: Total (USD)'], :>, 0)
|
228
|
-
end
|
229
|
-
|
230
|
-
def test_workflow_no_bill_scenarios
|
231
|
-
@args_hash['hpxml_path'] = File.absolute_path(@tmp_hpxml_path)
|
232
|
-
hpxml = HPXML.new(hpxml_path: File.join(@sample_files_path, 'base-misc-bills-none.xml'))
|
233
|
-
XMLHelper.write_file(hpxml.to_oga, @tmp_hpxml_path)
|
234
|
-
actual_bills = _test_measure(hpxml: hpxml)
|
235
|
-
assert_nil(actual_bills)
|
236
|
-
end
|
237
|
-
|
238
|
-
def test_workflow_detailed_calculations
|
239
|
-
@args_hash['hpxml_path'] = File.absolute_path(@tmp_hpxml_path)
|
240
|
-
hpxml = HPXML.new(hpxml_path: File.join(@sample_files_path, 'base.xml'))
|
241
|
-
hpxml.header.utility_bill_scenarios.add(name: 'Test 1', elec_tariff_filepath: '../../ReportUtilityBills/tests/JacksonElectricMemberCorp-ResidentialSeniorCitizenLowIncomeAssistance.json')
|
242
|
-
XMLHelper.write_file(hpxml.to_oga, @tmp_hpxml_path)
|
243
|
-
actual_bills = _test_measure()
|
244
|
-
assert_operator(actual_bills['Test 1: Total (USD)'], :>, 0)
|
245
|
-
end
|
246
|
-
|
247
|
-
def test_workflow_detailed_calculations_all_electric
|
248
|
-
@args_hash['hpxml_path'] = File.absolute_path(@tmp_hpxml_path)
|
249
|
-
hpxml = HPXML.new(hpxml_path: File.join(@sample_files_path, 'base-hvac-air-to-air-heat-pump-1-speed.xml'))
|
250
|
-
hpxml.header.utility_bill_scenarios.add(name: 'Test 1', elec_tariff_filepath: '../../ReportUtilityBills/tests/JacksonElectricMemberCorp-ResidentialSeniorCitizenLowIncomeAssistance.json')
|
251
|
-
XMLHelper.write_file(hpxml.to_oga, @tmp_hpxml_path)
|
252
|
-
actual_bills = _test_measure()
|
253
|
-
assert_operator(actual_bills['Test 1: Total (USD)'], :>, 0)
|
254
|
-
end
|
255
|
-
|
256
|
-
def test_auto_marginal_rate
|
257
|
-
fuel_types = [HPXML::FuelTypeElectricity, HPXML::FuelTypeNaturalGas, HPXML::FuelTypeOil, HPXML::FuelTypePropane]
|
258
|
-
|
259
|
-
# Check that we can successfully look up "auto" rates for every state
|
260
|
-
# and every fuel type.
|
261
|
-
Constants.StateCodesMap.keys.each do |state_code|
|
262
|
-
fuel_types.each do |fuel_type|
|
263
|
-
flatratebuy, _ = UtilityBills.get_rates_from_eia_data(nil, state_code, fuel_type, 0)
|
264
|
-
refute_nil(flatratebuy)
|
265
|
-
end
|
266
|
-
end
|
267
|
-
|
268
|
-
# Check that we can successfully look up "auto" rates for the US too.
|
269
|
-
fuel_types.each do |fuel_type|
|
270
|
-
flatratebuy, _ = UtilityBills.get_rates_from_eia_data(nil, 'US', fuel_type, 0)
|
271
|
-
refute_nil(flatratebuy)
|
272
|
-
end
|
273
|
-
|
274
|
-
# Check that any other state code is gracefully handled (no error)
|
275
|
-
fuel_types.each do |fuel_type|
|
276
|
-
UtilityBills.get_rates_from_eia_data(nil, 'XX', fuel_type, 0)
|
277
|
-
end
|
278
|
-
end
|
279
|
-
|
280
|
-
def test_warning_region
|
281
|
-
@args_hash['hpxml_path'] = File.absolute_path(@tmp_hpxml_path)
|
282
|
-
hpxml = HPXML.new(hpxml_path: File.join(@sample_files_path, 'base-appliances-oil-location-miami-fl.xml'))
|
283
|
-
XMLHelper.write_file(hpxml.to_oga, @tmp_hpxml_path)
|
284
|
-
expected_warnings = ['Could not find state average fuel oil rate based on Florida; using region (PADD 1C) average.']
|
285
|
-
actual_bills = _test_measure(expected_warnings: expected_warnings)
|
286
|
-
assert_nil(actual_bills)
|
287
|
-
end
|
288
|
-
|
289
|
-
def test_warning_national
|
290
|
-
@args_hash['hpxml_path'] = File.absolute_path(@tmp_hpxml_path)
|
291
|
-
hpxml = HPXML.new(hpxml_path: File.join(@sample_files_path, 'base-appliances-propane-location-portland-or.xml'))
|
292
|
-
XMLHelper.write_file(hpxml.to_oga, @tmp_hpxml_path)
|
293
|
-
expected_warnings = ['Could not find state average propane rate based on Oregon; using national average.']
|
294
|
-
actual_bills = _test_measure(expected_warnings: expected_warnings)
|
295
|
-
assert_nil(actual_bills)
|
296
|
-
end
|
297
|
-
|
298
|
-
def test_warning_dse
|
299
|
-
@args_hash['hpxml_path'] = File.absolute_path(@tmp_hpxml_path)
|
300
|
-
hpxml = HPXML.new(hpxml_path: File.join(@sample_files_path, 'base-hvac-dse.xml'))
|
301
|
-
XMLHelper.write_file(hpxml.to_oga, @tmp_hpxml_path)
|
302
|
-
expected_warnings = ['DSE is not currently supported when calculating utility bills.']
|
303
|
-
actual_bills = _test_measure(expected_warnings: expected_warnings)
|
304
|
-
assert_nil(actual_bills)
|
305
|
-
end
|
306
|
-
|
307
|
-
def test_warning_no_rates
|
308
|
-
@args_hash['hpxml_path'] = File.absolute_path(@tmp_hpxml_path)
|
309
|
-
hpxml = HPXML.new(hpxml_path: File.join(@sample_files_path, 'base-location-capetown-zaf.xml'))
|
310
|
-
XMLHelper.write_file(hpxml.to_oga, @tmp_hpxml_path)
|
311
|
-
expected_warnings = ['Could not find a marginal Electricity rate.', 'Could not find a marginal Natural Gas rate.']
|
312
|
-
actual_bills = _test_measure(expected_warnings: expected_warnings)
|
313
|
-
assert_nil(actual_bills)
|
314
|
-
end
|
315
|
-
|
316
|
-
def test_warning_invalid_fixed_charge_units
|
317
|
-
@args_hash['hpxml_path'] = File.absolute_path(@tmp_hpxml_path)
|
318
|
-
hpxml = HPXML.new(hpxml_path: File.join(@sample_files_path, 'base.xml'))
|
319
|
-
hpxml.header.utility_bill_scenarios.add(name: 'Test 1', elec_tariff_filepath: '../../ReportUtilityBills/tests/Invalid Fixed Charge Units.json')
|
320
|
-
XMLHelper.write_file(hpxml.to_oga, @tmp_hpxml_path)
|
321
|
-
expected_warnings = ['Fixed charge units must be $/month.']
|
322
|
-
actual_bills = _test_measure(expected_warnings: expected_warnings)
|
323
|
-
assert_nil(actual_bills)
|
324
|
-
end
|
325
|
-
|
326
|
-
def test_warning_invalid_min_charge_units
|
327
|
-
@args_hash['hpxml_path'] = File.absolute_path(@tmp_hpxml_path)
|
328
|
-
hpxml = HPXML.new(hpxml_path: File.join(@sample_files_path, 'base.xml'))
|
329
|
-
hpxml.header.utility_bill_scenarios.add(name: 'Test 1', elec_tariff_filepath: '../../ReportUtilityBills/tests/Invalid Min Charge Units.json')
|
330
|
-
XMLHelper.write_file(hpxml.to_oga, @tmp_hpxml_path)
|
331
|
-
expected_warnings = ['Min charge units must be either $/month or $/year.']
|
332
|
-
actual_bills = _test_measure(expected_warnings: expected_warnings)
|
333
|
-
assert_nil(actual_bills)
|
334
|
-
end
|
335
|
-
|
336
|
-
def test_warning_demand_charges
|
337
|
-
@args_hash['hpxml_path'] = File.absolute_path(@tmp_hpxml_path)
|
338
|
-
hpxml = HPXML.new(hpxml_path: File.join(@sample_files_path, 'base.xml'))
|
339
|
-
hpxml.header.utility_bill_scenarios.add(name: 'Test 1', elec_tariff_filepath: '../../ReportUtilityBills/tests/Contains Demand Charges.json')
|
340
|
-
XMLHelper.write_file(hpxml.to_oga, @tmp_hpxml_path)
|
341
|
-
expected_warnings = ['Demand charges are not currently supported when calculating detailed utility bills.']
|
342
|
-
actual_bills = _test_measure(expected_warnings: expected_warnings)
|
343
|
-
assert_nil(actual_bills)
|
344
|
-
end
|
345
|
-
|
346
|
-
def test_warning_missing_required_fields
|
347
|
-
@args_hash['hpxml_path'] = File.absolute_path(@tmp_hpxml_path)
|
348
|
-
hpxml = HPXML.new(hpxml_path: File.join(@sample_files_path, 'base.xml'))
|
349
|
-
hpxml.header.utility_bill_scenarios.add(name: 'Test 1', elec_tariff_filepath: '../../ReportUtilityBills/tests/Missing Required Fields.json')
|
350
|
-
XMLHelper.write_file(hpxml.to_oga, @tmp_hpxml_path)
|
351
|
-
expected_warnings = ['Tariff file must contain energyweekdayschedule, energyweekendschedule, and energyratestructure fields.']
|
352
|
-
actual_bills = _test_measure(expected_warnings: expected_warnings)
|
353
|
-
assert_nil(actual_bills)
|
354
|
-
end
|
355
|
-
|
356
|
-
def test_monthly_prorate
|
357
|
-
# Test begin_month == end_month
|
358
|
-
header = HPXML::Header.new(nil)
|
359
|
-
header.sim_begin_month = 3
|
360
|
-
header.sim_begin_day = 5
|
361
|
-
header.sim_end_month = 3
|
362
|
-
header.sim_end_day = 20
|
363
|
-
header.sim_calendar_year = 2002
|
364
|
-
assert_equal(0.0, CalculateUtilityBill.calculate_monthly_prorate(header, 2))
|
365
|
-
assert_equal((20 - 5 + 1) / 31.0, CalculateUtilityBill.calculate_monthly_prorate(header, 3))
|
366
|
-
assert_equal(0.0, CalculateUtilityBill.calculate_monthly_prorate(header, 4))
|
367
|
-
|
368
|
-
# Test begin_month != end_month
|
369
|
-
header = HPXML::Header.new(nil)
|
370
|
-
header.sim_begin_month = 2
|
371
|
-
header.sim_begin_day = 10
|
372
|
-
header.sim_end_month = 4
|
373
|
-
header.sim_end_day = 10
|
374
|
-
header.sim_calendar_year = 2002
|
375
|
-
assert_equal(0.0, CalculateUtilityBill.calculate_monthly_prorate(header, 1))
|
376
|
-
assert_equal((28 - 10 + 1) / 28.0, CalculateUtilityBill.calculate_monthly_prorate(header, 2))
|
377
|
-
assert_equal(1.0, CalculateUtilityBill.calculate_monthly_prorate(header, 3))
|
378
|
-
assert_equal(10 / 30.0, CalculateUtilityBill.calculate_monthly_prorate(header, 4))
|
379
|
-
assert_equal(0.0, CalculateUtilityBill.calculate_monthly_prorate(header, 5))
|
380
|
-
end
|
381
|
-
|
382
|
-
# Detailed (JSON) Calculations
|
383
|
-
|
384
|
-
# Flat (Same as simple tests above)
|
385
|
-
|
386
|
-
def test_detailed_flat_pv_none
|
387
|
-
@hpxml.header.utility_bill_scenarios[-1].elec_tariff_filepath = '../../ReportUtilityBills/resources/detailed_rates/Sample Flat Rate.json'
|
388
|
-
@hpxml.header.utility_bill_scenarios.each do |utility_bill_scenario|
|
389
|
-
actual_bills = _bill_calcs(@fuels_pv_none_detailed, @hpxml.header, @hpxml.pv_systems, utility_bill_scenario)
|
390
|
-
expected_bills = _get_expected_bills(@expected_bills)
|
391
|
-
_check_bills(expected_bills, actual_bills)
|
392
|
-
end
|
393
|
-
end
|
394
|
-
|
395
|
-
def test_detailed_flat_pv_1kW_net_metering_user_excess_rate
|
396
|
-
@hpxml.header.utility_bill_scenarios[-1].elec_tariff_filepath = '../../ReportUtilityBills/resources/detailed_rates/Sample Flat Rate.json'
|
397
|
-
@hpxml.pv_systems.each { |pv_system| pv_system.max_power_output = 1000.0 / @hpxml.pv_systems.size }
|
398
|
-
@hpxml.header.utility_bill_scenarios.each do |utility_bill_scenario|
|
399
|
-
actual_bills = _bill_calcs(@fuels_pv_1kw_detailed, @hpxml.header, @hpxml.pv_systems, utility_bill_scenario)
|
400
|
-
@expected_bills['Test: Electricity: PV Credit (USD)'] = -177
|
401
|
-
expected_bills = _get_expected_bills(@expected_bills)
|
402
|
-
_check_bills(expected_bills, actual_bills)
|
403
|
-
end
|
404
|
-
end
|
405
|
-
|
406
|
-
def test_detailed_flat_pv_10kW_net_metering_user_excess_rate
|
407
|
-
@hpxml.header.utility_bill_scenarios[-1].elec_tariff_filepath = '../../ReportUtilityBills/resources/detailed_rates/Sample Flat Rate.json'
|
408
|
-
@hpxml.pv_systems.each { |pv_system| pv_system.max_power_output = 10000.0 / @hpxml.pv_systems.size }
|
409
|
-
@hpxml.header.utility_bill_scenarios.each do |utility_bill_scenario|
|
410
|
-
actual_bills = _bill_calcs(@fuels_pv_10kw_detailed, @hpxml.header, @hpxml.pv_systems, utility_bill_scenario)
|
411
|
-
@expected_bills['Test: Electricity: PV Credit (USD)'] = -920
|
412
|
-
expected_bills = _get_expected_bills(@expected_bills)
|
413
|
-
_check_bills(expected_bills, actual_bills)
|
414
|
-
end
|
415
|
-
end
|
416
|
-
|
417
|
-
def test_detailed_flat_pv_10kW_net_metering_retail_excess_rate
|
418
|
-
@hpxml.header.utility_bill_scenarios[-1].elec_tariff_filepath = '../../ReportUtilityBills/resources/detailed_rates/Sample Flat Rate.json'
|
419
|
-
@hpxml.header.utility_bill_scenarios[-1].pv_net_metering_annual_excess_sellback_rate_type = HPXML::PVAnnualExcessSellbackRateTypeRetailElectricityCost
|
420
|
-
@hpxml.pv_systems.each { |pv_system| pv_system.max_power_output = 10000.0 / @hpxml.pv_systems.size }
|
421
|
-
@hpxml.header.utility_bill_scenarios.each do |utility_bill_scenario|
|
422
|
-
actual_bills = _bill_calcs(@fuels_pv_10kw_detailed, @hpxml.header, @hpxml.pv_systems, utility_bill_scenario)
|
423
|
-
@expected_bills['Test: Electricity: PV Credit (USD)'] = -1777
|
424
|
-
expected_bills = _get_expected_bills(@expected_bills)
|
425
|
-
_check_bills(expected_bills, actual_bills)
|
426
|
-
end
|
427
|
-
end
|
428
|
-
|
429
|
-
def test_detailed_flat_pv_10kW_net_metering_zero_excess_rate
|
430
|
-
@hpxml.header.utility_bill_scenarios[-1].elec_tariff_filepath = '../../ReportUtilityBills/resources/detailed_rates/Sample Flat Rate.json'
|
431
|
-
@hpxml.header.utility_bill_scenarios[-1].pv_net_metering_annual_excess_sellback_rate = 0.0
|
432
|
-
@hpxml.pv_systems.each { |pv_system| pv_system.max_power_output = 10000.0 / @hpxml.pv_systems.size }
|
433
|
-
@hpxml.header.utility_bill_scenarios.each do |utility_bill_scenario|
|
434
|
-
actual_bills = _bill_calcs(@fuels_pv_10kw_detailed, @hpxml.header, @hpxml.pv_systems, utility_bill_scenario)
|
435
|
-
@expected_bills['Test: Electricity: PV Credit (USD)'] = -632
|
436
|
-
expected_bills = _get_expected_bills(@expected_bills)
|
437
|
-
_check_bills(expected_bills, actual_bills)
|
438
|
-
end
|
439
|
-
end
|
440
|
-
|
441
|
-
def test_detailed_flat_pv_1kW_feed_in_tariff
|
442
|
-
@hpxml.header.utility_bill_scenarios[-1].elec_tariff_filepath = '../../ReportUtilityBills/resources/detailed_rates/Sample Flat Rate.json'
|
443
|
-
@hpxml.header.utility_bill_scenarios[-1].pv_compensation_type = HPXML::PVCompensationTypeFeedInTariff
|
444
|
-
@hpxml.header.utility_bill_scenarios[-1].pv_feed_in_tariff_rate = 0.12
|
445
|
-
@hpxml.pv_systems.each { |pv_system| pv_system.max_power_output = 1000.0 / @hpxml.pv_systems.size }
|
446
|
-
@hpxml.header.utility_bill_scenarios.each do |utility_bill_scenario|
|
447
|
-
actual_bills = _bill_calcs(@fuels_pv_1kw_detailed, @hpxml.header, @hpxml.pv_systems, utility_bill_scenario)
|
448
|
-
@expected_bills['Test: Electricity: PV Credit (USD)'] = -178
|
449
|
-
expected_bills = _get_expected_bills(@expected_bills)
|
450
|
-
_check_bills(expected_bills, actual_bills)
|
451
|
-
end
|
452
|
-
end
|
453
|
-
|
454
|
-
def test_detailed_flat_pv_10kW_feed_in_tariff
|
455
|
-
@hpxml.header.utility_bill_scenarios[-1].elec_tariff_filepath = '../../ReportUtilityBills/resources/detailed_rates/Sample Flat Rate.json'
|
456
|
-
@hpxml.header.utility_bill_scenarios[-1].pv_compensation_type = HPXML::PVCompensationTypeFeedInTariff
|
457
|
-
@hpxml.header.utility_bill_scenarios[-1].pv_feed_in_tariff_rate = 0.12
|
458
|
-
@hpxml.pv_systems.each { |pv_system| pv_system.max_power_output = 10000.0 / @hpxml.pv_systems.size }
|
459
|
-
@hpxml.header.utility_bill_scenarios.each do |utility_bill_scenario|
|
460
|
-
actual_bills = _bill_calcs(@fuels_pv_10kw_detailed, @hpxml.header, @hpxml.pv_systems, utility_bill_scenario)
|
461
|
-
@expected_bills['Test: Electricity: PV Credit (USD)'] = -1785
|
462
|
-
expected_bills = _get_expected_bills(@expected_bills)
|
463
|
-
_check_bills(expected_bills, actual_bills)
|
464
|
-
end
|
465
|
-
end
|
466
|
-
|
467
|
-
# Tiered
|
468
|
-
|
469
|
-
def test_detailed_tiered_pv_none
|
470
|
-
@hpxml.header.utility_bill_scenarios[-1].elec_tariff_filepath = '../../ReportUtilityBills/resources/detailed_rates/Sample Tiered Rate.json'
|
471
|
-
@hpxml.header.utility_bill_scenarios.each do |utility_bill_scenario|
|
472
|
-
actual_bills = _bill_calcs(@fuels_pv_none_detailed, @hpxml.header, @hpxml.pv_systems, utility_bill_scenario)
|
473
|
-
@expected_bills['Test: Electricity: Fixed (USD)'] = 108
|
474
|
-
@expected_bills['Test: Electricity: Energy (USD)'] = 580
|
475
|
-
expected_bills = _get_expected_bills(@expected_bills)
|
476
|
-
_check_bills(expected_bills, actual_bills)
|
477
|
-
end
|
478
|
-
end
|
479
|
-
|
480
|
-
def test_detailed_tiered_pv_1kW_net_metering_user_excess_rate
|
481
|
-
@hpxml.header.utility_bill_scenarios[-1].elec_tariff_filepath = '../../ReportUtilityBills/resources/detailed_rates/Sample Tiered Rate.json'
|
482
|
-
@hpxml.pv_systems.each { |pv_system| pv_system.max_power_output = 1000.0 / @hpxml.pv_systems.size }
|
483
|
-
@hpxml.header.utility_bill_scenarios.each do |utility_bill_scenario|
|
484
|
-
actual_bills = _bill_calcs(@fuels_pv_1kw_detailed, @hpxml.header, @hpxml.pv_systems, utility_bill_scenario)
|
485
|
-
@expected_bills['Test: Electricity: Fixed (USD)'] = 108
|
486
|
-
@expected_bills['Test: Electricity: Energy (USD)'] = 580
|
487
|
-
@expected_bills['Test: Electricity: PV Credit (USD)'] = -190
|
488
|
-
expected_bills = _get_expected_bills(@expected_bills)
|
489
|
-
_check_bills(expected_bills, actual_bills)
|
490
|
-
end
|
491
|
-
end
|
492
|
-
|
493
|
-
def test_detailed_tiered_pv_10kW_net_metering_user_excess_rate
|
494
|
-
@hpxml.header.utility_bill_scenarios[-1].elec_tariff_filepath = '../../ReportUtilityBills/resources/detailed_rates/Sample Tiered Rate.json'
|
495
|
-
@hpxml.pv_systems.each { |pv_system| pv_system.max_power_output = 10000.0 / @hpxml.pv_systems.size }
|
496
|
-
@hpxml.header.utility_bill_scenarios.each do |utility_bill_scenario|
|
497
|
-
actual_bills = _bill_calcs(@fuels_pv_10kw_detailed, @hpxml.header, @hpxml.pv_systems, utility_bill_scenario)
|
498
|
-
@expected_bills['Test: Electricity: Fixed (USD)'] = 108
|
499
|
-
@expected_bills['Test: Electricity: Energy (USD)'] = 580
|
500
|
-
@expected_bills['Test: Electricity: PV Credit (USD)'] = -867
|
501
|
-
expected_bills = _get_expected_bills(@expected_bills)
|
502
|
-
_check_bills(expected_bills, actual_bills)
|
503
|
-
end
|
504
|
-
end
|
505
|
-
|
506
|
-
def test_detailed_tiered_pv_10kW_net_metering_retail_excess_rate
|
507
|
-
@hpxml.header.utility_bill_scenarios[-1].elec_tariff_filepath = '../../ReportUtilityBills/resources/detailed_rates/Sample Tiered Rate.json'
|
508
|
-
@hpxml.header.utility_bill_scenarios[-1].pv_net_metering_annual_excess_sellback_rate_type = HPXML::PVAnnualExcessSellbackRateTypeRetailElectricityCost
|
509
|
-
@hpxml.pv_systems.each { |pv_system| pv_system.max_power_output = 10000.0 / @hpxml.pv_systems.size }
|
510
|
-
@hpxml.header.utility_bill_scenarios.each do |utility_bill_scenario|
|
511
|
-
actual_bills = _bill_calcs(@fuels_pv_10kw_detailed, @hpxml.header, @hpxml.pv_systems, utility_bill_scenario)
|
512
|
-
@expected_bills['Test: Electricity: Fixed (USD)'] = 108
|
513
|
-
@expected_bills['Test: Electricity: Energy (USD)'] = 580
|
514
|
-
@expected_bills['Test: Electricity: PV Credit (USD)'] = -1443
|
515
|
-
expected_bills = _get_expected_bills(@expected_bills)
|
516
|
-
_check_bills(expected_bills, actual_bills)
|
517
|
-
end
|
518
|
-
end
|
519
|
-
|
520
|
-
def test_detailed_tiered_pv_10kW_net_metering_zero_excess_rate
|
521
|
-
@hpxml.header.utility_bill_scenarios[-1].pv_net_metering_annual_excess_sellback_rate = 0.0
|
522
|
-
@hpxml.header.utility_bill_scenarios[-1].elec_tariff_filepath = '../../ReportUtilityBills/resources/detailed_rates/Sample Tiered Rate.json'
|
523
|
-
@hpxml.pv_systems.each { |pv_system| pv_system.max_power_output = 10000.0 / @hpxml.pv_systems.size }
|
524
|
-
@hpxml.header.utility_bill_scenarios.each do |utility_bill_scenario|
|
525
|
-
actual_bills = _bill_calcs(@fuels_pv_10kw_detailed, @hpxml.header, @hpxml.pv_systems, utility_bill_scenario)
|
526
|
-
@expected_bills['Test: Electricity: Fixed (USD)'] = 108
|
527
|
-
@expected_bills['Test: Electricity: Energy (USD)'] = 580
|
528
|
-
@expected_bills['Test: Electricity: PV Credit (USD)'] = -580
|
529
|
-
expected_bills = _get_expected_bills(@expected_bills)
|
530
|
-
_check_bills(expected_bills, actual_bills)
|
531
|
-
end
|
532
|
-
end
|
533
|
-
|
534
|
-
def test_detailed_tiered_pv_1kW_feed_in_tariff
|
535
|
-
@hpxml.header.utility_bill_scenarios[-1].elec_tariff_filepath = '../../ReportUtilityBills/resources/detailed_rates/Sample Tiered Rate.json'
|
536
|
-
@hpxml.header.utility_bill_scenarios[-1].pv_compensation_type = HPXML::PVCompensationTypeFeedInTariff
|
537
|
-
@hpxml.header.utility_bill_scenarios[-1].pv_feed_in_tariff_rate = 0.12
|
538
|
-
@hpxml.pv_systems.each { |pv_system| pv_system.max_power_output = 1000.0 / @hpxml.pv_systems.size }
|
539
|
-
@hpxml.header.utility_bill_scenarios.each do |utility_bill_scenario|
|
540
|
-
actual_bills = _bill_calcs(@fuels_pv_1kw_detailed, @hpxml.header, @hpxml.pv_systems, utility_bill_scenario)
|
541
|
-
@expected_bills['Test: Electricity: Fixed (USD)'] = 108
|
542
|
-
@expected_bills['Test: Electricity: Energy (USD)'] = 580
|
543
|
-
@expected_bills['Test: Electricity: PV Credit (USD)'] = -178
|
544
|
-
expected_bills = _get_expected_bills(@expected_bills)
|
545
|
-
_check_bills(expected_bills, actual_bills)
|
546
|
-
end
|
547
|
-
end
|
548
|
-
|
549
|
-
def test_detailed_tiered_pv_10kW_feed_in_tariff
|
550
|
-
@hpxml.header.utility_bill_scenarios[-1].elec_tariff_filepath = '../../ReportUtilityBills/resources/detailed_rates/Sample Tiered Rate.json'
|
551
|
-
@hpxml.header.utility_bill_scenarios[-1].pv_compensation_type = HPXML::PVCompensationTypeFeedInTariff
|
552
|
-
@hpxml.header.utility_bill_scenarios[-1].pv_feed_in_tariff_rate = 0.12
|
553
|
-
@hpxml.pv_systems.each { |pv_system| pv_system.max_power_output = 10000.0 / @hpxml.pv_systems.size }
|
554
|
-
@hpxml.header.utility_bill_scenarios.each do |utility_bill_scenario|
|
555
|
-
actual_bills = _bill_calcs(@fuels_pv_10kw_detailed, @hpxml.header, @hpxml.pv_systems, utility_bill_scenario)
|
556
|
-
@expected_bills['Test: Electricity: Fixed (USD)'] = 108
|
557
|
-
@expected_bills['Test: Electricity: Energy (USD)'] = 580
|
558
|
-
@expected_bills['Test: Electricity: PV Credit (USD)'] = -1785
|
559
|
-
expected_bills = _get_expected_bills(@expected_bills)
|
560
|
-
_check_bills(expected_bills, actual_bills)
|
561
|
-
end
|
562
|
-
end
|
563
|
-
|
564
|
-
# Time-of-Use
|
565
|
-
|
566
|
-
def test_detailed_tou_pv_none
|
567
|
-
@hpxml.header.utility_bill_scenarios[-1].elec_tariff_filepath = '../../ReportUtilityBills/resources/detailed_rates/Sample Time-of-Use Rate.json'
|
568
|
-
@hpxml.header.utility_bill_scenarios.each do |utility_bill_scenario|
|
569
|
-
actual_bills = _bill_calcs(@fuels_pv_none_detailed, @hpxml.header, @hpxml.pv_systems, utility_bill_scenario)
|
570
|
-
@expected_bills['Test: Electricity: Fixed (USD)'] = 108
|
571
|
-
@expected_bills['Test: Electricity: Energy (USD)'] = 393
|
572
|
-
expected_bills = _get_expected_bills(@expected_bills)
|
573
|
-
_check_bills(expected_bills, actual_bills)
|
574
|
-
end
|
575
|
-
end
|
576
|
-
|
577
|
-
def test_detailed_tou_pv_1kW_net_metering_user_excess_rate
|
578
|
-
@hpxml.header.utility_bill_scenarios[-1].elec_tariff_filepath = '../../ReportUtilityBills/resources/detailed_rates/Sample Time-of-Use Rate.json'
|
579
|
-
@hpxml.pv_systems.each { |pv_system| pv_system.max_power_output = 1000.0 / @hpxml.pv_systems.size }
|
580
|
-
@hpxml.header.utility_bill_scenarios.each do |utility_bill_scenario|
|
581
|
-
actual_bills = _bill_calcs(@fuels_pv_1kw_detailed, @hpxml.header, @hpxml.pv_systems, utility_bill_scenario)
|
582
|
-
@expected_bills['Test: Electricity: Fixed (USD)'] = 108
|
583
|
-
@expected_bills['Test: Electricity: Energy (USD)'] = 393
|
584
|
-
@expected_bills['Test: Electricity: PV Credit (USD)'] = -112
|
585
|
-
expected_bills = _get_expected_bills(@expected_bills)
|
586
|
-
_check_bills(expected_bills, actual_bills)
|
587
|
-
end
|
588
|
-
end
|
589
|
-
|
590
|
-
def test_detailed_tou_pv_10kW_net_metering_user_excess_rate
|
591
|
-
@hpxml.header.utility_bill_scenarios[-1].elec_tariff_filepath = '../../ReportUtilityBills/resources/detailed_rates/Sample Time-of-Use Rate.json'
|
592
|
-
@hpxml.pv_systems.each { |pv_system| pv_system.max_power_output = 10000.0 / @hpxml.pv_systems.size }
|
593
|
-
@hpxml.header.utility_bill_scenarios.each do |utility_bill_scenario|
|
594
|
-
actual_bills = _bill_calcs(@fuels_pv_10kw_detailed, @hpxml.header, @hpxml.pv_systems, utility_bill_scenario)
|
595
|
-
@expected_bills['Test: Electricity: Fixed (USD)'] = 108
|
596
|
-
@expected_bills['Test: Electricity: Energy (USD)'] = 393
|
597
|
-
@expected_bills['Test: Electricity: PV Credit (USD)'] = -681
|
598
|
-
expected_bills = _get_expected_bills(@expected_bills)
|
599
|
-
_check_bills(expected_bills, actual_bills)
|
600
|
-
end
|
601
|
-
end
|
602
|
-
|
603
|
-
def test_detailed_tou_pv_10kW_net_metering_retail_excess_rate
|
604
|
-
@hpxml.header.utility_bill_scenarios[-1].elec_tariff_filepath = '../../ReportUtilityBills/resources/detailed_rates/Sample Time-of-Use Rate.json'
|
605
|
-
@hpxml.header.utility_bill_scenarios[-1].pv_net_metering_annual_excess_sellback_rate_type = HPXML::PVAnnualExcessSellbackRateTypeRetailElectricityCost
|
606
|
-
@hpxml.pv_systems.each { |pv_system| pv_system.max_power_output = 10000.0 / @hpxml.pv_systems.size }
|
607
|
-
@hpxml.header.utility_bill_scenarios.each do |utility_bill_scenario|
|
608
|
-
actual_bills = _bill_calcs(@fuels_pv_10kw_detailed, @hpxml.header, @hpxml.pv_systems, utility_bill_scenario)
|
609
|
-
@expected_bills['Test: Electricity: Fixed (USD)'] = 108
|
610
|
-
@expected_bills['Test: Electricity: Energy (USD)'] = 393
|
611
|
-
@expected_bills['Test: Electricity: PV Credit (USD)'] = -1127
|
612
|
-
expected_bills = _get_expected_bills(@expected_bills)
|
613
|
-
_check_bills(expected_bills, actual_bills)
|
614
|
-
end
|
615
|
-
end
|
616
|
-
|
617
|
-
def test_detailed_tou_pv_10kW_net_metering_zero_excess_rate
|
618
|
-
@hpxml.header.utility_bill_scenarios[-1].pv_net_metering_annual_excess_sellback_rate = 0.0
|
619
|
-
@hpxml.header.utility_bill_scenarios[-1].elec_tariff_filepath = '../../ReportUtilityBills/resources/detailed_rates/Sample Time-of-Use Rate.json'
|
620
|
-
@hpxml.pv_systems.each { |pv_system| pv_system.max_power_output = 10000.0 / @hpxml.pv_systems.size }
|
621
|
-
@hpxml.header.utility_bill_scenarios.each do |utility_bill_scenario|
|
622
|
-
actual_bills = _bill_calcs(@fuels_pv_10kw_detailed, @hpxml.header, @hpxml.pv_systems, utility_bill_scenario)
|
623
|
-
@expected_bills['Test: Electricity: Fixed (USD)'] = 108
|
624
|
-
@expected_bills['Test: Electricity: Energy (USD)'] = 393
|
625
|
-
@expected_bills['Test: Electricity: PV Credit (USD)'] = -393
|
626
|
-
expected_bills = _get_expected_bills(@expected_bills)
|
627
|
-
_check_bills(expected_bills, actual_bills)
|
628
|
-
end
|
629
|
-
end
|
630
|
-
|
631
|
-
def test_detailed_tou_pv_1kW_feed_in_tariff
|
632
|
-
@hpxml.header.utility_bill_scenarios[-1].elec_tariff_filepath = '../../ReportUtilityBills/resources/detailed_rates/Sample Time-of-Use Rate.json'
|
633
|
-
@hpxml.header.utility_bill_scenarios[-1].pv_compensation_type = HPXML::PVCompensationTypeFeedInTariff
|
634
|
-
@hpxml.header.utility_bill_scenarios[-1].pv_feed_in_tariff_rate = 0.12
|
635
|
-
@hpxml.pv_systems.each { |pv_system| pv_system.max_power_output = 1000.0 / @hpxml.pv_systems.size }
|
636
|
-
@hpxml.header.utility_bill_scenarios.each do |utility_bill_scenario|
|
637
|
-
actual_bills = _bill_calcs(@fuels_pv_1kw_detailed, @hpxml.header, @hpxml.pv_systems, utility_bill_scenario)
|
638
|
-
@expected_bills['Test: Electricity: Fixed (USD)'] = 108
|
639
|
-
@expected_bills['Test: Electricity: Energy (USD)'] = 393
|
640
|
-
@expected_bills['Test: Electricity: PV Credit (USD)'] = -178
|
641
|
-
expected_bills = _get_expected_bills(@expected_bills)
|
642
|
-
_check_bills(expected_bills, actual_bills)
|
643
|
-
end
|
644
|
-
end
|
645
|
-
|
646
|
-
def test_detailed_tou_pv_10kW_feed_in_tariff
|
647
|
-
@hpxml.header.utility_bill_scenarios[-1].elec_tariff_filepath = '../../ReportUtilityBills/resources/detailed_rates/Sample Time-of-Use Rate.json'
|
648
|
-
@hpxml.header.utility_bill_scenarios[-1].pv_compensation_type = HPXML::PVCompensationTypeFeedInTariff
|
649
|
-
@hpxml.header.utility_bill_scenarios[-1].pv_feed_in_tariff_rate = 0.12
|
650
|
-
@hpxml.pv_systems.each { |pv_system| pv_system.max_power_output = 10000.0 / @hpxml.pv_systems.size }
|
651
|
-
@hpxml.header.utility_bill_scenarios.each do |utility_bill_scenario|
|
652
|
-
actual_bills = _bill_calcs(@fuels_pv_10kw_detailed, @hpxml.header, @hpxml.pv_systems, utility_bill_scenario)
|
653
|
-
@expected_bills['Test: Electricity: Fixed (USD)'] = 108
|
654
|
-
@expected_bills['Test: Electricity: Energy (USD)'] = 393
|
655
|
-
@expected_bills['Test: Electricity: PV Credit (USD)'] = -1785
|
656
|
-
expected_bills = _get_expected_bills(@expected_bills)
|
657
|
-
_check_bills(expected_bills, actual_bills)
|
658
|
-
end
|
659
|
-
end
|
660
|
-
|
661
|
-
# Tiered and Time-of-Use
|
662
|
-
|
663
|
-
def test_detailed_tiered_tou_pv_none
|
664
|
-
@hpxml.header.utility_bill_scenarios[-1].elec_tariff_filepath = '../../ReportUtilityBills/resources/detailed_rates/Sample Tiered Time-of-Use Rate.json'
|
665
|
-
@hpxml.header.utility_bill_scenarios.each do |utility_bill_scenario|
|
666
|
-
actual_bills = _bill_calcs(@fuels_pv_none_detailed, @hpxml.header, @hpxml.pv_systems, utility_bill_scenario)
|
667
|
-
@expected_bills['Test: Electricity: Fixed (USD)'] = 108
|
668
|
-
@expected_bills['Test: Electricity: Energy (USD)'] = 377
|
669
|
-
expected_bills = _get_expected_bills(@expected_bills)
|
670
|
-
_check_bills(expected_bills, actual_bills)
|
671
|
-
end
|
672
|
-
end
|
673
|
-
|
674
|
-
def test_detailed_tiered_tou_pv_1kW_net_metering_user_excess_rate
|
675
|
-
@hpxml.header.utility_bill_scenarios[-1].elec_tariff_filepath = '../../ReportUtilityBills/resources/detailed_rates/Sample Tiered Time-of-Use Rate.json'
|
676
|
-
@hpxml.pv_systems.each { |pv_system| pv_system.max_power_output = 1000.0 / @hpxml.pv_systems.size }
|
677
|
-
@hpxml.header.utility_bill_scenarios.each do |utility_bill_scenario|
|
678
|
-
actual_bills = _bill_calcs(@fuels_pv_1kw_detailed, @hpxml.header, @hpxml.pv_systems, utility_bill_scenario)
|
679
|
-
@expected_bills['Test: Electricity: Fixed (USD)'] = 108
|
680
|
-
@expected_bills['Test: Electricity: Energy (USD)'] = 377
|
681
|
-
@expected_bills['Test: Electricity: PV Credit (USD)'] = -108
|
682
|
-
expected_bills = _get_expected_bills(@expected_bills)
|
683
|
-
_check_bills(expected_bills, actual_bills)
|
684
|
-
end
|
685
|
-
end
|
686
|
-
|
687
|
-
def test_detailed_tiered_tou_pv_10kW_net_metering_user_excess_rate
|
688
|
-
@hpxml.header.utility_bill_scenarios[-1].elec_tariff_filepath = '../../ReportUtilityBills/resources/detailed_rates/Sample Tiered Time-of-Use Rate.json'
|
689
|
-
@hpxml.pv_systems.each { |pv_system| pv_system.max_power_output = 10000.0 / @hpxml.pv_systems.size }
|
690
|
-
@hpxml.header.utility_bill_scenarios.each do |utility_bill_scenario|
|
691
|
-
actual_bills = _bill_calcs(@fuels_pv_10kw_detailed, @hpxml.header, @hpxml.pv_systems, utility_bill_scenario)
|
692
|
-
@expected_bills['Test: Electricity: Fixed (USD)'] = 108
|
693
|
-
@expected_bills['Test: Electricity: Energy (USD)'] = 377
|
694
|
-
@expected_bills['Test: Electricity: PV Credit (USD)'] = -665
|
695
|
-
expected_bills = _get_expected_bills(@expected_bills)
|
696
|
-
_check_bills(expected_bills, actual_bills)
|
697
|
-
end
|
698
|
-
end
|
699
|
-
|
700
|
-
def test_detailed_tiered_tou_pv_10kW_net_metering_retail_excess_rate
|
701
|
-
@hpxml.header.utility_bill_scenarios[-1].elec_tariff_filepath = '../../ReportUtilityBills/resources/detailed_rates/Sample Tiered Time-of-Use Rate.json'
|
702
|
-
@hpxml.header.utility_bill_scenarios[-1].pv_net_metering_annual_excess_sellback_rate_type = HPXML::PVAnnualExcessSellbackRateTypeRetailElectricityCost
|
703
|
-
@hpxml.pv_systems.each { |pv_system| pv_system.max_power_output = 10000.0 / @hpxml.pv_systems.size }
|
704
|
-
@hpxml.header.utility_bill_scenarios.each do |utility_bill_scenario|
|
705
|
-
actual_bills = _bill_calcs(@fuels_pv_10kw_detailed, @hpxml.header, @hpxml.pv_systems, utility_bill_scenario)
|
706
|
-
@expected_bills['Test: Electricity: Fixed (USD)'] = 108
|
707
|
-
@expected_bills['Test: Electricity: Energy (USD)'] = 377
|
708
|
-
@expected_bills['Test: Electricity: PV Credit (USD)'] = -1000
|
709
|
-
expected_bills = _get_expected_bills(@expected_bills)
|
710
|
-
_check_bills(expected_bills, actual_bills)
|
711
|
-
end
|
712
|
-
end
|
713
|
-
|
714
|
-
def test_detailed_tiered_tou_pv_10kW_net_metering_zero_excess_rate
|
715
|
-
@hpxml.header.utility_bill_scenarios[-1].pv_net_metering_annual_excess_sellback_rate = 0.0
|
716
|
-
@hpxml.header.utility_bill_scenarios[-1].elec_tariff_filepath = '../../ReportUtilityBills/resources/detailed_rates/Sample Tiered Time-of-Use Rate.json'
|
717
|
-
@hpxml.pv_systems.each { |pv_system| pv_system.max_power_output = 10000.0 / @hpxml.pv_systems.size }
|
718
|
-
@hpxml.header.utility_bill_scenarios.each do |utility_bill_scenario|
|
719
|
-
actual_bills = _bill_calcs(@fuels_pv_10kw_detailed, @hpxml.header, @hpxml.pv_systems, utility_bill_scenario)
|
720
|
-
@expected_bills['Test: Electricity: Fixed (USD)'] = 108
|
721
|
-
@expected_bills['Test: Electricity: Energy (USD)'] = 377
|
722
|
-
@expected_bills['Test: Electricity: PV Credit (USD)'] = -377
|
723
|
-
expected_bills = _get_expected_bills(@expected_bills)
|
724
|
-
_check_bills(expected_bills, actual_bills)
|
725
|
-
end
|
726
|
-
end
|
727
|
-
|
728
|
-
def test_detailed_tiered_tou_pv_1kW_feed_in_tariff
|
729
|
-
@hpxml.header.utility_bill_scenarios[-1].elec_tariff_filepath = '../../ReportUtilityBills/resources/detailed_rates/Sample Tiered Time-of-Use Rate.json'
|
730
|
-
@hpxml.header.utility_bill_scenarios[-1].pv_compensation_type = HPXML::PVCompensationTypeFeedInTariff
|
731
|
-
@hpxml.header.utility_bill_scenarios[-1].pv_feed_in_tariff_rate = 0.12
|
732
|
-
@hpxml.pv_systems.each { |pv_system| pv_system.max_power_output = 1000.0 / @hpxml.pv_systems.size }
|
733
|
-
@hpxml.header.utility_bill_scenarios.each do |utility_bill_scenario|
|
734
|
-
actual_bills = _bill_calcs(@fuels_pv_1kw_detailed, @hpxml.header, @hpxml.pv_systems, utility_bill_scenario)
|
735
|
-
@expected_bills['Test: Electricity: Fixed (USD)'] = 108
|
736
|
-
@expected_bills['Test: Electricity: Energy (USD)'] = 377
|
737
|
-
@expected_bills['Test: Electricity: PV Credit (USD)'] = -178
|
738
|
-
expected_bills = _get_expected_bills(@expected_bills)
|
739
|
-
_check_bills(expected_bills, actual_bills)
|
740
|
-
end
|
741
|
-
end
|
742
|
-
|
743
|
-
def test_detailed_tiered_tou_pv_10kW_feed_in_tariff
|
744
|
-
@hpxml.header.utility_bill_scenarios[-1].elec_tariff_filepath = '../../ReportUtilityBills/resources/detailed_rates/Sample Tiered Time-of-Use Rate.json'
|
745
|
-
@hpxml.header.utility_bill_scenarios[-1].pv_compensation_type = HPXML::PVCompensationTypeFeedInTariff
|
746
|
-
@hpxml.header.utility_bill_scenarios[-1].pv_feed_in_tariff_rate = 0.12
|
747
|
-
@hpxml.pv_systems.each { |pv_system| pv_system.max_power_output = 10000.0 / @hpxml.pv_systems.size }
|
748
|
-
@hpxml.header.utility_bill_scenarios.each do |utility_bill_scenario|
|
749
|
-
actual_bills = _bill_calcs(@fuels_pv_10kw_detailed, @hpxml.header, @hpxml.pv_systems, utility_bill_scenario)
|
750
|
-
@expected_bills['Test: Electricity: Fixed (USD)'] = 108
|
751
|
-
@expected_bills['Test: Electricity: Energy (USD)'] = 377
|
752
|
-
@expected_bills['Test: Electricity: PV Credit (USD)'] = -1785
|
753
|
-
expected_bills = _get_expected_bills(@expected_bills)
|
754
|
-
_check_bills(expected_bills, actual_bills)
|
755
|
-
end
|
756
|
-
end
|
757
|
-
|
758
|
-
# Real-time Pricing
|
759
|
-
|
760
|
-
def test_detailed_rtp_pv_none
|
761
|
-
@hpxml.header.utility_bill_scenarios[-1].elec_tariff_filepath = '../../ReportUtilityBills/resources/detailed_rates/Sample Real-Time Pricing Rate.json'
|
762
|
-
@hpxml.header.utility_bill_scenarios.each do |utility_bill_scenario|
|
763
|
-
actual_bills = _bill_calcs(@fuels_pv_none_detailed, @hpxml.header, @hpxml.pv_systems, utility_bill_scenario)
|
764
|
-
@expected_bills['Test: Electricity: Fixed (USD)'] = 108
|
765
|
-
@expected_bills['Test: Electricity: Energy (USD)'] = 354
|
766
|
-
expected_bills = _get_expected_bills(@expected_bills)
|
767
|
-
_check_bills(expected_bills, actual_bills)
|
768
|
-
end
|
769
|
-
end
|
770
|
-
|
771
|
-
def test_detailed_rtp_pv_1kW_net_metering_user_excess_rate
|
772
|
-
@hpxml.header.utility_bill_scenarios[-1].elec_tariff_filepath = '../../ReportUtilityBills/resources/detailed_rates/Sample Real-Time Pricing Rate.json'
|
773
|
-
@hpxml.pv_systems.each { |pv_system| pv_system.max_power_output = 1000.0 / @hpxml.pv_systems.size }
|
774
|
-
@hpxml.header.utility_bill_scenarios.each do |utility_bill_scenario|
|
775
|
-
actual_bills = _bill_calcs(@fuels_pv_1kw_detailed, @hpxml.header, @hpxml.pv_systems, utility_bill_scenario)
|
776
|
-
@expected_bills['Test: Electricity: Fixed (USD)'] = 108
|
777
|
-
@expected_bills['Test: Electricity: Energy (USD)'] = 354
|
778
|
-
@expected_bills['Test: Electricity: PV Credit (USD)'] = -106
|
779
|
-
expected_bills = _get_expected_bills(@expected_bills)
|
780
|
-
_check_bills(expected_bills, actual_bills)
|
781
|
-
end
|
782
|
-
end
|
783
|
-
|
784
|
-
def test_detailed_rtp_pv_10kW_net_metering_user_excess_rate
|
785
|
-
@hpxml.header.utility_bill_scenarios[-1].elec_tariff_filepath = '../../ReportUtilityBills/resources/detailed_rates/Sample Real-Time Pricing Rate.json'
|
786
|
-
@hpxml.pv_systems.each { |pv_system| pv_system.max_power_output = 10000.0 / @hpxml.pv_systems.size }
|
787
|
-
@hpxml.header.utility_bill_scenarios.each do |utility_bill_scenario|
|
788
|
-
actual_bills = _bill_calcs(@fuels_pv_10kw_detailed, @hpxml.header, @hpxml.pv_systems, utility_bill_scenario)
|
789
|
-
@expected_bills['Test: Electricity: Fixed (USD)'] = 108
|
790
|
-
@expected_bills['Test: Electricity: Energy (USD)'] = 354
|
791
|
-
@expected_bills['Test: Electricity: PV Credit (USD)'] = -641
|
792
|
-
expected_bills = _get_expected_bills(@expected_bills)
|
793
|
-
_check_bills(expected_bills, actual_bills)
|
794
|
-
end
|
795
|
-
end
|
796
|
-
|
797
|
-
def test_detailed_rtp_pv_10kW_net_metering_retail_excess_rate
|
798
|
-
@hpxml.header.utility_bill_scenarios[-1].elec_tariff_filepath = '../../ReportUtilityBills/resources/detailed_rates/Sample Real-Time Pricing Rate.json'
|
799
|
-
@hpxml.header.utility_bill_scenarios[-1].pv_net_metering_annual_excess_sellback_rate_type = HPXML::PVAnnualExcessSellbackRateTypeRetailElectricityCost
|
800
|
-
@hpxml.pv_systems.each { |pv_system| pv_system.max_power_output = 10000.0 / @hpxml.pv_systems.size }
|
801
|
-
@hpxml.header.utility_bill_scenarios.each do |utility_bill_scenario|
|
802
|
-
actual_bills = _bill_calcs(@fuels_pv_10kw_detailed, @hpxml.header, @hpxml.pv_systems, utility_bill_scenario)
|
803
|
-
@expected_bills['Test: Electricity: Fixed (USD)'] = 108
|
804
|
-
@expected_bills['Test: Electricity: Energy (USD)'] = 354
|
805
|
-
@expected_bills['Test: Electricity: PV Credit (USD)'] = -1060
|
806
|
-
expected_bills = _get_expected_bills(@expected_bills)
|
807
|
-
_check_bills(expected_bills, actual_bills)
|
808
|
-
end
|
809
|
-
end
|
810
|
-
|
811
|
-
def test_detailed_rtp_pv_10kW_net_metering_zero_excess_rate
|
812
|
-
@hpxml.header.utility_bill_scenarios[-1].pv_net_metering_annual_excess_sellback_rate = 0.0
|
813
|
-
@hpxml.header.utility_bill_scenarios[-1].elec_tariff_filepath = '../../ReportUtilityBills/resources/detailed_rates/Sample Real-Time Pricing Rate.json'
|
814
|
-
@hpxml.pv_systems.each { |pv_system| pv_system.max_power_output = 10000.0 / @hpxml.pv_systems.size }
|
815
|
-
@hpxml.header.utility_bill_scenarios.each do |utility_bill_scenario|
|
816
|
-
actual_bills = _bill_calcs(@fuels_pv_10kw_detailed, @hpxml.header, @hpxml.pv_systems, utility_bill_scenario)
|
817
|
-
@expected_bills['Test: Electricity: Fixed (USD)'] = 108
|
818
|
-
@expected_bills['Test: Electricity: Energy (USD)'] = 354
|
819
|
-
@expected_bills['Test: Electricity: PV Credit (USD)'] = -354
|
820
|
-
expected_bills = _get_expected_bills(@expected_bills)
|
821
|
-
_check_bills(expected_bills, actual_bills)
|
822
|
-
end
|
823
|
-
end
|
824
|
-
|
825
|
-
def test_detailed_rtp_pv_1kW_feed_in_tariff
|
826
|
-
@hpxml.header.utility_bill_scenarios[-1].elec_tariff_filepath = '../../ReportUtilityBills/resources/detailed_rates/Sample Real-Time Pricing Rate.json'
|
827
|
-
@hpxml.header.utility_bill_scenarios[-1].pv_compensation_type = HPXML::PVCompensationTypeFeedInTariff
|
828
|
-
@hpxml.header.utility_bill_scenarios[-1].pv_feed_in_tariff_rate = 0.12
|
829
|
-
@hpxml.pv_systems.each { |pv_system| pv_system.max_power_output = 1000.0 / @hpxml.pv_systems.size }
|
830
|
-
@hpxml.header.utility_bill_scenarios.each do |utility_bill_scenario|
|
831
|
-
actual_bills = _bill_calcs(@fuels_pv_1kw_detailed, @hpxml.header, @hpxml.pv_systems, utility_bill_scenario)
|
832
|
-
@expected_bills['Test: Electricity: Fixed (USD)'] = 108
|
833
|
-
@expected_bills['Test: Electricity: Energy (USD)'] = 354
|
834
|
-
@expected_bills['Test: Electricity: PV Credit (USD)'] = -178
|
835
|
-
expected_bills = _get_expected_bills(@expected_bills)
|
836
|
-
_check_bills(expected_bills, actual_bills)
|
837
|
-
end
|
838
|
-
end
|
839
|
-
|
840
|
-
def test_detailed_rtp_pv_10kW_feed_in_tariff
|
841
|
-
@hpxml.header.utility_bill_scenarios[-1].elec_tariff_filepath = '../../ReportUtilityBills/resources/detailed_rates/Sample Real-Time Pricing Rate.json'
|
842
|
-
@hpxml.header.utility_bill_scenarios[-1].pv_compensation_type = HPXML::PVCompensationTypeFeedInTariff
|
843
|
-
@hpxml.header.utility_bill_scenarios[-1].pv_feed_in_tariff_rate = 0.12
|
844
|
-
@hpxml.pv_systems.each { |pv_system| pv_system.max_power_output = 10000.0 / @hpxml.pv_systems.size }
|
845
|
-
@hpxml.header.utility_bill_scenarios.each do |utility_bill_scenario|
|
846
|
-
actual_bills = _bill_calcs(@fuels_pv_10kw_detailed, @hpxml.header, @hpxml.pv_systems, utility_bill_scenario)
|
847
|
-
@expected_bills['Test: Electricity: Fixed (USD)'] = 108
|
848
|
-
@expected_bills['Test: Electricity: Energy (USD)'] = 354
|
849
|
-
@expected_bills['Test: Electricity: PV Credit (USD)'] = -1785
|
850
|
-
expected_bills = _get_expected_bills(@expected_bills)
|
851
|
-
_check_bills(expected_bills, actual_bills)
|
852
|
-
end
|
853
|
-
end
|
854
|
-
|
855
|
-
# Extra Fees & Charges
|
856
|
-
|
857
|
-
def test_simple_pv_1kW_grid_fee_dollars_per_kW
|
858
|
-
@hpxml.header.utility_bill_scenarios[-1].pv_monthly_grid_connection_fee_dollars_per_kw = 2.50
|
859
|
-
@hpxml.pv_systems.each { |pv_system| pv_system.max_power_output = 1000.0 / @hpxml.pv_systems.size }
|
860
|
-
@hpxml.header.utility_bill_scenarios.each do |utility_bill_scenario|
|
861
|
-
actual_bills = _bill_calcs(@fuels_pv_1kw_simple, @hpxml.header, @hpxml.pv_systems, utility_bill_scenario)
|
862
|
-
@expected_bills['Test: Electricity: Fixed (USD)'] = 126
|
863
|
-
@expected_bills['Test: Electricity: PV Credit (USD)'] = -177
|
864
|
-
expected_bills = _get_expected_bills(@expected_bills)
|
865
|
-
_check_bills(expected_bills, actual_bills)
|
866
|
-
end
|
867
|
-
end
|
868
|
-
|
869
|
-
def test_simple_pv_1kW_grid_fee_dollars
|
870
|
-
@hpxml.header.utility_bill_scenarios[-1].pv_monthly_grid_connection_fee_dollars = 7.50
|
871
|
-
@hpxml.pv_systems.each { |pv_system| pv_system.max_power_output = 1000.0 / @hpxml.pv_systems.size }
|
872
|
-
@hpxml.header.utility_bill_scenarios.each do |utility_bill_scenario|
|
873
|
-
actual_bills = _bill_calcs(@fuels_pv_1kw_simple, @hpxml.header, @hpxml.pv_systems, utility_bill_scenario)
|
874
|
-
@expected_bills['Test: Electricity: Fixed (USD)'] = 186
|
875
|
-
@expected_bills['Test: Electricity: PV Credit (USD)'] = -177
|
876
|
-
expected_bills = _get_expected_bills(@expected_bills)
|
877
|
-
_check_bills(expected_bills, actual_bills)
|
878
|
-
end
|
879
|
-
end
|
880
|
-
|
881
|
-
def test_detailed_pv_1kW_grid_fee_dollars_per_kW
|
882
|
-
@hpxml.header.utility_bill_scenarios[-1].elec_tariff_filepath = '../../ReportUtilityBills/resources/detailed_rates/Sample Flat Rate.json'
|
883
|
-
@hpxml.header.utility_bill_scenarios[-1].pv_monthly_grid_connection_fee_dollars_per_kw = 2.50
|
884
|
-
@hpxml.pv_systems.each { |pv_system| pv_system.max_power_output = 1000.0 / @hpxml.pv_systems.size }
|
885
|
-
@hpxml.header.utility_bill_scenarios.each do |utility_bill_scenario|
|
886
|
-
actual_bills = _bill_calcs(@fuels_pv_1kw_detailed, @hpxml.header, @hpxml.pv_systems, utility_bill_scenario)
|
887
|
-
@expected_bills['Test: Electricity: Fixed (USD)'] = 126
|
888
|
-
@expected_bills['Test: Electricity: PV Credit (USD)'] = -177
|
889
|
-
expected_bills = _get_expected_bills(@expected_bills)
|
890
|
-
_check_bills(expected_bills, actual_bills)
|
891
|
-
end
|
892
|
-
end
|
893
|
-
|
894
|
-
def test_detailed_pv_1kW_grid_fee_dollars
|
895
|
-
@hpxml.header.utility_bill_scenarios[-1].elec_tariff_filepath = '../../ReportUtilityBills/resources/detailed_rates/Sample Flat Rate.json'
|
896
|
-
@hpxml.header.utility_bill_scenarios[-1].pv_monthly_grid_connection_fee_dollars = 7.50
|
897
|
-
@hpxml.pv_systems.each { |pv_system| pv_system.max_power_output = 1000.0 / @hpxml.pv_systems.size }
|
898
|
-
@hpxml.header.utility_bill_scenarios.each do |utility_bill_scenario|
|
899
|
-
actual_bills = _bill_calcs(@fuels_pv_1kw_detailed, @hpxml.header, @hpxml.pv_systems, utility_bill_scenario)
|
900
|
-
@expected_bills['Test: Electricity: Fixed (USD)'] = 186
|
901
|
-
@expected_bills['Test: Electricity: PV Credit (USD)'] = -177
|
902
|
-
expected_bills = _get_expected_bills(@expected_bills)
|
903
|
-
_check_bills(expected_bills, actual_bills)
|
904
|
-
end
|
905
|
-
end
|
906
|
-
|
907
|
-
def test_detailed_pv_none_min_monthly_charge
|
908
|
-
@hpxml.header.utility_bill_scenarios[-1].elec_tariff_filepath = '../../ReportUtilityBills/resources/detailed_rates/Sample Flat Rate Min Monthly Charge.json'
|
909
|
-
@hpxml.header.utility_bill_scenarios.each do |utility_bill_scenario|
|
910
|
-
actual_bills = _bill_calcs(@fuels_pv_none_detailed, @hpxml.header, @hpxml.pv_systems, utility_bill_scenario)
|
911
|
-
@expected_bills['Test: Electricity: Fixed (USD)'] = 96
|
912
|
-
@expected_bills['Test: Electricity: Energy (USD)'] = 632
|
913
|
-
expected_bills = _get_expected_bills(@expected_bills)
|
914
|
-
_check_bills(expected_bills, actual_bills)
|
915
|
-
end
|
916
|
-
end
|
917
|
-
|
918
|
-
def test_detailed_pv_none_min_annual_charge
|
919
|
-
@hpxml.header.utility_bill_scenarios[-1].elec_tariff_filepath = '../../ReportUtilityBills/resources/detailed_rates/Sample Flat Rate Min Annual Charge.json'
|
920
|
-
@hpxml.header.utility_bill_scenarios.each do |utility_bill_scenario|
|
921
|
-
actual_bills = _bill_calcs(@fuels_pv_none_detailed, @hpxml.header, @hpxml.pv_systems, utility_bill_scenario)
|
922
|
-
@expected_bills['Test: Electricity: Fixed (USD)'] = 96
|
923
|
-
@expected_bills['Test: Electricity: Energy (USD)'] = 632
|
924
|
-
expected_bills = _get_expected_bills(@expected_bills)
|
925
|
-
_check_bills(expected_bills, actual_bills)
|
926
|
-
end
|
927
|
-
end
|
928
|
-
|
929
|
-
def test_detailed_pv_1kW_net_metering_user_excess_rate_min_monthly_charge
|
930
|
-
@hpxml.header.utility_bill_scenarios[-1].elec_tariff_filepath = '../../ReportUtilityBills/resources/detailed_rates/Sample Flat Rate Min Monthly Charge.json'
|
931
|
-
@hpxml.pv_systems.each { |pv_system| pv_system.max_power_output = 1000.0 / @hpxml.pv_systems.size }
|
932
|
-
@hpxml.header.utility_bill_scenarios.each do |utility_bill_scenario|
|
933
|
-
actual_bills = _bill_calcs(@fuels_pv_1kw_detailed, @hpxml.header, @hpxml.pv_systems, utility_bill_scenario)
|
934
|
-
@expected_bills['Test: Electricity: Fixed (USD)'] = 96
|
935
|
-
@expected_bills['Test: Electricity: Energy (USD)'] = 632
|
936
|
-
@expected_bills['Test: Electricity: PV Credit (USD)'] = -177
|
937
|
-
expected_bills = _get_expected_bills(@expected_bills)
|
938
|
-
_check_bills(expected_bills, actual_bills)
|
939
|
-
end
|
940
|
-
end
|
941
|
-
|
942
|
-
def test_detailed_pv_1kW_net_metering_user_excess_rate_min_annual_charge
|
943
|
-
@hpxml.header.utility_bill_scenarios[-1].elec_tariff_filepath = '../../ReportUtilityBills/resources/detailed_rates/Sample Flat Rate Min Annual Charge.json'
|
944
|
-
@hpxml.pv_systems.each { |pv_system| pv_system.max_power_output = 1000.0 / @hpxml.pv_systems.size }
|
945
|
-
@hpxml.header.utility_bill_scenarios.each do |utility_bill_scenario|
|
946
|
-
actual_bills = _bill_calcs(@fuels_pv_1kw_detailed, @hpxml.header, @hpxml.pv_systems, utility_bill_scenario)
|
947
|
-
@expected_bills['Test: Electricity: Fixed (USD)'] = 96
|
948
|
-
@expected_bills['Test: Electricity: Energy (USD)'] = 632
|
949
|
-
@expected_bills['Test: Electricity: PV Credit (USD)'] = -177
|
950
|
-
expected_bills = _get_expected_bills(@expected_bills)
|
951
|
-
_check_bills(expected_bills, actual_bills)
|
952
|
-
end
|
953
|
-
end
|
954
|
-
|
955
|
-
def test_detailed_pv_10kW_net_metering_user_excess_rate_min_monthly_charge
|
956
|
-
@hpxml.header.utility_bill_scenarios[-1].elec_tariff_filepath = '../../ReportUtilityBills/resources/detailed_rates/Sample Flat Rate Min Monthly Charge.json'
|
957
|
-
@hpxml.pv_systems.each { |pv_system| pv_system.max_power_output = 10000.0 / @hpxml.pv_systems.size }
|
958
|
-
@hpxml.header.utility_bill_scenarios.each do |utility_bill_scenario|
|
959
|
-
actual_bills = _bill_calcs(@fuels_pv_10kw_detailed, @hpxml.header, @hpxml.pv_systems, utility_bill_scenario)
|
960
|
-
@expected_bills['Test: Electricity: Fixed (USD)'] = 180
|
961
|
-
@expected_bills['Test: Electricity: Energy (USD)'] = 632
|
962
|
-
@expected_bills['Test: Electricity: PV Credit (USD)'] = -920
|
963
|
-
expected_bills = _get_expected_bills(@expected_bills)
|
964
|
-
_check_bills(expected_bills, actual_bills)
|
965
|
-
end
|
966
|
-
end
|
967
|
-
|
968
|
-
def test_detailed_pv_10kW_net_metering_user_excess_rate_min_annual_charge
|
969
|
-
@hpxml.header.utility_bill_scenarios[-1].elec_tariff_filepath = '../../ReportUtilityBills/resources/detailed_rates/Sample Flat Rate Min Annual Charge.json'
|
970
|
-
@hpxml.pv_systems.each { |pv_system| pv_system.max_power_output = 10000.0 / @hpxml.pv_systems.size }
|
971
|
-
@hpxml.header.utility_bill_scenarios.each do |utility_bill_scenario|
|
972
|
-
actual_bills = _bill_calcs(@fuels_pv_10kw_detailed, @hpxml.header, @hpxml.pv_systems, utility_bill_scenario)
|
973
|
-
@expected_bills['Test: Electricity: Fixed (USD)'] = 200
|
974
|
-
@expected_bills['Test: Electricity: Energy (USD)'] = 632
|
975
|
-
@expected_bills['Test: Electricity: PV Credit (USD)'] = -920
|
976
|
-
expected_bills = _get_expected_bills(@expected_bills)
|
977
|
-
_check_bills(expected_bills, actual_bills)
|
978
|
-
end
|
979
|
-
end
|
980
|
-
|
981
|
-
def test_detailed_pv_10kW_net_metering_retail_excess_rate_min_monthly_charge
|
982
|
-
@hpxml.header.utility_bill_scenarios[-1].elec_tariff_filepath = '../../ReportUtilityBills/resources/detailed_rates/Sample Flat Rate Min Monthly Charge.json'
|
983
|
-
@hpxml.header.utility_bill_scenarios[-1].pv_net_metering_annual_excess_sellback_rate_type = HPXML::PVAnnualExcessSellbackRateTypeRetailElectricityCost
|
984
|
-
@hpxml.pv_systems.each { |pv_system| pv_system.max_power_output = 10000.0 / @hpxml.pv_systems.size }
|
985
|
-
@hpxml.header.utility_bill_scenarios.each do |utility_bill_scenario|
|
986
|
-
actual_bills = _bill_calcs(@fuels_pv_10kw_detailed, @hpxml.header, @hpxml.pv_systems, utility_bill_scenario)
|
987
|
-
@expected_bills['Test: Electricity: Fixed (USD)'] = 180
|
988
|
-
@expected_bills['Test: Electricity: Energy (USD)'] = 632
|
989
|
-
@expected_bills['Test: Electricity: PV Credit (USD)'] = -1777
|
990
|
-
expected_bills = _get_expected_bills(@expected_bills)
|
991
|
-
_check_bills(expected_bills, actual_bills)
|
992
|
-
end
|
993
|
-
end
|
994
|
-
|
995
|
-
def test_detailed_pv_10kW_net_metering_retail_excess_rate_min_annual_charge
|
996
|
-
@hpxml.header.utility_bill_scenarios[-1].elec_tariff_filepath = '../../ReportUtilityBills/resources/detailed_rates/Sample Flat Rate Min Annual Charge.json'
|
997
|
-
@hpxml.header.utility_bill_scenarios[-1].pv_net_metering_annual_excess_sellback_rate_type = HPXML::PVAnnualExcessSellbackRateTypeRetailElectricityCost
|
998
|
-
@hpxml.pv_systems.each { |pv_system| pv_system.max_power_output = 10000.0 / @hpxml.pv_systems.size }
|
999
|
-
@hpxml.header.utility_bill_scenarios.each do |utility_bill_scenario|
|
1000
|
-
actual_bills = _bill_calcs(@fuels_pv_10kw_detailed, @hpxml.header, @hpxml.pv_systems, utility_bill_scenario)
|
1001
|
-
@expected_bills['Test: Electricity: Fixed (USD)'] = 200
|
1002
|
-
@expected_bills['Test: Electricity: Energy (USD)'] = 632
|
1003
|
-
@expected_bills['Test: Electricity: PV Credit (USD)'] = -1777
|
1004
|
-
expected_bills = _get_expected_bills(@expected_bills)
|
1005
|
-
_check_bills(expected_bills, actual_bills)
|
1006
|
-
end
|
1007
|
-
end
|
1008
|
-
|
1009
|
-
def test_downloaded_utility_rates
|
1010
|
-
require 'rubygems/package'
|
1011
|
-
require 'zip'
|
1012
|
-
require 'tempfile'
|
1013
|
-
|
1014
|
-
@hpxml.pv_systems.each { |pv_system| pv_system.max_power_output = 1000.0 / @hpxml.pv_systems.size }
|
1015
|
-
@hpxml.header.utility_bill_scenarios.each do |utility_bill_scenario|
|
1016
|
-
Zip.on_exists_proc = true
|
1017
|
-
Zip::File.open(File.join(File.dirname(__FILE__), '../resources/detailed_rates/openei_rates.zip')) do |zip_file|
|
1018
|
-
zip_file.each do |entry|
|
1019
|
-
next unless entry.file?
|
1020
|
-
|
1021
|
-
tmpdir = Dir.tmpdir
|
1022
|
-
tmpfile = Tempfile.new(['rate', '.json'], tmpdir)
|
1023
|
-
tmp_path = tmpfile.path.to_s
|
1024
|
-
|
1025
|
-
File.open(tmp_path, 'wb') do |f|
|
1026
|
-
f.print entry.get_input_stream.read
|
1027
|
-
|
1028
|
-
utility_bill_scenario.elec_tariff_filepath = tmp_path
|
1029
|
-
File.delete(@bills_csv) if File.exist? @bills_csv
|
1030
|
-
actual_bills = _bill_calcs(@fuels_pv_1kw_detailed, @hpxml.header, @hpxml.pv_systems, utility_bill_scenario)
|
1031
|
-
if !File.exist?(@bills_csv)
|
1032
|
-
puts entry.name
|
1033
|
-
assert(false)
|
1034
|
-
end
|
1035
|
-
if entry.name.include? 'North Slope Borough Power Light - Aged or Handicappedseniors over 60'
|
1036
|
-
# No cost if < 600 kWh/month, which is the case for PV_None.csv
|
1037
|
-
assert_equal(0, actual_bills['Test: Electricity: Total (USD)'])
|
1038
|
-
else
|
1039
|
-
assert_operator(actual_bills['Test: Electricity: Total (USD)'], :>, 0)
|
1040
|
-
end
|
1041
|
-
end
|
1042
|
-
end
|
1043
|
-
end
|
1044
|
-
end
|
1045
|
-
end
|
1046
|
-
|
1047
|
-
def _get_expected_bills(expected_bills)
|
1048
|
-
expected_bills['Test: Electricity: Total (USD)'] = expected_bills['Test: Electricity: Fixed (USD)'] + expected_bills['Test: Electricity: Energy (USD)'] + expected_bills['Test: Electricity: PV Credit (USD)']
|
1049
|
-
expected_bills['Test: Natural Gas: Total (USD)'] = expected_bills['Test: Natural Gas: Fixed (USD)'] + expected_bills['Test: Natural Gas: Energy (USD)']
|
1050
|
-
expected_bills['Test: Fuel Oil: Total (USD)'] = expected_bills['Test: Fuel Oil: Fixed (USD)'] + expected_bills['Test: Fuel Oil: Energy (USD)']
|
1051
|
-
expected_bills['Test: Propane: Total (USD)'] = expected_bills['Test: Propane: Fixed (USD)'] + expected_bills['Test: Propane: Energy (USD)']
|
1052
|
-
expected_bills['Test: Coal: Total (USD)'] = expected_bills['Test: Coal: Fixed (USD)'] + expected_bills['Test: Coal: Energy (USD)']
|
1053
|
-
expected_bills['Test: Wood Cord: Total (USD)'] = expected_bills['Test: Wood Cord: Fixed (USD)'] + expected_bills['Test: Wood Cord: Energy (USD)']
|
1054
|
-
expected_bills['Test: Wood Pellets: Total (USD)'] = expected_bills['Test: Wood Pellets: Fixed (USD)'] + expected_bills['Test: Wood Pellets: Energy (USD)']
|
1055
|
-
expected_bills['Test: Total (USD)'] = expected_bills['Test: Electricity: Total (USD)'] + expected_bills['Test: Natural Gas: Total (USD)'] + expected_bills['Test: Fuel Oil: Total (USD)'] + expected_bills['Test: Propane: Total (USD)'] + expected_bills['Test: Wood Cord: Total (USD)'] + expected_bills['Test: Wood Pellets: Total (USD)'] + expected_bills['Test: Coal: Total (USD)']
|
1056
|
-
return expected_bills
|
1057
|
-
end
|
1058
|
-
|
1059
|
-
def _check_bills(expected_bills, actual_bills)
|
1060
|
-
bills = expected_bills.keys | actual_bills.keys
|
1061
|
-
bills.each do |bill|
|
1062
|
-
assert(expected_bills.keys.include?(bill))
|
1063
|
-
if expected_bills[bill] != 0
|
1064
|
-
assert(actual_bills.keys.include?(bill))
|
1065
|
-
assert_in_delta(expected_bills[bill], actual_bills[bill], 1) # within a dollar
|
1066
|
-
end
|
1067
|
-
end
|
1068
|
-
end
|
1069
|
-
|
1070
|
-
def _load_timeseries(pv_size_kw, use_hourly_electricity)
|
1071
|
-
fuels = @measure.setup_fuel_outputs()
|
1072
|
-
columns = CSV.read(File.join(File.dirname(__FILE__), 'data.csv')).transpose
|
1073
|
-
columns.each do |col|
|
1074
|
-
col_name = col[0]
|
1075
|
-
next if col_name == 'Date/Time'
|
1076
|
-
|
1077
|
-
values = col[1..-1].map { |v| Float(v) }
|
1078
|
-
|
1079
|
-
if col_name == 'Electricity [kWh]'
|
1080
|
-
fuels[[FT::Elec, false]].timeseries = values
|
1081
|
-
elsif col_name == 'Gas [therm]'
|
1082
|
-
fuels[[FT::Gas, false]].timeseries = values
|
1083
|
-
elsif col_name == 'Propane [gal]'
|
1084
|
-
fuels[[FT::Propane, false]].timeseries = values
|
1085
|
-
elsif col_name == 'Oil [gal]'
|
1086
|
-
fuels[[FT::Oil, false]].timeseries = values
|
1087
|
-
elsif col_name == "PV_#{pv_size_kw}kW [kWh]"
|
1088
|
-
fuels[[FT::Elec, true]].timeseries = values
|
1089
|
-
end
|
1090
|
-
end
|
1091
|
-
|
1092
|
-
fuels.values.each do |fuel|
|
1093
|
-
fuel.timeseries = [0] * fuels[[FT::Elec, false]].timeseries.size if fuel.timeseries.empty?
|
1094
|
-
end
|
1095
|
-
|
1096
|
-
# Convert hourly data to monthly data as appropriate
|
1097
|
-
num_days_in_month = Constants.NumDaysInMonths(2002) # Arbitrary non-leap year
|
1098
|
-
fuels.each do |(fuel_type, _is_production), fuel|
|
1099
|
-
next unless fuel_type != FT::Elec || (fuel_type == FT::Elec && !use_hourly_electricity)
|
1100
|
-
|
1101
|
-
ts_data = fuel.timeseries.dup
|
1102
|
-
fuel.timeseries = []
|
1103
|
-
start_day = 0
|
1104
|
-
num_days_in_month.each do |num_days|
|
1105
|
-
fuel.timeseries << ts_data[start_day * 24..(start_day + num_days) * 24 - 1].sum
|
1106
|
-
start_day += num_days
|
1107
|
-
end
|
1108
|
-
end
|
1109
|
-
|
1110
|
-
return fuels
|
1111
|
-
end
|
1112
|
-
|
1113
|
-
def _bill_calcs(fuels, header, pv_systems, utility_bill_scenario)
|
1114
|
-
runner = OpenStudio::Measure::OSRunner.new(OpenStudio::WorkflowJSON.new)
|
1115
|
-
output_format = 'csv'
|
1116
|
-
output_path = File.join(File.dirname(__FILE__), "results_bills.#{output_format}")
|
1117
|
-
|
1118
|
-
utility_rates, utility_bills = @measure.setup_utility_outputs()
|
1119
|
-
@measure.get_utility_rates(@hpxml_path, fuels, utility_rates, utility_bill_scenario, pv_systems)
|
1120
|
-
@measure.get_utility_bills(fuels, utility_rates, utility_bills, utility_bill_scenario, header)
|
1121
|
-
|
1122
|
-
@measure.report_runperiod_output_results(runner, utility_bills, output_format, output_path, utility_bill_scenario.name)
|
1123
|
-
|
1124
|
-
# Check written values exist and are registered
|
1125
|
-
assert(File.exist?(@bills_csv))
|
1126
|
-
actual_bills = _get_actual_bills(@bills_csv)
|
1127
|
-
|
1128
|
-
_check_for_runner_registered_values(runner, nil, actual_bills)
|
1129
|
-
|
1130
|
-
return actual_bills
|
1131
|
-
end
|
1132
|
-
|
1133
|
-
def _test_measure(hpxml: nil, expected_errors: [], expected_warnings: [])
|
1134
|
-
# Run measure via OSW
|
1135
|
-
require 'json'
|
1136
|
-
template_osw = File.join(File.dirname(__FILE__), '..', '..', 'workflow', 'template-run-hpxml.osw')
|
1137
|
-
workflow = OpenStudio::WorkflowJSON.new(template_osw)
|
1138
|
-
json = JSON.parse(workflow.to_s)
|
1139
|
-
|
1140
|
-
# Update measure args
|
1141
|
-
steps = OpenStudio::WorkflowStepVector.new
|
1142
|
-
found_args = []
|
1143
|
-
json['steps'].each do |json_step|
|
1144
|
-
step = OpenStudio::MeasureStep.new(json_step['measure_dir_name'])
|
1145
|
-
json_step['arguments'].each do |json_arg_name, json_arg_val|
|
1146
|
-
if @args_hash.keys.include? json_arg_name
|
1147
|
-
# Override value
|
1148
|
-
found_args << json_arg_name
|
1149
|
-
json_arg_val = @args_hash[json_arg_name]
|
1150
|
-
end
|
1151
|
-
step.setArgument(json_arg_name, json_arg_val)
|
1152
|
-
end
|
1153
|
-
steps.push(step)
|
1154
|
-
end
|
1155
|
-
workflow.setWorkflowSteps(steps)
|
1156
|
-
osw_path = File.join(File.dirname(template_osw), 'test.osw')
|
1157
|
-
workflow.saveAs(osw_path)
|
1158
|
-
assert_equal(@args_hash.size, found_args.size)
|
1159
|
-
|
1160
|
-
# Run OSW
|
1161
|
-
command = "#{OpenStudio.getOpenStudioCLI} run -w #{osw_path}"
|
1162
|
-
cli_output = `#{command}`
|
1163
|
-
|
1164
|
-
# Cleanup
|
1165
|
-
File.delete(osw_path)
|
1166
|
-
|
1167
|
-
bills_csv = File.join(File.dirname(template_osw), 'run', 'results_bills.csv')
|
1168
|
-
|
1169
|
-
# Check warnings/errors
|
1170
|
-
if not expected_errors.empty?
|
1171
|
-
expected_errors.each do |expected_error|
|
1172
|
-
assert(cli_output.include?("ERROR] #{expected_error}"))
|
1173
|
-
end
|
1174
|
-
end
|
1175
|
-
if not expected_warnings.empty?
|
1176
|
-
expected_warnings.each do |expected_warning|
|
1177
|
-
assert(cli_output.include?("WARN] #{expected_warning}"))
|
1178
|
-
end
|
1179
|
-
end
|
1180
|
-
|
1181
|
-
if !hpxml.nil?
|
1182
|
-
return if hpxml.header.utility_bill_scenarios.empty?
|
1183
|
-
elsif (not expected_errors.empty?) || (not expected_warnings.empty?)
|
1184
|
-
return
|
1185
|
-
end
|
1186
|
-
|
1187
|
-
# Check written values exist and are registered
|
1188
|
-
assert(File.exist?(bills_csv))
|
1189
|
-
actual_bills = _get_actual_bills(bills_csv)
|
1190
|
-
|
1191
|
-
_check_for_runner_registered_values(nil, File.join(File.dirname(bills_csv), 'results.json'), actual_bills)
|
1192
|
-
|
1193
|
-
return actual_bills
|
1194
|
-
end
|
1195
|
-
|
1196
|
-
def _get_actual_bills(bills_csv)
|
1197
|
-
actual_bills = {}
|
1198
|
-
File.readlines(bills_csv).each do |line|
|
1199
|
-
next if line.strip.empty?
|
1200
|
-
|
1201
|
-
key, value = line.split(',').map { |x| x.strip }
|
1202
|
-
actual_bills[key] = Float(value)
|
1203
|
-
end
|
1204
|
-
return actual_bills
|
1205
|
-
end
|
1206
|
-
|
1207
|
-
def _check_for_runner_registered_values(runner, results_json, actual_bills)
|
1208
|
-
if !runner.nil?
|
1209
|
-
runner_bills = {}
|
1210
|
-
runner.result.stepValues.each do |step_value|
|
1211
|
-
runner_bills[step_value.name] = get_value_from_workflow_step_value(step_value)
|
1212
|
-
end
|
1213
|
-
elsif !results_json.nil?
|
1214
|
-
require 'json'
|
1215
|
-
runner_bills = JSON.parse(File.read(results_json))
|
1216
|
-
runner_bills = runner_bills['ReportUtilityBills']
|
1217
|
-
end
|
1218
|
-
|
1219
|
-
actual_bills.each do |name, value|
|
1220
|
-
name = OpenStudio::toUnderscoreCase(name).chomp('_')
|
1221
|
-
|
1222
|
-
assert_includes(runner_bills.keys, name)
|
1223
|
-
assert_equal(value, runner_bills[name])
|
1224
|
-
end
|
1225
|
-
end
|
1226
|
-
end
|