openstudio-load-flexibility-measures 0.9.0 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -0
  3. data/LICENSE.md +1 -1
  4. data/README.md +1 -0
  5. data/lib/measures/PeakPeriodSchedulesShift/LICENSE.md +13 -0
  6. data/lib/measures/PeakPeriodSchedulesShift/README.md +140 -0
  7. data/lib/measures/PeakPeriodSchedulesShift/README.md.erb +106 -0
  8. data/lib/measures/PeakPeriodSchedulesShift/docs/measures-overview.png +0 -0
  9. data/lib/measures/PeakPeriodSchedulesShift/docs/other-examples1.png +0 -0
  10. data/lib/measures/PeakPeriodSchedulesShift/docs/other-examples2.png +0 -0
  11. data/lib/measures/PeakPeriodSchedulesShift/docs/other-examples3.png +0 -0
  12. data/lib/measures/PeakPeriodSchedulesShift/measure.rb +441 -0
  13. data/lib/measures/PeakPeriodSchedulesShift/measure.xml +230 -0
  14. data/lib/measures/PeakPeriodSchedulesShift/tests/PeakPeriodSchedulesShift_Test.rb +603 -0
  15. data/lib/measures/PeakPeriodSchedulesShift/tests/base-schedules-detailed-occupancy-stochastic.osm +8306 -0
  16. data/lib/measures/PeakPeriodSchedulesShift/tests/base.osm +15647 -0
  17. data/lib/measures/PeakPeriodSchedulesShift/tests/files/schedules20230418-20180-18nykxu.csv +8761 -0
  18. data/lib/measures/PeakPeriodSchedulesShift/tests/files/unmodified_schedules.csv +8761 -0
  19. data/lib/measures/PeakPeriodSchedulesShift/tests/test_smooth_schedules.osm +23698 -0
  20. data/lib/measures/PeakPeriodSchedulesShift/tests/test_stochastic_schedules.osm +8985 -0
  21. data/lib/measures/PeakPeriodSchedulesShift/tests/test_stochastic_schedules_no_stacking.osm +8306 -0
  22. data/lib/measures/ShiftScheduleByType/LICENSE.md +1 -1
  23. data/lib/measures/ShiftScheduleByType/measure.xml +23 -23
  24. data/lib/measures/add_central_ice_storage/LICENSE.md +1 -1
  25. data/lib/measures/add_central_ice_storage/measure.xml +3 -3
  26. data/lib/measures/add_hpwh/LICENSE.md +1 -1
  27. data/lib/measures/add_hpwh/measure.rb +19 -19
  28. data/lib/measures/add_hpwh/measure.xml +4 -4
  29. data/lib/measures/add_packaged_ice_storage/LICENSE.md +1 -1
  30. data/lib/measures/add_packaged_ice_storage/measure.xml +3 -3
  31. data/lib/openstudio/load_flexibility_measures/version.rb +1 -1
  32. data/openstudio-load-flexibility-measures.gemspec +2 -3
  33. metadata +23 -20
@@ -1,4 +1,4 @@
1
- OpenStudio(R), Copyright (c) 2008, 2023 Alliance for Sustainable Energy, LLC.
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
 
@@ -1,10 +1,10 @@
1
1
  <?xml version="1.0"?>
2
2
  <measure>
3
- <schema_version>3.0</schema_version>
3
+ <schema_version>3.1</schema_version>
4
4
  <name>shift_schedule_by_type</name>
5
5
  <uid>1c642348-f074-4ad1-98ee-2208ddc89ac7</uid>
6
- <version_id>92c84435-26f6-4f6f-a853-98101f16967e</version_id>
7
- <version_modified>20230602T162400Z</version_modified>
6
+ <version_id>26b33d75-4173-4721-a59b-999f6576d90c</version_id>
7
+ <version_modified>2024-11-16T23:41:35Z</version_modified>
8
8
  <xml_checksum>B6CD1F98</xml_checksum>
9
9
  <class_name>ShiftScheduleByType</class_name>
10
10
  <display_name>ShiftScheduleByType</display_name>
