openstudio-geb 0.3.0 → 0.3.1r

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +3 -2
  3. data/Gemfile +6 -1
  4. data/lib/measures/Add Output Variable/measure.xml +128 -125
  5. data/lib/measures/AddElectricVehicleChargingLoad/measure.xml +24 -23
  6. data/lib/measures/AdjustThermostatSetpointsByDegreesForPeakHours/README.md +22 -16
  7. data/lib/measures/AdjustThermostatSetpointsByDegreesForPeakHours/measure.xml +41 -30
  8. data/lib/measures/Enable Demand Controlled Ventilation/measure.xml +14 -13
  9. data/lib/measures/GEB Metrics Report/measure.rb +5 -5
  10. data/lib/measures/GEB Metrics Report/measure.xml +238 -23
  11. data/lib/measures/add_ceiling_fan/measure.xml +25 -25
  12. data/lib/measures/add_chilled_water_storage_tank/measure.xml +201 -28
  13. data/lib/measures/add_chilled_water_storage_tank/tests/example_model.osm +8077 -21624
  14. data/lib/measures/add_electrochromic_window/measure.xml +28 -27
  15. data/lib/measures/add_exterior_blinds_and_control/measure.xml +15 -26
  16. data/lib/measures/add_heat_pump_water_heater/measure.xml +89 -17
  17. data/lib/measures/add_interior_blinds_and_control/measure.xml +21 -33
  18. data/lib/measures/add_natural_ventilation_with_hybrid_control/README.md +4 -4
  19. data/lib/measures/add_natural_ventilation_with_hybrid_control/measure.rb +2 -2
  20. data/lib/measures/add_natural_ventilation_with_hybrid_control/measure.xml +36 -30
  21. data/lib/measures/add_natural_ventilation_with_hybrid_control/tests/CZ06RV2.epw +8768 -0
  22. data/lib/measures/add_rooftop_pv_simple/measure.xml +11 -5
  23. data/lib/measures/adjust_dhw_setpoint/measure.xml +34 -21
  24. data/lib/measures/average_ventilation_for_peak_hours/README.md +5 -45
  25. data/lib/measures/average_ventilation_for_peak_hours/measure.xml +24 -79
  26. data/lib/measures/enable_occupancy_driven_lighting/measure.xml +28 -27
  27. data/lib/measures/precooling/measure.xml +12 -11
  28. data/lib/measures/preheating/measure.xml +18 -17
  29. data/lib/measures/reduce_domestic_hot_water_use_for_peak_hours/measure.xml +34 -27
  30. data/lib/measures/reduce_epd_by_percentage_for_peak_hours/README.md +3 -3
  31. data/lib/measures/reduce_epd_by_percentage_for_peak_hours/measure.xml +25 -18
  32. data/lib/measures/reduce_exterior_lighting_loads/measure.xml +25 -25
  33. data/lib/measures/reduce_lpd_by_percentage_for_peak_hours/measure.xml +30 -23
  34. data/lib/openstudio/geb/version.rb +1 -1
  35. metadata +5 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d13e76d393b23834802338c8f7c8df2caba6d6c6b15c5a56dc79f3c6140a7eb9
4
- data.tar.gz: 77ff2186f1a7656521844856b0ac8d88d5b3b26377e8c743932d0646fb27ff51
3
+ metadata.gz: c853b40bd6837e609af4ad83e0e0cc5736474b8005cb23dca883880973023ce3
4
+ data.tar.gz: f71abc54c506a749856aa82fa608f763a6e8df6b4bfbf28bda0927808838e2af
5
5
  SHA512:
