openstudio-load-flexibility-measures 0.1.1 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.html +76 -0
  3. data/CHANGELOG.md +39 -0
  4. data/Gemfile +4 -0
  5. data/README.md +4 -4
  6. data/lib/measures/add_central_ice_storage/LICENSE.md +27 -0
  7. data/lib/measures/{add_ice_storage_to_plant_loop_for_load_flexibility → add_central_ice_storage}/README.md +6 -6
  8. data/lib/measures/{add_central_hpwh_for_load_flexibility → add_central_ice_storage}/README.md.erb +0 -0
  9. data/lib/measures/add_ice_storage_to_plant_loop_for_load_flexibility/docs/Ice Measure Implementation Guide.pdf b/data/lib/measures/add_central_ice_storage/docs/Ice Measure Implementation → Guide.pdf +0 -0
  10. data/lib/measures/{add_ice_storage_to_plant_loop_for_load_flexibility → add_central_ice_storage}/measure.rb +49 -35
  11. data/lib/measures/{add_ice_storage_to_plant_loop_for_load_flexibility → add_central_ice_storage}/measure.xml +28 -31
  12. data/lib/measures/{add_ice_storage_to_plant_loop_for_load_flexibility → add_central_ice_storage}/resources/OsLib_Schedules.rb +0 -0
  13. data/lib/measures/{add_ice_storage_to_plant_loop_for_load_flexibility/tests/add_ice_storage_to_plant_loop_for_load_flexibility_test.rb → add_central_ice_storage/tests/add_central_ice_storage_test.rb} +5 -4
  14. data/lib/measures/{add_ice_storage_to_plant_loop_for_load_flexibility → add_central_ice_storage}/tests/ice_test_model.osm +0 -0
  15. data/lib/measures/add_hpwh/LICENSE.md +27 -0
  16. data/lib/measures/{add_central_hpwh_for_load_flexibility → add_hpwh}/README.md +3 -3
  17. data/lib/measures/{add_ice_storage_to_plant_loop_for_load_flexibility → add_hpwh}/README.md.erb +0 -0
  18. data/lib/measures/add_central_hpwh_for_load_flexibility/docs/Flexible Domestic Hot Water Implementation Guide.pdf b/data/lib/measures/add_hpwh/docs/Flexible Domestic Hot Water Implementation → Guide.pdf +0 -0
  19. data/lib/measures/{add_central_hpwh_for_load_flexibility → add_hpwh}/measure.rb +5 -6
  20. data/lib/measures/{add_central_hpwh_for_load_flexibility → add_hpwh}/measure.xml +21 -22
  21. data/lib/measures/{add_central_hpwh_for_load_flexibility → add_hpwh}/tests/SmallHotel-2A.osm +0 -0
  22. data/lib/measures/{add_central_hpwh_for_load_flexibility/tests/add_central_hpwh_for_load_flexibility.rb → add_hpwh/tests/add_hphw_test.rb} +5 -5
  23. data/lib/measures/add_packaged_ice_storage/LICENSE.md +27 -0
  24. data/lib/measures/add_packaged_ice_storage/README.html +186 -0
  25. data/lib/measures/{add_distributed_ice_storage_to_air_loop_for_load_flexibility → add_packaged_ice_storage}/README.md +3 -3
  26. data/lib/measures/{add_distributed_ice_storage_to_air_loop_for_load_flexibility → add_packaged_ice_storage}/measure.rb +17 -15
  27. data/lib/measures/{add_distributed_ice_storage_to_air_loop_for_load_flexibility → add_packaged_ice_storage}/measure.xml +21 -29
  28. data/lib/measures/{add_distributed_ice_storage_to_air_loop_for_load_flexibility → add_packaged_ice_storage}/resources/TESCurves.idf +0 -0
  29. data/lib/measures/{add_distributed_ice_storage_to_air_loop_for_load_flexibility → add_packaged_ice_storage}/tests/MeasureTest.osm +0 -0
  30. data/lib/measures/{add_distributed_ice_storage_to_air_loop_for_load_flexibility/tests/add_distributed_ice_storage_to_air_loop_for_load_flexibility_test.rb → add_packaged_ice_storage/tests/add_packaged_ice_storage_test.rb} +2 -2
  31. data/lib/openstudio/load_flexibility_measures/version.rb +1 -1
  32. data/openstudio-load-flexibility-measures.gemspec +4 -2
  33. metadata +35 -39
  34. data/.DS_Store +0 -0
  35. data/lib/measures/add_central_hpwh_for_load_flexibility/LICENSE.md +0 -1
  36. data/lib/measures/add_distributed_ice_storage_to_air_loop_for_load_flexibility/LICENSE.md +0 -13
  37. data/lib/measures/add_ice_storage_to_plant_loop_for_load_flexibility/LICENSE.md +0 -13
