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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -1
- data/README.md +1 -1
- data/Rakefile +5 -0
- data/lib/openstudio/workflow/adapters/input/local.rb +36 -55
- data/lib/openstudio/workflow/adapters/output/local.rb +2 -32
- data/lib/openstudio/workflow/adapters/output/socket.rb +2 -32
- data/lib/openstudio/workflow/adapters/output/web.rb +2 -32
- data/lib/openstudio/workflow/adapters/output_adapter.rb +2 -32
- data/lib/openstudio/workflow/job.rb +2 -32
- data/lib/openstudio/workflow/jobs/resources/monthly_report.idf +210 -208
- data/lib/openstudio/workflow/jobs/run_energyplus.rb +2 -32
- data/lib/openstudio/workflow/jobs/run_ep_measures.rb +2 -32
- data/lib/openstudio/workflow/jobs/run_initialization.rb +2 -32
- data/lib/openstudio/workflow/jobs/run_os_measures.rb +2 -32
- data/lib/openstudio/workflow/jobs/run_postprocess.rb +2 -32
- data/lib/openstudio/workflow/jobs/run_preprocess.rb +2 -32
- data/lib/openstudio/workflow/jobs/run_reporting_measures.rb +2 -32
- data/lib/openstudio/workflow/jobs/run_translation.rb +2 -32
- data/lib/openstudio/workflow/multi_delegator.rb +2 -32
- data/lib/openstudio/workflow/registry.rb +3 -33
- data/lib/openstudio/workflow/run.rb +2 -32
- data/lib/openstudio/workflow/time_logger.rb +2 -32
- data/lib/openstudio/workflow/util/energyplus.rb +226 -254
- data/lib/openstudio/workflow/util/io.rb +2 -32
- data/lib/openstudio/workflow/util/measure.rb +5 -35
- data/lib/openstudio/workflow/util/model.rb +2 -32
- data/lib/openstudio/workflow/util/post_process.rb +2 -32
- data/lib/openstudio/workflow/util/weather_file.rb +2 -32
- data/lib/openstudio/workflow/util.rb +2 -32
- data/lib/openstudio/workflow/version.rb +3 -33
- data/lib/openstudio/workflow_json.rb +2 -32
- data/lib/openstudio/workflow_runner.rb +2 -32
- data/lib/openstudio-workflow.rb +2 -32
- metadata +15 -29
@@ -1,38 +1,8 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# *******************************************************************************
|
4
|
-
# OpenStudio(R), Copyright (c)
|
5
|
-
#
|
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
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
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)
|
5
|
-
#
|
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)
|
3
|
-
#
|
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 ==
|
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)
|