6
- metadata.gz: 306a8f8a4a7dba9bb6ccfa3779167339743cfe56ef09a7ceb09b49de6c2cadfe1051b927879dec167243d84695c6ddbe39eecadc5122363949ace9882138d836
7
- data.tar.gz: d31b72553ad37cf1e8f410dfa6bf7a604ec1412fe72cb1b28aadfc2edaed956870742e9089696a7391722465e8aedf475ec48e9178e2e039542cb4a0c92e1aca
6
+ metadata.gz: 76821174518672a3d8f14535e4eec7d6729da9bd12d56f0fabe64799e6235738259e1d2e5bfa593cca756692bdea7cca8ebb8c969427ae14cb439200ed83d795
7
+ data.tar.gz: fbca259a2bf70c79da294dc343f864da8e90c7d1a8e2c322bd6d60c0cf34e4f1a607a40c826990326b0ed73f2fbf97e830b847fe0b58491e0020fc4c33cf7dfb
data/.gitignore CHANGED
@@ -20,7 +20,8 @@
20
20
  .rspec_status
21
21
 
22
22
  # Ignore IDE files
23
- /.idea
23
+ *.idea/
24
+ /.idea/
24
25
  *.rubocop-http*
25
26
 
26
27
  # measures tests
@@ -35,4 +36,4 @@ runner.conf
35
36
  # built gem file
36
37
  *.gem
37
38
 
38
- .DS_Store
39
+ .DS_Store
data/Gemfile CHANGED
@@ -19,4 +19,9 @@ end
19
19
  gem 'openstudio_measure_tester', '= 0.3.1' # This includes the dependencies for running unit tests, coverage, and rubocop
20
20
 
21
21
  # simplecov has an unnecessary dependency on native json gem, use fork that does not require this