@@ -1,13 +1,13 @@
1
1
  <?xml version="1.0"?>
2
2
  <measure>
3
3
  <schema_version>3.0</schema_version>
4
- <name>add_ice_storage_to_plant_loop_for_load_flexibility</name>
4
+ <name>add_central_ice_storage</name>
5
5
  <uid>48f37812-0cb6-4770-b695-beb8d8a5660d</uid>
6
- <version_id>ec8fce33-0983-427d-baf9-624b66c9bdb6</version_id>
7
- <version_modified>20200729T185358Z</version_modified>
6
+ <version_id>2972286b-0047-4d40-90bf-c0c56a7a5799</version_id>
7
+ <version_modified>20201203T034326Z</version_modified>
8
8
  <xml_checksum>6394841D</xml_checksum>
9
- <class_name>AddIceStorageToPlantLoopForLoadFlexibility</class_name>
10
- <display_name>Add Ice Storage Tank</display_name>
9
+ <class_name>AddCentralIceStorage</class_name>
10
+ <display_name>Add Central Ice Storage</display_name>
11
11
  <description>This measure adds an ice storage tank to a chilled water loop for the purpose of thermal energy storage.</description>
12
12
  <modeler_description>This measure adds the necessary components and performs required model articulations to add an ice thermal storage tank (ITS) to an existing chilled water loop. Special consideration is given to implementing configuration and control options. Refer to the ASHRAE CTES Design Guide or manufacturer applications guides for detailed implementation info. A user guide document is included in the docs folder of this measure to help translate design objectives into measure argument input values.</modeler_description>
13
13
  <arguments>
@@ -97,7 +97,7 @@
97
97
  <type>Double</type>
98
98
  <required>false</required>
99
99
  <model_dependent>false</model_dependent>
100
- <default_value>0.7</default_value>
100
+ <default_value>0.75</default_value>
101
101
  </argument>
102
102
  <argument>
103
103
  <name>chiller_limit</name>
@@ -106,11 +106,11 @@
106
106
  <type>Double</type>
107
107
  <required>false</required>
108
108
  <model_dependent>false</model_dependent>
109
- <default_value>0.75</default_value>
109
+ <default_value>1</default_value>
110
110
  </argument>
111
111
  <argument>
112
112
  <name>old</name>
113
- <display_name>Use Existing (Pre-Defined) Temperature Control Schedules?</display_name>
113
+ <display_name>Use Existing (Pre-Defined) Temperature Control Schedules</display_name>
114
114
  <description>Use drop-down selections below.</description>
115
115
  <type>Boolean</type>
116
116
  <required>false</required>
@@ -171,7 +171,7 @@
171
171
  </argument>
172
172
  <argument>
173
173
  <name>new</name>
174
- <display_name>Create New (Simple) Temperature Control Schedules?</display_name>
174
+ <display_name>Create New (Simple) Temperature Control Schedules</display_name>
175
175
  <description>Use entry fields below. If Pre-Defined is also selected, these new schedules will be created but not applied.</description>
176
176
  <type>Boolean</type>
177
177
  <required>false</required>
@@ -270,7 +270,7 @@
270
270
  </argument>
