openstudio-calibration 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +29 -0
- data/CHANGELOG.md +14 -0
- data/Gemfile +20 -0
- data/Jenkinsfile +6 -0
- data/LICENSE.md +27 -0
- data/README.md +33 -0
- data/Rakefile +50 -0
- data/doc_templates/LICENSE.md +27 -0
- data/doc_templates/README.md.erb +42 -0
- data/doc_templates/copyright_erb.txt +36 -0
- data/doc_templates/copyright_js.txt +4 -0
- data/doc_templates/copyright_ruby.txt +34 -0
- data/lib/files/.gitkeep +0 -0
- data/lib/measures/AddMonthlyJSONUtilityData/LICENSE.md +27 -0
- data/lib/measures/AddMonthlyJSONUtilityData/README.md +96 -0
- data/lib/measures/AddMonthlyJSONUtilityData/README.md.erb +42 -0
- data/lib/measures/AddMonthlyJSONUtilityData/measure.rb +280 -0
- data/lib/measures/AddMonthlyJSONUtilityData/measure.xml +163 -0
- data/lib/measures/AddMonthlyUtilityData/LICENSE.md +27 -0
- data/lib/measures/AddMonthlyUtilityData/README.md +64 -0
- data/lib/measures/AddMonthlyUtilityData/README.md.erb +42 -0
- data/lib/measures/AddMonthlyUtilityData/measure.rb +312 -0
- data/lib/measures/AddMonthlyUtilityData/measure.xml +115 -0
- data/lib/measures/AddMonthlyUtilityData/tests/AddMonthlyUtilityData_Test.rb +88 -0
- data/lib/measures/AddMonthlyUtilityData/tests/electric_billed_usages.json +198 -0
- data/lib/measures/AddMonthlyUtilityData/tests/gas_billed_usages.json +198 -0
- data/lib/measures/CalibrationReports/LICENSE.md +27 -0
- data/lib/measures/CalibrationReports/README.md +26 -0
- data/lib/measures/CalibrationReports/README.md.erb +42 -0
- data/lib/measures/CalibrationReports/measure.rb +511 -0
- data/lib/measures/CalibrationReports/measure.xml +98 -0
- data/lib/measures/CalibrationReports/resources/report.html.in +379 -0
- data/lib/measures/CalibrationReports/tests/CalibrationReports_Test.rb +523 -0
- data/lib/measures/CalibrationReports/tests/ExampleModel.osm +10497 -0
- data/lib/measures/CalibrationReports/tests/ExampleModelNoDemandInput.osm +10560 -0
- data/lib/measures/CalibrationReports/tests/ExampleModelNoGasInput.osm +10456 -0
- data/lib/measures/CalibrationReports/tests/USA_CO_Golden-NREL.724666_TMY3.epw +8768 -0
- data/lib/measures/CalibrationReportsEnhanced/LICENSE.md +27 -0
- data/lib/measures/CalibrationReportsEnhanced/README.md +143 -0
- data/lib/measures/CalibrationReportsEnhanced/README.md.erb +42 -0
- data/lib/measures/CalibrationReportsEnhanced/measure.rb +798 -0
- data/lib/measures/CalibrationReportsEnhanced/measure.xml +372 -0
- data/lib/measures/CalibrationReportsEnhanced/resources/report.html.in +380 -0
- data/lib/measures/CalibrationReportsEnhanced/tests/CalibrationReportsEnhanced_Test.rb +734 -0
- data/lib/measures/CalibrationReportsEnhanced/tests/ExampleModel.osm +10497 -0
- data/lib/measures/CalibrationReportsEnhanced/tests/ExampleModel_FuelOil.osm +12740 -0
- data/lib/measures/CalibrationReportsEnhanced/tests/USA_CO_Golden-NREL.724666_TMY3.epw +8768 -0
- data/lib/measures/CalibrationReportsEnhanced21/LICENSE.md +27 -0
- data/lib/measures/CalibrationReportsEnhanced21/README.md +109 -0
- data/lib/measures/CalibrationReportsEnhanced21/README.md.erb +42 -0
- data/lib/measures/CalibrationReportsEnhanced21/measure.rb +690 -0
- data/lib/measures/CalibrationReportsEnhanced21/measure.xml +269 -0
- data/lib/measures/CalibrationReportsEnhanced21/resources/report.html.in +380 -0
- data/lib/measures/CoilCoolingDXSingleSpeedMultiplier/LICENSE.md +27 -0
- data/lib/measures/CoilCoolingDXSingleSpeedMultiplier/README.md +48 -0
- data/lib/measures/CoilCoolingDXSingleSpeedMultiplier/README.md.erb +42 -0
- data/lib/measures/CoilCoolingDXSingleSpeedMultiplier/measure.rb +237 -0
- data/lib/measures/CoilCoolingDXSingleSpeedMultiplier/measure.xml +93 -0
- data/lib/measures/CoilCoolingDXSingleSpeedPercentChange/LICENSE.md +27 -0
- data/lib/measures/CoilCoolingDXSingleSpeedPercentChange/README.md +48 -0
- data/lib/measures/CoilCoolingDXSingleSpeedPercentChange/README.md.erb +42 -0
- data/lib/measures/CoilCoolingDXSingleSpeedPercentChange/measure.rb +228 -0
- data/lib/measures/CoilCoolingDXSingleSpeedPercentChange/measure.xml +93 -0
- data/lib/measures/CoilCoolingDXTwoSpeedMultiplier/LICENSE.md +27 -0
- data/lib/measures/CoilCoolingDXTwoSpeedMultiplier/README.md +64 -0
- data/lib/measures/CoilCoolingDXTwoSpeedMultiplier/README.md.erb +42 -0
- data/lib/measures/CoilCoolingDXTwoSpeedMultiplier/measure.rb +280 -0
- data/lib/measures/CoilCoolingDXTwoSpeedMultiplier/measure.xml +111 -0
- data/lib/measures/CoilCoolingDXTwoSpeedPercentChange/LICENSE.md +27 -0
- data/lib/measures/CoilCoolingDXTwoSpeedPercentChange/README.md +64 -0
- data/lib/measures/CoilCoolingDXTwoSpeedPercentChange/README.md.erb +42 -0
- data/lib/measures/CoilCoolingDXTwoSpeedPercentChange/measure.rb +270 -0
- data/lib/measures/CoilCoolingDXTwoSpeedPercentChange/measure.xml +111 -0
- data/lib/measures/CoilCoolingWaterMultiplier/LICENSE.md +27 -0
- data/lib/measures/CoilCoolingWaterMultiplier/README.md +80 -0
- data/lib/measures/CoilCoolingWaterMultiplier/README.md.erb +42 -0
- data/lib/measures/CoilCoolingWaterMultiplier/measure.rb +324 -0
- data/lib/measures/CoilCoolingWaterMultiplier/measure.xml +129 -0
- data/lib/measures/CoilCoolingWaterPercentChange/LICENSE.md +27 -0
- data/lib/measures/CoilCoolingWaterPercentChange/README.md +80 -0
- data/lib/measures/CoilCoolingWaterPercentChange/README.md.erb +42 -0
- data/lib/measures/CoilCoolingWaterPercentChange/measure.rb +311 -0
- data/lib/measures/CoilCoolingWaterPercentChange/measure.xml +129 -0
- data/lib/measures/CoilHeatingElectricMultiplier/LICENSE.md +27 -0
- data/lib/measures/CoilHeatingElectricMultiplier/README.md +48 -0
- data/lib/measures/CoilHeatingElectricMultiplier/README.md.erb +42 -0
- data/lib/measures/CoilHeatingElectricMultiplier/measure.rb +240 -0
- data/lib/measures/CoilHeatingElectricMultiplier/measure.xml +93 -0
- data/lib/measures/CoilHeatingElectricPercentChange/LICENSE.md +27 -0
- data/lib/measures/CoilHeatingElectricPercentChange/README.md +48 -0
- data/lib/measures/CoilHeatingElectricPercentChange/README.md.erb +42 -0
- data/lib/measures/CoilHeatingElectricPercentChange/measure.rb +231 -0
- data/lib/measures/CoilHeatingElectricPercentChange/measure.xml +93 -0
- data/lib/measures/CoilHeatingGasMultiplier/LICENSE.md +27 -0
- data/lib/measures/CoilHeatingGasMultiplier/README.md +64 -0
- data/lib/measures/CoilHeatingGasMultiplier/README.md.erb +42 -0
- data/lib/measures/CoilHeatingGasMultiplier/measure.rb +282 -0
- data/lib/measures/CoilHeatingGasMultiplier/measure.xml +111 -0
- data/lib/measures/CoilHeatingGasPercentChange/LICENSE.md +27 -0
- data/lib/measures/CoilHeatingGasPercentChange/README.md +64 -0
- data/lib/measures/CoilHeatingGasPercentChange/README.md.erb +42 -0
- data/lib/measures/CoilHeatingGasPercentChange/measure.rb +271 -0
- data/lib/measures/CoilHeatingGasPercentChange/measure.xml +111 -0
- data/lib/measures/CoilHeatingWaterMultiplier/LICENSE.md +27 -0
- data/lib/measures/CoilHeatingWaterMultiplier/README.md +48 -0
- data/lib/measures/CoilHeatingWaterMultiplier/README.md.erb +42 -0
- data/lib/measures/CoilHeatingWaterMultiplier/measure.rb +235 -0
- data/lib/measures/CoilHeatingWaterMultiplier/measure.xml +93 -0
- data/lib/measures/CoilHeatingWaterPercentChange/LICENSE.md +27 -0
- data/lib/measures/CoilHeatingWaterPercentChange/README.md +48 -0
- data/lib/measures/CoilHeatingWaterPercentChange/README.md.erb +42 -0
- data/lib/measures/CoilHeatingWaterPercentChange/measure.rb +226 -0
- data/lib/measures/CoilHeatingWaterPercentChange/measure.xml +93 -0
- data/lib/measures/ConstructionLayerZeroMaterialProperties/LICENSE.md +27 -0
- data/lib/measures/ConstructionLayerZeroMaterialProperties/README.md +88 -0
- data/lib/measures/ConstructionLayerZeroMaterialProperties/README.md.erb +42 -0
- data/lib/measures/ConstructionLayerZeroMaterialProperties/measure.rb +221 -0
- data/lib/measures/ConstructionLayerZeroMaterialProperties/measure.xml +194 -0
- data/lib/measures/ElectricBaseboardEfficiencyAndCapacity/LICENSE.md +27 -0
- data/lib/measures/ElectricBaseboardEfficiencyAndCapacity/README.md +40 -0
- data/lib/measures/ElectricBaseboardEfficiencyAndCapacity/README.md.erb +42 -0
- data/lib/measures/ElectricBaseboardEfficiencyAndCapacity/measure.rb +102 -0
- data/lib/measures/ElectricBaseboardEfficiencyAndCapacity/measure.xml +78 -0
- data/lib/measures/ExteriorWallThermalPropertiesMultiplier/LICENSE.md +27 -0
- data/lib/measures/ExteriorWallThermalPropertiesMultiplier/README.md +48 -0
- data/lib/measures/ExteriorWallThermalPropertiesMultiplier/README.md.erb +42 -0
- data/lib/measures/ExteriorWallThermalPropertiesMultiplier/measure.rb +263 -0
- data/lib/measures/ExteriorWallThermalPropertiesMultiplier/measure.xml +97 -0
- data/lib/measures/ExteriorWallThermalPropertiesPercentChange/LICENSE.md +27 -0
- data/lib/measures/ExteriorWallThermalPropertiesPercentChange/README.md +48 -0
- data/lib/measures/ExteriorWallThermalPropertiesPercentChange/README.md.erb +42 -0
- data/lib/measures/ExteriorWallThermalPropertiesPercentChange/measure.rb +253 -0
- data/lib/measures/ExteriorWallThermalPropertiesPercentChange/measure.xml +97 -0
- data/lib/measures/FansMultiplier/LICENSE.md +27 -0
- data/lib/measures/FansMultiplier/README.md +64 -0
- data/lib/measures/FansMultiplier/README.md.erb +42 -0
- data/lib/measures/FansMultiplier/measure.rb +297 -0
- data/lib/measures/FansMultiplier/measure.xml +166 -0
- data/lib/measures/FansPercentChange/LICENSE.md +27 -0
- data/lib/measures/FansPercentChange/README.md +64 -0
- data/lib/measures/FansPercentChange/README.md.erb +42 -0
- data/lib/measures/FansPercentChange/measure.rb +286 -0
- data/lib/measures/FansPercentChange/measure.xml +166 -0
- data/lib/measures/GeneralCalibrationMeasureMultiplier/LICENSE.md +27 -0
- data/lib/measures/GeneralCalibrationMeasureMultiplier/README.md +112 -0
- data/lib/measures/GeneralCalibrationMeasureMultiplier/README.md.erb +42 -0
- data/lib/measures/GeneralCalibrationMeasureMultiplier/measure.rb +639 -0
- data/lib/measures/GeneralCalibrationMeasureMultiplier/measure.xml +229 -0
- data/lib/measures/GeneralCalibrationMeasurePercentChange/LICENSE.md +27 -0
- data/lib/measures/GeneralCalibrationMeasurePercentChange/README.md +112 -0
- data/lib/measures/GeneralCalibrationMeasurePercentChange/README.md.erb +42 -0
- data/lib/measures/GeneralCalibrationMeasurePercentChange/measure.rb +756 -0
- data/lib/measures/GeneralCalibrationMeasurePercentChange/measure.xml +229 -0
- data/lib/measures/HardSizeHvac/LICENSE.md +27 -0
- data/lib/measures/HardSizeHvac/README.md +26 -0
- data/lib/measures/HardSizeHvac/README.md.erb +42 -0
- data/lib/measures/HardSizeHvac/measure.rb +88 -0
- data/lib/measures/HardSizeHvac/measure.xml +81 -0
- data/lib/measures/MaalkaMonthlyJSONUtilityData/LICENSE.md +27 -0
- data/lib/measures/MaalkaMonthlyJSONUtilityData/README.md +104 -0
- data/lib/measures/MaalkaMonthlyJSONUtilityData/README.md.erb +42 -0
- data/lib/measures/MaalkaMonthlyJSONUtilityData/measure.rb +304 -0
- data/lib/measures/MaalkaMonthlyJSONUtilityData/measure.xml +216 -0
- data/lib/measures/RValueOfInsulationForConstructionMultiplier/LICENSE.md +27 -0
- data/lib/measures/RValueOfInsulationForConstructionMultiplier/README.md +40 -0
- data/lib/measures/RValueOfInsulationForConstructionMultiplier/README.md.erb +42 -0
- data/lib/measures/RValueOfInsulationForConstructionMultiplier/measure.rb +196 -0
- data/lib/measures/RValueOfInsulationForConstructionMultiplier/measure.xml +132 -0
- data/lib/measures/RValueOfInsulationForConstructionPercentageChange/LICENSE.md +27 -0
- data/lib/measures/RValueOfInsulationForConstructionPercentageChange/README.md +40 -0
- data/lib/measures/RValueOfInsulationForConstructionPercentageChange/README.md.erb +42 -0
- data/lib/measures/RValueOfInsulationForConstructionPercentageChange/measure.rb +189 -0
- data/lib/measures/RValueOfInsulationForConstructionPercentageChange/measure.xml +132 -0
- data/lib/measures/RoofThermalPropertiesMultiplier/LICENSE.md +27 -0
- data/lib/measures/RoofThermalPropertiesMultiplier/README.md +48 -0
- data/lib/measures/RoofThermalPropertiesMultiplier/README.md.erb +42 -0
- data/lib/measures/RoofThermalPropertiesMultiplier/measure.rb +263 -0
- data/lib/measures/RoofThermalPropertiesMultiplier/measure.xml +97 -0
- data/lib/measures/RoofThermalPropertiesPercentChange/LICENSE.md +27 -0
- data/lib/measures/RoofThermalPropertiesPercentChange/README.md +48 -0
- data/lib/measures/RoofThermalPropertiesPercentChange/README.md.erb +42 -0
- data/lib/measures/RoofThermalPropertiesPercentChange/measure.rb +253 -0
- data/lib/measures/RoofThermalPropertiesPercentChange/measure.xml +97 -0
- data/lib/measures/TimeseriesObjectiveFunction/LICENSE.md +27 -0
- data/lib/measures/TimeseriesObjectiveFunction/README.md +207 -0
- data/lib/measures/TimeseriesObjectiveFunction/README.md.erb +42 -0
- data/lib/measures/TimeseriesObjectiveFunction/measure.rb +748 -0
- data/lib/measures/TimeseriesObjectiveFunction/measure.xml +435 -0
- data/lib/measures/TimeseriesObjectiveFunction/resources/report.html.erb +288 -0
- data/lib/measures/TimeseriesPlot/LICENSE.md +27 -0
- data/lib/measures/TimeseriesPlot/README.md +56 -0
- data/lib/measures/TimeseriesPlot/README.md.erb +42 -0
- data/lib/measures/TimeseriesPlot/measure.rb +302 -0
- data/lib/measures/TimeseriesPlot/measure.xml +137 -0
- data/lib/measures/TimeseriesPlot/resources/report.html.erb +270 -0
- data/lib/measures/WaterHeaterMixedMultiplier/LICENSE.md +27 -0
- data/lib/measures/WaterHeaterMixedMultiplier/README.md +64 -0
- data/lib/measures/WaterHeaterMixedMultiplier/README.md.erb +42 -0
- data/lib/measures/WaterHeaterMixedMultiplier/measure.rb +255 -0
- data/lib/measures/WaterHeaterMixedMultiplier/measure.xml +180 -0
- data/lib/measures/WaterHeaterMixedPercentChange/LICENSE.md +27 -0
- data/lib/measures/WaterHeaterMixedPercentChange/README.md +64 -0
- data/lib/measures/WaterHeaterMixedPercentChange/README.md.erb +42 -0
- data/lib/measures/WaterHeaterMixedPercentChange/measure.rb +245 -0
- data/lib/measures/WaterHeaterMixedPercentChange/measure.xml +180 -0
- data/lib/measures/zone_report/LICENSE.md +27 -0
- data/lib/measures/zone_report/README.md +26 -0
- data/lib/measures/zone_report/README.md.erb +42 -0
- data/lib/measures/zone_report/measure.rb +706 -0
- data/lib/measures/zone_report/measure.xml +67 -0
- data/lib/measures/zone_report/resources/report.html.in +342 -0
- data/lib/openstudio-calibration-measures.rb +36 -0
- data/lib/openstudio/calibration_measures.rb +37 -0
- data/lib/openstudio/calibration_measures/extension.rb +49 -0
- data/lib/openstudio/calibration_measures/version.rb +40 -0
- data/openstudio-calibration.gemspec +30 -0
- metadata +331 -0
@@ -0,0 +1,64 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
###### (Automatically generated documentation)
|
4
|
+
|
5
|
+
# Cooling Coils DX Two Speed Multiplier
|
6
|
+
|
7
|
+
## Description
|
8
|
+
This is a general purpose measure to calibrate DX Cooling Coils with a Multiplier.
|
9
|
+
|
10
|
+
## Modeler Description
|
11
|
+
It will be used for calibration of rated capacity and COP. User can choose between a Two coil or ALL the Coils.
|
12
|
+
|
13
|
+
## Measure Type
|
14
|
+
ModelMeasure
|
15
|
+
|
16
|
+
## Taxonomy
|
17
|
+
|
18
|
+
|
19
|
+
## Arguments
|
20
|
+
|
21
|
+
|
22
|
+
### Apply the Measure to a Two DX Cooling Coil, ALL the DX Cooling Coils or NONE.
|
23
|
+
|
24
|
+
**Name:** coil,
|
25
|
+
**Type:** Choice,
|
26
|
+
**Units:** ,
|
27
|
+
**Required:** true,
|
28
|
+
**Model Dependent:** false
|
29
|
+
|
30
|
+
### Multiplier for High Speed COP.
|
31
|
+
Multiplier for High Speed COP.
|
32
|
+
**Name:** rated_highspeed_cop_multiplier,
|
33
|
+
**Type:** Double,
|
34
|
+
**Units:** ,
|
35
|
+
**Required:** true,
|
36
|
+
**Model Dependent:** false
|
37
|
+
|
38
|
+
### Multiplier for Low Speed COP.
|
39
|
+
Multiplier for Low Speed COP.
|
40
|
+
**Name:** rated_lowspeed_cop_multiplier,
|
41
|
+
**Type:** Double,
|
42
|
+
**Units:** ,
|
43
|
+
**Required:** true,
|
44
|
+
**Model Dependent:** false
|
45
|
+
|
46
|
+
### Multiplier for High Speed rated cooling Capacity.
|
47
|
+
Multiplier for High Speed rated cooling Capacity.
|
48
|
+
**Name:** rated_highspeed_cooling_capacity_multiplier,
|
49
|
+
**Type:** Double,
|
50
|
+
**Units:** ,
|
51
|
+
**Required:** true,
|
52
|
+
**Model Dependent:** false
|
53
|
+
|
54
|
+
### Multiplier for Low Speed rated cooling Capacity.
|
55
|
+
Multiplier for Low Speed rated cooling Capacity.
|
56
|
+
**Name:** rated_lowspeed_cooling_capacity_multiplier,
|
57
|
+
**Type:** Double,
|
58
|
+
**Units:** ,
|
59
|
+
**Required:** true,
|
60
|
+
**Model Dependent:** false
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
|
@@ -0,0 +1,42 @@
|
|
1
|
+
<%#= README.md.erb is used to auto-generate README.md. %>
|
2
|
+
<%#= To manually maintain README.md throw away README.md.erb and manually edit README.md %>
|
3
|
+
###### (Automatically generated documentation)
|
4
|
+
|
5
|
+
# <%= name %>
|
6
|
+
|
7
|
+
## Description
|
8
|
+
<%= description %>
|
9
|
+
|
10
|
+
## Modeler Description
|
11
|
+
<%= modelerDescription %>
|
12
|
+
|
13
|
+
## Measure Type
|
14
|
+
<%= measureType %>
|
15
|
+
|
16
|
+
## Taxonomy
|
17
|
+
<%= taxonomy %>
|
18
|
+
|
19
|
+
## Arguments
|
20
|
+
|
21
|
+
<% arguments.each do |argument| %>
|
22
|
+
### <%= argument[:display_name] %>
|
23
|
+
<%= argument[:description] %>
|
24
|
+
**Name:** <%= argument[:name] %>,
|
25
|
+
**Type:** <%= argument[:type] %>,
|
26
|
+
**Units:** <%= argument[:units] %>,
|
27
|
+
**Required:** <%= argument[:required] %>,
|
28
|
+
**Model Dependent:** <%= argument[:model_dependent] %>
|
29
|
+
<% end %>
|
30
|
+
|
31
|
+
<% if arguments.size == 0 %>
|
32
|
+
<%= "This measure does not have any user arguments" %>
|
33
|
+
<% end %>
|
34
|
+
|
35
|
+
<% if outputs.size > 0 %>
|
36
|
+
## Outputs
|
37
|
+
<% output_names = [] %>
|
38
|
+
<% outputs.each do |output| %>
|
39
|
+
<% output_names << output[:display_name] %>
|
40
|
+
<% end %>
|
41
|
+
<%= output_names.join(", ") %>
|
42
|
+
<% end %>
|
@@ -0,0 +1,280 @@
|
|
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 CoilCoolingDXTwoSpeedMultiplier < OpenStudio::Measure::ModelMeasure
|
38
|
+
# human readable name
|
39
|
+
def name
|
40
|
+
'Cooling Coils DX Two Speed Multiplier'
|
41
|
+
end
|
42
|
+
|
43
|
+
# human readable description
|
44
|
+
def description
|
45
|
+
'This is a general purpose measure to calibrate DX Cooling Coils with a Multiplier.'
|
46
|
+
end
|
47
|
+
|
48
|
+
# human readable description of modeling approach
|
49
|
+
def modeler_description
|
50
|
+
'It will be used for calibration of rated capacity and COP. User can choose between a Two coil or ALL the Coils.'
|
51
|
+
end
|
52
|
+
|
53
|
+
def change_name(object, rated_highspeed_cop_multiplier, rated_highspeed_cooling_capacity_multiplier, rated_lowspeed_cop_multiplier, rated_lowspeed_cooling_capacity_multiplier)
|
54
|
+
nameString = object.name.get.to_s
|
55
|
+
if rated_highspeed_cop_multiplier != 1.0
|
56
|
+
nameString += " #{rated_highspeed_cop_multiplier.round(2)}x coilEff"
|
57
|
+
end
|
58
|
+
if rated_highspeed_cooling_capacity_multiplier != 1.0
|
59
|
+
nameString += " #{rated_highspeed_cooling_capacity_multiplier.round(2)}x coilCap"
|
60
|
+
end
|
61
|
+
if rated_lowspeed_cooling_capacity_multiplier != 1.0
|
62
|
+
nameString += " #{rated_lowspeed_cooling_capacity_multiplier.round(2)}x coilEff"
|
63
|
+
end
|
64
|
+
if rated_lowspeed_cop_multiplier != 1.0
|
65
|
+
nameString += " #{rated_lowspeed_cop_multiplier.round(2)}x coilCap"
|
66
|
+
end
|
67
|
+
object.setName(nameString)
|
68
|
+
end
|
69
|
+
|
70
|
+
def check_multiplier(runner, multiplier)
|
71
|
+
if multiplier < 0
|
72
|
+
runner.registerError("Multiplier #{multiplier} cannot be negative.")
|
73
|
+
false
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
# define the arguments that the user will input
|
78
|
+
def arguments(model)
|
79
|
+
args = OpenStudio::Measure::OSArgumentVector.new
|
80
|
+
|
81
|
+
# populate choice argument for constructions that are applied to surfaces in the model
|
82
|
+
loop_handles = OpenStudio::StringVector.new
|
83
|
+
loop_display_names = OpenStudio::StringVector.new
|
84
|
+
|
85
|
+
# putting air loops and names into hash
|
86
|
+
loop_args = model.getAirLoopHVACs
|
87
|
+
loop_args_hash = {}
|
88
|
+
loop_args.each do |loop_arg|
|
89
|
+
loop_args_hash[loop_arg.name.to_s] = loop_arg
|
90
|
+
end
|
91
|
+
|
92
|
+
# looping through sorted hash of air loops
|
93
|
+
loop_args_hash.sort.map do |_key, value|
|
94
|
+
show_loop = false
|
95
|
+
components = value.supplyComponents
|
96
|
+
components.each do |component|
|
97
|
+
next if component.to_CoilCoolingDXTwoSpeed.empty?
|
98
|
+
show_loop = true
|
99
|
+
loop_handles << component.handle.to_s
|
100
|
+
loop_display_names << component.name.to_s
|
101
|
+
end
|
102
|
+
|
103
|
+
# if loop as object of correct type then add to hash.
|
104
|
+
# if show_loop == true
|
105
|
+
# loop_handles << value.handle.to_s
|
106
|
+
# loop_display_names << key
|
107
|
+
# end
|
108
|
+
end
|
109
|
+
|
110
|
+
# add building to string vector with space type
|
111
|
+
building = model.getBuilding
|
112
|
+
loop_handles << building.handle.to_s
|
113
|
+
loop_display_names << '*All DX Cooling Coils*'
|
114
|
+
loop_handles << '0'
|
115
|
+
loop_display_names << '*None*'
|
116
|
+
|
117
|
+
# make a choice argument for space type
|
118
|
+
coil_arg = OpenStudio::Measure::OSArgument.makeChoiceArgument('coil', loop_handles, loop_display_names)
|
119
|
+
coil_arg.setDisplayName('Apply the Measure to a Two DX Cooling Coil, ALL the DX Cooling Coils or NONE.')
|
120
|
+
coil_arg.setDefaultValue('*All DX Cooling Coils*') # if no space type is chosen this will run on the entire building
|
121
|
+
args << coil_arg
|
122
|
+
|
123
|
+
# rated_highspeed_cop_multiplier
|
124
|
+
rated_highspeed_cop_multiplier = OpenStudio::Measure::OSArgument.makeDoubleArgument('rated_highspeed_cop_multiplier', true)
|
125
|
+
rated_highspeed_cop_multiplier.setDisplayName('Multiplier for High Speed COP.')
|
126
|
+
rated_highspeed_cop_multiplier.setDescription('Multiplier for High Speed COP.')
|
127
|
+
rated_highspeed_cop_multiplier.setDefaultValue(1.0)
|
128
|
+
args << rated_highspeed_cop_multiplier
|
129
|
+
|
130
|
+
# rated_lowspeed_cop_multiplier
|
131
|
+
rated_lowspeed_cop_multiplier = OpenStudio::Measure::OSArgument.makeDoubleArgument('rated_lowspeed_cop_multiplier', true)
|
132
|
+
rated_lowspeed_cop_multiplier.setDisplayName('Multiplier for Low Speed COP.')
|
133
|
+
rated_lowspeed_cop_multiplier.setDescription('Multiplier for Low Speed COP.')
|
134
|
+
rated_lowspeed_cop_multiplier.setDefaultValue(1.0)
|
135
|
+
args << rated_lowspeed_cop_multiplier
|
136
|
+
|
137
|
+
# rated_highspeed_cooling_capacity_multiplier
|
138
|
+
rated_highspeed_cooling_capacity_multiplier = OpenStudio::Measure::OSArgument.makeDoubleArgument('rated_highspeed_cooling_capacity_multiplier', true)
|
139
|
+
rated_highspeed_cooling_capacity_multiplier.setDisplayName('Multiplier for High Speed rated cooling Capacity.')
|
140
|
+
rated_highspeed_cooling_capacity_multiplier.setDescription('Multiplier for High Speed rated cooling Capacity.')
|
141
|
+
rated_highspeed_cooling_capacity_multiplier.setDefaultValue(1.0)
|
142
|
+
args << rated_highspeed_cooling_capacity_multiplier
|
143
|
+
|
144
|
+
# rated_lowspeed_cooling_capacity_multiplier
|
145
|
+
rated_lowspeed_cooling_capacity_multiplier = OpenStudio::Measure::OSArgument.makeDoubleArgument('rated_lowspeed_cooling_capacity_multiplier', true)
|
146
|
+
rated_lowspeed_cooling_capacity_multiplier.setDisplayName('Multiplier for Low Speed rated cooling Capacity.')
|
147
|
+
rated_lowspeed_cooling_capacity_multiplier.setDescription('Multiplier for Low Speed rated cooling Capacity.')
|
148
|
+
rated_lowspeed_cooling_capacity_multiplier.setDefaultValue(1.0)
|
149
|
+
args << rated_lowspeed_cooling_capacity_multiplier
|
150
|
+
|
151
|
+
args
|
152
|
+
end
|
153
|
+
|
154
|
+
# define what happens when the measure is run
|
155
|
+
def run(model, runner, user_arguments)
|
156
|
+
super(model, runner, user_arguments)
|
157
|
+
|
158
|
+
# use the built-in error checking
|
159
|
+
unless runner.validateUserArguments(arguments(model), user_arguments)
|
160
|
+
return false
|
161
|
+
end
|
162
|
+
|
163
|
+
# assign the user inputs to variables
|
164
|
+
coil_object = runner.getOptionalWorkspaceObjectChoiceValue('coil', user_arguments, model)
|
165
|
+
coil_handle = runner.getStringArgumentValue('coil', user_arguments)
|
166
|
+
|
167
|
+
rated_highspeed_cooling_capacity_multiplier = runner.getDoubleArgumentValue('rated_highspeed_cooling_capacity_multiplier', user_arguments)
|
168
|
+
check_multiplier(runner, rated_highspeed_cooling_capacity_multiplier)
|
169
|
+
rated_highspeed_cop_multiplier = runner.getDoubleArgumentValue('rated_highspeed_cop_multiplier', user_arguments)
|
170
|
+
check_multiplier(runner, rated_highspeed_cop_multiplier)
|
171
|
+
rated_lowspeed_cooling_capacity_multiplier = runner.getDoubleArgumentValue('rated_lowspeed_cooling_capacity_multiplier', user_arguments)
|
172
|
+
check_multiplier(runner, rated_lowspeed_cooling_capacity_multiplier)
|
173
|
+
rated_lowspeed_cop_multiplier = runner.getDoubleArgumentValue('rated_lowspeed_cop_multiplier', user_arguments)
|
174
|
+
check_multiplier(runner, rated_lowspeed_cop_multiplier)
|
175
|
+
# find objects to change
|
176
|
+
coils = []
|
177
|
+
building = model.getBuilding
|
178
|
+
building_handle = building.handle.to_s
|
179
|
+
runner.registerInfo("coil_handle: #{coil_handle}")
|
180
|
+
# setup coils
|
181
|
+
if coil_handle == building_handle
|
182
|
+
# Use ALL coils
|
183
|
+
runner.registerInfo('Applying change to ALL Coils')
|
184
|
+
loops = model.getAirLoopHVACs
|
185
|
+
# loop through air loops
|
186
|
+
loops.each do |loop|
|
187
|
+
supply_components = loop.supplyComponents
|
188
|
+
# find coils on loops
|
189
|
+
supply_components.each do |supply_component|
|
190
|
+
unless supply_component.to_CoilCoolingDXTwoSpeed.empty?
|
191
|
+
coils << supply_component.to_CoilCoolingDXTwoSpeed.get
|
192
|
+
end
|
193
|
+
end
|
194
|
+
end
|
195
|
+
elsif coil_handle == 0.to_s
|
196
|
+
# coils set to NONE so do nothing
|
197
|
+
runner.registerInfo('Applying change to NONE Coils')
|
198
|
+
elsif !coil_handle.empty?
|
199
|
+
# Two coil handle found, check if object is good
|
200
|
+
if !coil_object.get.to_CoilCoolingDXTwoSpeed.empty?
|
201
|
+
runner.registerInfo("Applying change to #{coil_object.get.name} coil")
|
202
|
+
coils << coil_object.get.to_CoilCoolingDXTwoSpeed.get
|
203
|
+
else
|
204
|
+
runner.registerError("coil with handle #{coil_handle} could not be found.")
|
205
|
+
end
|
206
|
+
else
|
207
|
+
runner.registerError('coil handle is empty.')
|
208
|
+
return false
|
209
|
+
end
|
210
|
+
|
211
|
+
# report initial condition of model
|
212
|
+
runner.registerInitialCondition("Coils to change: #{coils.size}")
|
213
|
+
runner.registerInfo("Coils to change: #{coils.size}")
|
214
|
+
altered_coils = []
|
215
|
+
altered_capacity = []
|
216
|
+
altered_coilefficiency = []
|
217
|
+
# loop through coils
|
218
|
+
coils.each do |coil|
|
219
|
+
altered_coil = false
|
220
|
+
# rated_highspeed_cooling_capacity_multiplier
|
221
|
+
if rated_highspeed_cooling_capacity_multiplier != 1.0
|
222
|
+
if coil.ratedHighSpeedTotalCoolingCapacity.is_initialized
|
223
|
+
runner.registerInfo("Applying ratedHighSpeedTotalCoolingCapacity #{rated_highspeed_cooling_capacity_multiplier}x multiplier to #{coil.name.get}.")
|
224
|
+
coil.setRatedHighSpeedTotalCoolingCapacity(coil.ratedHighSpeedTotalCoolingCapacity.get * rated_highspeed_cooling_capacity_multiplier)
|
225
|
+
altered_capacity << coil.handle.to_s
|
226
|
+
altered_coil = true
|
227
|
+
end
|
228
|
+
end
|
229
|
+
|
230
|
+
# rated_lowspeed_cooling_capacity_multiplier
|
231
|
+
if rated_lowspeed_cooling_capacity_multiplier != 1.0
|
232
|
+
if coil.ratedLowSpeedTotalCoolingCapacity.is_initialized
|
233
|
+
runner.registerInfo("Applying ratedLowSpeedTotalCoolingCapacity #{rated_lowspeed_cooling_capacity_multiplier}x multiplier to #{coil.name.get}.")
|
234
|
+
coil.setRatedLowSpeedTotalCoolingCapacity(coil.ratedLowSpeedTotalCoolingCapacity.get * rated_lowspeed_cooling_capacity_multiplier)
|
235
|
+
altered_capacity << coil.handle.to_s
|
236
|
+
altered_coil = true
|
237
|
+
end
|
238
|
+
end
|
239
|
+
|
240
|
+
# modify rated_highspeed_cop_multiplier
|
241
|
+
if rated_highspeed_cop_multiplier != 1.0
|
242
|
+
if coil.ratedHighSpeedCOP.is_initialized
|
243
|
+
runner.registerInfo("Applying ratedHighSpeedCOP #{rated_highspeed_cop_multiplier}x multiplier to #{coil.name.get}.")
|
244
|
+
coil.setRatedHighSpeedCOP(coil.ratedHighSpeedCOP.get * rated_highspeed_cop_multiplier)
|
245
|
+
altered_coilefficiency << coil.handle.to_s
|
246
|
+
altered_coil = true
|
247
|
+
end
|
248
|
+
end
|
249
|
+
|
250
|
+
# modify rated_lowspeed_cop_multiplier
|
251
|
+
if rated_lowspeed_cop_multiplier != 1.0
|
252
|
+
if coil.ratedLowSpeedCOP.is_initialized
|
253
|
+
runner.registerInfo("Applying ratedLowSpeedCOP #{rated_lowspeed_cop_multiplier}x multiplier to #{coil.name.get}.")
|
254
|
+
coil.setRatedLowSpeedCOP(coil.ratedLowSpeedCOP.get * rated_lowspeed_cop_multiplier)
|
255
|
+
altered_coilefficiency << coil.handle.to_s
|
256
|
+
altered_coil = true
|
257
|
+
end
|
258
|
+
end
|
259
|
+
|
260
|
+
next unless altered_coil
|
261
|
+
altered_coils << coil.handle.to_s
|
262
|
+
change_name(coil, rated_highspeed_cop_multiplier, rated_highspeed_cooling_capacity_multiplier, rated_lowspeed_cop_multiplier, rated_lowspeed_cooling_capacity_multiplier)
|
263
|
+
runner.registerInfo("coil name changed to: #{coil.name.get}")
|
264
|
+
end # end coil loop
|
265
|
+
|
266
|
+
# na if nothing in model to look at
|
267
|
+
if altered_coils.empty?
|
268
|
+
runner.registerAsNotApplicable('No Coils were altered in the model')
|
269
|
+
return true
|
270
|
+
end
|
271
|
+
|
272
|
+
# report final condition of model
|
273
|
+
runner.registerFinalCondition("#{altered_coils.size} Coils objects were altered.")
|
274
|
+
|
275
|
+
true
|
276
|
+
end
|
277
|
+
end
|
278
|
+
|
279
|
+
# register the measure to be used by the application
|
280
|
+
CoilCoolingDXTwoSpeedMultiplier.new.registerWithApplication
|
@@ -0,0 +1,111 @@
|
|
1
|
+
<measure>
|
2
|
+
<schema_version>3.0</schema_version>
|
3
|
+
<name>coil_cooling_dx_two_speed_multiplier</name>
|
4
|
+
<uid>fe4f36db-e296-4c9f-8199-19f2249384dd</uid>
|
5
|
+
<version_id>cc4e3174-a319-4a13-bdb3-e71846d193ee</version_id>
|
6
|
+
<version_modified>20200325T030944Z</version_modified>
|
7
|
+
<xml_checksum>8CBDDA1B</xml_checksum>
|
8
|
+
<class_name>CoilCoolingDXTwoSpeedMultiplier</class_name>
|
9
|
+
<display_name>Cooling Coils DX Two Speed Multiplier</display_name>
|
10
|
+
<description>This is a general purpose measure to calibrate DX Cooling Coils with a Multiplier.</description>
|
11
|
+
<modeler_description>It will be used for calibration of rated capacity and COP. User can choose between a Two coil or ALL the Coils.</modeler_description>
|
12
|
+
<arguments>
|
13
|
+
<argument>
|
14
|
+
<name>coil</name>
|
15
|
+
<display_name>Apply the Measure to a Two DX Cooling Coil, ALL the DX Cooling Coils or NONE.</display_name>
|
16
|
+
<type>Choice</type>
|
17
|
+
<required>true</required>
|
18
|
+
<model_dependent>false</model_dependent>
|
19
|
+
<default_value>*All DX Cooling Coils*</default_value>
|
20
|
+
<choices>
|
21
|
+
<choice>
|
22
|
+
<value>{33c24c6d-c636-408c-9ca1-83849dbfdfe2}</value>
|
23
|
+
<display_name>*All DX Cooling Coils*</display_name>
|
24
|
+
</choice>
|
25
|
+
<choice>
|
26
|
+
<value>0</value>
|
27
|
+
<display_name>*None*</display_name>
|
28
|
+
</choice>
|
29
|
+
</choices>
|
30
|
+
</argument>
|
31
|
+
<argument>
|
32
|
+
<name>rated_highspeed_cop_multiplier</name>
|
33
|
+
<display_name>Multiplier for High Speed COP.</display_name>
|
34
|
+
<description>Multiplier for High Speed COP.</description>
|
35
|
+
<type>Double</type>
|
36
|
+
<required>true</required>
|
37
|
+
<model_dependent>false</model_dependent>
|
38
|
+
<default_value>1</default_value>
|
39
|
+
</argument>
|
40
|
+
<argument>
|
41
|
+
<name>rated_lowspeed_cop_multiplier</name>
|
42
|
+
<display_name>Multiplier for Low Speed COP.</display_name>
|
43
|
+
<description>Multiplier for Low Speed COP.</description>
|
44
|
+
<type>Double</type>
|
45
|
+
<required>true</required>
|
46
|
+
<model_dependent>false</model_dependent>
|
47
|
+
<default_value>1</default_value>
|
48
|
+
</argument>
|
49
|
+
<argument>
|
50
|
+
<name>rated_highspeed_cooling_capacity_multiplier</name>
|
51
|
+
<display_name>Multiplier for High Speed rated cooling Capacity.</display_name>
|
52
|
+
<description>Multiplier for High Speed rated cooling Capacity.</description>
|
53
|
+
<type>Double</type>
|
54
|
+
<required>true</required>
|
55
|
+
<model_dependent>false</model_dependent>
|
56
|
+
<default_value>1</default_value>
|
57
|
+
</argument>
|
58
|
+
<argument>
|
59
|
+
<name>rated_lowspeed_cooling_capacity_multiplier</name>
|
60
|
+
<display_name>Multiplier for Low Speed rated cooling Capacity.</display_name>
|
61
|
+
<description>Multiplier for Low Speed rated cooling Capacity.</description>
|
62
|
+
<type>Double</type>
|
63
|
+
<required>true</required>
|
64
|
+
<model_dependent>false</model_dependent>
|
65
|
+
<default_value>1</default_value>
|
66
|
+
</argument>
|
67
|
+
</arguments>
|
68
|
+
<outputs/>
|
69
|
+
<provenances/>
|
70
|
+
<tags>
|
71
|
+
<tag>HVAC.Cooling</tag>
|
72
|
+
</tags>
|
73
|
+
<attributes>
|
74
|
+
<attribute>
|
75
|
+
<name>Measure Type</name>
|
76
|
+
<value>ModelMeasure</value>
|
77
|
+
<datatype>string</datatype>
|
78
|
+
</attribute>
|
79
|
+
</attributes>
|
80
|
+
<files>
|
81
|
+
<file>
|
82
|
+
<filename>LICENSE.md</filename>
|
83
|
+
<filetype>md</filetype>
|
84
|
+
<usage_type>license</usage_type>
|
85
|
+
<checksum>E0468DD6</checksum>
|
86
|
+
</file>
|
87
|
+
<file>
|
88
|
+
<filename>README.md.erb</filename>
|
89
|
+
<filetype>erb</filetype>
|
90
|
+
<usage_type>readmeerb</usage_type>
|
91
|
+
<checksum>703C9964</checksum>
|
92
|
+
</file>
|
93
|
+
<file>
|
94
|
+
<filename>README.md</filename>
|
95
|
+
<filetype>md</filetype>
|
96
|
+
<usage_type>readme</usage_type>
|
97
|
+
<checksum>59139ABC</checksum>
|
98
|
+
</file>
|
99
|
+
<file>
|
100
|
+
<version>
|
101
|
+
<software_program>OpenStudio</software_program>
|
102
|
+
<identifier>2.1.0</identifier>
|
103
|
+
<min_compatible>2.1.0</min_compatible>
|
104
|
+
</version>
|
105
|
+
<filename>measure.rb</filename>
|
106
|
+
<filetype>rb</filetype>
|
107
|
+
<usage_type>script</usage_type>
|
108
|
+
<checksum>01527D87</checksum>
|
109
|
+
</file>
|
110
|
+
</files>
|
111
|
+
</measure>
|