22
- gem 'simplecov', '~> 0.18.2'
22
+ gem 'simplecov', '~> 0.18.2'
23
+
24
+ # pin this dependency to avoid unicode_normalize error
25
+ gem 'addressable', '2.8.1'
26
+ # pin this dependency to avoid using racc dependency (which has native extensions)
27
+ gem 'parser', '3.2.2.2'
@@ -1,126 +1,129 @@
1
- <measure xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://bcl.nrel.gov/xsd/measures/version/1.0.xsd">
2
- <schema_version>3.0</schema_version>
3
- <name>add_output_variable</name>
4
- <uid>2a058afb-e349-49ae-a4bf-2c56a42b4352</uid>
5
- <version_id>390a799a-a8e7-4371-941a-196bcb71efd2</version_id>
6
- <version_modified>20210406T220254Z</version_modified>
7
- <xml_checksum>0CA4D54C</xml_checksum>
8
- <class_name>AddOutputVariable</class_name>
9
- <display_name>Add Output Variable</display_name>
10
- <description>This measure adds an output variable at the requested reporting frequency.</description>
11
- <modeler_description>The measure just passes in the string and does not validate that it is a proper variable name. It is up to the user to know this or to look at the .rdd file from a previous simulation run.</modeler_description>
12
- <arguments>
13
- <argument>
14
- <name>variable_name</name>
15
- <display_name>Enter Variable Name</display_name>
16
- <type>String</type>
17
- <required>true</required>
18
- <model_dependent>false</model_dependent>
19
- </argument>
20
- <argument>
21
- <name>reporting_frequency</name>
22
- <display_name>Reporting Frequency</display_name>
23
- <type>Choice</type>
24
- <required>true</required>
25
- <model_dependent>false</model_dependent>
26
- <default_value>hourly</default_value>
27
- <choices>
28
- <choice>
29
- <value>detailed</value>
30
- <display_name>detailed</display_name>
31
- </choice>
32
- <choice>
33
- <value>timestep</value>
34
- <display_name>timestep</display_name>
35
- </choice>
36
- <choice>
37
- <value>hourly</value>
38
- <display_name>hourly</display_name>
39
- </choice>
40
- <choice>
41
- <value>daily</value>
42
- <display_name>daily</display_name>
43
- </choice>
44
- <choice>
45
- <value>monthly</value>
46
- <display_name>monthly</display_name>
47
- </choice>
48
- <choice>
49
- <value>runperiod</value>
50
- <display_name>runperiod</display_name>
51
- </choice>
52
- </choices>
53
- </argument>
54
- <argument>
55
- <name>key_value</name>
56
- <display_name>Enter Key Name</display_name>
57
- <description>Enter * for all objects or the full name of a specific object to.</description>
58
- <type>String</type>
59
- <required>true</required>
60
- <model_dependent>false</model_dependent>
61
- <default_value>*</default_value>
62
- </argument>
63
- </arguments>
64
- <tags>
65
- <tag>Reporting.QAQC</tag>
66
- </tags>
67
- <attributes>
68
- <attribute>
69
- <name>Measure Type</name>
70
- <value>ModelMeasure</value>
71
- <datatype>string</datatype>
72
- </attribute>
73
- <attribute>
74
- <name>Measure Function</name>
75
- <value>Measure</value>
76
- <datatype>string</datatype>
77
- </attribute>
78
- <attribute>
79
- <name>Requires EnergyPlus Results</name>
80
- <value>false</value>
81
- <datatype>boolean</datatype>
82
- </attribute>
83
- <attribute>
84
- <name>Uses SketchUp API</name>
85
- <value>false</value>
86
- <datatype>boolean</datatype>
87
- </attribute>
88
- </attributes>
89
- <files>
90
- <file>
91
- <filename>README.md.erb</filename>
92
- <filetype>erb</filetype>
93
- <usage_type>readmeerb</usage_type>
94
- <checksum>703C9964</checksum>
95
- </file>
96
- <file>
97
- <filename>README.md</filename>
98
- <filetype>md</filetype>
99
- <usage_type>readme</usage_type>
100
- <checksum>D866D79B</checksum>
101
- </file>
102
- <file>
103
- <version>
104
- <software_program>OpenStudio</software_program>
105
- <identifier>2.0.0</identifier>
106
- <min_compatible>2.0.0</min_compatible>
107
- </version>
108
- <filename>measure.rb</filename>
109
- <filetype>rb</filetype>
110
- <usage_type>script</usage_type>
111
- <checksum>5F961E8C</checksum>
112
- </file>
113
- <file>
114
- <filename>AddOutputVariable_Test.rb</filename>
115
- <filetype>rb</filetype>
116
- <usage_type>test</usage_type>
117
- <checksum>C6185925</checksum>
118
- </file>
119
- <file>
120
- <filename>LICENSE.md</filename>
121
- <filetype>md</filetype>
122
- <usage_type>license</usage_type>
123
- <checksum>A21A3ED2</checksum>
124
- </file>
125
- </files>
1
+ <?xml version="1.0"?>
2
+ <measure>
3
+ <schema_version>3.0</schema_version>
4
+ <name>add_output_variable</name>
5
+ <uid>2a058afb-e349-49ae-a4bf-2c56a42b4352</uid>
6
+ <version_id>f34d2e59-8563-421d-a093-bd28858fee9b</version_id>
7
+ <version_modified>20230719T172108Z</version_modified>
8
+ <xml_checksum>0CA4D54C</xml_checksum>
9
+ <class_name>AddOutputVariable</class_name>
10
+ <display_name>Add Output Variable</display_name>
11
+ <description>This measure adds an output variable at the requested reporting frequency.</description>
12
+ <modeler_description>The measure just passes in the string and does not validate that it is a proper variable name. It is up to the user to know this or to look at the .rdd file from a previous simulation run.</modeler_description>
13
+ <arguments>
14
+ <argument>
15
+ <name>variable_name</name>
16
+ <display_name>Enter Variable Name</display_name>
17
+ <type>String</type>
18
+ <required>true</required>
19
+ <model_dependent>false</model_dependent>
20
+ </argument>
21
+ <argument>
22
+ <name>reporting_frequency</name>
23
+ <display_name>Reporting Frequency</display_name>
24
+ <type>Choice</type>
25
+ <required>true</required>
26
+ <model_dependent>false</model_dependent>
27
+ <default_value>hourly</default_value>
28
+ <choices>
29
+ <choice>
30
+ <value>detailed</value>
31
+ <display_name>detailed</display_name>
32
+ </choice>
33
+ <choice>
34
+ <value>timestep</value>
35
+ <display_name>timestep</display_name>
36
+ </choice>
37
+ <choice>
38
+ <value>hourly</value>
39
+ <display_name>hourly</display_name>
40
+ </choice>
41
+ <choice>
42
+ <value>daily</value>
43
+ <display_name>daily</display_name>
44
+ </choice>
45
+ <choice>
46
+ <value>monthly</value>
47
+ <display_name>monthly</display_name>
48
+ </choice>
49
+ <choice>
50
+ <value>runperiod</value>
51
+ <display_name>runperiod</display_name>
52
+ </choice>
53
+ </choices>
54
+ </argument>
55
+ <argument>
56
+ <name>key_value</name>
57
+ <display_name>Enter Key Name</display_name>
58
+ <description>Enter * for all objects or the full name of a specific object to.</description>
59
+ <type>String</type>
60
+ <required>true</required>
61
+ <model_dependent>false</model_dependent>
62
+ <default_value>*</default_value>
63
+ </argument>
64
+ </arguments>
65
+ <outputs />
66
+ <provenances />
67
+ <tags>
68
+ <tag>Reporting.QAQC</tag>
69
+ </tags>
70
+ <attributes>
71
+ <attribute>
72
+ <name>Measure Type</name>
73
+ <value>ModelMeasure</value>
74
+ <datatype>string</datatype>
75
+ </attribute>
76
+ <attribute>
77
+ <name>Measure Function</name>
78
+ <value>Measure</value>
79
+ <datatype>string</datatype>
80
+ </attribute>
81
+ <attribute>
82
+ <name>Requires EnergyPlus Results</name>
83
+ <value>false</value>
84
+ <datatype>boolean</datatype>
85
+ </attribute>
86
+ <attribute>
87
+ <name>Uses SketchUp API</name>
88
+ <value>false</value>
89
+ <datatype>boolean</datatype>
90
+ </attribute>
91
+ </attributes>
92
+ <files>
93
+ <file>
94
+ <filename>README.md.erb</filename>
95
+ <filetype>erb</filetype>
96
+ <usage_type>readmeerb</usage_type>
97
+ <checksum>703C9964</checksum>
98
+ </file>
99
+ <file>
100
+ <filename>README.md</filename>
101
+ <filetype>md</filetype>
102
+ <usage_type>readme</usage_type>
103
+ <checksum>D866D79B</checksum>
104
+ </file>
105
+ <file>
106
+ <version>
107
+ <software_program>OpenStudio</software_program>
108
+ <identifier>2.0.0</identifier>
109
+ <min_compatible>2.0.0</min_compatible>
110
+ </version>
111
+ <filename>measure.rb</filename>
112
+ <filetype>rb</filetype>
113
+ <usage_type>script</usage_type>
114
+ <checksum>3FCD595E</checksum>
115
+ </file>
116
+ <file>
117
+ <filename>AddOutputVariable_Test.rb</filename>
118
+ <filetype>rb</filetype>
119
+ <usage_type>test</usage_type>
120
+ <checksum>416E70B7</checksum>
121
+ </file>
122
+ <file>
123
+ <filename>LICENSE.md</filename>
124
+ <filetype>md</filetype>
125
+ <usage_type>license</usage_type>
126
+ <checksum>BFFB1AA6</checksum>
127
+ </file>
128
+ </files>
126
129
  </measure>