271
271
  <argument>
272
272
  <name>wknds</name>
273
- <display_name>Allow Ice Discharge on Weekends?</display_name>
273
+ <display_name>Allow Ice Discharge on Weekends</display_name>
274
274
  <type>Boolean</type>
275
275
  <required>true</required>
276
276
  <model_dependent>false</model_dependent>
@@ -323,8 +323,7 @@
323
323
  </argument>
324
324
  <argument>
325
325
  <name>dr</name>
326
- <display_name>Test Demand Reponse Event?</display_name>
327
- <description></description>
326
+ <display_name>Test Demand Reponse Event</display_name>
328
327
  <type>Boolean</type>
329
328
  <required>false</required>
330
329
  <model_dependent>false</model_dependent>
@@ -343,7 +342,6 @@
343
342
  <argument>
344
343
  <name>dr_add_shed</name>
345
344
  <display_name>Select if a Load Add or Load Shed Event</display_name>
346
- <description></description>
347
345
  <type>Choice</type>
348
346
  <required>false</required>
349
347
  <model_dependent>false</model_dependent>
@@ -380,7 +378,6 @@
380
378
  <argument>
381
379
  <name>dr_dur</name>
382
380
  <display_name>Enter duration of demand response event [hr]:</display_name>
383
- <description></description>
384
381
  <type>Double</type>
385
382
  <required>false</required>
386
383
  <model_dependent>false</model_dependent>
@@ -388,7 +385,7 @@
388
385
  </argument>
389
386
  <argument>
390
387
  <name>dr_chill</name>
391
- <display_name>Allow chiller to back-up ice during DR event?</display_name>
388
+ <display_name>Allow chiller to back-up ice during DR event</display_name>
392
389
  <description>Unselection may result in unmet cooling hours</description>
393
390
  <type>Boolean</type>
394
391
  <required>false</required>
@@ -461,24 +458,12 @@
461
458
  <usage_type>test</usage_type>
462
459
  <checksum>A3FC1180</checksum>
463
460
  </file>
464
- <file>
465
- <filename>LICENSE.md</filename>
466
- <filetype>md</filetype>
467
- <usage_type>license</usage_type>
468
- <checksum>59B484B4</checksum>
469
- </file>
470
461
  <file>
471
462
  <filename>Ice Measure Implementation Guide.pdf</filename>
472
463
  <filetype>pdf</filetype>
473
464
  <usage_type>doc</usage_type>
474
465
  <checksum>090841B0</checksum>
475
466
  </file>
476
- <file>
477
- <filename>README.md</filename>
478
- <filetype>md</filetype>
479
- <usage_type>readme</usage_type>
480
- <checksum>F360189C</checksum>
481
- </file>
482
467
  <file>
483
468
  <filename>OsLib_Schedules.rb</filename>
484
469
  <filetype>rb</filetype>
@@ -486,21 +471,33 @@
486
471
  <checksum>2F6D3DE2</checksum>
487
472
  </file>
488
473
  <file>
489
- <filename>add_ice_storage_to_plant_loop_for_load_flexibility_test.rb</filename>
474
+ <filename>LICENSE.md</filename>
475
+ <filetype>md</filetype>
476
+ <usage_type>license</usage_type>
477
+ <checksum>E0468DD6</checksum>
478
+ </file>
479
+ <file>
480
+ <filename>add_central_ice_storage_test.rb</filename>
490
481
  <filetype>rb</filetype>
491
482
  <usage_type>test</usage_type>
492
- <checksum>7C4811E5</checksum>
483
+ <checksum>8738374B</checksum>
493
484
  </file>
494
485
  <file>
495
486
  <version>
496
487
  <software_program>OpenStudio</software_program>
497
- <identifier>2.7.1</identifier>
488
+ <identifier>3.0.0</identifier>
498
489
  <min_compatible>2.7.1</min_compatible>
499
490
  </version>
500
491
  <filename>measure.rb</filename>
501
492
  <filetype>rb</filetype>
