openstudio-common-measures 0.6.1 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/test_with_openstudio.yml +62 -0
- data/CHANGELOG.md +29 -1
- data/Gemfile +4 -0
- data/LICENSE.md +7 -21
- data/README.md +3 -1
- data/Rakefile +4 -27
- data/doc_templates/LICENSE.md +7 -21
- data/doc_templates/copyright_erb.txt +2 -32
- data/doc_templates/copyright_js.txt +2 -2
- data/doc_templates/copyright_ruby.txt +3 -33
- data/lib/measures/AddCostPerAreaToConstruction/LICENSE.md +7 -21
- data/lib/measures/AddCostPerAreaToConstruction/measure.rb +2 -32
- data/lib/measures/AddCostPerAreaToConstruction/measure.xml +5 -5
- data/lib/measures/AddCostPerFloorAreaToBuilding/LICENSE.md +7 -21
- data/lib/measures/AddCostPerFloorAreaToBuilding/measure.rb +2 -32
- data/lib/measures/AddCostPerFloorAreaToBuilding/measure.xml +5 -5
- data/lib/measures/AddCostPerFloorAreaToElectricEquipment/LICENSE.md +7 -21
- data/lib/measures/AddCostPerFloorAreaToElectricEquipment/measure.rb +2 -32
- data/lib/measures/AddCostPerFloorAreaToElectricEquipment/measure.xml +5 -5
- data/lib/measures/AddCostPerFloorAreaToLights/LICENSE.md +7 -21
- data/lib/measures/AddCostPerFloorAreaToLights/measure.rb +2 -32
- data/lib/measures/AddCostPerFloorAreaToLights/measure.xml +5 -5
- data/lib/measures/AddCostPerFloorAreaUnusedToLights/LICENSE.md +7 -21
- data/lib/measures/AddCostPerFloorAreaUnusedToLights/measure.rb +2 -32
- data/lib/measures/AddCostPerFloorAreaUnusedToLights/measure.xml +5 -5
- data/lib/measures/AddCostToSupplySideHVACComponentByAirLoop/LICENSE.md +7 -21
- data/lib/measures/AddCostToSupplySideHVACComponentByAirLoop/measure.rb +2 -32
- data/lib/measures/AddCostToSupplySideHVACComponentByAirLoop/measure.xml +12 -12
- data/lib/measures/AddCostperAreatoUnusedConstruction/LICENSE.md +7 -21
- data/lib/measures/AddCostperAreatoUnusedConstruction/measure.rb +2 -32
- data/lib/measures/AddCostperAreatoUnusedConstruction/measure.xml +5 -5
- data/lib/measures/AddExteriorLights/LICENSE.md +7 -21
- data/lib/measures/AddExteriorLights/measure.rb +2 -32
- data/lib/measures/AddExteriorLights/measure.xml +5 -5
- data/lib/measures/AddMeter/LICENSE.md +7 -21
- data/lib/measures/AddMeter/measure.rb +2 -32
- data/lib/measures/AddMeter/measure.xml +5 -5
- data/lib/measures/AddOutputDiagnostics/LICENSE.md +7 -21
- data/lib/measures/AddOutputDiagnostics/measure.rb +2 -32
- data/lib/measures/AddOutputDiagnostics/measure.xml +5 -5
- data/lib/measures/AddOutputVariable/LICENSE.md +7 -21
- data/lib/measures/AddOutputVariable/measure.rb +2 -32
- data/lib/measures/AddOutputVariable/measure.xml +5 -5
- data/lib/measures/AddSimplePvToShadingSurfacesByType/LICENSE.md +7 -21
- data/lib/measures/AddSimplePvToShadingSurfacesByType/measure.rb +2 -32
- data/lib/measures/AddSimplePvToShadingSurfacesByType/measure.xml +5 -5
- data/lib/measures/AddThermalComfortModelTypes/LICENSE.md +13 -0
- data/lib/measures/AddThermalComfortModelTypes/README.md +115 -0
- data/lib/measures/AddThermalComfortModelTypes/README.md.erb +45 -0
- data/lib/measures/AddThermalComfortModelTypes/measure.rb +165 -0
- data/lib/measures/AddThermalComfortModelTypes/measure.xml +244 -0
- data/lib/measures/AdjustSystemEfficiencies/LICENSE.md +7 -21
- data/lib/measures/AdjustSystemEfficiencies/measure.rb +7 -35
- data/lib/measures/AdjustSystemEfficiencies/measure.xml +4 -4
- data/lib/measures/AdjustThermostatSetpointsByDegrees/LICENSE.md +7 -21
- data/lib/measures/AdjustThermostatSetpointsByDegrees/measure.rb +2 -32
- data/lib/measures/AdjustThermostatSetpointsByDegrees/measure.xml +5 -5
- data/lib/measures/ChangeBuildingLocation/LICENSE.md +7 -21
- data/lib/measures/ChangeBuildingLocation/measure.rb +2 -32
- data/lib/measures/ChangeBuildingLocation/measure.xml +7 -7
- data/lib/measures/ChangeBuildingLocation/resources/epw.rb +2 -32
- data/lib/measures/ChangeBuildingLocation/resources/stat_file.rb +2 -32
- data/lib/measures/EnableIdealAirLoadsForAllZones/LICENSE.md +7 -21
- data/lib/measures/EnableIdealAirLoadsForAllZones/measure.rb +2 -32
- data/lib/measures/EnableIdealAirLoadsForAllZones/measure.xml +5 -5
- data/lib/measures/ExportScheduleCSV/LICENSE.md +7 -21
- data/lib/measures/ExportScheduleCSV/measure.rb +2 -32
- data/lib/measures/ExportScheduleCSV/measure.xml +5 -5
- data/lib/measures/ImportEnvelopeAndInternalLoadsFromIdf/LICENSE.md +7 -21
- data/lib/measures/ImportEnvelopeAndInternalLoadsFromIdf/measure.rb +2 -32
- data/lib/measures/ImportEnvelopeAndInternalLoadsFromIdf/measure.xml +5 -5
- data/lib/measures/MeterFlodPlot/LICENSE.md +7 -21
- data/lib/measures/MeterFlodPlot/measure.rb +2 -32
- data/lib/measures/MeterFlodPlot/measure.xml +5 -5
- data/lib/measures/ModifyEnergyPlusCoilCoolingDXSingleSpeedObjects/LICENSE.md +7 -21
- data/lib/measures/ModifyEnergyPlusCoilCoolingDXSingleSpeedObjects/measure.rb +2 -32
- data/lib/measures/ModifyEnergyPlusCoilCoolingDXSingleSpeedObjects/measure.xml +5 -5
- data/lib/measures/ModifyEnergyPlusFanVariableVolumeObjects/LICENSE.md +7 -21
- data/lib/measures/ModifyEnergyPlusFanVariableVolumeObjects/measure.rb +2 -32
- data/lib/measures/ModifyEnergyPlusFanVariableVolumeObjects/measure.xml +5 -5
- data/lib/measures/PredictedMeanVote/LICENSE.md +7 -21
- data/lib/measures/PredictedMeanVote/measure.rb +2 -32
- data/lib/measures/PredictedMeanVote/measure.xml +5 -5
- data/lib/measures/RemoveInternalLoadsDirectlyAssignedToSpaces/LICENSE.md +7 -21
- data/lib/measures/RemoveInternalLoadsDirectlyAssignedToSpaces/measure.rb +2 -32
- data/lib/measures/RemoveInternalLoadsDirectlyAssignedToSpaces/measure.xml +5 -5
- data/lib/measures/RemoveUnusedDefaultProfiles/LICENSE.md +7 -21
- data/lib/measures/RemoveUnusedDefaultProfiles/measure.rb +2 -32
- data/lib/measures/RemoveUnusedDefaultProfiles/measure.xml +5 -5
- data/lib/measures/ReplaceExteriorWindowConstruction/LICENSE.md +7 -21
- data/lib/measures/ReplaceExteriorWindowConstruction/measure.rb +2 -32
- data/lib/measures/ReplaceExteriorWindowConstruction/measure.xml +23 -8
- data/lib/measures/ReplaceModel/LICENSE.md +13 -0
- data/lib/measures/ReplaceModel/README.md +34 -0
- data/lib/measures/ReplaceModel/README.md.erb +42 -0
- data/lib/measures/ReplaceModel/measure.rb +113 -0
- data/lib/measures/ReplaceModel/measure.xml +71 -0
- data/lib/measures/ReplaceThermostatSchedules/LICENSE.md +7 -21
- data/lib/measures/ReplaceThermostatSchedules/measure.rb +2 -32
- data/lib/measures/ReplaceThermostatSchedules/measure.xml +7 -7
- data/lib/measures/ReportModelChanges/LICENSE.md +7 -21
- data/lib/measures/ReportModelChanges/measure.rb +2 -32
- data/lib/measures/ReportModelChanges/measure.xml +5 -5
- data/lib/measures/RunPeriod/LICENSE.md +7 -21
- data/lib/measures/RunPeriod/measure.rb +2 -32
- data/lib/measures/RunPeriod/measure.xml +4 -4
- data/lib/measures/RunPeriodMultiple/LICENSE.md +7 -21
- data/lib/measures/RunPeriodMultiple/measure.rb +2 -32
- data/lib/measures/RunPeriodMultiple/measure.xml +4 -4
- data/lib/measures/ServerDirectoryCleanup/LICENSE.md +7 -21
- data/lib/measures/ServerDirectoryCleanup/measure.rb +2 -32
- data/lib/measures/ServerDirectoryCleanup/measure.xml +5 -5
- data/lib/measures/SetCOPforSingleSpeedDXCoolingUnits/LICENSE.md +7 -21
- data/lib/measures/SetCOPforSingleSpeedDXCoolingUnits/measure.rb +4 -34
- data/lib/measures/SetCOPforSingleSpeedDXCoolingUnits/measure.xml +7 -7
- data/lib/measures/SetCOPforTwoSpeedDXCoolingUnits/LICENSE.md +7 -21
- data/lib/measures/SetCOPforTwoSpeedDXCoolingUnits/measure.rb +5 -34
- data/lib/measures/SetCOPforTwoSpeedDXCoolingUnits/measure.xml +7 -7
- data/lib/measures/SetEnergyPlusInfiltrationFlowRatePerFloorArea/LICENSE.md +7 -21
- data/lib/measures/SetEnergyPlusInfiltrationFlowRatePerFloorArea/measure.rb +2 -32
- data/lib/measures/SetEnergyPlusInfiltrationFlowRatePerFloorArea/measure.xml +5 -5
- data/lib/measures/SetEnergyPlusLightObjectsLPD/LICENSE.md +7 -21
- data/lib/measures/SetEnergyPlusLightObjectsLPD/measure.rb +2 -32
- data/lib/measures/SetEnergyPlusLightObjectsLPD/measure.xml +5 -5
- data/lib/measures/SetEnergyPlusMinimumOutdoorAirFlowRate/LICENSE.md +7 -21
- data/lib/measures/SetEnergyPlusMinimumOutdoorAirFlowRate/measure.rb +2 -32
- data/lib/measures/SetEnergyPlusMinimumOutdoorAirFlowRate/measure.xml +5 -5
- data/lib/measures/SetGasBurnerEfficiency/LICENSE.md +7 -21
- data/lib/measures/SetGasBurnerEfficiency/measure.rb +2 -32
- data/lib/measures/SetGasBurnerEfficiency/measure.xml +7 -7
- data/lib/measures/SetLifecycleCostParameters/LICENSE.md +7 -21
- data/lib/measures/SetLifecycleCostParameters/measure.rb +2 -32
- data/lib/measures/SetLifecycleCostParameters/measure.xml +5 -5
- data/lib/measures/SetLightingLoadsByLPD/LICENSE.md +7 -21
- data/lib/measures/SetLightingLoadsByLPD/measure.rb +2 -32
- data/lib/measures/SetLightingLoadsByLPD/measure.xml +7 -7
- data/lib/measures/SetSpaceInfiltrationByExteriorSurfaceArea/LICENSE.md +7 -21
- data/lib/measures/SetSpaceInfiltrationByExteriorSurfaceArea/measure.rb +2 -32
- data/lib/measures/SetSpaceInfiltrationByExteriorSurfaceArea/measure.xml +77 -17
- data/lib/measures/SetThermostatSchedules/LICENSE.md +7 -21
- data/lib/measures/SetThermostatSchedules/measure.rb +2 -32
- data/lib/measures/SetThermostatSchedules/measure.xml +7 -7
- data/lib/measures/ShiftScheduleProfileTime/LICENSE.md +7 -21
- data/lib/measures/ShiftScheduleProfileTime/measure.rb +2 -32
- data/lib/measures/ShiftScheduleProfileTime/measure.xml +7 -7
- data/lib/measures/SwapLightsDefinition/LICENSE.md +7 -21
- data/lib/measures/SwapLightsDefinition/measure.rb +2 -32
- data/lib/measures/SwapLightsDefinition/measure.xml +5 -5
- data/lib/measures/UnmetLoadHoursTroubleshooting/LICENSE.md +7 -21
- data/lib/measures/UnmetLoadHoursTroubleshooting/measure.rb +2 -32
- data/lib/measures/UnmetLoadHoursTroubleshooting/measure.xml +5 -5
- data/lib/measures/VentilationQAQC/LICENSE.md +7 -21
- data/lib/measures/VentilationQAQC/measure.rb +2 -32
- data/lib/measures/VentilationQAQC/measure.xml +5 -5
- data/lib/measures/XcelEDAReportingandQAQC/LICENSE.md +13 -0
- data/lib/measures/XcelEDAReportingandQAQC/README.md +26 -0
- data/lib/measures/XcelEDAReportingandQAQC/README.md.erb +42 -0
- data/lib/measures/XcelEDAReportingandQAQC/measure.rb +201 -0
- data/lib/measures/XcelEDAReportingandQAQC/measure.xml +116 -0
- data/lib/measures/{generic_qaqc → XcelEDAReportingandQAQC}/resources/CreateResults.rb +51 -50
- data/lib/measures/XcelEDAReportingandQAQC/resources/EUI.rb +53 -0
- data/lib/measures/XcelEDAReportingandQAQC/resources/EndUseBreakdown.rb +88 -0
- data/lib/measures/XcelEDAReportingandQAQC/resources/FuelSwap.rb +275 -0
- data/lib/measures/XcelEDAReportingandQAQC/resources/PeakHeatCoolMonth.rb +191 -0
- data/lib/measures/XcelEDAReportingandQAQC/resources/UnmetHrs.rb +45 -0
- data/lib/measures/XcelEDATariffSelectionandModelSetup/LICENSE.md +13 -0
- data/lib/measures/XcelEDATariffSelectionandModelSetup/README.md +40 -0
- data/lib/measures/XcelEDATariffSelectionandModelSetup/README.md.erb +42 -0
- data/lib/measures/XcelEDATariffSelectionandModelSetup/measure.rb +367 -0
- data/lib/measures/XcelEDATariffSelectionandModelSetup/measure.xml +309 -0
- data/lib/measures/XcelEDATariffSelectionandModelSetup/resources/Commercial.idf +95 -0
- data/lib/measures/XcelEDATariffSelectionandModelSetup/resources/Interruptible Industrial G.idf +32 -0
- data/lib/measures/XcelEDATariffSelectionandModelSetup/resources/Large CG.idf +32 -0
- data/lib/measures/XcelEDATariffSelectionandModelSetup/resources/Non-Xcel Commercial.idf +95 -0
- data/lib/measures/XcelEDATariffSelectionandModelSetup/resources/Non-Xcel Gas Firm.idf +32 -0
- data/lib/measures/XcelEDATariffSelectionandModelSetup/resources/Non-Xcel Gas Interruptible.idf +32 -0
- data/lib/measures/XcelEDATariffSelectionandModelSetup/resources/Non-Xcel Primary General.idf +95 -0
- data/lib/measures/XcelEDATariffSelectionandModelSetup/resources/Non-Xcel Secondary General Low Load Factor.idf +95 -0
- data/lib/measures/XcelEDATariffSelectionandModelSetup/resources/Non-Xcel Secondary General.idf +95 -0
- data/lib/measures/XcelEDATariffSelectionandModelSetup/resources/Non-Xcel Transmission General.idf +95 -0
- data/lib/measures/XcelEDATariffSelectionandModelSetup/resources/Primary General.idf +95 -0
- data/lib/measures/XcelEDATariffSelectionandModelSetup/resources/Residential Gas.idf +32 -0
- data/lib/measures/XcelEDATariffSelectionandModelSetup/resources/Residential General.idf +95 -0
- data/lib/measures/XcelEDATariffSelectionandModelSetup/resources/Secondary General Low Load Factor.idf +95 -0
- data/lib/measures/XcelEDATariffSelectionandModelSetup/resources/Secondary General.idf +95 -0
- data/lib/measures/XcelEDATariffSelectionandModelSetup/resources/Secondary Photovoltaic Time-of-Use.idf +95 -0
- data/lib/measures/XcelEDATariffSelectionandModelSetup/resources/Small CG.idf +32 -0
- data/lib/measures/XcelEDATariffSelectionandModelSetup/resources/Transmission General.idf +95 -0
- data/lib/measures/ZoneReport/LICENSE.md +7 -21
- data/lib/measures/ZoneReport/measure.rb +2 -32
- data/lib/measures/ZoneReport/measure.xml +5 -5
- data/lib/measures/add_ems_emissions_reporting/LICENSE.md +7 -21
- data/lib/measures/add_ems_emissions_reporting/measure.rb +2 -32
- data/lib/measures/add_ems_emissions_reporting/measure.xml +10 -10
- 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 +7 -21
- data/lib/measures/add_ems_to_control_ev_charging/measure.rb +2 -32
- data/lib/measures/add_ems_to_control_ev_charging/measure.xml +5 -8
- data/lib/measures/add_ev_load/LICENSE.MD.txt +1 -1
- data/lib/measures/add_ev_load/LICENSE.md +7 -21
- data/lib/measures/add_ev_load/measure.rb +2 -32
- data/lib/measures/add_ev_load/measure.xml +10 -10
- data/lib/measures/add_rooftop_pv/LICENSE.md +7 -21
- data/lib/measures/add_rooftop_pv/measure.rb +2 -32
- data/lib/measures/add_rooftop_pv/measure.xml +5 -5
- data/lib/measures/add_zone_mixing_object/LICENSE.md +7 -21
- data/lib/measures/add_zone_mixing_object/measure.rb +2 -32
- data/lib/measures/add_zone_mixing_object/measure.xml +5 -5
- data/lib/measures/add_zone_ventilation_design_flow_rate_object/LICENSE.md +7 -21
- data/lib/measures/add_zone_ventilation_design_flow_rate_object/measure.rb +6 -33
- data/lib/measures/add_zone_ventilation_design_flow_rate_object/measure.xml +5 -5
- data/lib/measures/air_wall_zone_mixing/LICENSE.md +7 -21
- data/lib/measures/air_wall_zone_mixing/measure.rb +2 -32
- data/lib/measures/air_wall_zone_mixing/measure.xml +5 -5
- data/lib/measures/create_csv_output/LICENSE.md +13 -0
- data/lib/measures/create_csv_output/README.md +36 -0
- data/lib/measures/create_csv_output/README.md.erb +45 -0
- data/lib/measures/create_csv_output/measure.rb +235 -0
- data/lib/measures/create_csv_output/measure.xml +124 -0
- data/lib/measures/create_csv_output/resources/report.html.in +13 -0
- data/lib/measures/envelope_and_internal_load_breakdown/LICENSE.md +7 -21
- data/lib/measures/envelope_and_internal_load_breakdown/README.md +31 -0
- data/lib/measures/envelope_and_internal_load_breakdown/README.md.erb +31 -1
- data/lib/measures/envelope_and_internal_load_breakdown/docs/htg_gain_detailed_a.png +0 -0
- data/lib/measures/envelope_and_internal_load_breakdown/docs/htg_gain_detailed_b.png +0 -0
- data/lib/measures/envelope_and_internal_load_breakdown/docs/htg_gain_summary.png +0 -0
- data/lib/measures/envelope_and_internal_load_breakdown/docs/htg_loss_detailed.png +0 -0
- data/lib/measures/envelope_and_internal_load_breakdown/docs/htg_loss_summary.png +0 -0
- data/lib/measures/envelope_and_internal_load_breakdown/measure.rb +2 -32
- data/lib/measures/envelope_and_internal_load_breakdown/measure.xml +39 -9
- data/lib/measures/envelope_and_internal_load_breakdown/resources/os_lib_reporting_envelope_and_internal_loads_breakdown.rb +2 -32
- data/lib/measures/envelope_and_internal_load_breakdown/resources/report.html.erb +10 -32
- data/lib/measures/example_report/LICENSE.md +7 -21
- data/lib/measures/example_report/measure.rb +2 -32
- data/lib/measures/example_report/measure.xml +7 -7
- data/lib/measures/example_report/resources/os_lib_reporting_example.rb +2 -32
- data/lib/measures/example_report/resources/report.html.erb +10 -32
- data/lib/measures/gem_env_report/LICENSE.md +7 -21
- data/lib/measures/gem_env_report/measure.rb +2 -32
- data/lib/measures/gem_env_report/measure.xml +9 -9
- data/lib/measures/gem_env_report/resources/gem_env_info.rb +2 -32
- data/lib/measures/gem_env_report/resources/openstudio_info.rb +2 -32
- data/lib/measures/gem_env_report/resources/run_gem_env_info.rb +2 -32
- data/lib/measures/gem_env_report/resources/run_openstudio_info.rb +2 -32
- data/lib/measures/generic_qaqc/LICENSE.md +7 -21
- data/lib/measures/generic_qaqc/measure.rb +2 -32
- data/lib/measures/generic_qaqc/measure.xml +110 -108
- data/lib/measures/generic_qaqc/resources/check_air_sys_temps.rb +2 -32
- data/lib/measures/generic_qaqc/resources/check_calibration.rb +2 -32
- data/lib/measures/generic_qaqc/resources/check_cond_zns.rb +2 -32
- data/lib/measures/generic_qaqc/resources/check_domestic_hot_water.rb +2 -32
- data/lib/measures/generic_qaqc/resources/check_envelope_conductance.rb +18 -44
- data/lib/measures/generic_qaqc/resources/check_eui_by_end_use.rb +7 -33
- data/lib/measures/generic_qaqc/resources/check_eui_reasonableness.rb +7 -33
- data/lib/measures/generic_qaqc/resources/check_fan_pwr.rb +2 -32
- data/lib/measures/generic_qaqc/resources/check_internal_loads.rb +11 -37
- data/lib/measures/generic_qaqc/resources/check_mech_sys_capacity.rb +2 -32
- data/lib/measures/generic_qaqc/resources/check_mech_sys_efficiency.rb +6 -36
- data/lib/measures/generic_qaqc/resources/check_mech_sys_part_load_eff.rb +2 -32
- data/lib/measures/generic_qaqc/resources/check_mech_sys_type.rb +8 -34
- data/lib/measures/generic_qaqc/resources/check_part_loads.rb +2 -32
- data/lib/measures/generic_qaqc/resources/check_placeholder.rb +2 -32
- data/lib/measures/generic_qaqc/resources/check_plant_cap.rb +2 -32
- data/lib/measures/generic_qaqc/resources/check_plant_temps.rb +2 -32
- data/lib/measures/generic_qaqc/resources/check_plenum_loads.rb +2 -32
- data/lib/measures/generic_qaqc/resources/check_pump_pwr.rb +2 -32
- data/lib/measures/generic_qaqc/resources/check_sch_coord.rb +2 -32
- data/lib/measures/generic_qaqc/resources/check_schedules.rb +15 -36
- data/lib/measures/generic_qaqc/resources/check_simultaneous_heating_and_cooling.rb +2 -32
- data/lib/measures/generic_qaqc/resources/check_supply_air_and_thermostat_temp_difference.rb +2 -32
- data/lib/measures/generic_qaqc/resources/check_weather_files.rb +2 -32
- data/lib/measures/generic_qaqc/resources/os_lib_reporting_qaqc.rb +2 -32
- data/lib/measures/generic_qaqc/resources/report.html.erb +10 -32
- data/lib/measures/get_site_from_building_component_library/LICENSE.md +7 -21
- data/lib/measures/get_site_from_building_component_library/measure.rb +2 -32
- data/lib/measures/get_site_from_building_component_library/measure.xml +6 -6
- data/lib/measures/hvac_psychrometric_chart/LICENSE.md +7 -21
- data/lib/measures/hvac_psychrometric_chart/measure.rb +2 -32
- data/lib/measures/hvac_psychrometric_chart/measure.xml +6 -6
- data/lib/measures/hvac_psychrometric_chart/resources/report.html.erb +10 -32
- data/lib/measures/inject_idf_objects/LICENSE.md +7 -21
- data/lib/measures/inject_idf_objects/measure.rb +2 -32
- data/lib/measures/inject_idf_objects/measure.xml +5 -5
- data/lib/measures/openstudio_results/LICENSE.md +7 -21
- data/lib/measures/openstudio_results/measure.rb +2 -32
- data/lib/measures/openstudio_results/measure.xml +165 -165
- data/lib/measures/openstudio_results/resources/Siz.AirConditionerVariableRefrigerantFlow.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.AirLoopHVAC.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.AirLoopHVACUnitaryHeatCoolVAVChangeoverBypass.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.AirLoopHVACUnitaryHeatPumpAirToAir.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.AirLoopHVACUnitarySystem.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.AirTerminalDualDuctVAV.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.AirTerminalSingleDuctConstantVolumeCooledBeam.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.AirTerminalSingleDuctConstantVolumeFourPipeInduction.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.AirTerminalSingleDuctConstantVolumeReheat.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.AirTerminalSingleDuctParallelPIUReheat.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.AirTerminalSingleDuctSeriesPIUReheat.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.AirTerminalSingleDuctUncontrolled.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.AirTerminalSingleDuctVAVHeatAndCoolNoReheat.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.AirTerminalSingleDuctVAVHeatAndCoolReheat.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.AirTerminalSingleDuctVAVNoReheat.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.AirTerminalSingleDuctVAVReheat.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.BoilerHotWater.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.BoilerSteam.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.ChillerAbsorption.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.ChillerAbsorptionIndirect.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.ChillerElectricEIR.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.ChillerHeaterPerformanceElectricEIR.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.CoilCoolingDXMultiSpeed.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.CoilCoolingDXMultiSpeedStageData.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.CoilCoolingDXSingleSpeed.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.CoilCoolingDXTwoSpeed.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.CoilCoolingDXTwoStageWithHumidityControlMode.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.CoilCoolingDXVariableRefrigerantFlow.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.CoilCoolingDXVariableSpeed.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.CoilCoolingDXVariableSpeedSpeedData.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.CoilCoolingLowTempRadiantVarFlow.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.CoilCoolingWater.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.CoilCoolingWaterToAirHeatPumpEquationFit.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFit.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.CoilHeatingDXMultiSpeed.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.CoilHeatingDXMultiSpeedStageData.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.CoilHeatingDXSingleSpeed.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.CoilHeatingDXVariableRefrigerantFlow.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.CoilHeatingDXVariableSpeed.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.CoilHeatingDXVariableSpeedSpeedData.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.CoilHeatingDesuperheater.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.CoilHeatingElectric.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.CoilHeatingGas.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.CoilHeatingGasMultiStage.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.CoilHeatingGasMultiStageStageData.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.CoilHeatingLowTempRadiantVarFlow.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.CoilHeatingWater.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.CoilHeatingWaterBaseboard.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.CoilHeatingWaterBaseboardRadiant.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.CoilHeatingWaterToAirHeatPumpEquationFit.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFit.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.CoilPerformanceDXCooling.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.CoilSystemCoolingDXHeatExchangerAssisted.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.CoilSystemCoolingWaterHeatExchangerAssisted.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.CoilWaterHeatingAirToWaterHeatPump.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.CoilWaterHeatingAirToWaterHeatPumpWrapped.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.CoilWaterHeatingDesuperheater.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.ControllerOutdoorAir.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.CoolingTowerSingleSpeed.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.CoolingTowerTwoSpeed.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.CoolingTowerVariableSpeed.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.DistrictCooling.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.DistrictHeating.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.ElectricLoadCenterInverterLookUpTable.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.ElectricLoadCenterInverterSimple.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.ElectricLoadCenterStorageConverter.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.ElectricLoadCenterStorageSimple.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.EvaporativeCoolerDirectResearchSpecial.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.EvaporativeCoolerIndirectResearchSpecial.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.EvaporativeFluidCoolerSingleSpeed.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.EvaporativeFluidCoolerTwoSpeed.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.FanConstantVolume.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.FanOnOff.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.FanVariableVolume.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.FanZoneExhaust.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.FluidCoolerSingleSpeed.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.FluidCoolerTwoSpeed.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.GeneratorFuelCellElectricalStorage.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.GeneratorFuelCellInverter.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.GeneratorFuelCellPowerModule.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.GeneratorMicroTurbine.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.GeneratorMicroTurbineHeatRecovery.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.HVACComponent.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.HeaderedPumpsConstantSpeed.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.HeaderedPumpsVariableSpeed.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.HeatExchangerAirToAirSensibleAndLatent.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.HeatExchangerFluidToFluid.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.HeatPumpWaterToWaterEquationFitCooling.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.HeatPumpWaterToWaterEquationFitHeating.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.HumidifierSteamElectric.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.Model.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.ModelObject.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.PhotovoltaicPerformanceSimple.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.PlantComponentTemperatureSource.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.PlantLoop.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.PumpConstantSpeed.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.PumpVariableSpeed.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.RefrigerationSecondarySystem.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.RefrigerationSystem.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.RefrigerationTranscriticalSystem.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.SizingSystem.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.SolarCollectorFlatPlatePhotovoltaicThermal.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.SolarCollectorPerformancePhotovoltaicThermalSimple.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.ThermalStorageChilledWaterStratified.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.WaterHeaterHeatPump.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.WaterHeaterHeatPumpWrappedCondenser.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.WaterHeaterMixed.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.WaterHeaterStratified.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.ZoneHVACBaseboardConvectiveElectric.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.ZoneHVACBaseboardConvectiveWater.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.ZoneHVACBaseboardRadiantConvectiveElectric.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.ZoneHVACBaseboardRadiantConvectiveWater.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.ZoneHVACEnergyRecoveryVentilator.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.ZoneHVACFourPipeFanCoil.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.ZoneHVACHighTemperatureRadiant.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.ZoneHVACIdealLoadsAirSystem.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.ZoneHVACLowTempRadiantConstFlow.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.ZoneHVACLowTempRadiantVarFlow.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.ZoneHVACPackagedTerminalAirConditioner.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.ZoneHVACPackagedTerminalHeatPump.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.ZoneHVACTerminalUnitVariableRefrigerantFlow.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.ZoneHVACUnitHeater.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.ZoneHVACUnitVentilator.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.ZoneHVACWaterToAirHeatPump.rb +2 -32
- data/lib/measures/openstudio_results/resources/Siz.ZoneVentilationDesignFlowRate.rb +2 -32
- data/lib/measures/openstudio_results/resources/os_lib_reporting.rb +2 -32
- data/lib/measures/openstudio_results/resources/report.html.erb +10 -32
- data/lib/measures/remove_orphan_objects_and_unused_resources/LICENSE.md +7 -21
- data/lib/measures/remove_orphan_objects_and_unused_resources/measure.rb +12 -50
- data/lib/measures/remove_orphan_objects_and_unused_resources/measure.xml +10 -10
- data/lib/measures/set_electric_equipment_loads_by_epd/LICENSE.md +7 -21
- data/lib/measures/set_electric_equipment_loads_by_epd/measure.rb +2 -32
- data/lib/measures/set_electric_equipment_loads_by_epd/measure.xml +7 -7
- data/lib/measures/set_exterior_walls_and_floors_to_adiabatic/LICENSE.md +7 -21
- data/lib/measures/set_exterior_walls_and_floors_to_adiabatic/measure.rb +2 -32
- data/lib/measures/set_exterior_walls_and_floors_to_adiabatic/measure.xml +10 -10
- data/lib/measures/set_run_period/LICENSE.md +7 -21
- data/lib/measures/set_run_period/measure.rb +2 -32
- data/lib/measures/set_run_period/measure.xml +5 -5
- data/lib/measures/set_space_infiltration_per_exterior_area/LICENSE.md +7 -21
- data/lib/measures/set_space_infiltration_per_exterior_area/measure.rb +2 -32
- data/lib/measures/set_space_infiltration_per_exterior_area/measure.xml +5 -5
- data/lib/measures/shadow_calculation/LICENSE.md +13 -0
- data/lib/measures/shadow_calculation/README.md +80 -0
- data/lib/measures/shadow_calculation/README.md.erb +42 -0
- data/lib/measures/shadow_calculation/measure.rb +188 -0
- data/lib/measures/shadow_calculation/measure.xml +180 -0
- data/lib/measures/tariff_selection_block/LICENSE.md +7 -21
- data/lib/measures/tariff_selection_block/measure.rb +2 -32
- data/lib/measures/tariff_selection_block/measure.xml +5 -5
- data/lib/measures/tariff_selection_flat/LICENSE.md +7 -21
- data/lib/measures/tariff_selection_flat/measure.rb +2 -32
- data/lib/measures/tariff_selection_flat/measure.xml +5 -5
- data/lib/measures/tariff_selection_generic/LICENSE.md +7 -21
- data/lib/measures/tariff_selection_generic/measure.rb +2 -32
- data/lib/measures/tariff_selection_generic/measure.xml +23 -23
- data/lib/measures/tariff_selection_time_and_date_dependant/LICENSE.md +7 -21
- data/lib/measures/tariff_selection_time_and_date_dependant/measure.rb +2 -32
- data/lib/measures/tariff_selection_time_and_date_dependant/measure.xml +5 -5
- data/lib/measures/view_data/LICENSE.md +7 -21
- data/lib/measures/view_data/measure.rb +2 -32
- data/lib/measures/view_data/measure.xml +7 -7
- data/lib/measures/view_data/resources/report.html.in +1 -1
- data/lib/measures/view_data/resources/va3c.rb +2 -32
- data/lib/measures/view_model/LICENSE.md +7 -21
- data/lib/measures/view_model/measure.rb +2 -32
- data/lib/measures/view_model/measure.xml +24 -24
- data/lib/measures/view_model/resources/report.html.in +1 -1
- data/lib/measures/view_model/resources/va3c.rb +2 -32
- data/lib/openstudio/common_measures/extension.rb +2 -32
- data/lib/openstudio/common_measures/version.rb +3 -33
- data/lib/openstudio/common_measures.rb +2 -32
- data/lib/openstudio-common-measures.rb +2 -32
- data/openstudio-common-measures.gemspec +2 -2
- metadata +77 -13
- data/lib/measures/.rubocop.yml +0 -7
- /data/lib/measures/{.gitkeep → create_csv_output/docs/.gitkeep} +0 -0
@@ -0,0 +1,235 @@
|
|
1
|
+
# *******************************************************************************
|
2
|
+
# OpenStudio(R), Copyright (c) Alliance for Sustainable Energy, LLC.
|
3
|
+
# See also https://openstudio.net/license
|
4
|
+
# *******************************************************************************
|
5
|
+
|
6
|
+
# insert your copyright here
|
7
|
+
|
8
|
+
# see the URL below for information on how to write OpenStudio measures
|
9
|
+
# http://nrel.github.io/OpenStudio-user-documentation/reference/measure_writing_guide/
|
10
|
+
|
11
|
+
require 'erb'
|
12
|
+
|
13
|
+
# start the measure
|
14
|
+
class CreateCSVOutput < OpenStudio::Measure::ReportingMeasure
|
15
|
+
# human readable name
|
16
|
+
def name
|
17
|
+
# Measure name should be the title case of the class name.
|
18
|
+
return 'CreateCSVOutput'
|
19
|
+
end
|
20
|
+
|
21
|
+
# human readable description
|
22
|
+
def description
|
23
|
+
return 'Create CSV output for output variables in SQL file'
|
24
|
+
end
|
25
|
+
|
26
|
+
# human readable description of modeling approach
|
27
|
+
def modeler_description
|
28
|
+
return 'Create CSV output for output variables in SQL file'
|
29
|
+
end
|
30
|
+
|
31
|
+
# define the arguments that the user will input
|
32
|
+
def arguments(model = nil)
|
33
|
+
args = OpenStudio::Measure::OSArgumentVector.new
|
34
|
+
|
35
|
+
#make an argument for the reporting frequency
|
36
|
+
reporting_frequency_chs = OpenStudio::StringVector.new
|
37
|
+
reporting_frequency_chs << "Hourly"
|
38
|
+
reporting_frequency_chs << "Zone Timestep"
|
39
|
+
reporting_frequency_chs << "HVAC System Timestep"
|
40
|
+
reporting_frequency_chs << "All"
|
41
|
+
reporting_frequency = OpenStudio::Ruleset::OSArgument::makeChoiceArgument('reporting_frequency', reporting_frequency_chs, true)
|
42
|
+
reporting_frequency.setDisplayName("Reporting Frequency.")
|
43
|
+
reporting_frequency.setDefaultValue("Hourly")
|
44
|
+
args << reporting_frequency
|
45
|
+
|
46
|
+
return args
|
47
|
+
end
|
48
|
+
|
49
|
+
# define what happens when the measure is run
|
50
|
+
def run(runner, user_arguments)
|
51
|
+
super(runner, user_arguments)
|
52
|
+
|
53
|
+
# use the built-in error checking
|
54
|
+
if !runner.validateUserArguments(arguments(), user_arguments)
|
55
|
+
return false
|
56
|
+
end
|
57
|
+
|
58
|
+
#assign the user inputs to variables
|
59
|
+
reporting_frequency = runner.getStringArgumentValue("reporting_frequency",user_arguments)
|
60
|
+
|
61
|
+
# get the last model and sql file
|
62
|
+
model = runner.lastOpenStudioModel
|
63
|
+
if model.empty?
|
64
|
+
runner.registerError("Cannot find last model.")
|
65
|
+
return false
|
66
|
+
end
|
67
|
+
model = model.get
|
68
|
+
|
69
|
+
sqlFile = runner.lastEnergyPlusSqlFile
|
70
|
+
if sqlFile.empty?
|
71
|
+
runner.registerError("Cannot find last sql file.")
|
72
|
+
return false
|
73
|
+
end
|
74
|
+
sqlFile = sqlFile.get
|
75
|
+
model.setSqlFile(sqlFile)
|
76
|
+
|
77
|
+
# get the weather file run period (as opposed to design day run period)
|
78
|
+
ann_env_pd = nil
|
79
|
+
sqlFile.availableEnvPeriods.each do |env_pd|
|
80
|
+
env_type = sqlFile.environmentType(env_pd)
|
81
|
+
if env_type.is_initialized
|
82
|
+
if env_type.get == OpenStudio::EnvironmentType.new("WeatherRunPeriod")
|
83
|
+
ann_env_pd = env_pd
|
84
|
+
break
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
unless reporting_frequency == "All"
|
90
|
+
headers = ["#{reporting_frequency}"]
|
91
|
+
output_timeseries = {}
|
92
|
+
|
93
|
+
variable_names = sqlFile.availableVariableNames(ann_env_pd, reporting_frequency)
|
94
|
+
variable_names.each do |variable_name|
|
95
|
+
puts "****************************"
|
96
|
+
puts "Variable Name = #{variable_name}"
|
97
|
+
key_values = sqlFile.availableKeyValues(ann_env_pd, reporting_frequency, variable_name.to_s)
|
98
|
+
if key_values.size == 0
|
99
|
+
runner.registerError("Timeseries for #{variable_name} did not have any key values. No timeseries available.")
|
100
|
+
end
|
101
|
+
|
102
|
+
key_values.each do |key_value|
|
103
|
+
puts "Key = #{key_value}"
|
104
|
+
timeseries = sqlFile.timeSeries(ann_env_pd, reporting_frequency, variable_name.to_s, key_value.to_s)
|
105
|
+
if !timeseries.empty?
|
106
|
+
timeseries = timeseries.get
|
107
|
+
units = timeseries.units
|
108
|
+
headers << "#{key_value.to_s}:#{variable_name.to_s}[#{units}]"
|
109
|
+
output_timeseries[headers[-1]] = timeseries
|
110
|
+
else
|
111
|
+
runner.registerWarning("Timeseries for #{key_value} #{variable_name} is empty.")
|
112
|
+
end
|
113
|
+
end
|
114
|
+
end
|
115
|
+
|
116
|
+
if output_timeseries.empty?
|
117
|
+
puts "No output variables found at reporting frequency = #{reporting_frequency}"
|
118
|
+
else
|
119
|
+
|
120
|
+
csv_array = []
|
121
|
+
csv_array << headers
|
122
|
+
|
123
|
+
date_times = output_timeseries[output_timeseries.keys[0]].dateTimes
|
124
|
+
|
125
|
+
values = {}
|
126
|
+
for key in output_timeseries.keys
|
127
|
+
values[key] = output_timeseries[key].values
|
128
|
+
end
|
129
|
+
|
130
|
+
num_times = date_times.size - 1
|
131
|
+
for i in 0..num_times
|
132
|
+
date_time = date_times[i]
|
133
|
+
row = []
|
134
|
+
row << date_time
|
135
|
+
for key in headers[1..-1]
|
136
|
+
value = values[key][i]
|
137
|
+
row << value
|
138
|
+
end
|
139
|
+
csv_array << row
|
140
|
+
end
|
141
|
+
|
142
|
+
File.open("./report_variables_#{reporting_frequency.delete(' ')}.csv", 'wb') do |file|
|
143
|
+
csv_array.each do |elem|
|
144
|
+
file.puts elem.join(',')
|
145
|
+
end
|
146
|
+
end
|
147
|
+
|
148
|
+
runner.registerInfo("Output file written to #{File.expand_path('.')}")
|
149
|
+
end
|
150
|
+
else
|
151
|
+
|
152
|
+
# reporting_frequencies = sqlFile.availableReportingFrequencies(ann_env_pd)
|
153
|
+
# puts "Reporting Frequencies = "
|
154
|
+
# puts reporting_frequencies
|
155
|
+
|
156
|
+
reporting_frequencies = ["Hourly","Zone Timestep","HVAC System Timestep"]
|
157
|
+
reporting_frequencies.each do |reporting_frequency|
|
158
|
+
puts "***********************************************"
|
159
|
+
puts "***********************************************"
|
160
|
+
puts "Reporting Frequency = #{reporting_frequency}"
|
161
|
+
|
162
|
+
headers = ["#{reporting_frequency}"]
|
163
|
+
output_timeseries = {}
|
164
|
+
|
165
|
+
variable_names = sqlFile.availableVariableNames(ann_env_pd, reporting_frequency)
|
166
|
+
variable_names.each do |variable_name|
|
167
|
+
puts "****************************"
|
168
|
+
puts "Variable Name = #{variable_name}"
|
169
|
+
key_values = sqlFile.availableKeyValues(ann_env_pd, reporting_frequency, variable_name.to_s)
|
170
|
+
if key_values.size == 0
|
171
|
+
runner.registerError("Timeseries for #{variable_name} did not have any key values. No timeseries available.")
|
172
|
+
end
|
173
|
+
|
174
|
+
key_values.each do |key_value|
|
175
|
+
puts "Key = #{key_value}"
|
176
|
+
timeseries = sqlFile.timeSeries(ann_env_pd, reporting_frequency, variable_name.to_s, key_value.to_s)
|
177
|
+
if !timeseries.empty?
|
178
|
+
timeseries = timeseries.get
|
179
|
+
units = timeseries.units
|
180
|
+
headers << "#{key_value.to_s}:#{variable_name.to_s}[#{units}]"
|
181
|
+
output_timeseries[headers[-1]] = timeseries
|
182
|
+
else
|
183
|
+
runner.registerWarning("Timeseries for #{key_value} #{variable_name} is empty.")
|
184
|
+
end
|
185
|
+
end
|
186
|
+
end
|
187
|
+
|
188
|
+
if output_timeseries.empty?
|
189
|
+
puts "No output variables found at reporting frequency = #{reporting_frequency}"
|
190
|
+
next
|
191
|
+
end
|
192
|
+
|
193
|
+
csv_array = []
|
194
|
+
csv_array << headers
|
195
|
+
|
196
|
+
|
197
|
+
date_times = output_timeseries[output_timeseries.keys[0]].dateTimes
|
198
|
+
|
199
|
+
values = {}
|
200
|
+
for key in output_timeseries.keys
|
201
|
+
values[key] = output_timeseries[key].values
|
202
|
+
end
|
203
|
+
|
204
|
+
num_times = date_times.size - 1
|
205
|
+
for i in 0..num_times
|
206
|
+
date_time = date_times[i]
|
207
|
+
row = []
|
208
|
+
row << date_time
|
209
|
+
for key in headers[1..-1]
|
210
|
+
value = values[key][i]
|
211
|
+
row << value
|
212
|
+
end
|
213
|
+
csv_array << row
|
214
|
+
end
|
215
|
+
|
216
|
+
File.open("./report_variables_#{reporting_frequency.delete(' ')}.csv", 'wb') do |file|
|
217
|
+
csv_array.each do |elem|
|
218
|
+
file.puts elem.join(',')
|
219
|
+
end
|
220
|
+
end
|
221
|
+
|
222
|
+
runner.registerInfo("Output file written to #{File.expand_path('.')}")
|
223
|
+
|
224
|
+
end
|
225
|
+
end
|
226
|
+
|
227
|
+
# close the sql file
|
228
|
+
sqlFile.close()
|
229
|
+
|
230
|
+
return true
|
231
|
+
end
|
232
|
+
end
|
233
|
+
|
234
|
+
# register the measure to be used by the application
|
235
|
+
CreateCSVOutput.new.registerWithApplication
|
@@ -0,0 +1,124 @@
|
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
<measure>
|
3
|
+
<schema_version>3.0</schema_version>
|
4
|
+
<name>create_csv_output</name>
|
5
|
+
<uid>99d3a7e5-4bd5-407f-b5eb-7c59660ca980</uid>
|
6
|
+
<version_id>fbbc1933-a541-4258-89b1-20ec4abae16a</version_id>
|
7
|
+
<version_modified>20230118T161956Z</version_modified>
|
8
|
+
<xml_checksum>9BF1E6AC</xml_checksum>
|
9
|
+
<class_name>CreateCSVOutput</class_name>
|
10
|
+
<display_name>CreateCSVOutput</display_name>
|
11
|
+
<description>Create CSV output for output variables in SQL file</description>
|
12
|
+
<modeler_description>Create CSV output for output variables in SQL file</modeler_description>
|
13
|
+
<arguments>
|
14
|
+
<argument>
|
15
|
+
<name>reporting_frequency</name>
|
16
|
+
<display_name>Reporting Frequency.</display_name>
|
17
|
+
<type>Choice</type>
|
18
|
+
<required>true</required>
|
19
|
+
<model_dependent>false</model_dependent>
|
20
|
+
<default_value>Hourly</default_value>
|
21
|
+
<choices>
|
22
|
+
<choice>
|
23
|
+
<value>Hourly</value>
|
24
|
+
<display_name>Hourly</display_name>
|
25
|
+
</choice>
|
26
|
+
<choice>
|
27
|
+
<value>Zone Timestep</value>
|
28
|
+
<display_name>Zone Timestep</display_name>
|
29
|
+
</choice>
|
30
|
+
<choice>
|
31
|
+
<value>HVAC System Timestep</value>
|
32
|
+
<display_name>HVAC System Timestep</display_name>
|
33
|
+
</choice>
|
34
|
+
<choice>
|
35
|
+
<value>All</value>
|
36
|
+
<display_name>All</display_name>
|
37
|
+
</choice>
|
38
|
+
</choices>
|
39
|
+
</argument>
|
40
|
+
</arguments>
|
41
|
+
<outputs />
|
42
|
+
<provenances />
|
43
|
+
<tags>
|
44
|
+
<tag>Reporting.QAQC</tag>
|
45
|
+
</tags>
|
46
|
+
<attributes>
|
47
|
+
<attribute>
|
48
|
+
<name>Measure Type</name>
|
49
|
+
<value>ReportingMeasure</value>
|
50
|
+
<datatype>string</datatype>
|
51
|
+
</attribute>
|
52
|
+
<attribute>
|
53
|
+
<name>Intended Software Tool</name>
|
54
|
+
<value>OpenStudio Application</value>
|
55
|
+
<datatype>string</datatype>
|
56
|
+
</attribute>
|
57
|
+
<attribute>
|
58
|
+
<name>Intended Software Tool</name>
|
59
|
+
<value>Parametric Analysis Tool</value>
|
60
|
+
<datatype>string</datatype>
|
61
|
+
</attribute>
|
62
|
+
</attributes>
|
63
|
+
<files>
|
64
|
+
<file>
|
65
|
+
<filename>LICENSE.md</filename>
|
66
|
+
<filetype>md</filetype>
|
67
|
+
<usage_type>license</usage_type>
|
68
|
+
<checksum>CD7F5672</checksum>
|
69
|
+
</file>
|
70
|
+
<file>
|
71
|
+
<filename>README.md.erb</filename>
|
72
|
+
<filetype>erb</filetype>
|
73
|
+
<usage_type>readmeerb</usage_type>
|
74
|
+
<checksum>F1C26127</checksum>
|
75
|
+
</file>
|
76
|
+
<file>
|
77
|
+
<filename>.gitkeep</filename>
|
78
|
+
<filetype>gitkeep</filetype>
|
79
|
+
<usage_type>doc</usage_type>
|
80
|
+
<checksum>00000000</checksum>
|
81
|
+
</file>
|
82
|
+
<file>
|
83
|
+
<filename>example_model.osm</filename>
|
84
|
+
<filetype>osm</filetype>
|
85
|
+
<usage_type>test</usage_type>
|
86
|
+
<checksum>39B6E26C</checksum>
|
87
|
+
</file>
|
88
|
+
<file>
|
89
|
+
<filename>USA_CO_Golden-NREL.724666_TMY3.epw</filename>
|
90
|
+
<filetype>epw</filetype>
|
91
|
+
<usage_type>test</usage_type>
|
92
|
+
<checksum>BDF687C1</checksum>
|
93
|
+
</file>
|
94
|
+
<file>
|
95
|
+
<filename>report.html.in</filename>
|
96
|
+
<filetype>in</filetype>
|
97
|
+
<usage_type>resource</usage_type>
|
98
|
+
<checksum>3F69E3FB</checksum>
|
99
|
+
</file>
|
100
|
+
<file>
|
101
|
+
<version>
|
102
|
+
<software_program>OpenStudio</software_program>
|
103
|
+
<identifier>3.4.0</identifier>
|
104
|
+
<min_compatible>3.4.0</min_compatible>
|
105
|
+
</version>
|
106
|
+
<filename>measure.rb</filename>
|
107
|
+
<filetype>rb</filetype>
|
108
|
+
<usage_type>script</usage_type>
|
109
|
+
<checksum>94EA9ABB</checksum>
|
110
|
+
</file>
|
111
|
+
<file>
|
112
|
+
<filename>create_csv_output_test.rb</filename>
|
113
|
+
<filetype>rb</filetype>
|
114
|
+
<usage_type>test</usage_type>
|
115
|
+
<checksum>74354A94</checksum>
|
116
|
+
</file>
|
117
|
+
<file>
|
118
|
+
<filename>README.md</filename>
|
119
|
+
<filetype>md</filetype>
|
120
|
+
<usage_type>readme</usage_type>
|
121
|
+
<checksum>0A07426F</checksum>
|
122
|
+
</file>
|
123
|
+
</files>
|
124
|
+
</measure>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<title>ReportingMeasure</title>
|
6
|
+
<link href="http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.3.2/css/bootstrap.min.css" rel="stylesheet">
|
7
|
+
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
|
8
|
+
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/d3/3.3.9/d3.min.js"></script>
|
9
|
+
</head>
|
10
|
+
<body>
|
11
|
+
<%= output %>
|
12
|
+
</body>
|
13
|
+
</html>
|
@@ -1,27 +1,13 @@
|
|
1
|
-
OpenStudio(R), Copyright (c) 2008
|
1
|
+
OpenStudio(R), Copyright (c) 2008, 2023 Alliance for Sustainable Energy, LLC.
|
2
2
|
|
3
|
-
Redistribution and use in source and binary forms, with or without modification, are permitted
|
4
|
-
provided that the following conditions are met:
|
3
|
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
5
4
|
|
6
|
-
|
7
|
-
and the following disclaimer.
|
5
|
+
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
8
6
|
|
9
|
-
|
10
|
-
and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
7
|
+
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
11
8
|
|
12
|
-
|
13
|
-
or promote products derived from this software without specific prior written permission from the
|
14
|
-
respective party.
|
9
|
+
3. Redistribution of this software, without modification, must refer to the software by the same designation. Redistribution of a modified version of this software (i) may not refer to the modified version by the same designation, or by any confusingly similar designation, and (ii) must refer to the underlying software originally provided by Alliance as “OpenStudio®”. Except to comply with the foregoing, the term “OpenStudio®”, or any confusingly similar designation may not be used to refer to any modified version of this software or any modified version of the underlying software originally provided by Alliance without the prior written consent of Alliance.
|
15
10
|
|
16
|
-
|
17
|
-
derivative works may not use the "OpenStudio" trademark, "OS", "os", or any other confusingly similar
|
18
|
-
designation without specific prior written permission from Alliance for Sustainable Energy, LLC.
|
11
|
+
4. The name of the copyright holder(s), any contributors, the United States Government, the United States Department of Energy, or any of their employees may not be used to endorse or promote products derived from this software without specific prior written permission from the respective party.
|
19
12
|
|
20
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT
|
21
|
-
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
|
22
|
-
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER, THE UNITED STATES GOVERNMENT,
|
23
|
-
OR ANY CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
24
|
-
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
|
25
|
-
OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
|
26
|
-
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
27
|
-
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
13
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER(S) AND ANY CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER(S), ANY CONTRIBUTORS, THE UNITED STATES GOVERNMENT, OR THE UNITED STATES DEPARTMENT OF ENERGY, NOR ANY OF THEIR EMPLOYEES, BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
@@ -25,3 +25,34 @@ ReportingMeasure
|
|
25
25
|
This measure does not have any user arguments
|
26
26
|
|
27
27
|
|
28
|
+
|
29
|
+
|
30
|
+
###### (Manually generated documentation)
|
31
|
+
## Report Screenshots
|
32
|
+
|
33
|
+
* Colors of envelope components match default model rendering by surface type.
|
34
|
+
* Colors for equipment and lights use colors similar to OpenStudio Results.
|
35
|
+
* Click the blue headings above plots to expand source table.
|
36
|
+
|
37
|
+
#### Heat Gains Summary
|
38
|
+
*Annual pie chart and monthly stacked bar chart by component.*
|
39
|
+
|
40
|
+
![Heat Gains Summary](./docs/htg_gain_summary.png?raw=true)
|
41
|
+
|
42
|
+
#### Heat Loss Summary
|
43
|
+
*Annual pie chart and monthly stacked bar chart by component.*
|
44
|
+
|
45
|
+
![Heat Loss Summary](./docs/htg_loss_summary.png?raw=true)
|
46
|
+
|
47
|
+
#### Heat Gains By Month Detailed
|
48
|
+
*Each component type has a table with each contributing object listed by month. There are annual totals for each component, and there is a monthly total with all components of that type aggregated*
|
49
|
+
|
50
|
+
![Heat Gains By Month Detailed - a](./docs/htg_gain_detailed_a.png?raw=true)
|
51
|
+
|
52
|
+
*Each sub-surface and surface with an outdoor or ground boundary boundary condition is listed. At the end of the surface type a row subtotals the heat gains by outdoor walls, outdoor roofs, and ground boundary surfaces.*
|
53
|
+
![Heat Gains By Month Detailed - b](./docs/htg_gain_detailed_b.png?raw=true)
|
54
|
+
|
55
|
+
#### Heat Losses By Month Detailed
|
56
|
+
*Each component type has a table with each contributing object listed by month. There are annual totals for each component, and there is a monthly total with all components of that type aggregated*
|
57
|
+
|
58
|
+
![Heat Losses By Month Detailed](./docs/htg_loss_detailed.png?raw=true)
|
@@ -39,4 +39,34 @@
|
|
39
39
|
<% output_names << output[:display_name] %>
|
40
40
|
<% end %>
|
41
41
|
<%= output_names.join(", ") %>
|
42
|
-
<% end %>
|
42
|
+
<% end %>
|
43
|
+
|
44
|
+
###### (Manually generated documentation)
|
45
|
+
## Report Screenshots
|
46
|
+
|
47
|
+
* Colors of envelope components match default model rendering by surface type.
|
48
|
+
* Colors for equipment and lights use colors similar to OpenStudio Results.
|
49
|
+
* Click the blue headings above plots to expand source table.
|
50
|
+
|
51
|
+
#### Heat Gains Summary
|
52
|
+
*Annual pie chart and monthly stacked bar chart by component.*
|
53
|
+
|
54
|
+
![Heat Gains Summary](./docs/htg_gain_summary.png?raw=true)
|
55
|
+
|
56
|
+
#### Heat Loss Summary
|
57
|
+
*Annual pie chart and monthly stacked bar chart by component.*
|
58
|
+
|
59
|
+
![Heat Loss Summary](./docs/htg_loss_summary.png?raw=true)
|
60
|
+
|
61
|
+
#### Heat Gains By Month Detailed
|
62
|
+
*Each component type has a table with each contributing object listed by month. There are annual totals for each component, and there is a monthly total with all components of that type aggregated*
|
63
|
+
|
64
|
+
![Heat Gains By Month Detailed - a](./docs/htg_gain_detailed_a.png?raw=true)
|
65
|
+
|
66
|
+
*Each sub-surface and surface with an outdoor or ground boundary boundary condition is listed. At the end of the surface type a row subtotals the heat gains by outdoor walls, outdoor roofs, and ground boundary surfaces.*
|
67
|
+
![Heat Gains By Month Detailed - b](./docs/htg_gain_detailed_b.png?raw=true)
|
68
|
+
|
69
|
+
#### Heat Losses By Month Detailed
|
70
|
+
*Each component type has a table with each contributing object listed by month. There are annual totals for each component, and there is a monthly total with all components of that type aggregated*
|
71
|
+
|
72
|
+
![Heat Losses By Month Detailed](./docs/htg_loss_detailed.png?raw=true)
|
Binary file
|
Binary file
|
@@ -1,36 +1,6 @@
|
|
1
1
|
# *******************************************************************************
|
2
|
-
# OpenStudio(R), Copyright (c)
|
3
|
-
#
|
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.
|
2
|
+
# OpenStudio(R), Copyright (c) Alliance for Sustainable Energy, LLC.
|
3
|
+
# See also https://openstudio.net/license
|
34
4
|
# *******************************************************************************
|
35
5
|
|
36
6
|
require 'erb'
|
@@ -3,8 +3,8 @@
|
|
3
3
|
<schema_version>3.0</schema_version>
|
4
4
|
<name>envelope_and_internal_load_breakdown</name>
|
5
5
|
<uid>8f0e1fbb-8bc6-46e5-b6e4-db59177e2c02</uid>
|
6
|
-
<version_id>
|
7
|
-
<version_modified>
|
6
|
+
<version_id>094a25e3-d116-401e-8cdb-ae076a79079a</version_id>
|
7
|
+
<version_modified>20221115T224203Z</version_modified>
|
8
8
|
<xml_checksum>69BA4D91</xml_checksum>
|
9
9
|
<class_name>EnvelopeAndInternalLoadBreakdown</class_name>
|
10
10
|
<display_name>Envelope and Internal Load Breakdown</display_name>
|
@@ -94,29 +94,59 @@
|
|
94
94
|
<usage_type>test</usage_type>
|
95
95
|
<checksum>CA6A593D</checksum>
|
96
96
|
</file>
|
97
|
+
<file>
|
98
|
+
<filename>htg_gain_detailed_a.png</filename>
|
99
|
+
<filetype>png</filetype>
|
100
|
+
<usage_type>doc</usage_type>
|
101
|
+
<checksum>68441A05</checksum>
|
102
|
+
</file>
|
103
|
+
<file>
|
104
|
+
<filename>htg_gain_detailed_b.png</filename>
|
105
|
+
<filetype>png</filetype>
|
106
|
+
<usage_type>doc</usage_type>
|
107
|
+
<checksum>3D630E8A</checksum>
|
108
|
+
</file>
|
109
|
+
<file>
|
110
|
+
<filename>htg_gain_summary.png</filename>
|
111
|
+
<filetype>png</filetype>
|
112
|
+
<usage_type>doc</usage_type>
|
113
|
+
<checksum>E8E7FBC8</checksum>
|
114
|
+
</file>
|
115
|
+
<file>
|
116
|
+
<filename>htg_loss_summary.png</filename>
|
117
|
+
<filetype>png</filetype>
|
118
|
+
<usage_type>doc</usage_type>
|
119
|
+
<checksum>69DDA02E</checksum>
|
120
|
+
</file>
|
121
|
+
<file>
|
122
|
+
<filename>htg_loss_detailed.png</filename>
|
123
|
+
<filetype>png</filetype>
|
124
|
+
<usage_type>doc</usage_type>
|
125
|
+
<checksum>6E4E8FE2</checksum>
|
126
|
+
</file>
|
97
127
|
<file>
|
98
128
|
<filename>README.md.erb</filename>
|
99
129
|
<filetype>erb</filetype>
|
100
130
|
<usage_type>readmeerb</usage_type>
|
101
|
-
<checksum>
|
131
|
+
<checksum>1223C55C</checksum>
|
102
132
|
</file>
|
103
133
|
<file>
|
104
134
|
<filename>os_lib_reporting_envelope_and_internal_loads_breakdown.rb</filename>
|
105
135
|
<filetype>rb</filetype>
|
106
136
|
<usage_type>resource</usage_type>
|
107
|
-
<checksum>
|
137
|
+
<checksum>471E57CB</checksum>
|
108
138
|
</file>
|
109
139
|
<file>
|
110
140
|
<filename>LICENSE.md</filename>
|
111
141
|
<filetype>md</filetype>
|
112
142
|
<usage_type>license</usage_type>
|
113
|
-
<checksum>
|
143
|
+
<checksum>64FFEBDE</checksum>
|
114
144
|
</file>
|
115
145
|
<file>
|
116
146
|
<filename>EnvelopeAndInternalLoadBreakdown_Test.rb</filename>
|
117
147
|
<filetype>rb</filetype>
|
118
148
|
<usage_type>test</usage_type>
|
119
|
-
<checksum>
|
149
|
+
<checksum>C9C97ADF</checksum>
|
120
150
|
</file>
|
121
151
|
<file>
|
122
152
|
<version>
|
@@ -127,19 +157,19 @@
|
|
127
157
|
<filename>measure.rb</filename>
|
128
158
|
<filetype>rb</filetype>
|
129
159
|
<usage_type>script</usage_type>
|
130
|
-
<checksum>
|
160
|
+
<checksum>4B3CF7A8</checksum>
|
131
161
|
</file>
|
132
162
|
<file>
|
133
163
|
<filename>README.md</filename>
|
134
164
|
<filetype>md</filetype>
|
135
165
|
<usage_type>readme</usage_type>
|
136
|
-
<checksum>
|
166
|
+
<checksum>7D00FFF0</checksum>
|
137
167
|
</file>
|
138
168
|
<file>
|
139
169
|
<filename>report.html.erb</filename>
|
140
170
|
<filetype>erb</filetype>
|
141
171
|
<usage_type>resource</usage_type>
|
142
|
-
<checksum>
|
172
|
+
<checksum>0C9A88EB</checksum>
|
143
173
|
</file>
|
144
174
|
</files>
|
145
175
|
</measure>
|
@@ -1,36 +1,6 @@
|
|
1
1
|
# *******************************************************************************
|
2
|
-
# OpenStudio(R), Copyright (c)
|
3
|
-
#
|
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.
|
2
|
+
# OpenStudio(R), Copyright (c) Alliance for Sustainable Energy, LLC.
|
3
|
+
# See also https://openstudio.net/license
|
34
4
|
# *******************************************************************************
|
35
5
|
|
36
6
|
require 'json'
|