@@ -1,9 +1,10 @@
1
+ <?xml version="1.0"?>
1
2
  <measure>
2
3
  <schema_version>3.0</schema_version>
3
4
  <name>add_electric_vehicle_charging_load</name>
4
5
  <uid>8f2cc5fa-3aed-4bd1-8663-dc9415733759</uid>
5
- <version_id>f823fa57-d749-45a0-a87b-f3bc4cc32984</version_id>
6
- <version_modified>20210618T193323Z</version_modified>
6
+ <version_id>04662888-91c4-4b8c-b398-e7a58e3cb526</version_id>
7
+ <version_modified>20230718T215419Z</version_modified>
7
8
  <xml_checksum>0EED982D</xml_checksum>
8
9
  <class_name>AddElectricVehicleChargingLoad</class_name>
9
10
  <display_name>AddElectricVehicleChargingLoad</display_name>
@@ -135,8 +136,8 @@
135
136
  </choices>
136
137
  </argument>
137
138
  </arguments>
138
- <outputs/>
139
- <provenances/>
139
+ <outputs />
140
+ <provenances />
140
141
  <tags>
141
142
  <tag>Equipment.Electric Equipment</tag>
142
143
  </tags>
@@ -168,12 +169,6 @@
168
169
  </attribute>
169
170
  </attributes>
