openstudio-calibration 0.9.0 → 0.11.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 +7 -0
- data/Gemfile +1 -1
- data/Jenkinsfile +1 -1
- data/LICENSE.md +1 -1
- data/README.md +2 -0
- data/Rakefile +3 -0
- data/lib/measures/AddMonthlyJSONUtilityData/LICENSE.md +1 -1
- data/lib/measures/AddMonthlyJSONUtilityData/measure.rb +3 -3
- data/lib/measures/AddMonthlyJSONUtilityData/measure.xml +12 -12
- data/lib/measures/AddMonthlyUtilityData/LICENSE.md +1 -1
- data/lib/measures/AddMonthlyUtilityData/measure.xml +29 -29
- data/lib/measures/CalibrationReports/LICENSE.md +1 -1
- data/lib/measures/CalibrationReports/README.md +2 -2
- data/lib/measures/CalibrationReports/measure.rb +1 -3
- data/lib/measures/CalibrationReports/measure.xml +41 -42
- data/lib/measures/CalibrationReportsEnhanced/LICENSE.md +1 -1
- data/lib/measures/CalibrationReportsEnhanced/measure.rb +21 -22
- data/lib/measures/CalibrationReportsEnhanced/measure.xml +41 -41
- data/lib/measures/CoilCoolingDXSingleSpeedMultiplier/LICENSE.md +1 -1
- data/lib/measures/CoilCoolingDXSingleSpeedMultiplier/measure.rb +12 -12
- data/lib/measures/CoilCoolingDXSingleSpeedMultiplier/measure.xml +14 -14
- data/lib/measures/CoilCoolingDXSingleSpeedPercentChange/LICENSE.md +1 -1
- data/lib/measures/CoilCoolingDXSingleSpeedPercentChange/measure.rb +12 -12
- data/lib/measures/CoilCoolingDXSingleSpeedPercentChange/measure.xml +14 -14
- data/lib/measures/CoilCoolingDXTwoSpeedMultiplier/LICENSE.md +1 -1
- data/lib/measures/CoilCoolingDXTwoSpeedMultiplier/measure.rb +21 -23
- data/lib/measures/CoilCoolingDXTwoSpeedMultiplier/measure.xml +14 -14
- data/lib/measures/CoilCoolingDXTwoSpeedPercentChange/LICENSE.md +1 -1
- data/lib/measures/CoilCoolingDXTwoSpeedPercentChange/measure.rb +21 -23
- data/lib/measures/CoilCoolingDXTwoSpeedPercentChange/measure.xml +14 -14
- data/lib/measures/CoilCoolingWaterMultiplier/LICENSE.md +1 -1
- data/lib/measures/CoilCoolingWaterMultiplier/measure.rb +33 -43
- data/lib/measures/CoilCoolingWaterMultiplier/measure.xml +14 -14
- data/lib/measures/CoilCoolingWaterPercentChange/LICENSE.md +1 -1
- data/lib/measures/CoilCoolingWaterPercentChange/measure.rb +33 -43
- data/lib/measures/CoilCoolingWaterPercentChange/measure.xml +14 -14
- data/lib/measures/CoilHeatingElectricMultiplier/LICENSE.md +1 -1
- data/lib/measures/CoilHeatingElectricMultiplier/measure.rb +8 -8
- data/lib/measures/CoilHeatingElectricMultiplier/measure.xml +14 -14
- data/lib/measures/CoilHeatingElectricPercentChange/LICENSE.md +1 -1
- data/lib/measures/CoilHeatingElectricPercentChange/measure.rb +8 -8
- data/lib/measures/CoilHeatingElectricPercentChange/measure.xml +14 -14
- data/lib/measures/CoilHeatingGasMultiplier/LICENSE.md +1 -1
- data/lib/measures/CoilHeatingGasMultiplier/measure.rb +8 -8
- data/lib/measures/CoilHeatingGasMultiplier/measure.xml +14 -14
- data/lib/measures/CoilHeatingGasPercentChange/LICENSE.md +1 -1
- data/lib/measures/CoilHeatingGasPercentChange/measure.rb +8 -8
- data/lib/measures/CoilHeatingGasPercentChange/measure.xml +14 -14
- data/lib/measures/CoilHeatingWaterMultiplier/LICENSE.md +1 -1
- data/lib/measures/CoilHeatingWaterMultiplier/measure.rb +13 -15
- data/lib/measures/CoilHeatingWaterMultiplier/measure.xml +14 -14
- data/lib/measures/CoilHeatingWaterPercentChange/LICENSE.md +1 -1
- data/lib/measures/CoilHeatingWaterPercentChange/measure.rb +13 -15
- data/lib/measures/CoilHeatingWaterPercentChange/measure.xml +14 -14
- data/lib/measures/ConstructionLayerZeroMaterialProperties/LICENSE.md +1 -1
- data/lib/measures/ConstructionLayerZeroMaterialProperties/measure.rb +4 -4
- data/lib/measures/ConstructionLayerZeroMaterialProperties/measure.xml +12 -12
- data/lib/measures/ElectricBaseboardEfficiencyAndCapacity/LICENSE.md +1 -1
- data/lib/measures/ElectricBaseboardEfficiencyAndCapacity/measure.xml +11 -11
- data/lib/measures/ExteriorWallThermalPropertiesMultiplier/LICENSE.md +1 -1
- data/lib/measures/ExteriorWallThermalPropertiesMultiplier/measure.rb +8 -5
- data/lib/measures/ExteriorWallThermalPropertiesMultiplier/measure.xml +18 -18
- data/lib/measures/ExteriorWallThermalPropertiesPercentChange/LICENSE.md +1 -1
- data/lib/measures/ExteriorWallThermalPropertiesPercentChange/measure.rb +8 -5
- data/lib/measures/ExteriorWallThermalPropertiesPercentChange/measure.xml +18 -18
- data/lib/measures/FansMultiplier/LICENSE.md +1 -1
- data/lib/measures/FansMultiplier/measure.rb +8 -8
- data/lib/measures/FansMultiplier/measure.xml +14 -14
- data/lib/measures/FansPercentChange/LICENSE.md +1 -1
- data/lib/measures/FansPercentChange/measure.rb +8 -8
- data/lib/measures/FansPercentChange/measure.xml +14 -14
- data/lib/measures/GeneralCalibrationMeasureMultiplier/LICENSE.md +1 -1
- data/lib/measures/GeneralCalibrationMeasureMultiplier/measure.rb +2 -2
- data/lib/measures/GeneralCalibrationMeasureMultiplier/measure.xml +16 -16
- data/lib/measures/GeneralCalibrationMeasurePercentChange/LICENSE.md +1 -1
- data/lib/measures/GeneralCalibrationMeasurePercentChange/measure.rb +2 -2
- data/lib/measures/GeneralCalibrationMeasurePercentChange/measure.xml +16 -16
- data/lib/measures/HardSizeHvac/LICENSE.md +1 -1
- data/lib/measures/HardSizeHvac/measure.rb +2 -4
- data/lib/measures/HardSizeHvac/measure.xml +19 -19
- data/lib/measures/RValueOfInsulationForConstructionMultiplier/LICENSE.md +1 -1
- data/lib/measures/RValueOfInsulationForConstructionMultiplier/measure.rb +7 -9
- data/lib/measures/RValueOfInsulationForConstructionMultiplier/measure.xml +12 -12
- data/lib/measures/RValueOfInsulationForConstructionPercentageChange/LICENSE.md +1 -1
- data/lib/measures/RValueOfInsulationForConstructionPercentageChange/measure.rb +7 -9
- data/lib/measures/RValueOfInsulationForConstructionPercentageChange/measure.xml +12 -12
- data/lib/measures/RoofThermalPropertiesMultiplier/LICENSE.md +1 -1
- data/lib/measures/RoofThermalPropertiesMultiplier/measure.rb +8 -5
- data/lib/measures/RoofThermalPropertiesMultiplier/measure.xml +18 -18
- data/lib/measures/RoofThermalPropertiesPercentChange/LICENSE.md +1 -1
- data/lib/measures/RoofThermalPropertiesPercentChange/measure.rb +8 -5
- data/lib/measures/RoofThermalPropertiesPercentChange/measure.xml +18 -18
- data/lib/measures/TimeseriesObjectiveFunction/LICENSE.md +1 -1
- data/lib/measures/TimeseriesObjectiveFunction/measure.rb +26 -23
- data/lib/measures/TimeseriesObjectiveFunction/measure.xml +11 -16
- data/lib/measures/TimeseriesObjectiveFunction/resources/report.html.erb +3 -0
- data/lib/measures/TimeseriesPlot/LICENSE.md +1 -1
- 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/LICENSE.md +1 -1
- data/lib/measures/WaterHeaterMixedMultiplier/measure.rb +17 -22
- data/lib/measures/WaterHeaterMixedMultiplier/measure.xml +14 -14
- data/lib/measures/WaterHeaterMixedPercentChange/LICENSE.md +1 -1
- data/lib/measures/WaterHeaterMixedPercentChange/measure.rb +17 -22
- data/lib/measures/WaterHeaterMixedPercentChange/measure.xml +14 -14
- data/lib/measures/inspect_and_edit_parametric_schedules/LICENSE.md +1 -1
- 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/LICENSE.md +1 -1
- 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 +12 -6
- metadata +55 -13
@@ -1,10 +1,10 @@
|
|
1
1
|
<?xml version="1.0"?>
|
2
2
|
<measure>
|
3
|
-
<schema_version>3.
|
3
|
+
<schema_version>3.1</schema_version>
|
4
4
|
<name>exterior_wall_thermal_properties_multiplier</name>
|
5
5
|
<uid>6ab39cf2-1f9e-4570-a797-360a814aaa74</uid>
|
6
|
-
<version_id>
|
7
|
-
<version_modified>
|
6
|
+
<version_id>d7087cd3-5877-475e-8400-bfebd2bcebed</version_id>
|
7
|
+
<version_modified>2024-11-16T23:44:47Z</version_modified>
|
8
8
|
<xml_checksum>EB1A0C08</xml_checksum>
|
9
9
|
<class_name>ExteriorWallThermalPropertiesMultiplier</class_name>
|
10
10
|
<display_name>Exterior Wall Thermal Properties Multiplier</display_name>
|
@@ -65,10 +65,10 @@
|
|
65
65
|
</attributes>
|
66
66
|
<files>
|
67
67
|
<file>
|
68
|
-
<filename>
|
69
|
-
<filetype>
|
70
|
-
<usage_type>
|
71
|
-
<checksum>
|
68
|
+
<filename>LICENSE.md</filename>
|
69
|
+
<filetype>md</filetype>
|
70
|
+
<usage_type>license</usage_type>
|
71
|
+
<checksum>8696A072</checksum>
|
72
72
|
</file>
|
73
73
|
<file>
|
74
74
|
<filename>README.md</filename>
|
@@ -77,16 +77,10 @@
|
|
77
77
|
<checksum>922E9893</checksum>
|
78
78
|
</file>
|
79
79
|
<file>
|
80
|
-
<filename>
|
81
|
-
<filetype>
|
82
|
-
<usage_type>
|
83
|
-
<checksum>
|
84
|
-
</file>
|
85
|
-
<file>
|
86
|
-
<filename>LICENSE.md</filename>
|
87
|
-
<filetype>md</filetype>
|
88
|
-
<usage_type>license</usage_type>
|
89
|
-
<checksum>BFFB1AA6</checksum>
|
80
|
+
<filename>README.md.erb</filename>
|
81
|
+
<filetype>erb</filetype>
|
82
|
+
<usage_type>readmeerb</usage_type>
|
83
|
+
<checksum>703C9964</checksum>
|
90
84
|
</file>
|
91
85
|
<file>
|
92
86
|
<version>
|
@@ -97,7 +91,7 @@
|
|
97
91
|
<filename>measure.rb</filename>
|
98
92
|
<filetype>rb</filetype>
|
99
93
|
<usage_type>script</usage_type>
|
100
|
-
<checksum>
|
94
|
+
<checksum>9267EE80</checksum>
|
101
95
|
</file>
|
102
96
|
<file>
|
103
97
|
<filename>ExteriorWallThermalPropertiesMultiplier_test.rb</filename>
|
@@ -105,5 +99,11 @@
|
|
105
99
|
<usage_type>test</usage_type>
|
106
100
|
<checksum>593F94D8</checksum>
|
107
101
|
</file>
|
102
|
+
<file>
|
103
|
+
<filename>example_model.osm</filename>
|
104
|
+
<filetype>osm</filetype>
|
105
|
+
<usage_type>test</usage_type>
|
106
|
+
<checksum>53D14E69</checksum>
|
107
|
+
</file>
|
108
108
|
</files>
|
109
109
|
</measure>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
OpenStudio(R), Copyright (c) 2008,
|
1
|
+
OpenStudio(R), Copyright (c) 2008, 2024 Alliance for Sustainable Energy, LLC.
|
2
2
|
|
3
3
|
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
4
4
|
|
@@ -21,7 +21,8 @@ class ExteriorWallThermalPropertiesPercentChange < OpenStudio::Measure::ModelMea
|
|
21
21
|
end
|
22
22
|
|
23
23
|
# short def to make numbers pretty (converts 4125001.25641 to 4,125,001.26 or 4,125,001). The definition be called through this measure
|
24
|
-
|
24
|
+
# round to 0 or 2)
|
25
|
+
def neat_numbers(number, roundto = 2)
|
25
26
|
number = if roundto == 2
|
26
27
|
format '%.2f', number
|
27
28
|
else
|
@@ -29,7 +30,7 @@ class ExteriorWallThermalPropertiesPercentChange < OpenStudio::Measure::ModelMea
|
|
29
30
|
end
|
30
31
|
# regex to add commas
|
31
32
|
number.to_s.reverse.gsub(/([0-9]{3}(?=([0-9])))/, '\\1,').reverse
|
32
|
-
end
|
33
|
+
end
|
33
34
|
|
34
35
|
# helper to make it easier to do unit conversions on the fly
|
35
36
|
def unit_helper(number, from_unit_string, to_unit_string)
|
@@ -57,7 +58,7 @@ class ExteriorWallThermalPropertiesPercentChange < OpenStudio::Measure::ModelMea
|
|
57
58
|
args << thermal_mass_perc_change
|
58
59
|
|
59
60
|
args
|
60
|
-
end
|
61
|
+
end
|
61
62
|
|
62
63
|
# define what happens when the measure is run
|
63
64
|
def run(model, runner, user_arguments)
|
@@ -79,6 +80,7 @@ class ExteriorWallThermalPropertiesPercentChange < OpenStudio::Measure::ModelMea
|
|
79
80
|
exterior_surface_constructions = []
|
80
81
|
surfaces.each do |surface|
|
81
82
|
next unless surface.outsideBoundaryCondition == 'Outdoors' && surface.surfaceType == 'Wall'
|
83
|
+
|
82
84
|
exterior_surfaces << surface
|
83
85
|
exterior_surface_const = surface.construction.get
|
84
86
|
# only add construction if it hasn't been added yet
|
@@ -145,6 +147,7 @@ class ExteriorWallThermalPropertiesPercentChange < OpenStudio::Measure::ModelMea
|
|
145
147
|
end
|
146
148
|
initial_sol_abs.each_index do |index1|
|
147
149
|
next unless initial_sol_abs[index1]
|
150
|
+
|
148
151
|
desired_sol_abs[index1] = initial_sol_abs[index1] + initial_sol_abs[index1] * solar_abs_perc_change * 0.01
|
149
152
|
if desired_sol_abs[index1] > 1
|
150
153
|
desired_sol_abs[index1] = 1
|
@@ -216,8 +219,8 @@ class ExteriorWallThermalPropertiesPercentChange < OpenStudio::Measure::ModelMea
|
|
216
219
|
runner.registerFinalCondition("Applied R #{r_value_perc_change.round(1)} Solar #{solar_abs_perc_change.round(1)} Therm #{thermal_mass_perc_change.round(1)} Percent change")
|
217
220
|
|
218
221
|
true
|
219
|
-
end
|
220
|
-
end
|
222
|
+
end
|
223
|
+
end
|
221
224
|
|
222
225
|
# this allows the measure to be used by the application
|
223
226
|
ExteriorWallThermalPropertiesPercentChange.new.registerWithApplication
|
@@ -1,10 +1,10 @@
|
|
1
1
|
<?xml version="1.0"?>
|
2
2
|
<measure>
|
3
|
-
<schema_version>3.
|
3
|
+
<schema_version>3.1</schema_version>
|
4
4
|
<name>exterior_wall_thermal_properties_percent_change</name>
|
5
5
|
<uid>6ab39cf2-1f9e-4570-a797-360a814aaa64</uid>
|
6
|
-
<version_id>
|
7
|
-
<version_modified>
|
6
|
+
<version_id>01f72495-4f2e-4b3c-8c22-013769de918d</version_id>
|
7
|
+
<version_modified>2024-11-16T23:44:47Z</version_modified>
|
8
8
|
<xml_checksum>EB1A0C08</xml_checksum>
|
9
9
|
<class_name>ExteriorWallThermalPropertiesPercentChange</class_name>
|
10
10
|
<display_name>Exterior Wall Thermal Percent Change</display_name>
|
@@ -65,10 +65,10 @@
|
|
65
65
|
</attributes>
|
66
66
|
<files>
|
67
67
|
<file>
|
68
|
-
<filename>
|
69
|
-
<filetype>
|
70
|
-
<usage_type>
|
71
|
-
<checksum>
|
68
|
+
<filename>LICENSE.md</filename>
|
69
|
+
<filetype>md</filetype>
|
70
|
+
<usage_type>license</usage_type>
|
71
|
+
<checksum>8696A072</checksum>
|
72
72
|
</file>
|
73
73
|
<file>
|
74
74
|
<filename>README.md</filename>
|
@@ -77,16 +77,10 @@
|
|
77
77
|
<checksum>84E8A9AC</checksum>
|
78
78
|
</file>
|
79
79
|
<file>
|
80
|
-
<filename>
|
81
|
-
<filetype>
|
82
|
-
<usage_type>
|
83
|
-
<checksum>
|
84
|
-
</file>
|
85
|
-
<file>
|
86
|
-
<filename>LICENSE.md</filename>
|
87
|
-
<filetype>md</filetype>
|
88
|
-
<usage_type>license</usage_type>
|
89
|
-
<checksum>BFFB1AA6</checksum>
|
80
|
+
<filename>README.md.erb</filename>
|
81
|
+
<filetype>erb</filetype>
|
82
|
+
<usage_type>readmeerb</usage_type>
|
83
|
+
<checksum>703C9964</checksum>
|
90
84
|
</file>
|
91
85
|
<file>
|
92
86
|
<version>
|
@@ -97,7 +91,7 @@
|
|
97
91
|
<filename>measure.rb</filename>
|
98
92
|
<filetype>rb</filetype>
|
99
93
|
<usage_type>script</usage_type>
|
100
|
-
<checksum>
|
94
|
+
<checksum>DC101DDE</checksum>
|
101
95
|
</file>
|
102
96
|
<file>
|
103
97
|
<filename>ExteriorWallThermalPropertiesMultiplier_test.rb</filename>
|
@@ -105,5 +99,11 @@
|
|
105
99
|
<usage_type>test</usage_type>
|
106
100
|
<checksum>5AA3C07C</checksum>
|
107
101
|
</file>
|
102
|
+
<file>
|
103
|
+
<filename>example_model.osm</filename>
|
104
|
+
<filetype>osm</filetype>
|
105
|
+
<usage_type>test</usage_type>
|
106
|
+
<checksum>53D14E69</checksum>
|
107
|
+
</file>
|
108
108
|
</files>
|
109
109
|
</measure>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
OpenStudio(R), Copyright (c) 2008,
|
1
|
+
OpenStudio(R), Copyright (c) 2008, 2024 Alliance for Sustainable Energy, LLC.
|
2
2
|
|
3
3
|
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
4
4
|
|
@@ -75,6 +75,7 @@ class FansMultiplier < OpenStudio::Measure::ModelMeasure
|
|
75
75
|
loop_display_names << component.name.to_s
|
76
76
|
end
|
77
77
|
next if component.to_FanOnOff.empty?
|
78
|
+
|
78
79
|
show_loop = true
|
79
80
|
loop_handles << component.handle.to_s
|
80
81
|
loop_display_names << component.name.to_s
|
@@ -211,13 +212,11 @@ class FansMultiplier < OpenStudio::Measure::ModelMeasure
|
|
211
212
|
fans.each do |fan|
|
212
213
|
altered_fan = false
|
213
214
|
# modify max flowrate
|
214
|
-
if max_flowrate_multiplier != 1.0
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
altered_fan = true
|
220
|
-
end
|
215
|
+
if max_flowrate_multiplier != 1.0 && fan.maximumFlowRate.is_initialized
|
216
|
+
runner.registerInfo("Applying #{max_flowrate_multiplier}x multiplier to #{fan.name.get}.")
|
217
|
+
fan.setMaximumFlowRate(fan.maximumFlowRate * max_flowrate_multiplier)
|
218
|
+
altered_maxflow << fan.handle.to_s
|
219
|
+
altered_fan = true
|
221
220
|
end
|
222
221
|
|
223
222
|
# modify fan_efficiency_multiplier
|
@@ -245,10 +244,11 @@ class FansMultiplier < OpenStudio::Measure::ModelMeasure
|
|
245
244
|
end
|
246
245
|
|
247
246
|
next unless altered_fan
|
247
|
+
|
248
248
|
altered_fans << fan.handle.to_s
|
249
249
|
change_name(fan, max_flowrate_multiplier, fan_efficiency_multiplier, pressure_rise_multiplier, motor_efficiency_multiplier)
|
250
250
|
runner.registerInfo("Fan name changed to: #{fan.name.get}")
|
251
|
-
end
|
251
|
+
end
|
252
252
|
|
253
253
|
# na if nothing in model to look at
|
254
254
|
if altered_fans.empty?
|
@@ -1,10 +1,10 @@
|
|
1
1
|
<?xml version="1.0"?>
|
2
2
|
<measure>
|
3
|
-
<schema_version>3.
|
3
|
+
<schema_version>3.1</schema_version>
|
4
4
|
<name>fans_multiplier</name>
|
5
5
|
<uid>af156383-cfe2-4798-b581-08a4cccb8877</uid>
|
6
|
-
<version_id>
|
7
|
-
<version_modified>
|
6
|
+
<version_id>6c6d0c33-7de4-4c8e-acf5-6cd678447977</version_id>
|
7
|
+
<version_modified>2024-11-16T23:44:47Z</version_modified>
|
8
8
|
<xml_checksum>3C1DA54F</xml_checksum>
|
9
9
|
<class_name>FansMultiplier</class_name>
|
10
10
|
<display_name>Fans 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>{324f484c-c364-4919-8cad-f30e88c18d74}</default_value>
|
21
21
|
<choices>
|
22
22
|
<choice>
|
23
|
-
<value>{
|
23
|
+
<value>{324f484c-c364-4919-8cad-f30e88c18d74}</value>
|
24
24
|
<display_name>*All Fans*</display_name>
|
25
25
|
</choice>
|
26
26
|
<choice>
|
@@ -136,10 +136,10 @@
|
|
136
136
|
</attributes>
|
137
137
|
<files>
|
138
138
|
<file>
|
139
|
-
<filename>
|
140
|
-
<filetype>
|
141
|
-
<usage_type>
|
142
|
-
<checksum>
|
139
|
+
<filename>LICENSE.md</filename>
|
140
|
+
<filetype>md</filetype>
|
141
|
+
<usage_type>license</usage_type>
|
142
|
+
<checksum>8696A072</checksum>
|
143
143
|
</file>
|
144
144
|
<file>
|
145
145
|
<filename>README.md</filename>
|
@@ -148,10 +148,10 @@
|
|
148
148
|
<checksum>E54F87D8</checksum>
|
149
149
|
</file>
|
150
150
|
<file>
|
151
|
-
<filename>
|
152
|
-
<filetype>
|
153
|
-
<usage_type>
|
154
|
-
<checksum>
|
151
|
+
<filename>README.md.erb</filename>
|
152
|
+
<filetype>erb</filetype>
|
153
|
+
<usage_type>readmeerb</usage_type>
|
154
|
+
<checksum>703C9964</checksum>
|
155
155
|
</file>
|
156
156
|
<file>
|
157
157
|
<version>
|
@@ -162,7 +162,7 @@
|
|
162
162
|
<filename>measure.rb</filename>
|
163
163
|
<filetype>rb</filetype>
|
164
164
|
<usage_type>script</usage_type>
|
165
|
-
<checksum>
|
165
|
+
<checksum>58640E33</checksum>
|
166
166
|
</file>
|
167
167
|
</files>
|
168
168
|
</measure>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
OpenStudio(R), Copyright (c) 2008,
|
1
|
+
OpenStudio(R), Copyright (c) 2008, 2024 Alliance for Sustainable Energy, LLC.
|
2
2
|
|
3
3
|
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
4
4
|
|
@@ -68,6 +68,7 @@ class FansPercentChange < OpenStudio::Measure::ModelMeasure
|
|
68
68
|
loop_display_names << component.name.to_s
|
69
69
|
end
|
70
70
|
next if component.to_FanOnOff.empty?
|
71
|
+
|
71
72
|
show_loop = true
|
72
73
|
loop_handles << component.handle.to_s
|
73
74
|
loop_display_names << component.name.to_s
|
@@ -200,13 +201,11 @@ class FansPercentChange < OpenStudio::Measure::ModelMeasure
|
|
200
201
|
fans.each do |fan|
|
201
202
|
altered_fan = false
|
202
203
|
# modify max flowrate
|
203
|
-
if max_flowrate_perc_change != 0.0
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
altered_fan = true
|
209
|
-
end
|
204
|
+
if max_flowrate_perc_change != 0.0 && fan.maximumFlowRate.is_initialized
|
205
|
+
runner.registerInfo("Applying #{max_flowrate_perc_change} Percent Change to #{fan.name.get}.")
|
206
|
+
fan.setMaximumFlowRate(fan.maximumFlowRate + fan.maximumFlowRate * max_flowrate_perc_change * 0.01)
|
207
|
+
altered_maxflow << fan.handle.to_s
|
208
|
+
altered_fan = true
|
210
209
|
end
|
211
210
|
|
212
211
|
# modify fan_efficiency_perc_change
|
@@ -234,10 +233,11 @@ class FansPercentChange < OpenStudio::Measure::ModelMeasure
|
|
234
233
|
end
|
235
234
|
|
236
235
|
next unless altered_fan
|
236
|
+
|
237
237
|
altered_fans << fan.handle.to_s
|
238
238
|
change_name(fan, max_flowrate_perc_change, fan_efficiency_perc_change, pressure_rise_perc_change, motor_efficiency_perc_change)
|
239
239
|
runner.registerInfo("Fan name changed to: #{fan.name.get}")
|
240
|
-
end
|
240
|
+
end
|
241
241
|
|
242
242
|
# na if nothing in model to look at
|
243
243
|
if altered_fans.empty?
|
@@ -1,10 +1,10 @@
|
|
1
1
|
<?xml version="1.0"?>
|
2
2
|
<measure>
|
3
|
-
<schema_version>3.
|
3
|
+
<schema_version>3.1</schema_version>
|
4
4
|
<name>fans_percent_change</name>
|
5
5
|
<uid>4c13a935-976b-4d54-bf7f-a4064fb6e11d</uid>
|
6
|
-
<version_id>
|
7
|
-
<version_modified>
|
6
|
+
<version_id>01232344-ff6d-4903-aa30-12d0443a0c50</version_id>
|
7
|
+
<version_modified>2024-11-16T23:44:47Z</version_modified>
|
8
8
|
<xml_checksum>3C1DA54F</xml_checksum>
|
9
9
|
<class_name>FansPercentChange</class_name>
|
10
10
|
<display_name>Fans 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>{b9353146-b298-45c7-bff1-ac314161b0cf}</default_value>
|
21
21
|
<choices>
|
22
22
|
<choice>
|
23
|
-
<value>{
|
23
|
+
<value>{b9353146-b298-45c7-bff1-ac314161b0cf}</value>
|
24
24
|
<display_name>*All Fans*</display_name>
|
25
25
|
</choice>
|
26
26
|
<choice>
|
@@ -136,10 +136,10 @@
|
|
136
136
|
</attributes>
|
137
137
|
<files>
|
138
138
|
<file>
|
139
|
-
<filename>
|
140
|
-
<filetype>
|
141
|
-
<usage_type>
|
142
|
-
<checksum>
|
139
|
+
<filename>LICENSE.md</filename>
|
140
|
+
<filetype>md</filetype>
|
141
|
+
<usage_type>license</usage_type>
|
142
|
+
<checksum>8696A072</checksum>
|
143
143
|
</file>
|
144
144
|
<file>
|
145
145
|
<filename>README.md</filename>
|
@@ -148,10 +148,10 @@
|
|
148
148
|
<checksum>B44AC277</checksum>
|
149
149
|
</file>
|
150
150
|
<file>
|
151
|
-
<filename>
|
152
|
-
<filetype>
|
153
|
-
<usage_type>
|
154
|
-
<checksum>
|
151
|
+
<filename>README.md.erb</filename>
|
152
|
+
<filetype>erb</filetype>
|
153
|
+
<usage_type>readmeerb</usage_type>
|
154
|
+
<checksum>703C9964</checksum>
|
155
155
|
</file>
|
156
156
|
<file>
|
157
157
|
<version>
|
@@ -162,7 +162,7 @@
|
|
162
162
|
<filename>measure.rb</filename>
|
163
163
|
<filetype>rb</filetype>
|
164
164
|
<usage_type>script</usage_type>
|
165
|
-
<checksum>
|
165
|
+
<checksum>EC0A96E0</checksum>
|
166
166
|
</file>
|
167
167
|
</files>
|
168
168
|
</measure>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
OpenStudio(R), Copyright (c) 2008,
|
1
|
+
OpenStudio(R), Copyright (c) 2008, 2024 Alliance for Sustainable Energy, LLC.
|
2
2
|
|
3
3
|
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
4
4
|
|
@@ -414,7 +414,7 @@ class GeneralCalibrationMeasureMultiplier < OpenStudio::Measure::ModelMeasure
|
|
414
414
|
runner.registerInfo("Skipping change to #{internalmass.name.get}")
|
415
415
|
end
|
416
416
|
end
|
417
|
-
end
|
417
|
+
end
|
418
418
|
|
419
419
|
runner.registerInfo("altered_lights_objects: #{altered_lights_objects}")
|
420
420
|
runner.registerInfo("altered_luminaires_objects: #{altered_luminaires_objects}")
|
@@ -580,7 +580,7 @@ class GeneralCalibrationMeasureMultiplier < OpenStudio::Measure::ModelMeasure
|
|
580
580
|
runner.registerInfo("Skipping change to #{internalmass.name.get}")
|
581
581
|
end
|
582
582
|
end
|
583
|
-
end
|
583
|
+
end
|
584
584
|
|
585
585
|
runner.registerInfo("altered_lights_objects: #{altered_lights_objects}")
|
586
586
|
runner.registerInfo("altered_luminaires_objects: #{altered_luminaires_objects}")
|
@@ -1,10 +1,10 @@
|
|
1
1
|
<?xml version="1.0"?>
|
2
2
|
<measure>
|
3
|
-
<schema_version>3.
|
3
|
+
<schema_version>3.1</schema_version>
|
4
4
|
<name>general_calibration_measure_multiplier</name>
|
5
5
|
<uid>d622534e-a3c9-4ba5-b616-53dce2a18ac8</uid>
|
6
|
-
<version_id>
|
7
|
-
<version_modified>
|
6
|
+
<version_id>88b31200-6fb2-4839-ade3-f970bddafe9e</version_id>
|
7
|
+
<version_modified>2024-11-16T23:44:47Z</version_modified>
|
8
8
|
<xml_checksum>DEC0D835</xml_checksum>
|
9
9
|
<class_name>GeneralCalibrationMeasureMultiplier</class_name>
|
10
10
|
<display_name>General Calibration Measure 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>{39e87638-19bf-46e0-8db3-3998901b9f40}</default_value>
|
21
21
|
<choices>
|
22
22
|
<choice>
|
23
|
-
<value>{
|
23
|
+
<value>{39e87638-19bf-46e0-8db3-3998901b9f40}</value>
|
24
24
|
<display_name>*All SpaceTypes*</display_name>
|
25
25
|
</choice>
|
26
26
|
<choice>
|
@@ -35,10 +35,10 @@
|
|
35
35
|
<type>Choice</type>
|
36
36
|
<required>true</required>
|
37
37
|
<model_dependent>false</model_dependent>
|
38
|
-
<default_value>{
|
38
|
+
<default_value>{39e87638-19bf-46e0-8db3-3998901b9f40}</default_value>
|
39
39
|
<choices>
|
40
40
|
<choice>
|
41
|
-
<value>{
|
41
|
+
<value>{39e87638-19bf-46e0-8db3-3998901b9f40}</value>
|
42
42
|
<display_name>*All Spaces*</display_name>
|
43
43
|
</choice>
|
44
44
|
<choice>
|
@@ -199,10 +199,10 @@
|
|
199
199
|
</attributes>
|
200
200
|
<files>
|
201
201
|
<file>
|
202
|
-
<filename>
|
203
|
-
<filetype>
|
204
|
-
<usage_type>
|
205
|
-
<checksum>
|
202
|
+
<filename>LICENSE.md</filename>
|
203
|
+
<filetype>md</filetype>
|
204
|
+
<usage_type>license</usage_type>
|
205
|
+
<checksum>8696A072</checksum>
|
206
206
|
</file>
|
207
207
|
<file>
|
208
208
|
<filename>README.md</filename>
|
@@ -211,10 +211,10 @@
|
|
211
211
|
<checksum>E3E6128D</checksum>
|
212
212
|
</file>
|
213
213
|
<file>
|
214
|
-
<filename>
|
215
|
-
<filetype>
|
216
|
-
<usage_type>
|
217
|
-
<checksum>
|
214
|
+
<filename>README.md.erb</filename>
|
215
|
+
<filetype>erb</filetype>
|
216
|
+
<usage_type>readmeerb</usage_type>
|
217
|
+
<checksum>703C9964</checksum>
|
218
218
|
</file>
|
219
219
|
<file>
|
220
220
|
<version>
|
@@ -225,7 +225,7 @@
|
|
225
225
|
<filename>measure.rb</filename>
|
226
226
|
<filetype>rb</filetype>
|
227
227
|
<usage_type>script</usage_type>
|
228
|
-
<checksum>
|
228
|
+
<checksum>D8F7D718</checksum>
|
229
229
|
</file>
|
230
230
|
</files>
|
231
231
|
</measure>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
OpenStudio(R), Copyright (c) 2008,
|
1
|
+
OpenStudio(R), Copyright (c) 2008, 2024 Alliance for Sustainable Energy, LLC.
|
2
2
|
|
3
3
|
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
4
4
|
|
@@ -464,7 +464,7 @@ class GeneralCalibrationMeasurePercentChange < OpenStudio::Measure::ModelMeasure
|
|
464
464
|
runner.registerInfo("Skipping change to #{internalmass_def.name.get}")
|
465
465
|
end
|
466
466
|
end
|
467
|
-
end
|
467
|
+
end
|
468
468
|
|
469
469
|
runner.registerInfo("altered_lights_definitions: #{altered_lights_definitions}")
|
470
470
|
runner.registerInfo("altered_luminaires_definitions: #{altered_luminaires_definitions}")
|
@@ -697,7 +697,7 @@ class GeneralCalibrationMeasurePercentChange < OpenStudio::Measure::ModelMeasure
|
|
697
697
|
runner.registerInfo("Skipping change to #{internalmass_def.name.get}")
|
698
698
|
end
|
699
699
|
end
|
700
|
-
end
|
700
|
+
end
|
701
701
|
|
702
702
|
runner.registerInfo("altered_lights_definitions: #{altered_lights_definitions}")
|
703
703
|
runner.registerInfo("altered_luminaires_definitions: #{altered_luminaires_definitions}")
|
@@ -1,10 +1,10 @@
|
|
1
1
|
<?xml version="1.0"?>
|
2
2
|
<measure>
|
3
|
-
<schema_version>3.
|
3
|
+
<schema_version>3.1</schema_version>
|
4
4
|
<name>general_calibration_measure_percent_change</name>
|
5
5
|
<uid>0f583ac1-fa7e-48bc-9f80-12ed17180669</uid>
|
6
|
-
<version_id>
|
7
|
-
<version_modified>
|
6
|
+
<version_id>2104cb05-e5d9-4c5d-96c1-0432872c1bf4</version_id>
|
7
|
+
<version_modified>2024-11-16T23:44:47Z</version_modified>
|
8
8
|
<xml_checksum>DEC0D835</xml_checksum>
|
9
9
|
<class_name>GeneralCalibrationMeasurePercentChange</class_name>
|
10
10
|
<display_name>General Calibration Measure 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>{0128e19b-f61e-4d6f-b7ae-6ec63797ca60}</default_value>
|
21
21
|
<choices>
|
22
22
|
<choice>
|
23
|
-
<value>{
|
23
|
+
<value>{0128e19b-f61e-4d6f-b7ae-6ec63797ca60}</value>
|
24
24
|
<display_name>*All SpaceTypes*</display_name>
|
25
25
|
</choice>
|
26
26
|
<choice>
|
@@ -35,10 +35,10 @@
|
|
35
35
|
<type>Choice</type>
|
36
36
|
<required>true</required>
|
37
37
|
<model_dependent>false</model_dependent>
|
38
|
-
<default_value>{
|
38
|
+
<default_value>{0128e19b-f61e-4d6f-b7ae-6ec63797ca60}</default_value>
|
39
39
|
<choices>
|
40
40
|
<choice>
|
41
|
-
<value>{
|
41
|
+
<value>{0128e19b-f61e-4d6f-b7ae-6ec63797ca60}</value>
|
42
42
|
<display_name>*All Spaces*</display_name>
|
43
43
|
</choice>
|
44
44
|
<choice>
|
@@ -198,10 +198,10 @@
|
|
198
198
|
</attributes>
|
199
199
|
<files>
|
200
200
|
<file>
|
201
|
-
<filename>
|
202
|
-
<filetype>
|
203
|
-
<usage_type>
|
204
|
-
<checksum>
|
201
|
+
<filename>LICENSE.md</filename>
|
202
|
+
<filetype>md</filetype>
|
203
|
+
<usage_type>license</usage_type>
|
204
|
+
<checksum>8696A072</checksum>
|
205
205
|
</file>
|
206
206
|
<file>
|
207
207
|
<filename>README.md</filename>
|
@@ -210,10 +210,10 @@
|
|
210
210
|
<checksum>EF5B5EB5</checksum>
|
211
211
|
</file>
|
212
212
|
<file>
|
213
|
-
<filename>
|
214
|
-
<filetype>
|
215
|
-
<usage_type>
|
216
|
-
<checksum>
|
213
|
+
<filename>README.md.erb</filename>
|
214
|
+
<filetype>erb</filetype>
|
215
|
+
<usage_type>readmeerb</usage_type>
|
216
|
+
<checksum>703C9964</checksum>
|
217
217
|
</file>
|
218
218
|
<file>
|
219
219
|
<version>
|
@@ -224,7 +224,7 @@
|
|
224
224
|
<filename>measure.rb</filename>
|
225
225
|
<filetype>rb</filetype>
|
226
226
|
<usage_type>script</usage_type>
|
227
|
-
<checksum>
|
227
|
+
<checksum>5EAD059F</checksum>
|
228
228
|
</file>
|
229
229
|
</files>
|
230
230
|
</measure>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
OpenStudio(R), Copyright (c) 2008,
|
1
|
+
OpenStudio(R), Copyright (c) 2008, 2024 Alliance for Sustainable Energy, LLC.
|
2
2
|
|
3
3
|
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
4
4
|
|