@@ -71,16 +71,10 @@
71
71
  </attributes>
72
72
  <files>
73
73
  <file>
74
- <filename>README.md.erb</filename>
75
- <filetype>erb</filetype>
76
- <usage_type>readmeerb</usage_type>
77
- <checksum>703C9964</checksum>
78
- </file>
79
- <file>
80
- <filename>3Story2Space.osm</filename>
81
- <filetype>osm</filetype>
82
- <usage_type>test</usage_type>
83
- <checksum>B4AB814E</checksum>
74
+ <filename>LICENSE.md</filename>
75
+ <filetype>md</filetype>
76
+ <usage_type>license</usage_type>
77
+ <checksum>8696A072</checksum>
84
78
  </file>
85
79
  <file>
86
80
  <filename>README.md</filename>
@@ -89,16 +83,10 @@
89
83
  <checksum>74D43592</checksum>
90
84
  </file>
91
85
  <file>
92
- <filename>ShiftScheduleByType_Test.rb</filename>
93
- <filetype>rb</filetype>
94
- <usage_type>test</usage_type>
95
- <checksum>7A931A23</checksum>
96
- </file>
97
- <file>
98
- <filename>LICENSE.md</filename>
99
- <filetype>md</filetype>
100
- <usage_type>license</usage_type>
101
- <checksum>BFFB1AA6</checksum>
86
+ <filename>README.md.erb</filename>
87
+ <filetype>erb</filetype>
88
+ <usage_type>readmeerb</usage_type>
89
+ <checksum>703C9964</checksum>
102
90
  </file>
103
91
  <file>
104
92
  <version>
@@ -111,5 +99,17 @@
111
99
  <usage_type>script</usage_type>
112
100
  <checksum>50925435</checksum>
113
101
  </file>
102
+ <file>
103
+ <filename>3Story2Space.osm</filename>
104
+ <filetype>osm</filetype>
105
+ <usage_type>test</usage_type>
106
+ <checksum>B4AB814E</checksum>
107
+ </file>
108
+ <file>
109
+ <filename>ShiftScheduleByType_Test.rb</filename>
110
+ <filetype>rb</filetype>
111
+ <usage_type>test</usage_type>
112
+ <checksum>7A931A23</checksum>
113
+ </file>
114
114
  </files>
115
115
  </measure>
@@ -1,4 +1,4 @@
1
- OpenStudio(R), Copyright (c) 2008, 2023 Alliance for Sustainable Energy, LLC.
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
 
@@ -3,8 +3,8 @@
3
3
  <schema_version>3.1</schema_version>
4
4
  <name>add_central_ice_storage</name>
5
5
  <uid>48f37812-0cb6-4770-b695-beb8d8a5660d</uid>
6
- <version_id>f094a339-b1ff-4de7-8122-8e6c1e7b26b5</version_id>
7
- <version_modified>2024-06-10T22:33:01Z</version_modified>
6
+ <version_id>6c7f9443-b473-4efd-a88d-a5ffdfc3a780</version_id>
7
+ <version_modified>2024-11-16T23:41:37Z</version_modified>
8
8
  <xml_checksum>6394841D</xml_checksum>
9
9
  <class_name>AddCentralIceStorage</class_name>
10
10
  <display_name>Add Central Ice Storage</display_name>
@@ -450,7 +450,7 @@
450
450
  <filename>LICENSE.md</filename>
451
451
  <filetype>md</filetype>
452
452
  <usage_type>license</usage_type>
453
- <checksum>BFFB1AA6</checksum>
453
+ <checksum>8696A072</checksum>
454
454
  </file>
455
455
  <file>
456
456
  <filename>README.md</filename>
@@ -1,4 +1,4 @@
1
- OpenStudio(R), Copyright (c) 2008, 2023 Alliance for Sustainable Energy, LLC.
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
 
@@ -514,34 +514,34 @@ class AddHpwh < OpenStudio::Measure::ModelMeasure
514
514
  # => openstudio-standards/prototypes/common/objects/Prototype.ServiceWaterHeating.rb