502
493
  <usage_type>script</usage_type>
503
- <checksum>E05DCD4F</checksum>
494
+ <checksum>F06BB506</checksum>
495
+ </file>
496
+ <file>
497
+ <filename>README.md</filename>
498
+ <filetype>md</filetype>
499
+ <usage_type>readme</usage_type>
500
+ <checksum>962B1D2E</checksum>
504
501
  </file>
505
502
  </files>
506
503
  </measure>
@@ -41,7 +41,7 @@ require 'minitest/autorun'
41
41
  require_relative '../measure.rb'
42
42
  require 'fileutils'
43
43
 
44
- class AddIceStorageToPlantLoopForLoadFlexibilityTest < Minitest::Test
44
+ class AddCentralIceStorageTest < Minitest::Test
45
45
  # def setup
46
46
  # end
47
47
 
@@ -50,7 +50,7 @@ class AddIceStorageToPlantLoopForLoadFlexibilityTest < Minitest::Test
50
50
 
51
51
  def test_number_of_arguments_and_argument_names
52
52
  # create an instance of the measure
53
- measure = AddIceStorageToPlantLoopForLoadFlexibility.new
53
+ measure = AddCentralIceStorage.new
54
54
 
55
55
  # create runner with empty OSW
56
56
  osw = OpenStudio::WorkflowJSON.new
@@ -96,7 +96,7 @@ class AddIceStorageToPlantLoopForLoadFlexibilityTest < Minitest::Test
96
96
 
97
97
  def test_bad_argument_values
98
98
  # create an instance of the measure
99
- measure = AddIceStorageToPlantLoopForLoadFlexibility.new
99
+ measure = AddCentralIceStorage.new
100
100
 
101
101
  # create runner with empty OSW
102
102
  osw = OpenStudio::WorkflowJSON.new
@@ -135,7 +135,7 @@ class AddIceStorageToPlantLoopForLoadFlexibilityTest < Minitest::Test
135
135
 
136
136
  def test_good_argument_values
137
137
  # create an instance of the measure
138
- measure = AddIceStorageToPlantLoopForLoadFlexibility.new
138
+ measure = AddCentralIceStorage.new
139
139
 
140
140
  # create runner with empty OSW
141
141
  osw = OpenStudio::WorkflowJSON.new
@@ -160,6 +160,7 @@ class AddIceStorageToPlantLoopForLoadFlexibilityTest < Minitest::Test
160
160
  args_hash['storage_capacity'] = 550
161
161
  args_hash['melt_indicator'] = 'InsideMelt'
162
162
  args_hash['chiller_resize_factor'] = 0.75
163
+ args_hash['chiller_limit'] = 0.7
163
164
  args_hash['chg_sp'] = 26
164
165
  args_hash['loop_sp'] = 42
165
166
  args_hash['delta_t'] = '16'
@@ -0,0 +1,27 @@
1
+ OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC. All rights reserved.
2
+
3
+ Redistribution and use in source and binary forms, with or without modification, are permitted
4
+ provided that the following conditions are met:
5
+
6
+ (1) Redistributions of source code must retain the above copyright notice, this list of conditions
7
+ and the following disclaimer.
8
+
9
+ (2) Redistributions in binary form must reproduce the above copyright notice, this list of conditions
10
+ and the following disclaimer in the documentation and/or other materials provided with the distribution.
11
+
12
+ (3) Neither the name of the copyright holder nor the names of any contributors may be used to endorse
13
+ or promote products derived from this software without specific prior written permission from the
14
+ respective party.
15
+
16
+ (4) Other than as required in clauses (1) and (2), distributions in any form of modifications or other
17
+ derivative works may not use the "OpenStudio" trademark, "OS", "os", or any other confusingly similar
18
+ designation without specific prior written permission from Alliance for Sustainable Energy, LLC.
19
+
20
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
21
+ WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
22
+ PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER, THE UNITED STATES GOVERNMENT,
23
+ OR ANY CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
25
+ OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
26
+ STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -2,7 +2,7 @@
2
2
 
