openstudio-calibration 0.9.0 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile +1 -1
- data/Jenkinsfile +1 -1
- data/Rakefile +3 -0
- data/lib/measures/AddMonthlyJSONUtilityData/measure.rb +3 -3
- data/lib/measures/AddMonthlyJSONUtilityData/measure.xml +3 -3
- data/lib/measures/AddMonthlyUtilityData/measure.xml +8 -8
- data/lib/measures/CalibrationReports/measure.rb +1 -3
- data/lib/measures/CalibrationReports/measure.xml +4 -4
- data/lib/measures/CalibrationReportsEnhanced/measure.rb +21 -22
- data/lib/measures/CalibrationReportsEnhanced/measure.xml +4 -4
- data/lib/measures/CoilCoolingDXSingleSpeedMultiplier/measure.rb +12 -12
- data/lib/measures/CoilCoolingDXSingleSpeedMultiplier/measure.xml +5 -5
- data/lib/measures/CoilCoolingDXSingleSpeedPercentChange/measure.rb +12 -12
- data/lib/measures/CoilCoolingDXSingleSpeedPercentChange/measure.xml +5 -5
- data/lib/measures/CoilCoolingDXTwoSpeedMultiplier/measure.rb +21 -23
- data/lib/measures/CoilCoolingDXTwoSpeedMultiplier/measure.xml +5 -5
- data/lib/measures/CoilCoolingDXTwoSpeedPercentChange/measure.rb +21 -23
- data/lib/measures/CoilCoolingDXTwoSpeedPercentChange/measure.xml +5 -5
- data/lib/measures/CoilCoolingWaterMultiplier/measure.rb +33 -43
- data/lib/measures/CoilCoolingWaterMultiplier/measure.xml +5 -5
- data/lib/measures/CoilCoolingWaterPercentChange/measure.rb +33 -43
- data/lib/measures/CoilCoolingWaterPercentChange/measure.xml +5 -5
- data/lib/measures/CoilHeatingElectricMultiplier/measure.rb +8 -8
- data/lib/measures/CoilHeatingElectricMultiplier/measure.xml +5 -5
- data/lib/measures/CoilHeatingElectricPercentChange/measure.rb +8 -8
- data/lib/measures/CoilHeatingElectricPercentChange/measure.xml +5 -5
- data/lib/measures/CoilHeatingGasMultiplier/measure.rb +8 -8
- data/lib/measures/CoilHeatingGasMultiplier/measure.xml +5 -5
- data/lib/measures/CoilHeatingGasPercentChange/measure.rb +8 -8
- data/lib/measures/CoilHeatingGasPercentChange/measure.xml +5 -5
- data/lib/measures/CoilHeatingWaterMultiplier/measure.rb +13 -15
- data/lib/measures/CoilHeatingWaterMultiplier/measure.xml +5 -5
- data/lib/measures/CoilHeatingWaterPercentChange/measure.rb +13 -15
- data/lib/measures/CoilHeatingWaterPercentChange/measure.xml +5 -5
- data/lib/measures/ConstructionLayerZeroMaterialProperties/measure.rb +4 -4
- data/lib/measures/ConstructionLayerZeroMaterialProperties/measure.xml +3 -3
- data/lib/measures/ExteriorWallThermalPropertiesMultiplier/measure.rb +8 -5
- data/lib/measures/ExteriorWallThermalPropertiesMultiplier/measure.xml +9 -9
- data/lib/measures/ExteriorWallThermalPropertiesPercentChange/measure.rb +8 -5
- data/lib/measures/ExteriorWallThermalPropertiesPercentChange/measure.xml +9 -9
- data/lib/measures/FansMultiplier/measure.rb +8 -8
- data/lib/measures/FansMultiplier/measure.xml +5 -5
- data/lib/measures/FansPercentChange/measure.rb +8 -8
- data/lib/measures/FansPercentChange/measure.xml +5 -5
- data/lib/measures/GeneralCalibrationMeasureMultiplier/measure.rb +2 -2
- data/lib/measures/GeneralCalibrationMeasureMultiplier/measure.xml +7 -7
- data/lib/measures/GeneralCalibrationMeasurePercentChange/measure.rb +2 -2
- data/lib/measures/GeneralCalibrationMeasurePercentChange/measure.xml +7 -7
- data/lib/measures/HardSizeHvac/measure.rb +2 -4
- data/lib/measures/HardSizeHvac/measure.xml +4 -4
- data/lib/measures/RValueOfInsulationForConstructionMultiplier/measure.rb +7 -9
- data/lib/measures/RValueOfInsulationForConstructionMultiplier/measure.xml +3 -3
- data/lib/measures/RValueOfInsulationForConstructionPercentageChange/measure.rb +7 -9
- data/lib/measures/RValueOfInsulationForConstructionPercentageChange/measure.xml +3 -3
- data/lib/measures/RoofThermalPropertiesMultiplier/measure.rb +8 -5
- data/lib/measures/RoofThermalPropertiesMultiplier/measure.xml +9 -9
- data/lib/measures/RoofThermalPropertiesPercentChange/measure.rb +8 -5
- data/lib/measures/RoofThermalPropertiesPercentChange/measure.xml +9 -9
- data/lib/measures/TimeseriesObjectiveFunction/measure.rb +26 -23
- data/lib/measures/TimeseriesObjectiveFunction/measure.xml +10 -15
- data/lib/measures/TimeseriesObjectiveFunction/resources/report.html.erb +3 -0
- data/lib/measures/TimeseriesPlot/measure.rb +1 -3
- data/lib/measures/TimeseriesPlot/measure.xml +13 -13
- data/lib/measures/TimeseriesPlot/resources/report.html.erb +3 -0
- data/lib/measures/WaterHeaterMixedMultiplier/measure.rb +17 -22
- data/lib/measures/WaterHeaterMixedMultiplier/measure.xml +5 -5
- data/lib/measures/WaterHeaterMixedPercentChange/measure.rb +17 -22
- data/lib/measures/WaterHeaterMixedPercentChange/measure.xml +5 -5
- data/lib/measures/inspect_and_edit_parametric_schedules/measure.rb +13 -11
- data/lib/measures/inspect_and_edit_parametric_schedules/measure.xml +29 -29
- data/lib/measures/shift_hours_of_operation/measure.rb +31 -29
- data/lib/measures/shift_hours_of_operation/measure.xml +51 -37
- data/lib/openstudio/calibration/version.rb +1 -1
- data/openstudio-calibration.gemspec +13 -6
- metadata +69 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a41048af94db9348e86b3b3a12055d23e173cfff4dfd473752c577c7e05ce3c
|
4
|
+
data.tar.gz: ecf5caa0e04b4b483011452b4228ab742f96958da9bbfca34143fc1a7e914007
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7cb415a39e6372181e06da99fd1983d180a91e8bd0e8bc148ab2beca66ed967e8ff8140fdb5e0113d41102d17660e11a5eb491290fd6c58daa25116fba71b0fd
|
7
|
+
data.tar.gz: a36ca16622792d53c4b63a5d89d0c872441b0d2120cec92a30495efde1cdce52555604938c46c760bd201a97eb65b8f07afb6b74fe64311fb78586620087e7c7
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# OpenStudio Calibration Measures Gem
|
2
2
|
|
3
|
+
## Version 0.10.0
|
4
|
+
* Support for OpenStudio 3.8 (upgrade to standards gem 0.6.0, extension gem 0.8.0)
|
5
|
+
* Support Ruby 3.2.2
|
6
|
+
|
3
7
|
## Version 0.9.0
|
4
8
|
* Updating dependencies and licenses for OpenStudio 3.7 (upgrade to standards gem 0.5.0, extension gem 0.7.0)
|
5
9
|
* Fixed [#54]( https://github.com/NREL/openstudio-calibration-gem/issues/54 ), OS API changes break some measures
|
data/Gemfile
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
source 'http://rubygems.org'
|
2
2
|
|
3
|
+
# Specify your gem's dependencies in openstudio-model-articulation.gemspec
|
3
4
|
gemspec
|
4
5
|
|
5
6
|
# Local gems are useful when developing and integrating the various dependencies.
|
@@ -10,7 +11,6 @@ gemspec
|
|
10
11
|
# checkout the latest version (develop) from github.
|
11
12
|
allow_local = ENV['FAVOR_LOCAL_GEMS']
|
12
13
|
|
13
|
-
|
14
14
|
if allow_local && File.exist?('../OpenStudio-extension-gem')
|
15
15
|
gem 'openstudio-extension', path: '../OpenStudio-extension-gem'
|
16
16
|
elsif allow_local
|
data/Jenkinsfile
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
//Jenkins pipelines are stored in shared libraries. Please see: https://github.com/NREL/cbci_jenkins_libs
|
2
2
|
|
3
|
-
@Library('cbci_shared_libs') _
|
3
|
+
@Library('cbci_shared_libs@developExtension') _
|
4
4
|
|
5
5
|
// Build for PR to develop branch only.
|
6
6
|
if ((env.CHANGE_ID) && (env.CHANGE_TARGET) ) { // check if set
|
data/Rakefile
CHANGED
@@ -14,6 +14,9 @@ require 'openstudio/calibration'
|
|
14
14
|
rake_task = OpenStudio::Extension::RakeTask.new
|
15
15
|
rake_task.set_extension_class(OpenStudio::Calibration::Extension, 'nrel/openstudio-calibration-gem')
|
16
16
|
|
17
|
+
require 'rubocop/rake_task'
|
18
|
+
RuboCop::RakeTask.new
|
19
|
+
|
17
20
|
require 'openstudio_measure_tester/rake_task'
|
18
21
|
OpenStudioMeasureTester::RakeTask.new
|
19
22
|
|
@@ -121,7 +121,7 @@ class AddMonthlyJSONUtilityData < OpenStudio::Measure::ModelMeasure
|
|
121
121
|
args << set_runperiod
|
122
122
|
|
123
123
|
args
|
124
|
-
end
|
124
|
+
end
|
125
125
|
|
126
126
|
# define what happens when the measure is run
|
127
127
|
def run(model, runner, user_arguments)
|
@@ -243,8 +243,8 @@ class AddMonthlyJSONUtilityData < OpenStudio::Measure::ModelMeasure
|
|
243
243
|
runner.registerFinalCondition('Utility bill data has been added to the model.')
|
244
244
|
|
245
245
|
true
|
246
|
-
end
|
247
|
-
end
|
246
|
+
end
|
247
|
+
end
|
248
248
|
|
249
249
|
# this allows the measure to be use by the application
|
250
250
|
AddMonthlyJSONUtilityData.new.registerWithApplication
|
@@ -3,8 +3,8 @@
|
|
3
3
|
<schema_version>3.0</schema_version>
|
4
4
|
<name>add_monthly_json_utility_data</name>
|
5
5
|
<uid>6da969e0-4256-49bf-9607-26504cc3d423</uid>
|
6
|
-
<version_id>
|
7
|
-
<version_modified>
|
6
|
+
<version_id>6a42029d-22ef-4b35-8a12-c9dfbfbe9724</version_id>
|
7
|
+
<version_modified>20240428T231344Z</version_modified>
|
8
8
|
<xml_checksum>057E8D9D</xml_checksum>
|
9
9
|
<class_name>AddMonthlyJSONUtilityData</class_name>
|
10
10
|
<display_name>Add Monthly JSON Utility Data</display_name>
|
@@ -158,7 +158,7 @@
|
|
158
158
|
<filename>measure.rb</filename>
|
159
159
|
<filetype>rb</filetype>
|
160
160
|
<usage_type>script</usage_type>
|
161
|
-
<checksum>
|
161
|
+
<checksum>CB47CCE7</checksum>
|
162
162
|
</file>
|
163
163
|
</files>
|
164
164
|
</measure>
|
@@ -3,8 +3,8 @@
|
|
3
3
|
<schema_version>3.0</schema_version>
|
4
4
|
<name>add_monthly_utility_data</name>
|
5
5
|
<uid>6da969e0-4256-49bf-9607-26504cc3d421</uid>
|
6
|
-
<version_id>
|
7
|
-
<version_modified>
|
6
|
+
<version_id>72fea19f-66f5-4795-b290-5314e9c67982</version_id>
|
7
|
+
<version_modified>20240428T231345Z</version_modified>
|
8
8
|
<xml_checksum>9064277D</xml_checksum>
|
9
9
|
<class_name>AddMonthlyUtilityData</class_name>
|
10
10
|
<display_name>AddMonthlyUtilityData</display_name>
|
@@ -97,12 +97,6 @@
|
|
97
97
|
<usage_type>license</usage_type>
|
98
98
|
<checksum>BFFB1AA6</checksum>
|
99
99
|
</file>
|
100
|
-
<file>
|
101
|
-
<filename>AddMonthlyUtilityData_Test.rb</filename>
|
102
|
-
<filetype>rb</filetype>
|
103
|
-
<usage_type>test</usage_type>
|
104
|
-
<checksum>24648035</checksum>
|
105
|
-
</file>
|
106
100
|
<file>
|
107
101
|
<version>
|
108
102
|
<software_program>OpenStudio</software_program>
|
@@ -114,5 +108,11 @@
|
|
114
108
|
<usage_type>script</usage_type>
|
115
109
|
<checksum>C25C9D2C</checksum>
|
116
110
|
</file>
|
111
|
+
<file>
|
112
|
+
<filename>AddMonthlyUtilityData_Test.rb</filename>
|
113
|
+
<filetype>rb</filetype>
|
114
|
+
<usage_type>test</usage_type>
|
115
|
+
<checksum>A7E682C1</checksum>
|
116
|
+
</file>
|
117
117
|
</files>
|
118
118
|
</measure>
|
@@ -15,9 +15,7 @@ class CalibrationReports < OpenStudio::Measure::ReportingMeasure
|
|
15
15
|
|
16
16
|
# define the arguments that the user will input
|
17
17
|
def arguments
|
18
|
-
|
19
|
-
|
20
|
-
args
|
18
|
+
OpenStudio::Measure::OSArgumentVector.new
|
21
19
|
end
|
22
20
|
|
23
21
|
# define what happens when the measure is run
|
@@ -4,8 +4,8 @@
|
|
4
4
|
<error>wrong number of arguments (given 1, expected 0)</error>
|
5
5
|
<name>calibration_reports</name>
|
6
6
|
<uid>2baede0a-65f3-47ec-b5f6-9c21d0f91aff</uid>
|
7
|
-
<version_id>
|
8
|
-
<version_modified>
|
7
|
+
<version_id>718d3fe7-727b-4e36-9d74-b67a53571726</version_id>
|
8
|
+
<version_modified>20240428T231349Z</version_modified>
|
9
9
|
<xml_checksum>2C8A3EEF</xml_checksum>
|
10
10
|
<class_name>CalibrationReports</class_name>
|
11
11
|
<display_name>Calibration Reports</display_name>
|
@@ -87,13 +87,13 @@
|
|
87
87
|
<filename>measure.rb</filename>
|
88
88
|
<filetype>rb</filetype>
|
89
89
|
<usage_type>script</usage_type>
|
90
|
-
<checksum>
|
90
|
+
<checksum>2647EEDB</checksum>
|
91
91
|
</file>
|
92
92
|
<file>
|
93
93
|
<filename>CalibrationReports_Test.rb</filename>
|
94
94
|
<filetype>rb</filetype>
|
95
95
|
<usage_type>test</usage_type>
|
96
|
-
<checksum>
|
96
|
+
<checksum>125E14F8</checksum>
|
97
97
|
</file>
|
98
98
|
</files>
|
99
99
|
</measure>
|
@@ -65,7 +65,7 @@ class CalibrationReportsEnhanced < OpenStudio::Measure::ReportingMeasure
|
|
65
65
|
args << fuel_oil_cvrmse_limit
|
66
66
|
|
67
67
|
args
|
68
|
-
end
|
68
|
+
end
|
69
69
|
|
70
70
|
def outputs
|
71
71
|
result = OpenStudio::Measure::OSOutputVector.new
|
@@ -559,6 +559,7 @@ class CalibrationReportsEnhanced < OpenStudio::Measure::ReportingMeasure
|
|
559
559
|
end
|
560
560
|
|
561
561
|
next unless os_version >= min_version_feature1
|
562
|
+
|
562
563
|
if actual_consumption > 0.0
|
563
564
|
runner.registerValue("#{utility_bill_fuel_type}_consumption_actual",
|
564
565
|
actual_consumption,
|
@@ -579,6 +580,7 @@ class CalibrationReportsEnhanced < OpenStudio::Measure::ReportingMeasure
|
|
579
580
|
'%')
|
580
581
|
end
|
581
582
|
next unless !actual_consumption_values.empty? && (actual_consumption_values.size == modeled_consumption_values.size)
|
583
|
+
|
582
584
|
sum_squares = 0.0
|
583
585
|
actual_consumption_values.each_index do |i|
|
584
586
|
sum_squares += (actual_consumption_values[i] - modeled_consumption_values[i])**2
|
@@ -591,26 +593,23 @@ class CalibrationReportsEnhanced < OpenStudio::Measure::ReportingMeasure
|
|
591
593
|
actual_consumption_values.size)
|
592
594
|
runner.registerValue("#{utility_bill_fuel_type}_rmse",
|
593
595
|
rmse,
|
594
|
-
utilityBill.consumptionUnit
|
596
|
+
"#{utilityBill.consumptionUnit}^0.5")
|
595
597
|
end
|
596
598
|
|
597
|
-
if os_version >= min_version_feature1
|
598
|
-
|
599
|
-
|
600
|
-
all_actual_consumption_values
|
601
|
-
sum_squares += (all_actual_consumption_values[i] - all_modeled_consumption_values[i])**2
|
602
|
-
end
|
603
|
-
rmse = Math.sqrt(sum_squares / all_actual_consumption_values.size)
|
604
|
-
runner.registerValue('total_sum_of_squares',
|
605
|
-
sum_squares,
|
606
|
-
'kBtu')
|
607
|
-
runner.registerValue('total_dof',
|
608
|
-
all_actual_consumption_values.size)
|
609
|
-
runner.registerValue('total_rmse',
|
610
|
-
rmse,
|
611
|
-
'kBtu^0.5')
|
599
|
+
if os_version >= min_version_feature1 && (!all_actual_consumption_values.empty? && (all_actual_consumption_values.size == all_modeled_consumption_values.size))
|
600
|
+
sum_squares = 0.0
|
601
|
+
all_actual_consumption_values.each_index do |i|
|
602
|
+
sum_squares += (all_actual_consumption_values[i] - all_modeled_consumption_values[i])**2
|
612
603
|
end
|
613
|
-
|
604
|
+
rmse = Math.sqrt(sum_squares / all_actual_consumption_values.size)
|
605
|
+
runner.registerValue('total_sum_of_squares',
|
606
|
+
sum_squares,
|
607
|
+
'kBtu')
|
608
|
+
runner.registerValue('total_dof',
|
609
|
+
all_actual_consumption_values.size)
|
610
|
+
runner.registerValue('total_rmse',
|
611
|
+
rmse,
|
612
|
+
'kBtu^0.5')
|
614
613
|
end
|
615
614
|
|
616
615
|
elecStartDate = elecStartDate[0..-2]
|
@@ -728,7 +727,7 @@ class CalibrationReportsEnhanced < OpenStudio::Measure::ReportingMeasure
|
|
728
727
|
else
|
729
728
|
(cvrmse <= gas_cvrmse_limit)
|
730
729
|
end
|
731
|
-
result_hash[match_data[1]
|
730
|
+
result_hash["#{match_data[1]}_cvrmse_within_limit"] = within_limit
|
732
731
|
within_limit_i = if within_limit
|
733
732
|
1
|
734
733
|
else
|
@@ -747,7 +746,7 @@ class CalibrationReportsEnhanced < OpenStudio::Measure::ReportingMeasure
|
|
747
746
|
else
|
748
747
|
(nmbe.abs <= gas_nmbe_limit)
|
749
748
|
end
|
750
|
-
result_hash[match_data[1]
|
749
|
+
result_hash["#{match_data[1]}_nmbe_within_limit"] = within_limit
|
751
750
|
within_limit_i = if within_limit
|
752
751
|
1
|
753
752
|
else
|
@@ -761,8 +760,8 @@ class CalibrationReportsEnhanced < OpenStudio::Measure::ReportingMeasure
|
|
761
760
|
end
|
762
761
|
|
763
762
|
true
|
764
|
-
end
|
765
|
-
end
|
763
|
+
end
|
764
|
+
end
|
766
765
|
|
767
766
|
# this allows the measure to be use by the application
|
768
767
|
CalibrationReportsEnhanced.new.registerWithApplication
|
@@ -3,8 +3,8 @@
|
|
3
3
|
<schema_version>3.0</schema_version>
|
4
4
|
<name>calibration_reports_enhanced</name>
|
5
5
|
<uid>e6642d40-7366-4647-8724-53a37991d668</uid>
|
6
|
-
<version_id>
|
7
|
-
<version_modified>
|
6
|
+
<version_id>7cda1e46-566f-46e5-b89c-5bbc797fdda8</version_id>
|
7
|
+
<version_modified>20240428T231344Z</version_modified>
|
8
8
|
<xml_checksum>2C8A3EEF</xml_checksum>
|
9
9
|
<class_name>CalibrationReportsEnhanced</class_name>
|
10
10
|
<display_name>Calibration Reports Enhanced</display_name>
|
@@ -356,7 +356,7 @@
|
|
356
356
|
<filename>CalibrationReportsEnhanced_Test.rb</filename>
|
357
357
|
<filetype>rb</filetype>
|
358
358
|
<usage_type>test</usage_type>
|
359
|
-
<checksum>
|
359
|
+
<checksum>97772676</checksum>
|
360
360
|
</file>
|
361
361
|
<file>
|
362
362
|
<version>
|
@@ -367,7 +367,7 @@
|
|
367
367
|
<filename>measure.rb</filename>
|
368
368
|
<filetype>rb</filetype>
|
369
369
|
<usage_type>script</usage_type>
|
370
|
-
<checksum>
|
370
|
+
<checksum>AD9FA578</checksum>
|
371
371
|
</file>
|
372
372
|
</files>
|
373
373
|
</measure>
|
@@ -59,6 +59,7 @@ class CoilCoolingDXSingleSpeedMultiplier < OpenStudio::Measure::ModelMeasure
|
|
59
59
|
components = value.supplyComponents
|
60
60
|
components.each do |component|
|
61
61
|
next if component.to_CoilCoolingDXSingleSpeed.empty?
|
62
|
+
|
62
63
|
show_loop = true
|
63
64
|
loop_handles << component.handle.to_s
|
64
65
|
loop_display_names << component.name.to_s
|
@@ -165,28 +166,27 @@ class CoilCoolingDXSingleSpeedMultiplier < OpenStudio::Measure::ModelMeasure
|
|
165
166
|
coils.each do |coil|
|
166
167
|
altered_coil = false
|
167
168
|
# rated_cooling_capacity_multiplier
|
168
|
-
if rated_cooling_capacity_multiplier != 1.0
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
altered_coil = true
|
174
|
-
end
|
169
|
+
if rated_cooling_capacity_multiplier != 1.0 && coil.ratedTotalCoolingCapacity.is_initialized
|
170
|
+
runner.registerInfo("Applying ratedTotalCoolingCapacity #{rated_cooling_capacity_multiplier}x multiplier to #{coil.name.get}.")
|
171
|
+
coil.setRatedTotalCoolingCapacity(coil.ratedTotalCoolingCapacity.get * rated_cooling_capacity_multiplier)
|
172
|
+
altered_capacity << coil.handle.to_s
|
173
|
+
altered_coil = true
|
175
174
|
end
|
176
175
|
|
177
176
|
# modify rated_cop_multiplier
|
178
177
|
if rated_cop_multiplier != 1.0
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
178
|
+
runner.registerInfo("Applying ratedCOP #{rated_cop_multiplier}x multiplier to #{coil.name.get}.")
|
179
|
+
coil.setRatedCOP(coil.ratedCOP * rated_cop_multiplier)
|
180
|
+
altered_coilefficiency << coil.handle.to_s
|
181
|
+
altered_coil = true
|
183
182
|
end
|
184
183
|
|
185
184
|
next unless altered_coil
|
185
|
+
|
186
186
|
altered_coils << coil.handle.to_s
|
187
187
|
change_name(coil, rated_cop_multiplier, rated_cooling_capacity_multiplier)
|
188
188
|
runner.registerInfo("coil name changed to: #{coil.name.get}")
|
189
|
-
end
|
189
|
+
end
|
190
190
|
|
191
191
|
# na if nothing in model to look at
|
192
192
|
if altered_coils.empty?
|
@@ -3,8 +3,8 @@
|
|
3
3
|
<schema_version>3.0</schema_version>
|
4
4
|
<name>coil_cooling_dx_single_speed_multiplier</name>
|
5
5
|
<uid>97d0dbdf-6245-4cfd-8dfc-a6a5eb853b16</uid>
|
6
|
-
<version_id>
|
7
|
-
<version_modified>
|
6
|
+
<version_id>d0a60754-bd42-48ae-9cc7-1f6ccacc5433</version_id>
|
7
|
+
<version_modified>20240428T231348Z</version_modified>
|
8
8
|
<xml_checksum>8CBDDA1B</xml_checksum>
|
9
9
|
<class_name>CoilCoolingDXSingleSpeedMultiplier</class_name>
|
10
10
|
<display_name>Cooling Coils DX Single Speed Multiplier</display_name>
|
@@ -17,10 +17,10 @@
|
|
17
17
|
<type>Choice</type>
|
18
18
|
<required>true</required>
|
19
19
|
<model_dependent>false</model_dependent>
|
20
|
-
<default_value>{
|
20
|
+
<default_value>{a663ea08-96ab-465f-afba-721f4341eca3}</default_value>
|
21
21
|
<choices>
|
22
22
|
<choice>
|
23
|
-
<value>{
|
23
|
+
<value>{a663ea08-96ab-465f-afba-721f4341eca3}</value>
|
24
24
|
<display_name>*All DX Cooling Coils*</display_name>
|
25
25
|
</choice>
|
26
26
|
<choice>
|
@@ -88,7 +88,7 @@
|
|
88
88
|
<filename>measure.rb</filename>
|
89
89
|
<filetype>rb</filetype>
|
90
90
|
<usage_type>script</usage_type>
|
91
|
-
<checksum>
|
91
|
+
<checksum>0C375660</checksum>
|
92
92
|
</file>
|
93
93
|
</files>
|
94
94
|
</measure>
|
@@ -52,6 +52,7 @@ class CoilCoolingDXSingleSpeedPercentChange < OpenStudio::Measure::ModelMeasure
|
|
52
52
|
components = value.supplyComponents
|
53
53
|
components.each do |component|
|
54
54
|
next if component.to_CoilCoolingDXSingleSpeed.empty?
|
55
|
+
|
55
56
|
show_loop = true
|
56
57
|
loop_handles << component.handle.to_s
|
57
58
|
loop_display_names << component.name.to_s
|
@@ -156,28 +157,27 @@ class CoilCoolingDXSingleSpeedPercentChange < OpenStudio::Measure::ModelMeasure
|
|
156
157
|
coils.each do |coil|
|
157
158
|
altered_coil = false
|
158
159
|
# rated_cooling_capacity_perc_change
|
159
|
-
if rated_cooling_capacity_perc_change != 0.0
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
altered_coil = true
|
165
|
-
end
|
160
|
+
if rated_cooling_capacity_perc_change != 0.0 && coil.ratedTotalCoolingCapacity.is_initialized
|
161
|
+
runner.registerInfo("Applying ratedTotalCoolingCapacity #{rated_cooling_capacity_perc_change} Percent Change to #{coil.name.get}.")
|
162
|
+
coil.setRatedTotalCoolingCapacity(coil.ratedTotalCoolingCapacity.get + coil.ratedTotalCoolingCapacity.get * rated_cooling_capacity_perc_change * 0.01)
|
163
|
+
altered_capacity << coil.handle.to_s
|
164
|
+
altered_coil = true
|
166
165
|
end
|
167
166
|
|
168
167
|
# modify rated_cop_perc_change
|
169
168
|
if rated_cop_perc_change != 0.0
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
169
|
+
runner.registerInfo("Applying ratedCOP #{rated_cop_perc_change} Percent Change to #{coil.name.get}.")
|
170
|
+
coil.setRatedCOP(coil.ratedCOP + coil.ratedCOP * rated_cop_perc_change * 0.01)
|
171
|
+
altered_coilefficiency << coil.handle.to_s
|
172
|
+
altered_coil = true
|
174
173
|
end
|
175
174
|
|
176
175
|
next unless altered_coil
|
176
|
+
|
177
177
|
altered_coils << coil.handle.to_s
|
178
178
|
change_name(coil, rated_cop_perc_change, rated_cooling_capacity_perc_change)
|
179
179
|
runner.registerInfo("coil name changed to: #{coil.name.get}")
|
180
|
-
end
|
180
|
+
end
|
181
181
|
|
182
182
|
# na if nothing in model to look at
|
183
183
|
if altered_coils.empty?
|
@@ -3,8 +3,8 @@
|
|
3
3
|
<schema_version>3.0</schema_version>
|
4
4
|
<name>coil_cooling_dx_single_speed_percent_change</name>
|
5
5
|
<uid>97d0dbdf-6245-4cfd-8dfc-a6a5eb853b37</uid>
|
6
|
-
<version_id>
|
7
|
-
<version_modified>
|
6
|
+
<version_id>ddca5198-d1a1-4484-b664-7bf43c03cba3</version_id>
|
7
|
+
<version_modified>20240428T231344Z</version_modified>
|
8
8
|
<xml_checksum>8CBDDA1B</xml_checksum>
|
9
9
|
<class_name>CoilCoolingDXSingleSpeedPercentChange</class_name>
|
10
10
|
<display_name>Cooling Coils DX Single Speed Percent Change</display_name>
|
@@ -17,10 +17,10 @@
|
|
17
17
|
<type>Choice</type>
|
18
18
|
<required>true</required>
|
19
19
|
<model_dependent>false</model_dependent>
|
20
|
-
<default_value>{
|
20
|
+
<default_value>{b3bd6e6b-18c0-4637-a6a0-8980d7b32932}</default_value>
|
21
21
|
<choices>
|
22
22
|
<choice>
|
23
|
-
<value>{
|
23
|
+
<value>{b3bd6e6b-18c0-4637-a6a0-8980d7b32932}</value>
|
24
24
|
<display_name>*All DX Cooling Coils*</display_name>
|
25
25
|
</choice>
|
26
26
|
<choice>
|
@@ -88,7 +88,7 @@
|
|
88
88
|
<filename>measure.rb</filename>
|
89
89
|
<filetype>rb</filetype>
|
90
90
|
<usage_type>script</usage_type>
|
91
|
-
<checksum>
|
91
|
+
<checksum>76DB1539</checksum>
|
92
92
|
</file>
|
93
93
|
</files>
|
94
94
|
</measure>
|
@@ -65,6 +65,7 @@ class CoilCoolingDXTwoSpeedMultiplier < OpenStudio::Measure::ModelMeasure
|
|
65
65
|
components = value.supplyComponents
|
66
66
|
components.each do |component|
|
67
67
|
next if component.to_CoilCoolingDXTwoSpeed.empty?
|
68
|
+
|
68
69
|
show_loop = true
|
69
70
|
loop_handles << component.handle.to_s
|
70
71
|
loop_display_names << component.name.to_s
|
@@ -188,46 +189,43 @@ class CoilCoolingDXTwoSpeedMultiplier < OpenStudio::Measure::ModelMeasure
|
|
188
189
|
coils.each do |coil|
|
189
190
|
altered_coil = false
|
190
191
|
# rated_highspeed_cooling_capacity_multiplier
|
191
|
-
if rated_highspeed_cooling_capacity_multiplier != 1.0
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
altered_coil = true
|
197
|
-
end
|
192
|
+
if rated_highspeed_cooling_capacity_multiplier != 1.0 && coil.ratedHighSpeedTotalCoolingCapacity.is_initialized
|
193
|
+
runner.registerInfo("Applying ratedHighSpeedTotalCoolingCapacity #{rated_highspeed_cooling_capacity_multiplier}x multiplier to #{coil.name.get}.")
|
194
|
+
coil.setRatedHighSpeedTotalCoolingCapacity(coil.ratedHighSpeedTotalCoolingCapacity.get * rated_highspeed_cooling_capacity_multiplier)
|
195
|
+
altered_capacity << coil.handle.to_s
|
196
|
+
altered_coil = true
|
198
197
|
end
|
199
198
|
|
200
199
|
# rated_lowspeed_cooling_capacity_multiplier
|
201
|
-
if rated_lowspeed_cooling_capacity_multiplier != 1.0
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
altered_coil = true
|
207
|
-
end
|
200
|
+
if rated_lowspeed_cooling_capacity_multiplier != 1.0 && coil.ratedLowSpeedTotalCoolingCapacity.is_initialized
|
201
|
+
runner.registerInfo("Applying ratedLowSpeedTotalCoolingCapacity #{rated_lowspeed_cooling_capacity_multiplier}x multiplier to #{coil.name.get}.")
|
202
|
+
coil.setRatedLowSpeedTotalCoolingCapacity(coil.ratedLowSpeedTotalCoolingCapacity.get * rated_lowspeed_cooling_capacity_multiplier)
|
203
|
+
altered_capacity << coil.handle.to_s
|
204
|
+
altered_coil = true
|
208
205
|
end
|
209
206
|
|
210
207
|
# modify rated_highspeed_cop_multiplier
|
211
208
|
if rated_highspeed_cop_multiplier != 1.0
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
209
|
+
runner.registerInfo("Applying ratedHighSpeedCOP #{rated_highspeed_cop_multiplier}x multiplier to #{coil.name.get}.")
|
210
|
+
coil.setRatedHighSpeedCOP(coil.ratedHighSpeedCOP * rated_highspeed_cop_multiplier)
|
211
|
+
altered_coilefficiency << coil.handle.to_s
|
212
|
+
altered_coil = true
|
216
213
|
end
|
217
214
|
|
218
215
|
# modify rated_lowspeed_cop_multiplier
|
219
216
|
if rated_lowspeed_cop_multiplier != 1.0
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
217
|
+
runner.registerInfo("Applying ratedLowSpeedCOP #{rated_lowspeed_cop_multiplier}x multiplier to #{coil.name.get}.")
|
218
|
+
coil.setRatedLowSpeedCOP(coil.ratedLowSpeedCOP * rated_lowspeed_cop_multiplier)
|
219
|
+
altered_coilefficiency << coil.handle.to_s
|
220
|
+
altered_coil = true
|
224
221
|
end
|
225
222
|
|
226
223
|
next unless altered_coil
|
224
|
+
|
227
225
|
altered_coils << coil.handle.to_s
|
228
226
|
change_name(coil, rated_highspeed_cop_multiplier, rated_highspeed_cooling_capacity_multiplier, rated_lowspeed_cop_multiplier, rated_lowspeed_cooling_capacity_multiplier)
|
229
227
|
runner.registerInfo("coil name changed to: #{coil.name.get}")
|
230
|
-
end
|
228
|
+
end
|
231
229
|
|
232
230
|
# na if nothing in model to look at
|
233
231
|
if altered_coils.empty?
|
@@ -3,8 +3,8 @@
|
|
3
3
|
<schema_version>3.0</schema_version>
|
4
4
|
<name>coil_cooling_dx_two_speed_multiplier</name>
|
5
5
|
<uid>fe4f36db-e296-4c9f-8199-19f2249384dd</uid>
|
6
|
-
<version_id>
|
7
|
-
<version_modified>
|
6
|
+
<version_id>2598fa9c-5b97-4efc-a524-91fa9ace0b32</version_id>
|
7
|
+
<version_modified>20240428T231345Z</version_modified>
|
8
8
|
<xml_checksum>8CBDDA1B</xml_checksum>
|
9
9
|
<class_name>CoilCoolingDXTwoSpeedMultiplier</class_name>
|
10
10
|
<display_name>Cooling Coils DX Two Speed Multiplier</display_name>
|
@@ -17,10 +17,10 @@
|
|
17
17
|
<type>Choice</type>
|
18
18
|
<required>true</required>
|
19
19
|
<model_dependent>false</model_dependent>
|
20
|
-
<default_value>{
|
20
|
+
<default_value>{628948f3-3ab3-454e-966d-4b98e1d0d075}</default_value>
|
21
21
|
<choices>
|
22
22
|
<choice>
|
23
|
-
<value>{
|
23
|
+
<value>{628948f3-3ab3-454e-966d-4b98e1d0d075}</value>
|
24
24
|
<display_name>*All DX Cooling Coils*</display_name>
|
25
25
|
</choice>
|
26
26
|
<choice>
|
@@ -106,7 +106,7 @@
|
|
106
106
|
<filename>measure.rb</filename>
|
107
107
|
<filetype>rb</filetype>
|
108
108
|
<usage_type>script</usage_type>
|
109
|
-
<checksum>
|
109
|
+
<checksum>CCD99D0A</checksum>
|
110
110
|
</file>
|
111
111
|
</files>
|
112
112
|
</measure>
|