openstudio-common-measures 0.3.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.rubocop.yml +3 -1
- data/CHANGELOG.md +43 -0
- data/Jenkinsfile +2 -1
- data/LICENSE.md +1 -1
- data/README.md +14 -0
- data/doc_templates/LICENSE.md +1 -1
- data/doc_templates/copyright_erb.txt +1 -1
- data/doc_templates/copyright_js.txt +1 -1
- data/doc_templates/copyright_ruby.txt +1 -1
- data/lib/measures/AddCostPerAreaToConstruction/LICENSE.md +1 -1
- data/lib/measures/AddCostPerAreaToConstruction/measure.rb +1 -1
- data/lib/measures/AddCostPerAreaToConstruction/measure.xml +8 -7
- data/lib/measures/AddCostPerFloorAreaToBuilding/LICENSE.md +1 -1
- data/lib/measures/AddCostPerFloorAreaToBuilding/measure.rb +1 -1
- data/lib/measures/AddCostPerFloorAreaToBuilding/measure.xml +8 -7
- data/lib/measures/AddCostPerFloorAreaToElectricEquipment/LICENSE.md +1 -1
- data/lib/measures/AddCostPerFloorAreaToElectricEquipment/measure.rb +1 -1
- data/lib/measures/AddCostPerFloorAreaToElectricEquipment/measure.xml +8 -7
- data/lib/measures/AddCostPerFloorAreaToLights/LICENSE.md +1 -1
- data/lib/measures/AddCostPerFloorAreaToLights/measure.rb +1 -1
- data/lib/measures/AddCostPerFloorAreaToLights/measure.xml +8 -7
- data/lib/measures/AddCostPerFloorAreaUnusedToLights/LICENSE.md +1 -1
- data/lib/measures/AddCostPerFloorAreaUnusedToLights/measure.rb +1 -1
- data/lib/measures/AddCostPerFloorAreaUnusedToLights/measure.xml +8 -7
- data/lib/measures/AddCostToSupplySideHVACComponentByAirLoop/LICENSE.md +1 -1
- data/lib/measures/AddCostToSupplySideHVACComponentByAirLoop/measure.rb +1 -1
- data/lib/measures/AddCostToSupplySideHVACComponentByAirLoop/measure.xml +9 -8
- data/lib/measures/AddCostperAreatoUnusedConstruction/LICENSE.md +1 -1
- data/lib/measures/AddCostperAreatoUnusedConstruction/measure.rb +1 -1
- data/lib/measures/AddCostperAreatoUnusedConstruction/measure.xml +8 -7
- data/lib/measures/AddExteriorLights/LICENSE.md +1 -1
- data/lib/measures/AddExteriorLights/measure.rb +1 -1
- data/lib/measures/AddExteriorLights/measure.xml +8 -7
- data/lib/measures/AddMeter/LICENSE.md +1 -1
- data/lib/measures/AddMeter/measure.rb +1 -1
- data/lib/measures/AddMeter/measure.xml +8 -7
- data/lib/measures/AddOutputDiagnostics/LICENSE.md +1 -1
- data/lib/measures/AddOutputDiagnostics/measure.rb +1 -1
- data/lib/measures/AddOutputDiagnostics/measure.xml +8 -7
- data/lib/measures/AddOutputVariable/LICENSE.md +1 -1
- data/lib/measures/AddOutputVariable/measure.rb +1 -1
- data/lib/measures/AddOutputVariable/measure.xml +8 -7
- data/lib/measures/AddSimplePvToShadingSurfacesByType/LICENSE.md +1 -1
- data/lib/measures/AddSimplePvToShadingSurfacesByType/measure.rb +1 -1
- data/lib/measures/AddSimplePvToShadingSurfacesByType/measure.xml +8 -7
- data/lib/measures/AdjustSystemEfficiencies/LICENSE.md +1 -1
- data/lib/measures/AdjustSystemEfficiencies/measure.rb +1 -1
- data/lib/measures/AdjustSystemEfficiencies/measure.xml +7 -6
- data/lib/measures/AdjustThermostatSetpointsByDegrees/LICENSE.md +1 -1
- data/lib/measures/AdjustThermostatSetpointsByDegrees/measure.rb +1 -1
- data/lib/measures/AdjustThermostatSetpointsByDegrees/measure.xml +8 -7
- data/lib/measures/ChangeBuildingLocation/LICENSE.md +1 -1
- data/lib/measures/ChangeBuildingLocation/measure.rb +3 -3
- data/lib/measures/ChangeBuildingLocation/measure.xml +17 -17
- data/lib/measures/ChangeBuildingLocation/resources/epw.rb +1 -1
- data/lib/measures/ChangeBuildingLocation/resources/stat_file.rb +1 -1
- data/lib/measures/EnableIdealAirLoadsForAllZones/LICENSE.md +1 -1
- data/lib/measures/EnableIdealAirLoadsForAllZones/measure.rb +1 -1
- data/lib/measures/EnableIdealAirLoadsForAllZones/measure.xml +9 -8
- data/lib/measures/ExportScheduleCSV/LICENSE.md +1 -1
- data/lib/measures/ExportScheduleCSV/measure.rb +1 -1
- data/lib/measures/ExportScheduleCSV/measure.xml +11 -11
- data/lib/measures/ImportEnvelopeAndInternalLoadsFromIdf/LICENSE.md +1 -1
- data/lib/measures/ImportEnvelopeAndInternalLoadsFromIdf/measure.rb +1 -1
- data/lib/measures/ImportEnvelopeAndInternalLoadsFromIdf/measure.xml +5 -5
- data/lib/measures/MeterFlodPlot/LICENSE.md +1 -1
- data/lib/measures/MeterFlodPlot/measure.rb +1 -1
- data/lib/measures/MeterFlodPlot/measure.xml +11 -11
- data/lib/measures/ModifyEnergyPlusCoilCoolingDXSingleSpeedObjects/LICENSE.md +1 -1
- data/lib/measures/ModifyEnergyPlusCoilCoolingDXSingleSpeedObjects/measure.rb +1 -1
- data/lib/measures/ModifyEnergyPlusCoilCoolingDXSingleSpeedObjects/measure.xml +8 -7
- data/lib/measures/ModifyEnergyPlusFanVariableVolumeObjects/LICENSE.md +1 -1
- data/lib/measures/ModifyEnergyPlusFanVariableVolumeObjects/measure.rb +1 -1
- data/lib/measures/ModifyEnergyPlusFanVariableVolumeObjects/measure.xml +8 -7
- data/lib/measures/PredictedMeanVote/LICENSE.md +1 -1
- data/lib/measures/PredictedMeanVote/measure.rb +1 -1
- data/lib/measures/PredictedMeanVote/measure.xml +14 -13
- data/lib/measures/RemoveInternalLoadsDirectlyAssignedToSpaces/LICENSE.md +1 -1
- data/lib/measures/RemoveInternalLoadsDirectlyAssignedToSpaces/measure.rb +1 -1
- data/lib/measures/RemoveInternalLoadsDirectlyAssignedToSpaces/measure.xml +9 -8
- data/lib/measures/RemoveUnusedDefaultProfiles/LICENSE.md +1 -1
- data/lib/measures/RemoveUnusedDefaultProfiles/measure.rb +1 -1
- data/lib/measures/RemoveUnusedDefaultProfiles/measure.xml +9 -8
- data/lib/measures/ReplaceExteriorWindowConstruction/LICENSE.md +1 -1
- data/lib/measures/ReplaceExteriorWindowConstruction/measure.rb +1 -1
- data/lib/measures/ReplaceExteriorWindowConstruction/measure.xml +11 -10
- data/lib/measures/ReplaceThermostatSchedules/LICENSE.md +1 -1
- data/lib/measures/ReplaceThermostatSchedules/measure.rb +1 -1
- data/lib/measures/ReplaceThermostatSchedules/measure.xml +12 -11
- data/lib/measures/ReportModelChanges/LICENSE.md +1 -1
- data/lib/measures/ReportModelChanges/measure.rb +1 -1
- data/lib/measures/ReportModelChanges/measure.xml +5 -5
- data/lib/measures/RunPeriod/LICENSE.md +1 -1
- data/lib/measures/RunPeriod/measure.rb +1 -1
- data/lib/measures/RunPeriod/measure.xml +19 -18
- data/lib/measures/RunPeriodMultiple/LICENSE.md +1 -1
- data/lib/measures/RunPeriodMultiple/measure.rb +1 -1
- data/lib/measures/RunPeriodMultiple/measure.xml +4 -4
- data/lib/measures/ServerDirectoryCleanup/LICENSE.md +1 -1
- data/lib/measures/ServerDirectoryCleanup/measure.rb +1 -1
- data/lib/measures/ServerDirectoryCleanup/measure.xml +16 -16
- data/lib/measures/SetCOPforSingleSpeedDXCoolingUnits/LICENSE.md +1 -1
- data/lib/measures/SetCOPforSingleSpeedDXCoolingUnits/measure.rb +1 -1
- data/lib/measures/SetCOPforSingleSpeedDXCoolingUnits/measure.xml +10 -9
- data/lib/measures/SetCOPforTwoSpeedDXCoolingUnits/LICENSE.md +1 -1
- data/lib/measures/SetCOPforTwoSpeedDXCoolingUnits/measure.rb +1 -1
- data/lib/measures/SetCOPforTwoSpeedDXCoolingUnits/measure.xml +10 -9
- data/lib/measures/SetEnergyPlusInfiltrationFlowRatePerFloorArea/LICENSE.md +1 -1
- data/lib/measures/SetEnergyPlusInfiltrationFlowRatePerFloorArea/measure.rb +1 -1
- data/lib/measures/SetEnergyPlusInfiltrationFlowRatePerFloorArea/measure.xml +8 -7
- data/lib/measures/SetEnergyPlusLightObjectsLPD/LICENSE.md +1 -1
- data/lib/measures/SetEnergyPlusLightObjectsLPD/measure.rb +1 -1
- data/lib/measures/SetEnergyPlusLightObjectsLPD/measure.xml +8 -7
- data/lib/measures/SetEnergyPlusMinimumOutdoorAirFlowRate/LICENSE.md +1 -1
- data/lib/measures/SetEnergyPlusMinimumOutdoorAirFlowRate/measure.rb +1 -1
- data/lib/measures/SetEnergyPlusMinimumOutdoorAirFlowRate/measure.xml +8 -7
- data/lib/measures/SetGasBurnerEfficiency/LICENSE.md +1 -1
- data/lib/measures/SetGasBurnerEfficiency/measure.rb +1 -1
- data/lib/measures/SetGasBurnerEfficiency/measure.xml +10 -9
- data/lib/measures/SetLifecycleCostParameters/LICENSE.md +1 -1
- data/lib/measures/SetLifecycleCostParameters/measure.rb +1 -1
- data/lib/measures/SetLifecycleCostParameters/measure.xml +8 -7
- data/lib/measures/SetLightingLoadsByLPD/LICENSE.md +1 -1
- data/lib/measures/SetLightingLoadsByLPD/measure.rb +1 -1
- data/lib/measures/SetLightingLoadsByLPD/measure.xml +10 -9
- data/lib/measures/SetSpaceInfiltrationByExteriorSurfaceArea/LICENSE.md +1 -1
- data/lib/measures/SetSpaceInfiltrationByExteriorSurfaceArea/measure.rb +1 -1
- data/lib/measures/SetSpaceInfiltrationByExteriorSurfaceArea/measure.xml +20 -19
- data/lib/measures/SetThermostatSchedules/LICENSE.md +1 -1
- data/lib/measures/SetThermostatSchedules/measure.rb +1 -1
- data/lib/measures/SetThermostatSchedules/measure.xml +12 -11
- data/lib/measures/ShiftScheduleProfileTime/LICENSE.md +1 -1
- data/lib/measures/ShiftScheduleProfileTime/measure.rb +1 -1
- data/lib/measures/ShiftScheduleProfileTime/measure.xml +10 -9
- data/lib/measures/SwapLightsDefinition/LICENSE.md +1 -1
- data/lib/measures/SwapLightsDefinition/measure.rb +1 -1
- data/lib/measures/SwapLightsDefinition/measure.xml +10 -9
- data/lib/measures/UnmetLoadHoursTroubleshooting/LICENSE.md +1 -1
- data/lib/measures/UnmetLoadHoursTroubleshooting/measure.rb +1 -1
- data/lib/measures/UnmetLoadHoursTroubleshooting/measure.xml +11 -11
- data/lib/measures/VentilationQAQC/LICENSE.md +1 -1
- data/lib/measures/VentilationQAQC/measure.rb +1 -1
- data/lib/measures/VentilationQAQC/measure.xml +17 -17
- data/lib/measures/ZoneReport/LICENSE.md +1 -1
- data/lib/measures/ZoneReport/measure.rb +1 -1
- data/lib/measures/ZoneReport/measure.xml +11 -11
- data/lib/measures/add_ems_emissions_reporting/LICENSE.MD.txt +15 -0
- data/lib/measures/{AddDaylightSensors → add_ems_emissions_reporting}/LICENSE.md +1 -1
- data/lib/measures/add_ems_emissions_reporting/README.md +17 -0
- data/lib/measures/add_ems_emissions_reporting/measure.rb +268 -0
- data/lib/measures/add_ems_emissions_reporting/measure.xml +247 -0
- data/lib/measures/add_ems_emissions_reporting/resources/future_annual_co2e.csv +17 -0
- data/lib/measures/add_ems_emissions_reporting/resources/future_hourly_co2e_2020.csv +8761 -0
- data/lib/measures/add_ems_emissions_reporting/resources/future_hourly_co2e_2022.csv +8761 -0
- data/lib/measures/add_ems_emissions_reporting/resources/future_hourly_co2e_2024.csv +8761 -0
- data/lib/measures/add_ems_emissions_reporting/resources/future_hourly_co2e_2026.csv +8761 -0
- data/lib/measures/add_ems_emissions_reporting/resources/future_hourly_co2e_2028.csv +8761 -0
- data/lib/measures/add_ems_emissions_reporting/resources/future_hourly_co2e_2030.csv +8761 -0
- data/lib/measures/add_ems_emissions_reporting/resources/future_hourly_co2e_2032.csv +8761 -0
- data/lib/measures/add_ems_emissions_reporting/resources/future_hourly_co2e_2034.csv +8761 -0
- data/lib/measures/add_ems_emissions_reporting/resources/future_hourly_co2e_2036.csv +8761 -0
- data/lib/measures/add_ems_emissions_reporting/resources/future_hourly_co2e_2038.csv +8761 -0
- data/lib/measures/add_ems_emissions_reporting/resources/future_hourly_co2e_2040.csv +8761 -0
- data/lib/measures/add_ems_emissions_reporting/resources/future_hourly_co2e_2042.csv +8761 -0
- data/lib/measures/add_ems_emissions_reporting/resources/future_hourly_co2e_2044.csv +8761 -0
- data/lib/measures/add_ems_emissions_reporting/resources/future_hourly_co2e_2046.csv +8761 -0
- data/lib/measures/add_ems_emissions_reporting/resources/future_hourly_co2e_2048.csv +8761 -0
- data/lib/measures/add_ems_emissions_reporting/resources/future_hourly_co2e_2050.csv +8761 -0
- data/lib/measures/add_ems_emissions_reporting/resources/historical_annual_co2e.csv +9 -0
- data/lib/measures/add_ems_emissions_reporting/resources/historical_hourly_co2e_2019.csv +8761 -0
- data/lib/measures/add_ems_to_control_ev_charging/LICENSE.MD.txt +1 -1
- data/lib/measures/add_ems_to_control_ev_charging/LICENSE.md +1 -1
- data/lib/measures/add_ems_to_control_ev_charging/measure.rb +2 -1
- data/lib/measures/add_ems_to_control_ev_charging/measure.xml +14 -10
- data/lib/measures/add_ev_load/LICENSE.MD.txt +1 -1
- data/lib/measures/add_ev_load/LICENSE.md +1 -1
- data/lib/measures/add_ev_load/measure.rb +5 -2
- data/lib/measures/add_ev_load/measure.xml +210 -15
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/PSN_BuildingKey.csv → PSN_BuildingKey.csv} +0 -0
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/PSN_BuildingKey_v2.csv → PSN_BuildingKey_v2.csv} +0 -0
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg1_dow1_flex1.csv → chg1_dow1_flex1.csv} +0 -0
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg1_dow1_flex2.csv → chg1_dow1_flex2.csv} +0 -0
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg1_dow1_flex3.csv → chg1_dow1_flex3.csv} +0 -0
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg1_dow2_flex1.csv → chg1_dow2_flex1.csv} +0 -0
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg1_dow2_flex2.csv → chg1_dow2_flex2.csv} +0 -0
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg1_dow2_flex3.csv → chg1_dow2_flex3.csv} +0 -0
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg1_dow3_flex1.csv → chg1_dow3_flex1.csv} +0 -0
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg1_dow3_flex2.csv → chg1_dow3_flex2.csv} +0 -0
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg1_dow3_flex3.csv → chg1_dow3_flex3.csv} +0 -0
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg2_dow1_flex1.csv → chg2_dow1_flex1.csv} +0 -0
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg2_dow1_flex2.csv → chg2_dow1_flex2.csv} +0 -0
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg2_dow1_flex3.csv → chg2_dow1_flex3.csv} +0 -0
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg2_dow2_flex1.csv → chg2_dow2_flex1.csv} +0 -0
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg2_dow2_flex2.csv → chg2_dow2_flex2.csv} +0 -0
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg2_dow2_flex3.csv → chg2_dow2_flex3.csv} +0 -0
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg2_dow3_flex1.csv → chg2_dow3_flex1.csv} +0 -0
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg2_dow3_flex2.csv → chg2_dow3_flex2.csv} +0 -0
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg2_dow3_flex3.csv → chg2_dow3_flex3.csv} +0 -0
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg3_dow1_flex1.csv → chg3_dow1_flex1.csv} +0 -0
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg3_dow1_flex2.csv → chg3_dow1_flex2.csv} +0 -0
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg3_dow1_flex3.csv → chg3_dow1_flex3.csv} +0 -0
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg3_dow2_flex1.csv → chg3_dow2_flex1.csv} +0 -0
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg3_dow2_flex2.csv → chg3_dow2_flex2.csv} +0 -0
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg3_dow2_flex3.csv → chg3_dow2_flex3.csv} +0 -0
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg3_dow3_flex1.csv → chg3_dow3_flex1.csv} +0 -0
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg3_dow3_flex2.csv → chg3_dow3_flex2.csv} +0 -0
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/chg3_dow3_flex3.csv → chg3_dow3_flex3.csv} +0 -0
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/fast_charge_15min_Saturday.csv → fast_charge_15min_Saturday.csv} +0 -0
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/fast_charge_15min_Sunday.csv → fast_charge_15min_Sunday.csv} +0 -0
- data/lib/measures/add_ev_load/resources/{EV_Load_Profiles/fast_charge_15min_Weekday.csv → fast_charge_15min_Weekday.csv} +0 -0
- data/lib/measures/add_rooftop_pv/LICENSE.md +1 -1
- data/lib/measures/add_rooftop_pv/measure.rb +1 -1
- data/lib/measures/add_rooftop_pv/measure.xml +5 -5
- data/lib/measures/add_zone_mixing_object/LICENSE.md +1 -1
- data/lib/measures/add_zone_mixing_object/measure.rb +1 -1
- data/lib/measures/add_zone_mixing_object/measure.xml +8 -7
- data/lib/measures/add_zone_ventilation_design_flow_rate_object/LICENSE.md +1 -1
- data/lib/measures/add_zone_ventilation_design_flow_rate_object/measure.rb +1 -1
- data/lib/measures/add_zone_ventilation_design_flow_rate_object/measure.xml +8 -7
- data/lib/measures/air_wall_zone_mixing/LICENSE.md +1 -1
- data/lib/measures/air_wall_zone_mixing/measure.rb +1 -1
- data/lib/measures/air_wall_zone_mixing/measure.xml +5 -5
- data/lib/measures/envelope_and_internal_load_breakdown/LICENSE.md +1 -1
- data/lib/measures/envelope_and_internal_load_breakdown/measure.rb +1 -1
- data/lib/measures/envelope_and_internal_load_breakdown/measure.xml +8 -8
- data/lib/measures/envelope_and_internal_load_breakdown/resources/os_lib_reporting_envelope_and_internal_loads_breakdown.rb +1 -1
- data/lib/measures/envelope_and_internal_load_breakdown/resources/report.html.erb +4 -1
- data/lib/measures/example_report/LICENSE.md +1 -1
- data/lib/measures/example_report/measure.rb +1 -1
- data/lib/measures/example_report/measure.xml +14 -14
- data/lib/measures/example_report/resources/os_lib_reporting_example.rb +1 -1
- data/lib/measures/example_report/resources/report.html.erb +4 -1
- data/lib/measures/gem_env_report/LICENSE.md +1 -1
- data/lib/measures/gem_env_report/measure.rb +1 -1
- data/lib/measures/gem_env_report/measure.xml +13 -12
- data/lib/measures/gem_env_report/resources/gem_env_info.rb +1 -1
- data/lib/measures/gem_env_report/resources/openstudio_info.rb +1 -1
- data/lib/measures/gem_env_report/resources/run_gem_env_info.rb +1 -1
- data/lib/measures/gem_env_report/resources/run_openstudio_info.rb +1 -1
- data/lib/measures/generic_qaqc/LICENSE.md +1 -1
- data/lib/measures/generic_qaqc/measure.rb +6 -1
- data/lib/measures/generic_qaqc/measure.xml +48 -54
- data/lib/measures/generic_qaqc/resources/CreateResults.rb +1 -1
- data/lib/measures/generic_qaqc/resources/check_air_sys_temps.rb +1 -1
- data/lib/measures/generic_qaqc/resources/check_calibration.rb +1 -1
- data/lib/measures/generic_qaqc/resources/check_cond_zns.rb +1 -1
- data/lib/measures/generic_qaqc/resources/check_domestic_hot_water.rb +1 -1
- data/lib/measures/generic_qaqc/resources/check_envelope_conductance.rb +1 -1
- data/lib/measures/generic_qaqc/resources/check_eui_by_end_use.rb +1 -1
- data/lib/measures/generic_qaqc/resources/check_eui_reasonableness.rb +1 -1
- data/lib/measures/generic_qaqc/resources/check_fan_pwr.rb +1 -1
- data/lib/measures/generic_qaqc/resources/check_internal_loads.rb +1 -1
- data/lib/measures/generic_qaqc/resources/check_mech_sys_capacity.rb +1 -1
- data/lib/measures/generic_qaqc/resources/check_mech_sys_efficiency.rb +1 -1
- data/lib/measures/generic_qaqc/resources/check_mech_sys_part_load_eff.rb +1 -1
- data/lib/measures/generic_qaqc/resources/check_mech_sys_type.rb +1 -1
- data/lib/measures/generic_qaqc/resources/check_part_loads.rb +1 -1
- data/lib/measures/generic_qaqc/resources/check_placeholder.rb +1 -1
- data/lib/measures/generic_qaqc/resources/check_plant_cap.rb +1 -1
- data/lib/measures/generic_qaqc/resources/check_plant_temps.rb +1 -1
- data/lib/measures/generic_qaqc/resources/check_plenum_loads.rb +1 -1
- data/lib/measures/generic_qaqc/resources/check_pump_pwr.rb +1 -1
- data/lib/measures/generic_qaqc/resources/check_sch_coord.rb +1 -1
- data/lib/measures/generic_qaqc/resources/check_schedules.rb +1 -1
- data/lib/measures/generic_qaqc/resources/check_simultaneous_heating_and_cooling.rb +1 -1
- data/lib/measures/generic_qaqc/resources/check_supply_air_and_thermostat_temp_difference.rb +1 -1
- data/lib/measures/generic_qaqc/resources/check_weather_files.rb +1 -1
- data/lib/measures/generic_qaqc/resources/os_lib_reporting_qaqc.rb +1 -1
- data/lib/measures/generic_qaqc/resources/report.html.erb +4 -1
- data/lib/measures/get_site_from_building_component_library/LICENSE.md +1 -1
- data/lib/measures/get_site_from_building_component_library/measure.rb +1 -1
- data/lib/measures/get_site_from_building_component_library/measure.xml +6 -6
- data/lib/measures/hvac_psychrometric_chart/LICENSE.md +1 -1
- data/lib/measures/hvac_psychrometric_chart/measure.rb +1 -1
- data/lib/measures/hvac_psychrometric_chart/measure.xml +15 -15
- data/lib/measures/hvac_psychrometric_chart/resources/report.html.erb +4 -1
- data/lib/measures/inject_idf_objects/LICENSE.md +1 -1
- data/lib/measures/inject_idf_objects/measure.rb +1 -1
- data/lib/measures/inject_idf_objects/measure.xml +10 -10
- data/lib/measures/openstudio_results/LICENSE.md +1 -1
- data/lib/measures/openstudio_results/measure.rb +6 -4
- data/lib/measures/openstudio_results/measure.xml +174 -162
- data/lib/measures/openstudio_results/resources/Siz.AirConditionerVariableRefrigerantFlow.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.AirLoopHVAC.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.AirLoopHVACUnitaryHeatCoolVAVChangeoverBypass.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.AirLoopHVACUnitaryHeatPumpAirToAir.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.AirLoopHVACUnitarySystem.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.AirTerminalDualDuctVAV.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.AirTerminalSingleDuctConstantVolumeCooledBeam.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.AirTerminalSingleDuctConstantVolumeFourPipeInduction.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.AirTerminalSingleDuctConstantVolumeReheat.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.AirTerminalSingleDuctParallelPIUReheat.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.AirTerminalSingleDuctSeriesPIUReheat.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.AirTerminalSingleDuctUncontrolled.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.AirTerminalSingleDuctVAVHeatAndCoolNoReheat.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.AirTerminalSingleDuctVAVHeatAndCoolReheat.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.AirTerminalSingleDuctVAVNoReheat.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.AirTerminalSingleDuctVAVReheat.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.BoilerHotWater.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.BoilerSteam.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.ChillerAbsorption.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.ChillerAbsorptionIndirect.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.ChillerElectricEIR.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.ChillerHeaterPerformanceElectricEIR.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilCoolingDXMultiSpeed.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilCoolingDXMultiSpeedStageData.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilCoolingDXSingleSpeed.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilCoolingDXTwoSpeed.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilCoolingDXTwoStageWithHumidityControlMode.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilCoolingDXVariableRefrigerantFlow.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilCoolingDXVariableSpeed.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilCoolingDXVariableSpeedSpeedData.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilCoolingLowTempRadiantVarFlow.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilCoolingWater.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilCoolingWaterToAirHeatPumpEquationFit.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFit.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilHeatingDXMultiSpeed.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilHeatingDXMultiSpeedStageData.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilHeatingDXSingleSpeed.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilHeatingDXVariableRefrigerantFlow.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilHeatingDXVariableSpeed.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilHeatingDXVariableSpeedSpeedData.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilHeatingDesuperheater.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilHeatingElectric.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilHeatingGas.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilHeatingGasMultiStage.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilHeatingGasMultiStageStageData.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilHeatingLowTempRadiantVarFlow.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilHeatingWater.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilHeatingWaterBaseboard.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilHeatingWaterBaseboardRadiant.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilHeatingWaterToAirHeatPumpEquationFit.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFit.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilPerformanceDXCooling.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilSystemCoolingDXHeatExchangerAssisted.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilSystemCoolingWaterHeatExchangerAssisted.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilWaterHeatingAirToWaterHeatPump.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilWaterHeatingAirToWaterHeatPumpWrapped.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoilWaterHeatingDesuperheater.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.ControllerOutdoorAir.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoolingTowerSingleSpeed.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoolingTowerTwoSpeed.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.CoolingTowerVariableSpeed.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.DistrictCooling.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.DistrictHeating.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.ElectricLoadCenterInverterLookUpTable.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.ElectricLoadCenterInverterSimple.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.ElectricLoadCenterStorageConverter.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.ElectricLoadCenterStorageSimple.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.EvaporativeCoolerDirectResearchSpecial.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.EvaporativeCoolerIndirectResearchSpecial.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.EvaporativeFluidCoolerSingleSpeed.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.EvaporativeFluidCoolerTwoSpeed.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.FanConstantVolume.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.FanOnOff.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.FanVariableVolume.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.FanZoneExhaust.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.FluidCoolerSingleSpeed.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.FluidCoolerTwoSpeed.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.GeneratorFuelCellElectricalStorage.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.GeneratorFuelCellInverter.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.GeneratorFuelCellPowerModule.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.GeneratorMicroTurbine.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.GeneratorMicroTurbineHeatRecovery.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.HVACComponent.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.HeaderedPumpsConstantSpeed.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.HeaderedPumpsVariableSpeed.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.HeatExchangerAirToAirSensibleAndLatent.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.HeatExchangerFluidToFluid.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.HeatPumpWaterToWaterEquationFitCooling.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.HeatPumpWaterToWaterEquationFitHeating.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.HumidifierSteamElectric.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.Model.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.ModelObject.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.PhotovoltaicPerformanceSimple.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.PlantComponentTemperatureSource.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.PlantLoop.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.PumpConstantSpeed.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.PumpVariableSpeed.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.RefrigerationSecondarySystem.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.RefrigerationSystem.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.RefrigerationTranscriticalSystem.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.SizingSystem.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.SolarCollectorFlatPlatePhotovoltaicThermal.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.SolarCollectorPerformancePhotovoltaicThermalSimple.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.ThermalStorageChilledWaterStratified.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.WaterHeaterHeatPump.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.WaterHeaterHeatPumpWrappedCondenser.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.WaterHeaterMixed.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.WaterHeaterStratified.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.ZoneHVACBaseboardConvectiveElectric.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.ZoneHVACBaseboardConvectiveWater.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.ZoneHVACBaseboardRadiantConvectiveElectric.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.ZoneHVACBaseboardRadiantConvectiveWater.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.ZoneHVACEnergyRecoveryVentilator.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.ZoneHVACFourPipeFanCoil.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.ZoneHVACHighTemperatureRadiant.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.ZoneHVACIdealLoadsAirSystem.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.ZoneHVACLowTempRadiantConstFlow.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.ZoneHVACLowTempRadiantVarFlow.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.ZoneHVACPackagedTerminalAirConditioner.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.ZoneHVACPackagedTerminalHeatPump.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.ZoneHVACTerminalUnitVariableRefrigerantFlow.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.ZoneHVACUnitHeater.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.ZoneHVACUnitVentilator.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.ZoneHVACWaterToAirHeatPump.rb +1 -1
- data/lib/measures/openstudio_results/resources/Siz.ZoneVentilationDesignFlowRate.rb +1 -1
- data/lib/measures/openstudio_results/resources/os_lib_reporting.rb +2 -2
- data/lib/measures/openstudio_results/resources/report.html.erb +4 -1
- data/lib/measures/remove_orphan_objects_and_unused_resources/LICENSE.md +1 -1
- data/lib/measures/remove_orphan_objects_and_unused_resources/measure.rb +1 -1
- data/lib/measures/remove_orphan_objects_and_unused_resources/measure.xml +8 -7
- data/lib/measures/set_electric_equipment_loads_by_epd/LICENSE.md +1 -1
- data/lib/measures/set_electric_equipment_loads_by_epd/measure.rb +1 -1
- data/lib/measures/set_electric_equipment_loads_by_epd/measure.xml +10 -9
- data/lib/measures/set_exterior_walls_and_floors_to_adiabatic/LICENSE.md +1 -1
- data/lib/measures/set_exterior_walls_and_floors_to_adiabatic/measure.rb +1 -1
- data/lib/measures/set_exterior_walls_and_floors_to_adiabatic/measure.xml +17 -11
- data/lib/measures/set_run_period/LICENSE.md +1 -1
- data/lib/measures/set_run_period/measure.rb +1 -1
- data/lib/measures/set_run_period/measure.xml +5 -5
- data/lib/measures/set_space_infiltration_per_exterior_area/LICENSE.md +1 -1
- data/lib/measures/set_space_infiltration_per_exterior_area/measure.rb +1 -1
- data/lib/measures/set_space_infiltration_per_exterior_area/measure.xml +8 -7
- data/lib/measures/tariff_selection_block/LICENSE.md +1 -1
- data/lib/measures/tariff_selection_block/measure.rb +2 -2
- data/lib/measures/tariff_selection_block/measure.xml +5 -5
- data/lib/measures/tariff_selection_flat/LICENSE.md +1 -1
- data/lib/measures/tariff_selection_flat/measure.rb +2 -2
- data/lib/measures/tariff_selection_flat/measure.xml +5 -5
- data/lib/measures/tariff_selection_generic/LICENSE.md +1 -1
- data/lib/measures/tariff_selection_generic/README.md +2 -2
- data/lib/measures/tariff_selection_generic/measure.rb +1 -1
- data/lib/measures/tariff_selection_generic/measure.xml +25 -25
- data/lib/measures/tariff_selection_generic/resources/FlatEnergyCharge-Gas.idf +3 -3
- data/lib/measures/tariff_selection_generic/resources/IN-EIAMonthlyRateGas.idf +1 -1
- data/lib/measures/tariff_selection_time_and_date_dependant/LICENSE.md +1 -1
- data/lib/measures/tariff_selection_time_and_date_dependant/measure.rb +2 -2
- data/lib/measures/tariff_selection_time_and_date_dependant/measure.xml +5 -5
- data/lib/measures/view_data/LICENSE.md +1 -1
- data/lib/measures/view_data/measure.rb +1 -1
- data/lib/measures/view_data/measure.xml +32 -32
- data/lib/measures/view_data/resources/report.html.in +1149 -956
- data/lib/measures/view_data/resources/va3c.rb +1 -1
- data/lib/measures/view_model/LICENSE.md +1 -1
- data/lib/measures/view_model/measure.rb +1 -1
- data/lib/measures/view_model/measure.xml +27 -27
- data/lib/measures/view_model/resources/report.html.in +1152 -959
- data/lib/measures/view_model/resources/va3c.rb +1 -1
- data/lib/openstudio/common_measures/extension.rb +1 -1
- data/lib/openstudio/common_measures/version.rb +2 -2
- data/lib/openstudio/common_measures.rb +1 -1
- data/lib/openstudio-common-measures.rb +1 -1
- data/openstudio-common-measures.gemspec +4 -4
- metadata +67 -107
- data/lib/measures/AddDaylightSensors/README.md +0 -136
- data/lib/measures/AddDaylightSensors/README.md.erb +0 -42
- data/lib/measures/AddDaylightSensors/measure.rb +0 -521
- data/lib/measures/AddDaylightSensors/measure.xml +0 -233
- data/lib/measures/EnableDemandControlledVentilation/LICENSE.md +0 -27
- data/lib/measures/EnableDemandControlledVentilation/README.md +0 -32
- data/lib/measures/EnableDemandControlledVentilation/README.md.erb +0 -42
- data/lib/measures/EnableDemandControlledVentilation/measure.rb +0 -154
- data/lib/measures/EnableDemandControlledVentilation/measure.xml +0 -99
- data/lib/measures/EnableEconomizerControl/LICENSE.md +0 -27
- data/lib/measures/EnableEconomizerControl/README.md +0 -48
- data/lib/measures/EnableEconomizerControl/README.md.erb +0 -42
- data/lib/measures/EnableEconomizerControl/measure.rb +0 -172
- data/lib/measures/EnableEconomizerControl/measure.xml +0 -124
- data/lib/measures/IncreaseInsulationRValueForExteriorWalls/LICENSE.md +0 -27
- data/lib/measures/IncreaseInsulationRValueForExteriorWalls/README.md +0 -64
- data/lib/measures/IncreaseInsulationRValueForExteriorWalls/README.md.erb +0 -42
- data/lib/measures/IncreaseInsulationRValueForExteriorWalls/measure.rb +0 -422
- data/lib/measures/IncreaseInsulationRValueForExteriorWalls/measure.xml +0 -150
- data/lib/measures/IncreaseInsulationRValueForExteriorWallsByPercentage/LICENSE.md +0 -27
- data/lib/measures/IncreaseInsulationRValueForExteriorWallsByPercentage/README.md +0 -32
- data/lib/measures/IncreaseInsulationRValueForExteriorWallsByPercentage/README.md.erb +0 -42
- data/lib/measures/IncreaseInsulationRValueForExteriorWallsByPercentage/measure.rb +0 -328
- data/lib/measures/IncreaseInsulationRValueForExteriorWallsByPercentage/measure.xml +0 -98
- data/lib/measures/IncreaseInsulationRValueForRoofs/LICENSE.md +0 -27
- data/lib/measures/IncreaseInsulationRValueForRoofs/README.md +0 -64
- data/lib/measures/IncreaseInsulationRValueForRoofs/README.md.erb +0 -42
- data/lib/measures/IncreaseInsulationRValueForRoofs/measure.rb +0 -422
- data/lib/measures/IncreaseInsulationRValueForRoofs/measure.xml +0 -143
- data/lib/measures/IncreaseInsulationRValueForRoofsByPercentage/LICENSE.md +0 -27
- data/lib/measures/IncreaseInsulationRValueForRoofsByPercentage/README.md +0 -32
- data/lib/measures/IncreaseInsulationRValueForRoofsByPercentage/README.md.erb +0 -42
- data/lib/measures/IncreaseInsulationRValueForRoofsByPercentage/measure.rb +0 -328
- data/lib/measures/IncreaseInsulationRValueForRoofsByPercentage/measure.xml +0 -98
- data/lib/measures/ReduceElectricEquipmentLoadsByPercentage/LICENSE.md +0 -27
- data/lib/measures/ReduceElectricEquipmentLoadsByPercentage/README.md +0 -97
- data/lib/measures/ReduceElectricEquipmentLoadsByPercentage/README.md.erb +0 -42
- data/lib/measures/ReduceElectricEquipmentLoadsByPercentage/measure.rb +0 -450
- data/lib/measures/ReduceElectricEquipmentLoadsByPercentage/measure.xml +0 -186
- data/lib/measures/ReduceLightingLoadsByPercentage/LICENSE.md +0 -27
- data/lib/measures/ReduceLightingLoadsByPercentage/README.md +0 -96
- data/lib/measures/ReduceLightingLoadsByPercentage/README.md.erb +0 -42
- data/lib/measures/ReduceLightingLoadsByPercentage/measure.rb +0 -513
- data/lib/measures/ReduceLightingLoadsByPercentage/measure.xml +0 -191
- data/lib/measures/ReduceSpaceInfiltrationByPercentage/LICENSE.md +0 -27
- data/lib/measures/ReduceSpaceInfiltrationByPercentage/README.md +0 -104
- data/lib/measures/ReduceSpaceInfiltrationByPercentage/README.md.erb +0 -42
- data/lib/measures/ReduceSpaceInfiltrationByPercentage/measure.rb +0 -349
- data/lib/measures/ReduceSpaceInfiltrationByPercentage/measure.xml +0 -181
- data/lib/measures/ReduceVentilationByPercentage/LICENSE.md +0 -27
- data/lib/measures/ReduceVentilationByPercentage/README.md +0 -40
- data/lib/measures/ReduceVentilationByPercentage/README.md.erb +0 -42
- data/lib/measures/ReduceVentilationByPercentage/measure.rb +0 -291
- data/lib/measures/ReduceVentilationByPercentage/measure.xml +0 -96
- data/lib/measures/create_variable_speed_rtu/LICENSE.md +0 -27
- data/lib/measures/create_variable_speed_rtu/README.md +0 -120
- data/lib/measures/create_variable_speed_rtu/README.md.erb +0 -42
- data/lib/measures/create_variable_speed_rtu/measure.rb +0 -539
- data/lib/measures/create_variable_speed_rtu/measure.xml +0 -207
- data/lib/measures/generic_qaqc/resources/os_lib_helper_methods.rb +0 -399
- data/lib/measures/openstudio_results/resources/os_lib_helper_methods.rb +0 -399
- data/lib/measures/openstudio_results/resources/os_lib_schedules.rb +0 -962
@@ -1,521 +0,0 @@
|
|
1
|
-
# *******************************************************************************
|
2
|
-
# OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
|
3
|
-
# All rights reserved.
|
4
|
-
# Redistribution and use in source and binary forms, with or without
|
5
|
-
# modification, are permitted provided that the following conditions are met:
|
6
|
-
#
|
7
|
-
# (1) Redistributions of source code must retain the above copyright notice,
|
8
|
-
# this list of conditions and the following disclaimer.
|
9
|
-
#
|
10
|
-
# (2) Redistributions in binary form must reproduce the above copyright notice,
|
11
|
-
# this list of conditions and the following disclaimer in the documentation
|
12
|
-
# and/or other materials provided with the distribution.
|
13
|
-
#
|
14
|
-
# (3) Neither the name of the copyright holder nor the names of any contributors
|
15
|
-
# may be used to endorse or promote products derived from this software without
|
16
|
-
# specific prior written permission from the respective party.
|
17
|
-
#
|
18
|
-
# (4) Other than as required in clauses (1) and (2), distributions in any form
|
19
|
-
# of modifications or other derivative works may not use the "OpenStudio"
|
20
|
-
# trademark, "OS", "os", or any other confusingly similar designation without
|
21
|
-
# specific prior written permission from Alliance for Sustainable Energy, LLC.
|
22
|
-
#
|
23
|
-
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER(S) AND ANY CONTRIBUTORS
|
24
|
-
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
25
|
-
# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
26
|
-
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER(S), ANY CONTRIBUTORS, THE
|
27
|
-
# UNITED STATES GOVERNMENT, OR THE UNITED STATES DEPARTMENT OF ENERGY, NOR ANY OF
|
28
|
-
# THEIR EMPLOYEES, BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
29
|
-
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
|
30
|
-
# OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
31
|
-
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
|
32
|
-
# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
33
|
-
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
34
|
-
# *******************************************************************************
|
35
|
-
|
36
|
-
# start the measure
|
37
|
-
class AddDaylightSensors < OpenStudio::Measure::ModelMeasure
|
38
|
-
# define the name that a user will see
|
39
|
-
def name
|
40
|
-
return 'Add Daylight Sensor at the Center of Spaces with a Specified Space Type Assigned'
|
41
|
-
end
|
42
|
-
|
43
|
-
# human readable description
|
44
|
-
def description
|
45
|
-
return 'This measure will add daylighting controls to spaces that that have space types assigned with names containing the string in the argument. You can also add a cost per space for sensors added to the model.'
|
46
|
-
end
|
47
|
-
|
48
|
-
# human readable description of modeling approach
|
49
|
-
def modeler_description
|
50
|
-
return "Make an array of the spaces that meet the criteria. Locate the sensor x and y values by averaging the min and max X and Y values from floor surfaces in the space. If a space already has a daylighting control, do not add a new one and leave the original in place. Warn the user if the space isn't assigned to a thermal zone, or if the space doesn't have any translucent surfaces. Note that the cost is added to the space not the sensor. If the sensor is removed at a later date, the cost will remain."
|
51
|
-
end
|
52
|
-
|
53
|
-
# define the arguments that the user will input
|
54
|
-
def arguments(model)
|
55
|
-
args = OpenStudio::Measure::OSArgumentVector.new
|
56
|
-
|
57
|
-
# make a choice argument for model objects
|
58
|
-
space_type_handles = OpenStudio::StringVector.new
|
59
|
-
space_type_display_names = OpenStudio::StringVector.new
|
60
|
-
|
61
|
-
# putting model object and names into hash
|
62
|
-
space_type_args = model.getSpaceTypes
|
63
|
-
space_type_args_hash = {}
|
64
|
-
space_type_args.each do |space_type_arg|
|
65
|
-
space_type_args_hash[space_type_arg.name.to_s] = space_type_arg
|
66
|
-
end
|
67
|
-
|
68
|
-
# looping through sorted hash of model objects
|
69
|
-
space_type_args_hash.sort.map do |key, value|
|
70
|
-
# only include if space type is used in the model
|
71
|
-
if !value.spaces.empty?
|
72
|
-
space_type_handles << value.handle.to_s
|
73
|
-
space_type_display_names << key
|
74
|
-
end
|
75
|
-
end
|
76
|
-
|
77
|
-
# make a choice argument for space type
|
78
|
-
space_type = OpenStudio::Measure::OSArgument.makeChoiceArgument('space_type', space_type_handles, space_type_display_names, true)
|
79
|
-
space_type.setDisplayName('Add Daylight Sensors to Spaces of This Space Type')
|
80
|
-
args << space_type
|
81
|
-
|
82
|
-
# make an argument for setpoint
|
83
|
-
setpoint = OpenStudio::Measure::OSArgument.makeDoubleArgument('setpoint', true)
|
84
|
-
setpoint.setDisplayName('Daylighting Setpoint')
|
85
|
-
setpoint.setUnits('fc')
|
86
|
-
setpoint.setDefaultValue(45.0)
|
87
|
-
args << setpoint
|
88
|
-
|
89
|
-
# make an argument for control_type
|
90
|
-
chs = OpenStudio::StringVector.new
|
91
|
-
chs << 'None'
|
92
|
-
chs << 'Continuous'
|
93
|
-
chs << 'Stepped'
|
94
|
-
chs << 'Continuous/Off'
|
95
|
-
control_type = OpenStudio::Measure::OSArgument.makeChoiceArgument('control_type', chs)
|
96
|
-
control_type.setDisplayName('Daylighting Control Type')
|
97
|
-
control_type.setDefaultValue('Continuous/Off')
|
98
|
-
args << control_type
|
99
|
-
|
100
|
-
# make an argument for min_power_fraction
|
101
|
-
min_power_fraction = OpenStudio::Measure::OSArgument.makeDoubleArgument('min_power_fraction', true)
|
102
|
-
min_power_fraction.setDisplayName('Daylighting Minimum Input Power Fraction')
|
103
|
-
min_power_fraction.setDescription('min = 0 max = 0.6')
|
104
|
-
min_power_fraction.setDefaultValue(0.3)
|
105
|
-
args << min_power_fraction
|
106
|
-
|
107
|
-
# make an argument for min_light_fraction
|
108
|
-
min_light_fraction = OpenStudio::Measure::OSArgument.makeDoubleArgument('min_light_fraction', true)
|
109
|
-
min_light_fraction.setDisplayName('Daylighting Minimum Light Output Fraction')
|
110
|
-
min_light_fraction.setDescription('min = 0 max = 0.6')
|
111
|
-
min_light_fraction.setDefaultValue(0.2)
|
112
|
-
args << min_light_fraction
|
113
|
-
|
114
|
-
# make an argument for fraction_zone_controlled
|
115
|
-
fraction_zone_controlled = OpenStudio::Measure::OSArgument.makeDoubleArgument('fraction_zone_controlled', true)
|
116
|
-
fraction_zone_controlled.setDisplayName('Fraction of zone controlled by daylight sensors')
|
117
|
-
fraction_zone_controlled.setDefaultValue(1.0)
|
118
|
-
args << fraction_zone_controlled
|
119
|
-
|
120
|
-
# make an argument for height
|
121
|
-
height = OpenStudio::Measure::OSArgument.makeDoubleArgument('height', true)
|
122
|
-
height.setDisplayName('Sensor Height')
|
123
|
-
height.setUnits('inches')
|
124
|
-
height.setDefaultValue(30.0)
|
125
|
-
args << height
|
126
|
-
|
127
|
-
# make an argument for material and installation cost
|
128
|
-
material_cost = OpenStudio::Measure::OSArgument.makeDoubleArgument('material_cost', true)
|
129
|
-
material_cost.setDisplayName('Material and Installation Costs per Space for Daylight Sensor')
|
130
|
-
material_cost.setUnits('$')
|
131
|
-
material_cost.setDefaultValue(0.0)
|
132
|
-
args << material_cost
|
133
|
-
|
134
|
-
# make an argument for demolition cost
|
135
|
-
demolition_cost = OpenStudio::Measure::OSArgument.makeDoubleArgument('demolition_cost', true)
|
136
|
-
demolition_cost.setDisplayName('Demolition Costs per Space for Daylight Sensor')
|
137
|
-
demolition_cost.setUnits('$')
|
138
|
-
demolition_cost.setDefaultValue(0.0)
|
139
|
-
args << demolition_cost
|
140
|
-
|
141
|
-
# make an argument for duration in years until costs start
|
142
|
-
years_until_costs_start = OpenStudio::Measure::OSArgument.makeIntegerArgument('years_until_costs_start', true)
|
143
|
-
years_until_costs_start.setDisplayName('Years Until Costs Start')
|
144
|
-
years_until_costs_start.setUnits('whole years')
|
145
|
-
years_until_costs_start.setDefaultValue(0)
|
146
|
-
args << years_until_costs_start
|
147
|
-
|
148
|
-
# make an argument to determine if demolition costs should be included in initial construction
|
149
|
-
demo_cost_initial_const = OpenStudio::Measure::OSArgument.makeBoolArgument('demo_cost_initial_const', true)
|
150
|
-
demo_cost_initial_const.setDisplayName('Demolition Costs Occur During Initial Construction')
|
151
|
-
demo_cost_initial_const.setDefaultValue(false)
|
152
|
-
args << demo_cost_initial_const
|
153
|
-
|
154
|
-
# make an argument for expected life
|
155
|
-
expected_life = OpenStudio::Measure::OSArgument.makeIntegerArgument('expected_life', true)
|
156
|
-
expected_life.setDisplayName('Expected Life')
|
157
|
-
expected_life.setUnits('whole years')
|
158
|
-
expected_life.setDefaultValue(20)
|
159
|
-
args << expected_life
|
160
|
-
|
161
|
-
# make an argument for o&m cost
|
162
|
-
om_cost = OpenStudio::Measure::OSArgument.makeDoubleArgument('om_cost', true)
|
163
|
-
om_cost.setDisplayName('O & M Costs per Space for Daylight Sensor')
|
164
|
-
om_cost.setUnits('$')
|
165
|
-
om_cost.setDefaultValue(0.0)
|
166
|
-
args << om_cost
|
167
|
-
|
168
|
-
# make an argument for o&m frequency
|
169
|
-
om_frequency = OpenStudio::Measure::OSArgument.makeIntegerArgument('om_frequency', true)
|
170
|
-
om_frequency.setDisplayName('O & M Frequency')
|
171
|
-
om_frequency.setUnits('whole years')
|
172
|
-
om_frequency.setDefaultValue(1)
|
173
|
-
args << om_frequency
|
174
|
-
|
175
|
-
return args
|
176
|
-
end
|
177
|
-
|
178
|
-
# define what happens when the measure is run
|
179
|
-
def run(model, runner, user_arguments)
|
180
|
-
super(model, runner, user_arguments)
|
181
|
-
|
182
|
-
# use the built-in error checking
|
183
|
-
if !runner.validateUserArguments(arguments(model), user_arguments)
|
184
|
-
return false
|
185
|
-
end
|
186
|
-
|
187
|
-
# assign the user inputs to variables
|
188
|
-
space_type = runner.getOptionalWorkspaceObjectChoiceValue('space_type', user_arguments, model)
|
189
|
-
setpoint = runner.getDoubleArgumentValue('setpoint', user_arguments)
|
190
|
-
control_type = runner.getStringArgumentValue('control_type', user_arguments)
|
191
|
-
min_power_fraction = runner.getDoubleArgumentValue('min_power_fraction', user_arguments)
|
192
|
-
min_light_fraction = runner.getDoubleArgumentValue('min_light_fraction', user_arguments)
|
193
|
-
fraction_zone_controlled = runner.getDoubleArgumentValue('fraction_zone_controlled', user_arguments)
|
194
|
-
height = runner.getDoubleArgumentValue('height', user_arguments)
|
195
|
-
material_cost = runner.getDoubleArgumentValue('material_cost', user_arguments)
|
196
|
-
demolition_cost = runner.getDoubleArgumentValue('demolition_cost', user_arguments)
|
197
|
-
years_until_costs_start = runner.getIntegerArgumentValue('years_until_costs_start', user_arguments)
|
198
|
-
demo_cost_initial_const = runner.getBoolArgumentValue('demo_cost_initial_const', user_arguments)
|
199
|
-
expected_life = runner.getIntegerArgumentValue('expected_life', user_arguments)
|
200
|
-
om_cost = runner.getDoubleArgumentValue('om_cost', user_arguments)
|
201
|
-
om_frequency = runner.getIntegerArgumentValue('om_frequency', user_arguments)
|
202
|
-
|
203
|
-
# check the space_type for reasonableness
|
204
|
-
if space_type.empty?
|
205
|
-
handle = runner.getStringArgumentValue('space_type', user_arguments)
|
206
|
-
if handle.empty?
|
207
|
-
runner.registerError('No SpaceType was chosen.')
|
208
|
-
else
|
209
|
-
runner.registerError("The selected space type with handle '#{handle}' was not found in the model. It may have been removed by another measure.")
|
210
|
-
end
|
211
|
-
return false
|
212
|
-
else
|
213
|
-
if !space_type.get.to_SpaceType.empty?
|
214
|
-
space_type = space_type.get.to_SpaceType.get
|
215
|
-
else
|
216
|
-
runner.registerError('Script Error - argument not showing up as space type.')
|
217
|
-
return false
|
218
|
-
end
|
219
|
-
end
|
220
|
-
|
221
|
-
# check the setpoint for reasonableness
|
222
|
-
if (setpoint < 0) || (setpoint > 9999) # dfg need input on good value
|
223
|
-
runner.registerError("A setpoint of #{setpoint} foot-candles is outside the measure limit.")
|
224
|
-
return false
|
225
|
-
elsif setpoint > 999
|
226
|
-
runner.registerWarning("A setpoint of #{setpoint} foot-candles is abnormally high.") # dfg need input on good value
|
227
|
-
end
|
228
|
-
|
229
|
-
# check the min_power_fraction for reasonableness
|
230
|
-
if (min_power_fraction < 0.0) || (min_power_fraction > 0.6)
|
231
|
-
runner.registerError("The requested minimum input power fraction of #{min_power_fraction} for continuous dimming control is outside the acceptable range of 0 to 0.6.")
|
232
|
-
return false
|
233
|
-
end
|
234
|
-
|
235
|
-
# check the min_light_fraction for reasonableness
|
236
|
-
if (min_light_fraction < 0.0) || (min_light_fraction > 0.6)
|
237
|
-
runner.registerError("The requested minimum light output fraction of #{min_light_fraction} for continuous dimming control is outside the acceptable range of 0 to 0.6.")
|
238
|
-
return false
|
239
|
-
end
|
240
|
-
|
241
|
-
# check the height for reasonableness
|
242
|
-
if (height < -360) || (height > 360) # neg ok because space origin may not be floor
|
243
|
-
runner.registerError("A setpoint of #{height} inches is outside the measure limit.")
|
244
|
-
return false
|
245
|
-
elsif height > 72
|
246
|
-
runner.registerWarning("A setpoint of #{height} inches is abnormally high.")
|
247
|
-
elseif height < 0
|
248
|
-
runner.registerWarning('Typically the sensor height should be a positive number, however if your space origin is above the floor then a negative sensor height may be approriate.')
|
249
|
-
end
|
250
|
-
|
251
|
-
# set flags to use later
|
252
|
-
costs_requested = false
|
253
|
-
warning_cost_assign_to_space = false
|
254
|
-
|
255
|
-
# check costs for reasonableness
|
256
|
-
if material_cost.abs + demolition_cost.abs + om_cost.abs == 0
|
257
|
-
runner.registerInfo('No costs were requested for Daylight Sensors.')
|
258
|
-
else
|
259
|
-
costs_requested = true
|
260
|
-
end
|
261
|
-
|
262
|
-
# check lifecycle arguments for reasonableness
|
263
|
-
if (years_until_costs_start < 0) && (years_until_costs_start > expected_life)
|
264
|
-
runner.registerError('Years until costs start should be a non-negative integer less than Expected Life.')
|
265
|
-
end
|
266
|
-
if (expected_life < 1) && (expected_life > 100)
|
267
|
-
runner.registerError('Choose an integer greater than 0 and less than or equal to 100 for Expected Life.')
|
268
|
-
end
|
269
|
-
if om_frequency < 1
|
270
|
-
runner.registerError('Choose an integer greater than 0 for O & M Frequency.')
|
271
|
-
end
|
272
|
-
|
273
|
-
# short def to make numbers pretty (converts 4125001.25641 to 4,125,001.26 or 4,125,001). The definition be called through this measure
|
274
|
-
def neat_numbers(number, roundto = 2) # round to 0 or 2)
|
275
|
-
if roundto == 2
|
276
|
-
number = format '%.2f', number
|
277
|
-
else
|
278
|
-
number = number.round
|
279
|
-
end
|
280
|
-
# regex to add commas
|
281
|
-
number.to_s.reverse.gsub(/([0-9]{3}(?=([0-9])))/, '\\1,').reverse
|
282
|
-
end
|
283
|
-
|
284
|
-
# helper that loops through lifecycle costs getting total costs under "Construction" or "Salvage" category and add to counter if occurs during year 0
|
285
|
-
def get_total_costs_for_objects(objects)
|
286
|
-
counter = 0
|
287
|
-
objects.each do |object|
|
288
|
-
object_LCCs = object.lifeCycleCosts
|
289
|
-
object_LCCs.each do |object_LCC|
|
290
|
-
if (object_LCC.category == 'Construction') || (object_LCC.category == 'Salvage')
|
291
|
-
if object_LCC.yearsFromStart == 0
|
292
|
-
counter += object_LCC.totalCost
|
293
|
-
end
|
294
|
-
end
|
295
|
-
end
|
296
|
-
end
|
297
|
-
return counter
|
298
|
-
end
|
299
|
-
|
300
|
-
# unit conversion from IP units to SI units
|
301
|
-
setpoint_si = OpenStudio.convert(setpoint, 'fc', 'lux').get
|
302
|
-
height_si = OpenStudio.convert(height, 'in', 'm').get
|
303
|
-
|
304
|
-
# variable to tally the area to which the overall measure is applied
|
305
|
-
area = 0
|
306
|
-
# variables to aggregate the number of sensors installed and the area affected
|
307
|
-
sensor_count = 0
|
308
|
-
sensor_area = 0
|
309
|
-
spaces_using_space_type = space_type.spaces
|
310
|
-
# array with subset of spaces
|
311
|
-
spaces_using_space_type_in_zones_without_sensors = []
|
312
|
-
affected_zones = []
|
313
|
-
affected_zone_names = []
|
314
|
-
# hash to hold sensor objects
|
315
|
-
new_sensor_objects = {}
|
316
|
-
|
317
|
-
# reporting initial condition of model
|
318
|
-
starting_spaces = model.getSpaces
|
319
|
-
runner.registerInitialCondition("#{spaces_using_space_type.size} spaces are assigned to space type '#{space_type.name}'.")
|
320
|
-
|
321
|
-
# get starting costs for spaces
|
322
|
-
yr0_capital_totalCosts = -1 * get_total_costs_for_objects(spaces_using_space_type)
|
323
|
-
|
324
|
-
# test that there is no sensor already in the space, and that zone object doesn't already have sensors assigned.
|
325
|
-
spaces_using_space_type.each do |space_using_space_type|
|
326
|
-
if space_using_space_type.daylightingControls.empty?
|
327
|
-
space_zone = space_using_space_type.thermalZone
|
328
|
-
if !space_zone.empty?
|
329
|
-
space_zone = space_zone.get
|
330
|
-
if space_zone.primaryDaylightingControl.empty? && space_zone.secondaryDaylightingControl.empty?
|
331
|
-
spaces_using_space_type_in_zones_without_sensors << space_using_space_type
|
332
|
-
elsif
|
333
|
-
runner.registerWarning("Thermal zone '#{space_zone.name}' which includes space '#{space_using_space_type.name}' already had a daylighting sensor. No sensor was added to space '#{space_using_space_type.name}'.")
|
334
|
-
end
|
335
|
-
else
|
336
|
-
runner.registerWarning("Space '#{space_using_space_type.name}' is not associated with a thermal zone. It won't be part of the EnergyPlus simulation.")
|
337
|
-
end
|
338
|
-
else
|
339
|
-
runner.registerWarning("Space '#{space_using_space_type.name}' already has a daylighting sensor. No sensor was added.")
|
340
|
-
end
|
341
|
-
end
|
342
|
-
|
343
|
-
# loop through all spaces,
|
344
|
-
# and add a daylighting sensor with dimming to each
|
345
|
-
space_count = 0
|
346
|
-
spaces_using_space_type_in_zones_without_sensors.each do |space|
|
347
|
-
space_count += 1
|
348
|
-
area += space.floorArea
|
349
|
-
|
350
|
-
# eliminate spaces that don't have exterior natural lighting
|
351
|
-
has_ext_nat_light = false
|
352
|
-
space.surfaces.each do |surface|
|
353
|
-
next if surface.outsideBoundaryCondition != 'Outdoors'
|
354
|
-
surface.subSurfaces.each do |sub_surface|
|
355
|
-
next if sub_surface.subSurfaceType == 'Door'
|
356
|
-
next if sub_surface.subSurfaceType == 'OverheadDoor'
|
357
|
-
has_ext_nat_light = true
|
358
|
-
end
|
359
|
-
end
|
360
|
-
if has_ext_nat_light == false
|
361
|
-
runner.registerWarning("Space '#{space.name}' has no exterior natural lighting. No sensor will be added.")
|
362
|
-
next
|
363
|
-
end
|
364
|
-
|
365
|
-
# find floors
|
366
|
-
floors = []
|
367
|
-
space.surfaces.each do |surface|
|
368
|
-
next if surface.surfaceType != 'Floor'
|
369
|
-
floors << surface
|
370
|
-
end
|
371
|
-
|
372
|
-
# this method only works for flat (non-inclined) floors
|
373
|
-
boundingBox = OpenStudio::BoundingBox.new
|
374
|
-
floors.each do |floor|
|
375
|
-
boundingBox.addPoints(floor.vertices)
|
376
|
-
end
|
377
|
-
xmin = boundingBox.minX.get
|
378
|
-
ymin = boundingBox.minY.get
|
379
|
-
zmin = boundingBox.minZ.get
|
380
|
-
xmax = boundingBox.maxX.get
|
381
|
-
ymax = boundingBox.maxY.get
|
382
|
-
|
383
|
-
# create a new sensor and put at the center of the space
|
384
|
-
sensor = OpenStudio::Model::DaylightingControl.new(model)
|
385
|
-
sensor.setName("#{space.name} daylighting control")
|
386
|
-
x_pos = (xmin + xmax) / 2
|
387
|
-
y_pos = (ymin + ymax) / 2
|
388
|
-
z_pos = zmin + height_si # put it 1 meter above the floor
|
389
|
-
new_point = OpenStudio::Point3d.new(x_pos, y_pos, z_pos)
|
390
|
-
sensor.setPosition(new_point)
|
391
|
-
sensor.setIlluminanceSetpoint(setpoint_si)
|
392
|
-
sensor.setLightingControlType(control_type)
|
393
|
-
sensor.setMinimumInputPowerFractionforContinuousDimmingControl(min_power_fraction)
|
394
|
-
sensor.setMinimumLightOutputFractionforContinuousDimmingControl(min_light_fraction)
|
395
|
-
sensor.setSpace(space)
|
396
|
-
puts sensor
|
397
|
-
|
398
|
-
# add lifeCycleCost objects if there is a non-zero value in one of the cost arguments
|
399
|
-
if costs_requested == true
|
400
|
-
|
401
|
-
starting_lcc_counter = space.lifeCycleCosts.size
|
402
|
-
|
403
|
-
# adding new cost items
|
404
|
-
lcc_mat = OpenStudio::Model::LifeCycleCost.createLifeCycleCost("LCC_Mat - #{sensor.name}", space, material_cost, 'CostPerEach', 'Construction', expected_life, years_until_costs_start)
|
405
|
-
if demo_cost_initial_const
|
406
|
-
lcc_demo = OpenStudio::Model::LifeCycleCost.createLifeCycleCost("LCC_Demo - #{sensor.name}", space, demolition_cost, 'CostPerEach', 'Salvage', expected_life, years_until_costs_start)
|
407
|
-
else
|
408
|
-
lcc_demo = OpenStudio::Model::LifeCycleCost.createLifeCycleCost("LCC_Demo - #{sensor.name}", space, demolition_cost, 'CostPerEach', 'Salvage', expected_life, years_until_costs_start + expected_life)
|
409
|
-
end
|
410
|
-
lcc_om = OpenStudio::Model::LifeCycleCost.createLifeCycleCost("LCC_OM - #{sensor.name}", space, om_cost, 'CostPerEach', 'Maintenance', om_frequency, 0)
|
411
|
-
|
412
|
-
if space.lifeCycleCosts.size - starting_lcc_counter == 3
|
413
|
-
if !warning_cost_assign_to_space
|
414
|
-
runner.registerInfo('Cost for daylight sensors was added to spaces. The cost will remain in the model unless the space is removed. Removing only the sensor will not remove the cost.')
|
415
|
-
warning_cost_assign_to_space = true
|
416
|
-
end
|
417
|
-
else
|
418
|
-
runner.registerWarning("The measure did not function as expected. #{space.lifeCycleCosts.size - starting_lcc_counter} LifeCycleCost objects were made, 3 were expected.")
|
419
|
-
end
|
420
|
-
|
421
|
-
end
|
422
|
-
|
423
|
-
# push unique zones to array for use later in measure
|
424
|
-
temp_zone = space.thermalZone.get
|
425
|
-
if affected_zone_names.include?(temp_zone.name.to_s) == false
|
426
|
-
affected_zones << temp_zone
|
427
|
-
affected_zone_names << temp_zone.name.to_s
|
428
|
-
end
|
429
|
-
|
430
|
-
# push sensor object into hash with space name
|
431
|
-
new_sensor_objects[space.name.to_s] = sensor
|
432
|
-
|
433
|
-
# add floor area to the daylighting area tally
|
434
|
-
sensor_area += space.floorArea
|
435
|
-
|
436
|
-
# add to sensor count for reporting
|
437
|
-
sensor_count += 1
|
438
|
-
end
|
439
|
-
|
440
|
-
if (sensor_count == 0) && (costs_requested == false)
|
441
|
-
runner.registerAsNotApplicable("No spaces that currently don't have sensor required a new sensor, and no lifecycle costs objects were requested.")
|
442
|
-
return true
|
443
|
-
end
|
444
|
-
|
445
|
-
# loop through thermal Zones for spaces with daylighting controls added
|
446
|
-
affected_zones.each do |zone|
|
447
|
-
zone_spaces = zone.spaces
|
448
|
-
zone_spaces_with_new_sensors = []
|
449
|
-
zone_spaces.each do |zone_space|
|
450
|
-
if !zone_space.daylightingControls.empty? && (zone_space.spaceType.get == space_type)
|
451
|
-
zone_spaces_with_new_sensors << zone_space
|
452
|
-
end
|
453
|
-
end
|
454
|
-
|
455
|
-
if !zone_spaces_with_new_sensors.empty?
|
456
|
-
# need to identify the two largest spaces
|
457
|
-
primary_area = 0
|
458
|
-
secondary_area = 0
|
459
|
-
primary_space = nil
|
460
|
-
secondary_space = nil
|
461
|
-
three_or_more_sensors = false
|
462
|
-
|
463
|
-
# dfg temp - need to add another if statement so only get spaces with sensors
|
464
|
-
zone_spaces_with_new_sensors.each do |zone_space|
|
465
|
-
zone_space_area = zone_space.floorArea
|
466
|
-
if zone_space_area > primary_area
|
467
|
-
primary_area = zone_space_area
|
468
|
-
primary_space = zone_space
|
469
|
-
elsif zone_space_area > secondary_area
|
470
|
-
secondary_area = zone_space_area
|
471
|
-
secondary_space = zone_space
|
472
|
-
else
|
473
|
-
# setup flag to warn user that more than 2 sensors can't be added to a space
|
474
|
-
three_or_more_sensors = true
|
475
|
-
end
|
476
|
-
end
|
477
|
-
|
478
|
-
if primary_space
|
479
|
-
# setup primary sensor
|
480
|
-
sensor_primary = new_sensor_objects[primary_space.name.to_s]
|
481
|
-
zone.setPrimaryDaylightingControl(sensor_primary)
|
482
|
-
zone.setFractionofZoneControlledbyPrimaryDaylightingControl(fraction_zone_controlled * primary_area / (primary_area + secondary_area))
|
483
|
-
end
|
484
|
-
|
485
|
-
if secondary_space
|
486
|
-
# setup secondary sensor
|
487
|
-
sensor_secondary = new_sensor_objects[secondary_space.name.to_s]
|
488
|
-
zone.setSecondaryDaylightingControl(sensor_secondary)
|
489
|
-
zone.setFractionofZoneControlledbySecondaryDaylightingControl(fraction_zone_controlled * secondary_area / (primary_area + secondary_area))
|
490
|
-
end
|
491
|
-
|
492
|
-
# warn that additional sensors were not used
|
493
|
-
if three_or_more_sensors == true
|
494
|
-
runner.registerWarning("Thermal zone '#{zone.name}' had more than two spaces with sensors. Only two sensors were associated with the thermal zone.")
|
495
|
-
end
|
496
|
-
|
497
|
-
end
|
498
|
-
end
|
499
|
-
|
500
|
-
# setup OpenStudio units that we will need
|
501
|
-
unit_area_ip = OpenStudio.createUnit('ft^2').get
|
502
|
-
unit_area_si = OpenStudio.createUnit('m^2').get
|
503
|
-
|
504
|
-
# define starting units
|
505
|
-
area_si = OpenStudio::Quantity.new(sensor_area, unit_area_si)
|
506
|
-
|
507
|
-
# unit conversion from IP units to SI units
|
508
|
-
area_ip = OpenStudio.convert(area_si, unit_area_ip).get
|
509
|
-
|
510
|
-
# get final costs for spaces
|
511
|
-
yr0_capital_totalCosts = get_total_costs_for_objects(spaces_using_space_type)
|
512
|
-
|
513
|
-
# reporting final condition of model
|
514
|
-
runner.registerFinalCondition("Added daylighting controls to #{sensor_count} spaces, covering #{area_ip}. Initial year costs associated with the daylighting controls is $#{neat_numbers(yr0_capital_totalCosts, 0)}.")
|
515
|
-
|
516
|
-
return true
|
517
|
-
end
|
518
|
-
end
|
519
|
-
|
520
|
-
# this allows the measure to be used by the application
|
521
|
-
AddDaylightSensors.new.registerWithApplication
|