3
3
  ###### (Automatically generated documentation)
4
4
 
5
- # flexible_domestic_hot_water
5
+ # Add HPWH for Domestic Hot Water
6
6
 
7
7
  ## Description
8
8
  This measure adds or replaces existing domestic hot water heater with air source heat pump system and allows for the addition of multiple daily flexible control time windows. The heater/tank system may charge at maximum capacity up to an elevated temperature, or float without any heat addition for a specified timeframe down to a minimum tank temperature.
@@ -21,7 +21,7 @@ ModelMeasure
21
21
  ## Arguments
22
22
 
23
23
 
24
- ### Remove existing water heater on selected loop?
24
+ ### Remove existing water heater on selected loop
25
25
 
26
26
  **Name:** remove_wh,
27
27
  **Type:** Boolean,
@@ -70,7 +70,7 @@ This is where the water heater tank will be placed
70
70
  **Model Dependent:** false
71
71
 
72
72
  ### Set heat pump rated COP (heating)
73
- [-]
73
+
74
74
  **Name:** cop,
75
75
  **Type:** Double,
76
76
  **Units:** ,
@@ -43,13 +43,13 @@
43
43
  # EnergyPlus Engineering Reference, Sections:
44
44
 
45
45
  # start the measure
46
- class AddCentralHPWHForLoadFlexibility < OpenStudio::Measure::ModelMeasure
46
+ class AddHphw < OpenStudio::Measure::ModelMeasure
47
47
  require 'openstudio-standards'
48
48
 
49
49
  # human readable name
50
50
  def name
51
51
  # Measure name should be the title case of the class name.
52
- 'flexible_domestic_hot_water'
52
+ 'Add HPWH for Domestic Hot Water'
53
53
  end
54
54
 
55
55
  # human readable description
@@ -87,7 +87,7 @@ class AddCentralHPWHForLoadFlexibility < OpenStudio::Measure::ModelMeasure
87
87
 
88
88
  # create argument for removal of existing water heater tanks on selected loop
89
89
  remove_wh = OpenStudio::Measure::OSArgument.makeBoolArgument('remove_wh', true)
90
- remove_wh.setDisplayName('Remove existing water heater on selected loop?')
90
+ remove_wh.setDisplayName('Remove existing water heater on selected loop')
91
91
  remove_wh.setDescription('')
92
92
  remove_wh.setDefaultValue(true)
93
93
  args << remove_wh
@@ -176,7 +176,6 @@ class AddCentralHPWHForLoadFlexibility < OpenStudio::Measure::ModelMeasure
176
176
  # create argument for heat pump rated cop
177
177
  cop = OpenStudio::Measure::OSArgument.makeDoubleArgument('cop', true)
178
178
  cop.setDisplayName('Set heat pump rated COP (heating)')
179
- cop.setDescription('[-]')
180
179
  cop.setDefaultValue(2.8)
181
180
  args << cop
182
181
 
@@ -600,7 +599,7 @@ class AddCentralHPWHForLoadFlexibility < OpenStudio::Measure::ModelMeasure
600
599
  'Water Heater Use Side Heat Transfer Rate',
601
600
  'Water Heater Source Side Heat Transfer Rate',
602
601
  'Water Heater Unmet Demand Heat Transfer Rate',
603
- 'Water Heater Electric Power',
602
+ 'Water Heater Electricity Rate',
604
603
  'Water Heater Water Volume Flow Rate',
605
604
  'Water Use Connections Hot Water Temperature']
606
605
 
@@ -645,4 +644,4 @@ class AddCentralHPWHForLoadFlexibility < OpenStudio::Measure::ModelMeasure
645
644
  end
646
645
 
647
646
  # register the measure to be used by the application
648
- AddCentralHPWHForLoadFlexibility.new.registerWithApplication
647
+ AddHphw.new.registerWithApplication
@@ -1,13 +1,13 @@
1
1
  <?xml version="1.0"?>
