openstudio-workflow 2.3.1 → 2.4.0

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/CHANGELOG.md +5 -1
  3. data/README.md +1 -1
  4. data/Rakefile +5 -0
  5. data/lib/openstudio/workflow/adapters/input/local.rb +36 -55
  6. data/lib/openstudio/workflow/adapters/output/local.rb +2 -32
  7. data/lib/openstudio/workflow/adapters/output/socket.rb +2 -32
  8. data/lib/openstudio/workflow/adapters/output/web.rb +2 -32
  9. data/lib/openstudio/workflow/adapters/output_adapter.rb +2 -32
  10. data/lib/openstudio/workflow/job.rb +2 -32
  11. data/lib/openstudio/workflow/jobs/resources/monthly_report.idf +210 -208
  12. data/lib/openstudio/workflow/jobs/run_energyplus.rb +2 -32
  13. data/lib/openstudio/workflow/jobs/run_ep_measures.rb +2 -32
  14. data/lib/openstudio/workflow/jobs/run_initialization.rb +2 -32
  15. data/lib/openstudio/workflow/jobs/run_os_measures.rb +2 -32
  16. data/lib/openstudio/workflow/jobs/run_postprocess.rb +2 -32
  17. data/lib/openstudio/workflow/jobs/run_preprocess.rb +2 -32
  18. data/lib/openstudio/workflow/jobs/run_reporting_measures.rb +2 -32
  19. data/lib/openstudio/workflow/jobs/run_translation.rb +2 -32
  20. data/lib/openstudio/workflow/multi_delegator.rb +2 -32
  21. data/lib/openstudio/workflow/registry.rb +3 -33
  22. data/lib/openstudio/workflow/run.rb +2 -32
  23. data/lib/openstudio/workflow/time_logger.rb +2 -32
  24. data/lib/openstudio/workflow/util/energyplus.rb +226 -254
  25. data/lib/openstudio/workflow/util/io.rb +2 -32
  26. data/lib/openstudio/workflow/util/measure.rb +5 -35
  27. data/lib/openstudio/workflow/util/model.rb +2 -32
  28. data/lib/openstudio/workflow/util/post_process.rb +2 -32
  29. data/lib/openstudio/workflow/util/weather_file.rb +2 -32
  30. data/lib/openstudio/workflow/util.rb +2 -32
  31. data/lib/openstudio/workflow/version.rb +3 -33
  32. data/lib/openstudio/workflow_json.rb +2 -32
  33. data/lib/openstudio/workflow_runner.rb +2 -32
  34. data/lib/openstudio-workflow.rb +2 -32
  35. metadata +15 -29
@@ -1,38 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # *******************************************************************************
4
- # OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC.
5
- # All rights reserved.
6
- # Redistribution and use in source and binary forms, with or without
7
- # modification, are permitted provided that the following conditions are met:
8
- #
9
- # (1) Redistributions of source code must retain the above copyright notice,
10
- # this list of conditions and the following disclaimer.
11
- #
12
- # (2) Redistributions in binary form must reproduce the above copyright notice,
13
- # this list of conditions and the following disclaimer in the documentation
14
- # and/or other materials provided with the distribution.
15
- #
16
- # (3) Neither the name of the copyright holder nor the names of any contributors
17
- # may be used to endorse or promote products derived from this software without
18
- # specific prior written permission from the respective party.
19
- #
20
- # (4) Other than as required in clauses (1) and (2), distributions in any form
21
- # of modifications or other derivative works may not use the "OpenStudio"
22
- # trademark, "OS", "os", or any other confusingly similar designation without
23
- # specific prior written permission from Alliance for Sustainable Energy, LLC.
24
- #
25
- # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
26
- # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27
- # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
28
- # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER, THE UNITED STATES
29
- # GOVERNMENT, OR ANY CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
30
- # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
31
- # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
32
- # PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
33
- # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
34
- # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
35
- # EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
4
+ # OpenStudio(R), Copyright (c) Alliance for Sustainable Energy, LLC.
5
+ # See also https://openstudio.net/license
36
6
  # *******************************************************************************
37
7
 
38
8
  module OpenStudio
@@ -381,228 +351,230 @@ module OpenStudio
381
351
 
382
352
  def self.monthly_report_idf_text
383
353
  <<~HEREDOC