170
171
  <files>
171
- <file>
172
- <filename>LICENSE.md</filename>
173
- <filetype>md</filetype>
174
- <usage_type>license</usage_type>
175
- <checksum>CD7F5672</checksum>
176
- </file>
177
172
  <file>
178
173
  <filename>README.md.erb</filename>
179
174
  <filetype>erb</filetype>
@@ -192,18 +187,30 @@
192
187
  <usage_type>test</usage_type>
193
188
  <checksum>53D14E69</checksum>
194
189
  </file>
195
- <file>
196
- <filename>add_electric_vehicle_charging_load_test.rb</filename>
197
- <filetype>rb</filetype>
198
- <usage_type>test</usage_type>
199
- <checksum>52DBCB7E</checksum>
200
- </file>
201
190
  <file>
202
191
  <filename>test.osm</filename>
203
192
  <filetype>osm</filetype>
204
193
  <usage_type>test</usage_type>
205
194
  <checksum>6AAB13AE</checksum>
206
195
  </file>
196
+ <file>
197
+ <filename>README.md</filename>
198
+ <filetype>md</filetype>
199
+ <usage_type>readme</usage_type>
200
+ <checksum>253F8177</checksum>
201
+ </file>
202
+ <file>
203
+ <filename>LICENSE.md</filename>
204
+ <filetype>md</filetype>
205
+ <usage_type>license</usage_type>
206
+ <checksum>BFFB1AA6</checksum>
207
+ </file>
208
+ <file>
209
+ <filename>add_electric_vehicle_charging_load_test.rb</filename>
210
+ <filetype>rb</filetype>
211
+ <usage_type>test</usage_type>
212
+ <checksum>1E9C7A92</checksum>
213
+ </file>
207
214
  <file>
208
215
  <version>
209
216
  <software_program>OpenStudio</software_program>
@@ -213,13 +220,7 @@
213
220
  <filename>measure.rb</filename>
214
221
  <filetype>rb</filetype>
215
222
  <usage_type>script</usage_type>
216
- <checksum>549C949E</checksum>
217
- </file>
218
- <file>
219
- <filename>README.md</filename>
220
- <filetype>md</filetype>
221
- <usage_type>readme</usage_type>
222
- <checksum>253F8177</checksum>
223
+ <checksum>BE9231DB</checksum>
223
224
  </file>
224
225
  </files>
225
226
  </measure>
@@ -8,7 +8,7 @@
8
8
  This measure adjusts heating and cooling setpoints by a user-specified number of degrees and a user-specified time period. This is applied throughout the entire building.
9
9
 
10
10
  ## Modeler Description
11
- This measure will clone all of the schedules that are used as heating and cooling setpoints for thermal zones. The clones are hooked up to the thermostat in place of the original schedules. Then the schedules are adjusted by the specified values during a specified time period.
11
+ This measure will clone all of the schedules that are used as heating and cooling setpoints for thermal zones. The clones are hooked up to the thermostat in place of the original schedules. Then the schedules are adjusted by the specified values during a specified time period. There is a checkbox to determine if the thermostat for design days should be altered.
12
12
 
13
13
  ## Measure Type
14
14
  ModelMeasure
@@ -28,7 +28,7 @@ ModelMeasure
28
28
  **Model Dependent:** false
29
29
 
30
30
  ### Daily Start Time for Cooling Adjustment
31
-
31
+ Use 24 hour format HH:MM:SS
32
32
  **Name:** cooling_daily_starttime,