2
2
  <measure>
3
3
  <schema_version>3.0</schema_version>
4
- <name>add_central_hpwh_for_load_flexibility</name>
4
+ <name>add_hphw</name>
5
5
  <uid>518cde6f-1806-4b9a-bee9-ccaac49c7a53</uid>
6
- <version_id>13943fd8-e7ff-41ea-8e90-3c767bcfa466</version_id>
7
- <version_modified>20200727T193248Z</version_modified>
6
+ <version_id>0a64fe16-eef8-4026-a3a6-45fa8dcad162</version_id>
7
+ <version_modified>20210317T134945Z</version_modified>
8
8
  <xml_checksum>A374667A</xml_checksum>
9
- <class_name>AddCentralHPWHForLoadFlexibility</class_name>
10
- <display_name>flexible_domestic_hot_water</display_name>
9
+ <class_name>AddHphw</class_name>
10
+ <display_name>Add HPWH for Domestic Hot Water</display_name>
11
11
  <description>This measure adds or replaces existing domestic hot water heater with air source heat pump system and allows for the addition of multiple daily flexible control time windows. The heater/tank system may charge at maximum capacity up to an elevated temperature, or float without any heat addition for a specified timeframe down to a minimum tank temperature.</description>
12
12
  <modeler_description>This measure allows selection between three heat pump water heater modeling approaches in EnergyPlus.The user may select between the pumped-condenser or wrapped-condenser objects. They may also elect to use a simplified calculation which does not use the heat pump objects, but instead used an electric resistance heater and approximates the equivalent electrical input that would be required from a heat pump. This expedites simulation at the expense of accuracy.
13
13
  The flexibility of the system is based on user-defined temperatures and times, which are converted into schedule objects. There are four flexibility options. (1) None: normal operation of the DHW system at a fixed tank temperature setpoint. (2) Charge - Heat Pump: the tank is charged to a maximum temperature using only the heat pump. (3) Charge - Electric: the tank is charged using internal electric resistance heaters to a maximum temperature. (4) Float: all heating elements are turned-off for a user-defined time period unless the tank temperature falls below a minimum value. The heat pump will be prioritized in a low tank temperature event, with the electric resistance heaters serving as back-up.
@@ -15,7 +15,7 @@ The flexibility of the system is based on user-defined temperatures and times, w
15
15
  <arguments>
16
16
  <argument>
17
17
  <name>remove_wh</name>
18
- <display_name>Remove existing water heater on selected loop?</display_name>
18
+ <display_name>Remove existing water heater on selected loop</display_name>
19
19
  <description></description>
20
20
  <type>Boolean</type>
21
21
  <required>true</required>
@@ -106,7 +106,6 @@ The flexibility of the system is based on user-defined temperatures and times, w
106
106
  <argument>
107
107
  <name>cop</name>
108
108
  <display_name>Set heat pump rated COP (heating)</display_name>
109
- <description>[-]</description>
110
109
  <type>Double</type>
111
110
  <required>true</required>
112
111
  <model_dependent>false</model_dependent>
@@ -347,12 +346,6 @@ The flexibility of the system is based on user-defined temperatures and times, w
347
346
  </attribute>
348
347
  </attributes>
349
348
  <files>
350
- <file>
351
- <filename>LICENSE.md</filename>
352
- <filetype>md</filetype>
353
- <usage_type>license</usage_type>
354
- <checksum>CD7F5672</checksum>
355
- </file>
356
349
  <file>
357
350
  <filename>README.md.erb</filename>
358
351
  <filetype>erb</filetype>
@@ -371,28 +364,34 @@ The flexibility of the system is based on user-defined temperatures and times, w
371
364
  <usage_type>doc</usage_type>
372
365
  <checksum>E8326C12</checksum>
373
366
  </file>