384
- Output:Table:Monthly,
385
- Building Energy Performance - Electricity, !- Name
386
- 2, !- Digits After Decimal
387
- InteriorLights:Electricity, !- Variable or Meter 1 Name
388
- SumOrAverage, !- Aggregation Type for Variable or Meter 1
389
- ExteriorLights:Electricity, !- Variable or Meter 2 Name
390
- SumOrAverage, !- Aggregation Type for Variable or Meter 2
391
- InteriorEquipment:Electricity, !- Variable or Meter 3 Name
392
- SumOrAverage, !- Aggregation Type for Variable or Meter 3
393
- ExteriorEquipment:Electricity, !- Variable or Meter 4 Name
394
- SumOrAverage, !- Aggregation Type for Variable or Meter 4
395
- Fans:Electricity, !- Variable or Meter 5 Name
396
- SumOrAverage, !- Aggregation Type for Variable or Meter 5
397
- Pumps:Electricity, !- Variable or Meter 6 Name
398
- SumOrAverage, !- Aggregation Type for Variable or Meter 6
399
- Heating:Electricity, !- Variable or Meter 7 Name
400
- SumOrAverage, !- Aggregation Type for Variable or Meter 7
401
- Cooling:Electricity, !- Variable or Meter 8 Name
402
- SumOrAverage, !- Aggregation Type for Variable or Meter 8
403
- HeatRejection:Electricity, !- Variable or Meter 9 Name
404
- SumOrAverage, !- Aggregation Type for Variable or Meter 9
405
- Humidifier:Electricity, !- Variable or Meter 10 Name
406
- SumOrAverage, !- Aggregation Type for Variable or Meter 10
407
- HeatRecovery:Electricity,!- Variable or Meter 11 Name
408
- SumOrAverage, !- Aggregation Type for Variable or Meter 11
409
- WaterSystems:Electricity,!- Variable or Meter 12 Name
410
- SumOrAverage, !- Aggregation Type for Variable or Meter 12
411
- Cogeneration:Electricity,!- Variable or Meter 13 Name
412
- SumOrAverage, !- Aggregation Type for Variable or Meter 13
413
- Refrigeration:Electricity,!- Variable or Meter 14 Name
414
- SumOrAverage; !- Aggregation Type for Variable or Meter 14
415
-
416
- Output:Table:Monthly,
417
- Building Energy Performance - Natural Gas, !- Name
418
- 2, !- Digits After Decimal
419
- InteriorEquipment:NaturalGas, !- Variable or Meter 1 Name
420
- SumOrAverage, !- Aggregation Type for Variable or Meter 1
421
- ExteriorEquipment:NaturalGas, !- Variable or Meter 2 Name
422
- SumOrAverage, !- Aggregation Type for Variable or Meter 2
423
- Heating:NaturalGas, !- Variable or Meter 3 Name
424
- SumOrAverage, !- Aggregation Type for Variable or Meter 3
425
- Cooling:NaturalGas, !- Variable or Meter 4 Name
426
- SumOrAverage, !- Aggregation Type for Variable or Meter 4
427
- WaterSystems:NaturalGas, !- Variable or Meter 5 Name
428
- SumOrAverage, !- Aggregation Type for Variable or Meter 5
429
- Cogeneration:NaturalGas, !- Variable or Meter 6 Name
430
- SumOrAverage; !- Aggregation Type for Variable or Meter 6
431
-
432
- Output:Table:Monthly,
433
- Building Energy Performance - District Heating, !- Name
434
- 2, !- Digits After Decimal
435
- InteriorLights:DistrictHeating, !- Variable or Meter 1 Name
436
- SumOrAverage, !- Aggregation Type for Variable or Meter 1
437
- ExteriorLights:DistrictHeating, !- Variable or Meter 2 Name
438
- SumOrAverage, !- Aggregation Type for Variable or Meter 2
439
- InteriorEquipment:DistrictHeating, !- Variable or Meter 3 Name
440
- SumOrAverage, !- Aggregation Type for Variable or Meter 3
441
- ExteriorEquipment:DistrictHeating, !- Variable or Meter 4 Name
442
- SumOrAverage, !- Aggregation Type for Variable or Meter 4
443
- Fans:DistrictHeating, !- Variable or Meter 5 Name
444
- SumOrAverage, !- Aggregation Type for Variable or Meter 5
445
- Pumps:DistrictHeating, !- Variable or Meter 6 Name
446
- SumOrAverage, !- Aggregation Type for Variable or Meter 6
447
- Heating:DistrictHeating, !- Variable or Meter 7 Name
448
- SumOrAverage, !- Aggregation Type for Variable or Meter 7
449
- Cooling:DistrictHeating, !- Variable or Meter 8 Name
450
- SumOrAverage, !- Aggregation Type for Variable or Meter 8
451
- HeatRejection:DistrictHeating, !- Variable or Meter 9 Name
452
- SumOrAverage, !- Aggregation Type for Variable or Meter 9
453
- Humidifier:DistrictHeating, !- Variable or Meter 10 Name
454
- SumOrAverage, !- Aggregation Type for Variable or Meter 10
455
- HeatRecovery:DistrictHeating,!- Variable or Meter 11 Name
456
- SumOrAverage, !- Aggregation Type for Variable or Meter 11
457
- WaterSystems:DistrictHeating,!- Variable or Meter 12 Name
458
- SumOrAverage, !- Aggregation Type for Variable or Meter 12
459
- Cogeneration:DistrictHeating,!- Variable or Meter 13 Name
460
- SumOrAverage; !- Aggregation Type for Variable or Meter 13
461
-
462
- Output:Table:Monthly,
463
- Building Energy Performance - District Cooling, !- Name
464
- 2, !- Digits After Decimal
465
- InteriorLights:DistrictCooling, !- Variable or Meter 1 Name
466
- SumOrAverage, !- Aggregation Type for Variable or Meter 1
467
- ExteriorLights:DistrictCooling, !- Variable or Meter 2 Name
468
- SumOrAverage, !- Aggregation Type for Variable or Meter 2
469
- InteriorEquipment:DistrictCooling, !- Variable or Meter 3 Name
470
- SumOrAverage, !- Aggregation Type for Variable or Meter 3
471
- ExteriorEquipment:DistrictCooling, !- Variable or Meter 4 Name
472
- SumOrAverage, !- Aggregation Type for Variable or Meter 4
473
- Fans:DistrictCooling, !- Variable or Meter 5 Name
474
- SumOrAverage, !- Aggregation Type for Variable or Meter 5
475
- Pumps:DistrictCooling, !- Variable or Meter 6 Name
476
- SumOrAverage, !- Aggregation Type for Variable or Meter 6
477
- Heating:DistrictCooling, !- Variable or Meter 7 Name
478
- SumOrAverage, !- Aggregation Type for Variable or Meter 7
479
- Cooling:DistrictCooling, !- Variable or Meter 8 Name
480
- SumOrAverage, !- Aggregation Type for Variable or Meter 8
481
- HeatRejection:DistrictCooling, !- Variable or Meter 9 Name
482
- SumOrAverage, !- Aggregation Type for Variable or Meter 9
483
- Humidifier:DistrictCooling, !- Variable or Meter 10 Name
484
- SumOrAverage, !- Aggregation Type for Variable or Meter 10
485
- HeatRecovery:DistrictCooling,!- Variable or Meter 11 Name
486
- SumOrAverage, !- Aggregation Type for Variable or Meter 11
487
- WaterSystems:DistrictCooling,!- Variable or Meter 12 Name
488
- SumOrAverage, !- Aggregation Type for Variable or Meter 12
489
- Cogeneration:DistrictCooling,!- Variable or Meter 13 Name
490
- SumOrAverage; !- Aggregation Type for Variable or Meter 13
491
-
492
- Output:Table:Monthly,
493
- Building Energy Performance - Electricity Peak Demand, !- Name
494
- 2, !- Digits After Decimal
495
- Electricity:Facility, !- Variable or Meter 1 Name
496
- Maximum, !- Aggregation Type for Variable or Meter 1
497
- InteriorLights:Electricity, !- Variable or Meter 1 Name
498
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 1
499
- ExteriorLights:Electricity, !- Variable or Meter 2 Name
500
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 2
501
- InteriorEquipment:Electricity, !- Variable or Meter 3 Name
502
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 3
503
- ExteriorEquipment:Electricity, !- Variable or Meter 4 Name
504
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 4
505
- Fans:Electricity, !- Variable or Meter 5 Name
506
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 5
507
- Pumps:Electricity, !- Variable or Meter 6 Name
508
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 6
509
- Heating:Electricity, !- Variable or Meter 7 Name
510
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 7
511
- Cooling:Electricity, !- Variable or Meter 8 Name
512
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 8
513
- HeatRejection:Electricity, !- Variable or Meter 9 Name
514
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 9
515
- Humidifier:Electricity, !- Variable or Meter 10 Name
516
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 10
517
- HeatRecovery:Electricity,!- Variable or Meter 11 Name
518
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 11
519
- WaterSystems:Electricity,!- Variable or Meter 12 Name
520
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 12
521
- Cogeneration:Electricity,!- Variable or Meter 13 Name
522
- ValueWhenMaximumOrMinimum; !- Aggregation Type for Variable or Meter 13
523
-
524
- Output:Table:Monthly,
525
- Building Energy Performance - Natural Gas Peak Demand, !- Name
526
- 2, !- Digits After Decimal
527
- NaturalGas:Facility, !- Variable or Meter 1 Name
528
- Maximum, !- Aggregation Type for Variable or Meter 1
529
- InteriorEquipment:NaturalGas, !- Variable or Meter 1 Name
530
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 1
531
- ExteriorEquipment:NaturalGas, !- Variable or Meter 2 Name
532
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 2
533
- Heating:NaturalGas, !- Variable or Meter 3 Name
534
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 3
535
- Cooling:NaturalGas, !- Variable or Meter 4 Name
536
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 4
537
- WaterSystems:NaturalGas, !- Variable or Meter 5 Name
538
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 5
539
- Cogeneration:NaturalGas, !- Variable or Meter 6 Name
540
- ValueWhenMaximumOrMinimum; !- Aggregation Type for Variable or Meter 6
541
-
542
- Output:Table:Monthly,
543
- Building Energy Performance - District Heating Peak Demand, !- Name
544
- 2, !- Digits After Decimal
545
- DistrictHeating:Facility, !- Variable or Meter 1 Name
546
- Maximum, !- Aggregation Type for Variable or Meter 1
547
- InteriorLights:DistrictHeating, !- Variable or Meter 1 Name
548
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 1
549
- ExteriorLights:DistrictHeating, !- Variable or Meter 2 Name
550
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 2
551
- InteriorEquipment:DistrictHeating, !- Variable or Meter 3 Name
552
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 3
553
- ExteriorEquipment:DistrictHeating, !- Variable or Meter 4 Name
554
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 4
555
- Fans:DistrictHeating, !- Variable or Meter 5 Name
556
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 5
557
- Pumps:DistrictHeating, !- Variable or Meter 6 Name
558
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 6
559
- Heating:DistrictHeating, !- Variable or Meter 7 Name
560
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 7
561
- Cooling:DistrictHeating, !- Variable or Meter 8 Name
562
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 8
563
- HeatRejection:DistrictHeating, !- Variable or Meter 9 Name
564
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 9
565
- Humidifier:DistrictHeating, !- Variable or Meter 10 Name
566
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 10
567
- HeatRecovery:DistrictHeating,!- Variable or Meter 11 Name
568
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 11
569
- WaterSystems:DistrictHeating,!- Variable or Meter 12 Name
570
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 12
571
- Cogeneration:DistrictHeating,!- Variable or Meter 13 Name
572
- ValueWhenMaximumOrMinimum; !- Aggregation Type for Variable or Meter 13
573
-
574
- Output:Table:Monthly,
575
- Building Energy Performance - District Cooling Peak Demand, !- Name
576
- 2, !- Digits After Decimal
577
- DistrictCooling:Facility, !- Variable or Meter 1 Name
578
- Maximum, !- Aggregation Type for Variable or Meter 1
579
- InteriorLights:DistrictCooling, !- Variable or Meter 1 Name
580
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 1
581
- ExteriorLights:DistrictCooling, !- Variable or Meter 2 Name
582
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 2
583
- InteriorEquipment:DistrictCooling, !- Variable or Meter 3 Name
584
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 3
585
- ExteriorEquipment:DistrictCooling, !- Variable or Meter 4 Name
586
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 4
587
- Fans:DistrictCooling, !- Variable or Meter 5 Name
588
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 5
589
- Pumps:DistrictCooling, !- Variable or Meter 6 Name
590
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 6
591
- Heating:DistrictCooling, !- Variable or Meter 7 Name
592
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 7
593
- Cooling:DistrictCooling, !- Variable or Meter 8 Name
594
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 8
595
- HeatRejection:DistrictCooling, !- Variable or Meter 9 Name
596
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 9
597
- Humidifier:DistrictCooling, !- Variable or Meter 10 Name
598
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 10
599
- HeatRecovery:DistrictCooling,!- Variable or Meter 11 Name
600
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 11
601
- WaterSystems:DistrictCooling,!- Variable or Meter 12 Name
602
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 12
603
- Cogeneration:DistrictCooling,!- Variable or Meter 13 Name
604
- ValueWhenMaximumOrMinimum; !- Aggregation Type for Variable or Meter 13
605
- HEREDOC
354
+ Output:Table:Monthly,
355
+ Building Energy Performance - Electricity, !- Name
356
+ 2, !- Digits After Decimal
357
+ InteriorLights:Electricity, !- Variable or Meter Name 1
358
+ SumOrAverage, !- Aggregation Type for Variable or Meter 1
359
+ ExteriorLights:Electricity, !- Variable or Meter Name 2
360
+ SumOrAverage, !- Aggregation Type for Variable or Meter 2
361
+ InteriorEquipment:Electricity, !- Variable or Meter Name 3
362
+ SumOrAverage, !- Aggregation Type for Variable or Meter 3
363
+ ExteriorEquipment:Electricity, !- Variable or Meter Name 4
364
+ SumOrAverage, !- Aggregation Type for Variable or Meter 4
365
+ Fans:Electricity, !- Variable or Meter Name 5
366
+ SumOrAverage, !- Aggregation Type for Variable or Meter 5
367
+ Pumps:Electricity, !- Variable or Meter Name 6
368
+ SumOrAverage, !- Aggregation Type for Variable or Meter 6
369
+ Heating:Electricity, !- Variable or Meter Name 7
370
+ SumOrAverage, !- Aggregation Type for Variable or Meter 7
371
+ Cooling:Electricity, !- Variable or Meter Name 8
372
+ SumOrAverage, !- Aggregation Type for Variable or Meter 8
373
+ HeatRejection:Electricity, !- Variable or Meter Name 9
374
+ SumOrAverage, !- Aggregation Type for Variable or Meter 9
375
+ Humidifier:Electricity, !- Variable or Meter Name 10
376
+ SumOrAverage, !- Aggregation Type for Variable or Meter 10
377
+ HeatRecovery:Electricity, !- Variable or Meter Name 11
378
+ SumOrAverage, !- Aggregation Type for Variable or Meter 11
379
+ WaterSystems:Electricity, !- Variable or Meter Name 12
380
+ SumOrAverage, !- Aggregation Type for Variable or Meter 12
381
+ Cogeneration:Electricity, !- Variable or Meter Name 13
382
+ SumOrAverage, !- Aggregation Type for Variable or Meter 13
383
+ Refrigeration:Electricity, !- Variable or Meter Name 14
384
+ SumOrAverage; !- Aggregation Type for Variable or Meter 14
385
+
386
+ Output:Table:Monthly,
387
+ Building Energy Performance - Natural Gas, !- Name
388
+ 2, !- Digits After Decimal
389
+ InteriorEquipment:NaturalGas, !- Variable or Meter Name 1
390
+ SumOrAverage, !- Aggregation Type for Variable or Meter 1
391
+ ExteriorEquipment:NaturalGas, !- Variable or Meter Name 2
392
+ SumOrAverage, !- Aggregation Type for Variable or Meter 2
393
+ Heating:NaturalGas, !- Variable or Meter Name 3
394
+ SumOrAverage, !- Aggregation Type for Variable or Meter 3
395
+ Cooling:NaturalGas, !- Variable or Meter Name 4
396
+ SumOrAverage, !- Aggregation Type for Variable or Meter 4
397
+ WaterSystems:NaturalGas, !- Variable or Meter Name 5
398
+ SumOrAverage, !- Aggregation Type for Variable or Meter 5
399
+ Cogeneration:NaturalGas, !- Variable or Meter Name 6
400
+ SumOrAverage; !- Aggregation Type for Variable or Meter 6
401
+
402
+ Output:Table:Monthly,
403
+ Building Energy Performance - District Heating Water, !- Name
404
+ 2, !- Digits After Decimal
405
+ InteriorLights:DistrictHeatingWater, !- Variable or Meter Name 1
406
+ SumOrAverage, !- Aggregation Type for Variable or Meter 1
407
+ ExteriorLights:DistrictHeatingWater, !- Variable or Meter Name 2
408
+ SumOrAverage, !- Aggregation Type for Variable or Meter 2
409
+ InteriorEquipment:DistrictHeatingWater, !- Variable or Meter Name 3
410
+ SumOrAverage, !- Aggregation Type for Variable or Meter 3
411
+ ExteriorEquipment:DistrictHeatingWater, !- Variable or Meter Name 4
412
+ SumOrAverage, !- Aggregation Type for Variable or Meter 4
413
+ Fans:DistrictHeatingWater, !- Variable or Meter Name 5
414
+ SumOrAverage, !- Aggregation Type for Variable or Meter 5
415
+ Pumps:DistrictHeatingWater, !- Variable or Meter Name 6
416
+ SumOrAverage, !- Aggregation Type for Variable or Meter 6
417
+ Heating:DistrictHeatingWater, !- Variable or Meter Name 7
418
+ SumOrAverage, !- Aggregation Type for Variable or Meter 7
419
+ Cooling:DistrictHeatingWater, !- Variable or Meter Name 8
420
+ SumOrAverage, !- Aggregation Type for Variable or Meter 8
421
+ HeatRejection:DistrictHeatingWater, !- Variable or Meter Name 9
422
+ SumOrAverage, !- Aggregation Type for Variable or Meter 9
423
+ Humidifier:DistrictHeatingWater, !- Variable or Meter Name 10
424
+ SumOrAverage, !- Aggregation Type for Variable or Meter 10
425
+ HeatRecovery:DistrictHeatingWater, !- Variable or Meter Name 11
426
+ SumOrAverage, !- Aggregation Type for Variable or Meter 11
427
+ WaterSystems:DistrictHeatingWater, !- Variable or Meter Name 12
428
+ SumOrAverage, !- Aggregation Type for Variable or Meter 12
429
+ Cogeneration:DistrictHeatingWater, !- Variable or Meter Name 13
430
+ SumOrAverage; !- Aggregation Type for Variable or Meter 13
431
+
432
+ Output:Table:Monthly,
433
+ Building Energy Performance - District Cooling, !- Name
434
+ 2, !- Digits After Decimal
435
+ InteriorLights:DistrictCooling, !- Variable or Meter Name 1
436
+ SumOrAverage, !- Aggregation Type for Variable or Meter 1
437
+ ExteriorLights:DistrictCooling, !- Variable or Meter Name 2
438
+ SumOrAverage, !- Aggregation Type for Variable or Meter 2
439
+ InteriorEquipment:DistrictCooling, !- Variable or Meter Name 3
440
+ SumOrAverage, !- Aggregation Type for Variable or Meter 3
441
+ ExteriorEquipment:DistrictCooling, !- Variable or Meter Name 4
442
+ SumOrAverage, !- Aggregation Type for Variable or Meter 4
443
+ Fans:DistrictCooling, !- Variable or Meter Name 5
444
+ SumOrAverage, !- Aggregation Type for Variable or Meter 5
445
+ Pumps:DistrictCooling, !- Variable or Meter Name 6
446
+ SumOrAverage, !- Aggregation Type for Variable or Meter 6
447
+ Heating:DistrictCooling, !- Variable or Meter Name 7
448
+ SumOrAverage, !- Aggregation Type for Variable or Meter 7
449
+ Cooling:DistrictCooling, !- Variable or Meter Name 8
450
+ SumOrAverage, !- Aggregation Type for Variable or Meter 8
451
+ HeatRejection:DistrictCooling, !- Variable or Meter Name 9
452
+ SumOrAverage, !- Aggregation Type for Variable or Meter 9
453
+ Humidifier:DistrictCooling, !- Variable or Meter Name 10
454
+ SumOrAverage, !- Aggregation Type for Variable or Meter 10
455
+ HeatRecovery:DistrictCooling, !- Variable or Meter Name 11
456
+ SumOrAverage, !- Aggregation Type for Variable or Meter 11
457
+ WaterSystems:DistrictCooling, !- Variable or Meter Name 12
458
+ SumOrAverage, !- Aggregation Type for Variable or Meter 12
459
+ Cogeneration:DistrictCooling, !- Variable or Meter Name 13
460
+ SumOrAverage; !- Aggregation Type for Variable or Meter 13
461
+
462
+ Output:Table:Monthly,
463
+ Building Energy Performance - Electricity Peak Demand, !- Name
464
+ 2, !- Digits After Decimal
465
+ Electricity:Facility, !- Variable or Meter Name 1
466
+ Maximum, !- Aggregation Type for Variable or Meter 1
467
+ InteriorLights:Electricity, !- Variable or Meter Name 2
468
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 2
469
+ ExteriorLights:Electricity, !- Variable or Meter Name 3
470
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 3
471
+ InteriorEquipment:Electricity, !- Variable or Meter Name 4
472
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 4
473
+ ExteriorEquipment:Electricity, !- Variable or Meter Name 5
474
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 5
475
+ Fans:Electricity, !- Variable or Meter Name 6
476
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 6
477
+ Pumps:Electricity, !- Variable or Meter Name 7
478
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 7
479
+ Heating:Electricity, !- Variable or Meter Name 8
480
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 8
481
+ Cooling:Electricity, !- Variable or Meter Name 9
482
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 9
483
+ HeatRejection:Electricity, !- Variable or Meter Name 10
484
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 10
485
+ Humidifier:Electricity, !- Variable or Meter Name 11
486
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 11
487
+ HeatRecovery:Electricity, !- Variable or Meter Name 12
488
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 12
489
+ WaterSystems:Electricity, !- Variable or Meter Name 13
490
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 13
491
+ Cogeneration:Electricity, !- Variable or Meter Name 14
492
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 14
493
+ Refrigeration:Electricity, !- Variable or Meter Name 15
494
+ ValueWhenMaximumOrMinimum; !- Aggregation Type for Variable or Meter 15
495
+
496
+ Output:Table:Monthly,
497
+ Building Energy Performance - Natural Gas Peak Demand, !- Name
498
+ 2, !- Digits After Decimal
499
+ NaturalGas:Facility, !- Variable or Meter Name 1
500
+ Maximum, !- Aggregation Type for Variable or Meter 1
501
+ InteriorEquipment:NaturalGas, !- Variable or Meter Name 2
502
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 2
503
+ ExteriorEquipment:NaturalGas, !- Variable or Meter Name 3
504
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 3
505
+ Heating:NaturalGas, !- Variable or Meter Name 4
506
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 4
507
+ Cooling:NaturalGas, !- Variable or Meter Name 5
508
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 5
509
+ WaterSystems:NaturalGas, !- Variable or Meter Name 6
510
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 6
511
+ Cogeneration:NaturalGas, !- Variable or Meter Name 7
512
+ ValueWhenMaximumOrMinimum; !- Aggregation Type for Variable or Meter 7
513
+
514
+ Output:Table:Monthly,
515
+ Building Energy Performance - District Heating Water Peak Demand, !- Name
516
+ 2, !- Digits After Decimal
517
+ DistrictHeatingWater:Facility, !- Variable or Meter Name 1
518
+ Maximum, !- Aggregation Type for Variable or Meter 1
519
+ InteriorLights:DistrictHeatingWater, !- Variable or Meter Name 2
520
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 2
521
+ ExteriorLights:DistrictHeatingWater, !- Variable or Meter Name 3
522
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 3
523
+ InteriorEquipment:DistrictHeatingWater, !- Variable or Meter Name 4
524
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 4
525
+ ExteriorEquipment:DistrictHeatingWater, !- Variable or Meter Name 5
526
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 5
527
+ Fans:DistrictHeatingWater, !- Variable or Meter Name 6
528
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 6
529
+ Pumps:DistrictHeatingWater, !- Variable or Meter Name 7
530
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 7
531
+ Heating:DistrictHeatingWater, !- Variable or Meter Name 8
532
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 8
533
+ Cooling:DistrictHeatingWater, !- Variable or Meter Name 9
534
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 9
535
+ HeatRejection:DistrictHeatingWater, !- Variable or Meter Name 10
536
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 10
537
+ Humidifier:DistrictHeatingWater, !- Variable or Meter Name 11
538
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 11
539
+ HeatRecovery:DistrictHeatingWater, !- Variable or Meter Name 12
540
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 12
541
+ WaterSystems:DistrictHeatingWater, !- Variable or Meter Name 13
542
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 13
543
+ Cogeneration:DistrictHeatingWater, !- Variable or Meter Name 14
544
+ ValueWhenMaximumOrMinimum; !- Aggregation Type for Variable or Meter 14
545
+
546
+ Output:Table:Monthly,
547
+ Building Energy Performance - District Cooling Peak Demand, !- Name
548
+ 2, !- Digits After Decimal
549
+ DistrictCooling:Facility, !- Variable or Meter Name 1
550
+ Maximum, !- Aggregation Type for Variable or Meter 1
551
+ InteriorLights:DistrictCooling, !- Variable or Meter Name 2
552
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 2
553
+ ExteriorLights:DistrictCooling, !- Variable or Meter Name 3
554
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 3
555
+ InteriorEquipment:DistrictCooling, !- Variable or Meter Name 4
556
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 4
557
+ ExteriorEquipment:DistrictCooling, !- Variable or Meter Name 5
558
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 5
559
+ Fans:DistrictCooling, !- Variable or Meter Name 6
560
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 6
561
+ Pumps:DistrictCooling, !- Variable or Meter Name 7
562
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 7
563
+ Heating:DistrictCooling, !- Variable or Meter Name 8
564
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 8
565
+ Cooling:DistrictCooling, !- Variable or Meter Name 9
566
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 9
567
+ HeatRejection:DistrictCooling, !- Variable or Meter Name 10
568
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 10
569
+ Humidifier:DistrictCooling, !- Variable or Meter Name 11
570
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 11
571
+ HeatRecovery:DistrictCooling, !- Variable or Meter Name 12
572
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 12
573
+ WaterSystems:DistrictCooling, !- Variable or Meter Name 13
574
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 13
575
+ Cogeneration:DistrictCooling, !- Variable or Meter Name 14
576
+ ValueWhenMaximumOrMinimum; !- Aggregation Type for Variable or Meter 14
577
+ HEREDOC
606
578
  end