515
515
  if type != 'Simplified'
516
516
  # convert zone name from STRING into OS model OBJECT
517
- hpwh = std.model_add_heatpump_water_heater(model, # model
518
- type: type, # type
517
+ hpwh = OpenstudioStandards::ServiceWaterHeating.create_heatpump_water_heater(model, # model
518
+ heat_pump_type: type, # type
519
519
  water_heater_capacity: (cap * 1000 / cop), # water_heater_capacity
520
520
  electric_backup_capacity: (bu_cap * 1000), # electric_backup_capacity
521
521
  water_heater_volume: v.to_f, # water_heater_volume
522
522
  service_water_temperature: OpenStudio.convert(140.0, 'F', 'C').get, # service_water_temperature
523
- parasitic_fuel_consumption_rate: 3.0, # parasitic_fuel_consumption_rate
524
- swh_temp_sch: sched, # swh_temp_sch
525
- cop: cop, # cop
526
- shr: 0.88, # shr
527
- tank_ua: 3.9, # tank_ua
523
+ on_cycle_parasitic_fuel_consumption_rate: 3.0, # parasitic_fuel_consumption_rate
524
+ off_cycle_parasitic_fuel_consumption_rate: 3.0, # parasitic_fuel_consumption_rate
525
+ service_water_temperature_schedule: sched, # swh_temp_sch
526
+ coefficient_of_performance: cop, # cop
528
527
  set_peak_use_flowrate: false, # set_peak_use_flowrate
529
528
  peak_flowrate: 0.0, # peak_flowrate
530
529
  flowrate_schedule: nil, # flowrate_schedule
531
530
  water_heater_thermal_zone: zone) # water_heater_thermal_zone
532
531
  else
533
- hpwh = std.model_add_water_heater(model, # model
534
- (cap * 1000), # water_heater_capacity
535
- v.to_f, # water_heater_volume
536
- 'HeatPump', # water_heater_fuel
537
- OpenStudio.convert(140.0, 'F', 'C').to_f, # service_water_temperature
538
- 3.0, # parasitic_fuel_consumption_rate
539
- sched, # swh_temp_sch
540
- false, # set_peak_use_flowrate
541
- 0.0, # peak_flowrate
542
- nil, # flowrate_schedule
543
- model.getThermalZones[0], # water_heater_thermal_zone
544
- 1) # number_water_heaters
532
+ hpwh = OpenstudioStandards::ServiceWaterHeating.create_water_heater(model, # model
533
+ water_heater_capacity: (cap * 1000), # water_heater_capacity
534
+ water_heater_volume: v.to_f, # water_heater_volume
535
+ water_heater_fuel: 'HeatPump', # water_heater_fuel
536
+ service_water_temperature: OpenStudio.convert(140.0, 'F', 'C').to_f, # service_water_temperature
537
+ on_cycle_parasitic_fuel_consumption_rate: 3.0, # parasitic_fuel_consumption_rate
538
+ off_cycle_parasitic_fuel_consumption_rate: 3.0, # parasitic_fuel_consumption_rate
539
+ service_water_temperature_schedule: sched, # swh_temp_sch
540
+ set_peak_use_flowrate: false, # set_peak_use_flowrate
541
+ peak_flowrate: 0.0, # peak_flowrate
542
+ flowrate_schedule: nil, # flowrate_schedule
543
+ water_heater_thermal_zone: model.getThermalZones[0], # water_heater_thermal_zone
544
+ number_of_water_heaters: 1) # number_water_heaters
545
545
  # set COP in PLF curve
546
546
  cop_curve = hpwh.partLoadFactorCurve.get
547
547
  cop_curve.setName(cop_curve.name.get.gsub('2.8', cop.to_s))
@@ -3,8 +3,8 @@
3
3
  <schema_version>3.1</schema_version>
4
4
  <name>add_hpwh</name>
5
5
  <uid>518cde6f-1806-4b9a-bee9-ccaac49c7a53</uid>
6
- <version_id>9e1d4f20-4538-4681-bc41-951d02a81121</version_id>
7
- <version_modified>2024-06-10T22:33:01Z</version_modified>
6
+ <version_id>1f3ac405-6cec-400a-8a3c-f4af50cd425d</version_id>
7
+ <version_modified>2024-11-16T23:41:37Z</version_modified>
8
8
  <xml_checksum>A374667A</xml_checksum>
9
9
  <class_name>AddHpwh</class_name>
10
10
  <display_name>Add HPWH for Domestic Hot Water</display_name>
@@ -355,7 +355,7 @@ The flexibility of the system is based on user-defined temperatures and times, w
355
355
  <filename>LICENSE.md</filename>
356
356
  <filetype>md</filetype>
357
357
  <usage_type>license</usage_type>
358
- <checksum>BFFB1AA6</checksum>
358
+ <checksum>8696A072</checksum>
359
359
  </file>
360
360
  <file>
361
361
  <filename>README.md</filename>
@@ -384,7 +384,7 @@ The flexibility of the system is based on user-defined temperatures and times, w
384
384
  <filename>measure.rb</filename>
385
385
  <filetype>rb</filetype>
386
386
  <usage_type>script</usage_type>
387
- <checksum>A460A43B</checksum>
387
+ <checksum>7A066B5F</checksum>
388
388
  </file>
389
389
  <file>
390
390
  <filename>SmallHotel-2A.osm</filename>
@@ -1,4 +1,4 @@
1
- OpenStudio(R), Copyright (c) 2008, 2023 Alliance for Sustainable Energy, LLC.
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
 
@@ -3,8 +3,8 @@
3
3
  <schema_version>3.1</schema_version>
4
4
  <name>add_packaged_ice_storage</name>
5
5
  <uid>2aa8c128-53b9-49fd-9aaf-9253a1f05936</uid>
6
- <version_id>21dee291-3e59-413a-9353-efb85b3e8d7b</version_id>
7
- <version_modified>2023-12-12T07:23:13Z</version_modified>
6
+ <version_id>091c4b30-9e1c-44c2-b77e-ee9236dabc46</version_id>
7
+ <version_modified>2024-11-16T23:41:37Z</version_modified>
8
8
  <xml_checksum>2617824F</xml_checksum>
9
9
  <class_name>AddPackagedIceStorage</class_name>
10
10
  <display_name>Add Packaged Ice Storage</display_name>
@@ -204,7 +204,7 @@ If 'AutoSize' is selected for ice capacity, these inputs set an ice capacity siz
204
204
  <filename>LICENSE.md</filename>
205
205
  <filetype>md</filetype>
206
206
  <usage_type>license</usage_type>
207
- <checksum>BFFB1AA6</checksum>
207
+ <checksum>8696A072</checksum>
208
208
  </file>
209
209
  <file>
210
210
  <filename>README.md</filename>
@@ -5,6 +5,6 @@
5
5
 
6
6
  module OpenStudio
7
7
  module LoadFlexibilityMeasures
8
- VERSION = '0.9.0'.freeze
8
+ VERSION = '0.10.0'.freeze
9
9
  end
10
10
  end
@@ -24,15 +24,14 @@ Gem::Specification.new do |spec|
24
24
  spec.required_ruby_version = '~> 3.2.2'
25
25
 
26
26
  spec.add_dependency 'bundler', '~> 2.4.10'
27
- spec.add_dependency 'openstudio-extension', '~> 0.8.0'
28
- spec.add_dependency 'openstudio-standards', '0.6.1'
27
+ spec.add_dependency 'openstudio-extension', '~> 0.8.2'
28
+ spec.add_dependency 'openstudio-standards', '0.7.0'
29
29
  spec.add_dependency 'openstudio_measure_tester', '~> 0.4.0'
30
30
  spec.add_dependency 'openstudio-workflow', '~> 2.4.0'
31
31
  spec.add_dependency 'bcl', '~> 0.8.0'
32
32
  spec.add_dependency 'octokit', '4.18.0' # for change logs
33
33
  spec.add_dependency 'multipart-post', '2.4.0'
34
34
  spec.add_dependency 'parallel', '1.19.1'
35
- spec.add_dependency 'regexp_parser', '2.9.0'
36
35
  spec.add_dependency 'addressable', '2.8.1'
37
36
 
38
37
  spec.add_development_dependency 'rake', '~> 13.0'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openstudio-load-flexibility-measures
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karl Heine
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2024-06-13 00:00:00.000000000 Z
12
+ date: 2024-11-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -31,28 +31,28 @@ dependencies:
31
31
  requirements:
32
32
  - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: 0.8.0
34
+ version: 0.8.2
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: 0.8.0
41
+ version: 0.8.2
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: openstudio-standards
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
46
  - - '='
47
47
  - !ruby/object:Gem::Version
48
- version: 0.6.1
48
+ version: 0.7.0
49
49
  type: :runtime
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - '='
54
54
  - !ruby/object:Gem::Version
55
- version: 0.6.1
55
+ version: 0.7.0
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: openstudio_measure_tester
58
58
  requirement: !ruby/object:Gem::Requirement
@@ -137,20 +137,6 @@ dependencies:
137
137
  - - '='
138
138
  - !ruby/object:Gem::Version
139
139
  version: 1.19.1
140
- - !ruby/object:Gem::Dependency
141
- name: regexp_parser
142
- requirement: !ruby/object:Gem::Requirement
143
- requirements:
144
- - - '='
145
- - !ruby/object:Gem::Version
146
- version: 2.9.0
147
- type: :runtime
148
- prerelease: false
149
- version_requirements: !ruby/object:Gem::Requirement
150
- requirements:
151
- - - '='
152
- - !ruby/object:Gem::Version
153
- version: 2.9.0
154
140
  - !ruby/object:Gem::Dependency
155
141
  name: addressable
156
142
  requirement: !ruby/object:Gem::Requirement
@@ -215,6 +201,23 @@ files:
215
201
  - doc_templates/copyright_erb.txt
216
202
  - doc_templates/copyright_js.txt
217
203
  - doc_templates/copyright_ruby.txt
204
+ - lib/measures/PeakPeriodSchedulesShift/LICENSE.md
205
+ - lib/measures/PeakPeriodSchedulesShift/README.md
206
+ - lib/measures/PeakPeriodSchedulesShift/README.md.erb
207
+ - lib/measures/PeakPeriodSchedulesShift/docs/measures-overview.png
208
+ - lib/measures/PeakPeriodSchedulesShift/docs/other-examples1.png
209
+ - lib/measures/PeakPeriodSchedulesShift/docs/other-examples2.png
210
+ - lib/measures/PeakPeriodSchedulesShift/docs/other-examples3.png
211
+ - lib/measures/PeakPeriodSchedulesShift/measure.rb
212
+ - lib/measures/PeakPeriodSchedulesShift/measure.xml
213
+ - lib/measures/PeakPeriodSchedulesShift/tests/PeakPeriodSchedulesShift_Test.rb
214
+ - lib/measures/PeakPeriodSchedulesShift/tests/base-schedules-detailed-occupancy-stochastic.osm
215
+ - lib/measures/PeakPeriodSchedulesShift/tests/base.osm
216
+ - lib/measures/PeakPeriodSchedulesShift/tests/files/schedules20230418-20180-18nykxu.csv
217
+ - lib/measures/PeakPeriodSchedulesShift/tests/files/unmodified_schedules.csv
218
+ - lib/measures/PeakPeriodSchedulesShift/tests/test_smooth_schedules.osm
219
+ - lib/measures/PeakPeriodSchedulesShift/tests/test_stochastic_schedules.osm
220
+ - lib/measures/PeakPeriodSchedulesShift/tests/test_stochastic_schedules_no_stacking.osm
218
221
  - lib/measures/ShiftScheduleByType/LICENSE.md
219
222
  - lib/measures/ShiftScheduleByType/README.md
220
223
  - lib/measures/ShiftScheduleByType/README.md.erb