33
33
  **Type:** String,
34
34
  **Units:** ,
@@ -36,7 +36,7 @@ ModelMeasure
36
36
  **Model Dependent:** false
37
37
 
38
38
  ### Daily End Time for Cooling Adjustment
39
-
39
+ Use 24 hour format HH:MM:SS
40
40
  **Name:** cooling_daily_endtime,
41
41
  **Type:** String,
42
42
  **Units:** ,
@@ -44,7 +44,7 @@ ModelMeasure
44
44
  **Model Dependent:** false
45
45
 
46
46
  ### Start Date for Cooling Adjustment
47
-
47
+ In MM-DD format
48
48
  **Name:** cooling_startdate,
49
49
  **Type:** String,
50
50
  **Units:** ,
@@ -52,7 +52,7 @@ ModelMeasure
52
52
  **Model Dependent:** false
53
53
 
54
54
  ### End Date for Cooling Adjustment
55
-
55
+ In MM-DD format
56
56
  **Name:** cooling_enddate,
57
57
  **Type:** String,
58
58
  **Units:** ,
@@ -68,7 +68,7 @@ ModelMeasure
68
68
  **Model Dependent:** false
69
69
 
70
70
  ### Start Time for Heating Adjustment
71
-
71
+ Use 24 hour format HH:MM:SS
72
72
  **Name:** heating_daily_starttime,
73
73
  **Type:** String,
74
74
  **Units:** ,
@@ -76,39 +76,39 @@ ModelMeasure
76
76
  **Model Dependent:** false
77
77
 
78
78
  ### End Time for Heating Adjustment
79
-
79
+ Use 24 hour format HH:MM:SS
80
80
  **Name:** heating_daily_endtime,
81
81
  **Type:** String,
82
82
  **Units:** ,
83
83
  **Required:** false,
84
84
  **Model Dependent:** false
85
85
 
86
- ### Start Date for Heating Adjustment
87
-
86
+ ### Start Date for Heating Adjustment Period 1
87
+ In MM-DD format
88
88
  **Name:** heating_startdate_1,
89
89
  **Type:** String,
90
90
  **Units:** ,
91
91
  **Required:** false,
92
92
  **Model Dependent:** false
93
93
 
94
- ### End Date for Heating Adjustment
95
-
94
+ ### End Date for Heating Adjustment Period 1
95
+ In MM-DD format
96
96
  **Name:** heating_enddate_1,
97
97
  **Type:** String,
98
98
  **Units:** ,
99
99
  **Required:** false,
100
100
  **Model Dependent:** false
101
101
 
102
- ### Start Date for Heating Adjustment
103
-
102
+ ### Start Date for Heating Adjustment Period 2
103
+ In MM-DD format
104
104
  **Name:** heating_startdate_2,
105
105
  **Type:** String,
106
106
  **Units:** ,
107
107
  **Required:** false,
108
108
  **Model Dependent:** false
109
109
 
110
- ### End Date for Heating Adjustment
111
-
110
+ ### End Date for Heating Adjustment Period 2
111
+ In MM-DD format
112
112
  **Name:** heating_enddate_2,
113
113
  **Type:** String,
114
114
  **Units:** ,
@@ -123,7 +123,7 @@ ModelMeasure
123
123
  **Required:** false,
124
124
  **Model Dependent:** false
125
125
 
126
- ### Enable Default Climate-specific Periods Setting?
126
+ ### Enable Climate-specific Periods Setting?
127
127
 
128
128
  **Name:** auto_date,
129
129
  **Type:** Boolean,
@@ -131,7 +131,13 @@ ModelMeasure
131
131
  **Required:** false,
132
132
  **Model Dependent:** false
133
133
 
134
+ ### Alternate Peak and Take Periods
134
135
 
136
+ **Name:** alt_periods,
137
+ **Type:** Boolean,
138
+ **Units:** ,
139
+ **Required:** false,
140
+ **Model Dependent:** false
135
141
 
136
142
 
137
143