607
579
  end
608
580
  end
@@ -1,38 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # *******************************************************************************
4
- # OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC.
5
- # All rights reserved.
6
- # Redistribution and use in source and binary forms, with or without
7
- # modification, are permitted provided that the following conditions are met:
8
- #
9
- # (1) Redistributions of source code must retain the above copyright notice,
10
- # this list of conditions and the following disclaimer.
11
- #
12
- # (2) Redistributions in binary form must reproduce the above copyright notice,
13
- # this list of conditions and the following disclaimer in the documentation
14
- # and/or other materials provided with the distribution.
15
- #
16
- # (3) Neither the name of the copyright holder nor the names of any contributors
17
- # may be used to endorse or promote products derived from this software without
18
- # specific prior written permission from the respective party.
19
- #
20
- # (4) Other than as required in clauses (1) and (2), distributions in any form
21
- # of modifications or other derivative works may not use the "OpenStudio"
22
- # trademark, "OS", "os", or any other confusingly similar designation without
23
- # specific prior written permission from Alliance for Sustainable Energy, LLC.
24
- #
25
- # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
26
- # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27
- # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
28
- # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER, THE UNITED STATES
29
- # GOVERNMENT, OR ANY CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
30
- # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
31
- # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
32
- # PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
33
- # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
34
- # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
35
- # EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
4
+ # OpenStudio(R), Copyright (c) Alliance for Sustainable Energy, LLC.
5
+ # See also https://openstudio.net/license
36
6
  # *******************************************************************************