367
+ <file>
368
+ <filename>LICENSE.md</filename>
369
+ <filetype>md</filetype>
370
+ <usage_type>license</usage_type>
371
+ <checksum>E0468DD6</checksum>
372
+ </file>
373
+ <file>
374
+ <filename>add_hphw_test.rb</filename>
375
+ <filetype>rb</filetype>
376
+ <usage_type>test</usage_type>
377
+ <checksum>15E27276</checksum>
378
+ </file>
374
379
  <file>
375
380
  <filename>README.md</filename>
376
381
  <filetype>md</filetype>
377
382
  <usage_type>readme</usage_type>
378
- <checksum>E4E50206</checksum>
383
+ <checksum>1FE9503E</checksum>
379
384
  </file>
380
385
  <file>
381
386
  <version>
382
387
  <software_program>OpenStudio</software_program>
383
- <identifier>2.8.0</identifier>
388
+ <identifier>3.0.0</identifier>
384
389
  <min_compatible>2.8.0</min_compatible>
385
390
  </version>
386
391
  <filename>measure.rb</filename>
387
392
  <filetype>rb</filetype>
388
393
  <usage_type>script</usage_type>
389
- <checksum>97C8CF92</checksum>
390
- </file>
391
- <file>
392
- <filename>add_central_hpwh_for_load_flexibility.rb</filename>
393
- <filetype>rb</filetype>
394
- <usage_type>test</usage_type>
395
- <checksum>28D79679</checksum>
394
+ <checksum>F8FEB798</checksum>
396
395
  </file>
397
396
  </files>
398
397
  </measure>
@@ -41,7 +41,7 @@ require 'minitest/autorun'
41
41
  require_relative '../measure.rb'
42
42
  require 'fileutils'
43
43
 
44
- class AddCentralHPWHForLoadFlexibilityTest < Minitest::Test
44
+ class AddHphwTest < Minitest::Test
45
45
  # def setup
46
46
  # end
47
47
 
@@ -50,7 +50,7 @@ class AddCentralHPWHForLoadFlexibilityTest < Minitest::Test
50
50
 
51
51
  def test_good_argument_values
52
52
  # create an instance of the measure
53
- measure = AddCentralHPWHForLoadFlexibility.new
53
+ measure = AddHphw.new
54
54
 
55
55
  # create runner with empty OSW
56
56
  osw = OpenStudio::WorkflowJSON.new
@@ -85,12 +85,12 @@ class AddCentralHPWHForLoadFlexibilityTest < Minitest::Test
85
85
  measure.run(model, runner, argument_map)
86
86
  result = runner.result
87
87
 
88
- # show the output
89
- show_output(result)
90
-
91
88
  # assert that it ran correctly
92
89
  assert_equal('Success', result.value.valueName)
93
90
 
91
+ # show the output
92
+ show_output(result)
93
+
94
94
  # save the model to test output directory
95
95
  output_file_path = "#{File.dirname(__FILE__)}//output/test_output.osm"
96
96
  model.save(output_file_path, true)
@@ -0,0 +1,27 @@
1
+ OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC. All rights reserved.
2
+
3
+ Redistribution and use in source and binary forms, with or without modification, are permitted
4
+ provided that the following conditions are met:
5
+
6
+ (1) Redistributions of source code must retain the above copyright notice, this list of conditions
7
+ and the following disclaimer.
8
+
9
+ (2) Redistributions in binary form must reproduce the above copyright notice, this list of conditions
10
+ and the following disclaimer in the documentation and/or other materials provided with the distribution.
11
+
12
+ (3) Neither the name of the copyright holder nor the names of any contributors may be used to endorse
13
+ or promote products derived from this software without specific prior written permission from the
14
+ respective party.
15
+
16
+ (4) Other than as required in clauses (1) and (2), distributions in any form of modifications or other
17
+ derivative works may not use the "OpenStudio" trademark, "OS", "os", or any other confusingly similar
18
+ designation without specific prior written permission from Alliance for Sustainable Energy, LLC.
19
+
20
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
21
+ WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
22
+ PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER, THE UNITED STATES GOVERNMENT,
23
+ OR ANY CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
25
+ OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
26
+ STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.