37
7
 
38
8
  module OpenStudio
@@ -1,36 +1,6 @@
1
1
  # *******************************************************************************
2
- # OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC.
3
- # All rights reserved.
4
- # Redistribution and use in source and binary forms, with or without
5
- # modification, are permitted provided that the following conditions are met:
6
- #
7
- # (1) Redistributions of source code must retain the above copyright notice,
8
- # this list of conditions and the following disclaimer.
9
- #
10
- # (2) Redistributions in binary form must reproduce the above copyright notice,
11
- # this list of conditions and the following disclaimer in the documentation
12
- # and/or other materials provided with the distribution.
13
- #
14
- # (3) Neither the name of the copyright holder nor the names of any contributors
15
- # may be used to endorse or promote products derived from this software without
16
- # specific prior written permission from the respective party.
17
- #
18
- # (4) Other than as required in clauses (1) and (2), distributions in any form
19
- # of modifications or other derivative works may not use the "OpenStudio"
20
- # trademark, "OS", "os", or any other confusingly similar designation without
21
- # specific prior written permission from Alliance for Sustainable Energy, LLC.
22
- #
23
- # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
24
- # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25
- # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
26
- # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER, THE UNITED STATES
27
- # GOVERNMENT, OR ANY CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
28
- # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
29
- # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
30
- # PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
31
- # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
32
- # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
33
- # EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2
+ # OpenStudio(R), Copyright (c) Alliance for Sustainable Energy, LLC.
3
+ # See also https://openstudio.net/license
34
4
  # *******************************************************************************
35
5
 
36
6
  module OpenStudio
@@ -342,8 +312,8 @@ module OpenStudio
342
312
  result = nil
343
313
  begin
344
314
  load measure_path.to_s
345
- # load.c in ruby can result in changing dir to root / so preserve cwd here. happens in openstudio cli
346
- Dir.chdir measure_run_dir
315
+ # load.c in ruby can result in changing dir to root / so preserve cwd here. happens in openstudio cli
316
+ Dir.chdir measure_run_dir
347
317
  measure_object = Object.const_get(class_name).new
348
318
  rescue => e
349
319
 
@@ -412,7 +382,7 @@ module OpenStudio
412
382
  else
413
383
  skip_measure = true
414
384
  end
415
- elsif argument_value.class == Fixnum
385
+ elsif argument_value.class == Integer
416
386
  skip_measure = (argument_value != 0)
417
387
  elsif argument_value.class == Float
418
388
  skip_measure = (argument_value != 0.0)