openstudio-workflow 1.2.0 → 1.2.1

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 +72 -72
  3. data/README.md +48 -48
  4. data/Rakefile +36 -36
  5. data/lib/openstudio/workflow/adapters/input/local.rb +240 -240
  6. data/lib/openstudio/workflow/adapters/output/local.rb +95 -95
  7. data/lib/openstudio/workflow/adapters/output/socket.rb +91 -91
  8. data/lib/openstudio/workflow/adapters/output/web.rb +66 -66
  9. data/lib/openstudio/workflow/adapters/output_adapter.rb +147 -147
  10. data/lib/openstudio/workflow/job.rb +22 -22
  11. data/lib/openstudio/workflow/jobs/resources/monthly_report.idf +222 -222
  12. data/lib/openstudio/workflow/jobs/run_energyplus.rb +49 -49
  13. data/lib/openstudio/workflow/jobs/run_ep_measures.rb +55 -55
  14. data/lib/openstudio/workflow/jobs/run_initialization.rb +167 -167
  15. data/lib/openstudio/workflow/jobs/run_os_measures.rb +69 -69
  16. data/lib/openstudio/workflow/jobs/run_postprocess.rb +53 -53
  17. data/lib/openstudio/workflow/jobs/run_preprocess.rb +69 -69
  18. data/lib/openstudio/workflow/jobs/run_reporting_measures.rb +98 -98
  19. data/lib/openstudio/workflow/jobs/run_translation.rb +61 -61
  20. data/lib/openstudio/workflow/multi_delegator.rb +46 -46
  21. data/lib/openstudio/workflow/registry.rb +137 -137
  22. data/lib/openstudio/workflow/run.rb +299 -299
  23. data/lib/openstudio/workflow/time_logger.rb +53 -53
  24. data/lib/openstudio/workflow/util/energyplus.rb +564 -564
  25. data/lib/openstudio/workflow/util/io.rb +33 -33
  26. data/lib/openstudio/workflow/util/measure.rb +588 -586
  27. data/lib/openstudio/workflow/util/model.rb +100 -100
  28. data/lib/openstudio/workflow/util/post_process.rb +187 -187
  29. data/lib/openstudio/workflow/util/weather_file.rb +108 -108
  30. data/lib/openstudio/workflow/util.rb +14 -14
  31. data/lib/openstudio/workflow/version.rb +24 -24
  32. data/lib/openstudio/workflow_json.rb +426 -426
  33. data/lib/openstudio/workflow_runner.rb +215 -215
  34. data/lib/openstudio-workflow.rb +49 -49
  35. metadata +3 -3
@@ -1,147 +1,147 @@
1
- ######################################################################
2
- # Copyright (c) 2008-2014, Alliance for Sustainable Energy.
3
- # All rights reserved.
4
- #
5
- # This library is free software; you can redistribute it and/or
6
- # modify it under the terms of the GNU Lesser General Public
7
- # License as published by the Free Software Foundation; either
8
- # version 2.1 of the License, or (at your option) any later version.
9
- #
10
- # This library is distributed in the hope that it will be useful,
11
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
- # Lesser General Public License for more details.
14
- #
15
- # You should have received a copy of the GNU Lesser General Public
16
- # License along with this library; if not, write to the Free Software
17
- # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
- ######################################################################
19
-
20
- module OpenStudio
21
- module Workflow
22
- # Base class for all output adapters. These methods define the expected return behavior of the adapter instance
23
- class OutputAdapters
24
- attr_accessor :options
25
-
26
- def initialize(options = {})
27
- @options = options
28
- end
29
-
30
- def communicate_started
31
- instance.communicate_started
32
- end
33
-
34
- def communicate_transition(message, type, options = {})
35
- instance.communicate_transition message, type, options
36
- end
37
-
38
- def communicate_energyplus_stdout(line, options = {})
39
- instance.communicate_energyplus_stdout line, options
40
- end
41
-
42
- def communicate_measure_result(result, options = {})
43
- instance.communicate_measure_result result, options
44
- end
45
-
46
- def communicate_measure_attributes(measure_attributes, options = {})
47
- instance.communicate_measure_attributes measure_attributes, options
48
- end
49
-
50
- def communicate_objective_function(objectives, options = {})
51
- instance.communicate_objective_function objectives, options
52
- end
53
-
54
- def communicate_results(directory, results)
55
- instance.communicate_results directory, results
56
- end
57
-
58
- def communicate_complete
59
- instance.communicate_complete
60
- end
61
-
62
- def communicate_failure
63
- instance.communicate_failure
64
- end
65
-
66
- protected
67
-
68
- # Zip up a folder and it's contents
69
- def zip_directory(directory, zip_filename, pattern = '*')
70
- # Submethod for adding the directory to the zip folder.
71
- def add_directory_to_zip(zip_file, local_directory, root_directory)
72
- Dir[File.join(local_directory.to_s, '**', '**')].each do |file|
73
- # remove the base directory from the zip file
74
- rel_dir = local_directory.sub("#{root_directory}/", '')
75
- zip_file_to_add = file.gsub(local_directory.to_s, rel_dir.to_s)
76
- if File.directory?(file)
77
- zip_file.addDirectory(file, zip_file_to_add)
78
- else
79
- zip_file.addFile(file, zip_file_to_add)
80
- end
81
- end
82
-
83
- zip_file
84
- end
85
-
86
- FileUtils.rm_f(zip_filename) if File.exist?(zip_filename)
87
-
88
- zf = OpenStudio::ZipFile.new(zip_filename, false)
89
-
90
- Dir[File.join(directory, pattern)].each do |file|
91
- if File.directory?(file)
92
- # skip a few directory that should not be zipped as they are inputs
93
- if File.basename(file) =~ /seed|measures|weather/
94
- next
95
- end
96
- # skip x-large directory
97
- if File.size?(file)
98
- next if File.size?(file) >= 15000000
99
- end
100
- add_directory_to_zip(zf, file, directory)
101
- else
102
- next if File.extname(file) =~ /\.rb.*/
103
- next if File.extname(file) =~ /\.zip.*/
104
- # skip large non-osm/idf files
105
- if File.size(file)
106
- if File.size(file) >= 15000000
107
- next unless File.extname(file) == '.osm' || File.extname(file) == '.idf'
108
- end
109
- end
110
-
111
- zip_file_to_add = file.gsub("#{directory}/", '')
112
- zf.addFile(file, zip_file_to_add)
113
- end
114
- end
115
-
116
- zf = nil
117
- GC.start
118
-
119
- File.chmod(0o664, zip_filename)
120
- end
121
-
122
- # Main method to zip up the results of the simulation results. This will append the UUID of the data point
123
- # if it exists. This method will create two zip files. One for the reports and one for the entire data point. The
124
- # Data Point ZIP will also contain the reports.
125
- #
126
- # @param directory [String] The data point directory to zip up.
127
- # @return nil
128
- #
129
- def zip_results(directory)
130
- # create zip file using a system call
131
- if Dir.exist?(directory) && File.directory?(directory)
132
- zip_filename = @datapoint ? "data_point_#{@datapoint.uuid}.zip" : 'data_point.zip'
133
- zip_filename = File.join(directory, zip_filename)
134
- zip_directory directory, zip_filename
135
- end
136
-
137
- # zip up only the reports folder
138
- report_dir = File.join(directory, 'reports')
139
- if Dir.exist?(report_dir) && File.directory?(report_dir)
140
- zip_filename = @datapoint ? "data_point_#{@datapoint.uuid}_reports.zip" : 'data_point_reports.zip'
141
- zip_filename = File.join(directory, zip_filename)
142
- zip_directory directory, zip_filename, 'reports'
143
- end
144
- end
145
- end
146
- end
147
- end
1
+ ######################################################################
2
+ # Copyright (c) 2008-2014, Alliance for Sustainable Energy.
3
+ # All rights reserved.
4
+ #
5
+ # This library is free software; you can redistribute it and/or
6
+ # modify it under the terms of the GNU Lesser General Public
7
+ # License as published by the Free Software Foundation; either
8
+ # version 2.1 of the License, or (at your option) any later version.
9
+ #
10
+ # This library is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
+ # Lesser General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU Lesser General Public
16
+ # License along with this library; if not, write to the Free Software
17
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
+ ######################################################################
19
+
20
+ module OpenStudio
21
+ module Workflow
22
+ # Base class for all output adapters. These methods define the expected return behavior of the adapter instance
23
+ class OutputAdapters
24
+ attr_accessor :options
25
+
26
+ def initialize(options = {})
27
+ @options = options
28
+ end
29
+
30
+ def communicate_started
31
+ instance.communicate_started
32
+ end
33
+
34
+ def communicate_transition(message, type, options = {})
35
+ instance.communicate_transition message, type, options
36
+ end
37
+
38
+ def communicate_energyplus_stdout(line, options = {})
39
+ instance.communicate_energyplus_stdout line, options
40
+ end
41
+
42
+ def communicate_measure_result(result, options = {})
43
+ instance.communicate_measure_result result, options
44
+ end
45
+
46
+ def communicate_measure_attributes(measure_attributes, options = {})
47
+ instance.communicate_measure_attributes measure_attributes, options
48
+ end
49
+
50
+ def communicate_objective_function(objectives, options = {})
51
+ instance.communicate_objective_function objectives, options
52
+ end
53
+
54
+ def communicate_results(directory, results)
55
+ instance.communicate_results directory, results
56
+ end
57
+
58
+ def communicate_complete
59
+ instance.communicate_complete
60
+ end
61
+
62
+ def communicate_failure
63
+ instance.communicate_failure
64
+ end
65
+
66
+ protected
67
+
68
+ # Zip up a folder and it's contents
69
+ def zip_directory(directory, zip_filename, pattern = '*')
70
+ # Submethod for adding the directory to the zip folder.
71
+ def add_directory_to_zip(zip_file, local_directory, root_directory)
72
+ Dir[File.join(local_directory.to_s, '**', '**')].each do |file|
73
+ # remove the base directory from the zip file
74
+ rel_dir = local_directory.sub("#{root_directory}/", '')
75
+ zip_file_to_add = file.gsub(local_directory.to_s, rel_dir.to_s)
76
+ if File.directory?(file)
77
+ zip_file.addDirectory(file, zip_file_to_add)
78
+ else
79
+ zip_file.addFile(file, zip_file_to_add)
80
+ end
81
+ end
82
+
83
+ zip_file
84
+ end
85
+
86
+ FileUtils.rm_f(zip_filename) if File.exist?(zip_filename)
87
+
88
+ zf = OpenStudio::ZipFile.new(zip_filename, false)
89
+
90
+ Dir[File.join(directory, pattern)].each do |file|
91
+ if File.directory?(file)
92
+ # skip a few directory that should not be zipped as they are inputs
93
+ if File.basename(file) =~ /seed|measures|weather/
94
+ next
95
+ end
96
+ # skip x-large directory
97
+ if File.size?(file)
98
+ next if File.size?(file) >= 15000000
99
+ end
100
+ add_directory_to_zip(zf, file, directory)
101
+ else
102
+ next if File.extname(file) =~ /\.rb.*/
103
+ next if File.extname(file) =~ /\.zip.*/
104
+ # skip large non-osm/idf files
105
+ if File.size(file)
106
+ if File.size(file) >= 15000000
107
+ next unless File.extname(file) == '.osm' || File.extname(file) == '.idf'
108
+ end
109
+ end
110
+
111
+ zip_file_to_add = file.gsub("#{directory}/", '')
112
+ zf.addFile(file, zip_file_to_add)
113
+ end
114
+ end
115
+
116
+ zf = nil
117
+ GC.start
118
+
119
+ File.chmod(0o664, zip_filename)
120
+ end
121
+
122
+ # Main method to zip up the results of the simulation results. This will append the UUID of the data point
123
+ # if it exists. This method will create two zip files. One for the reports and one for the entire data point. The
124
+ # Data Point ZIP will also contain the reports.
125
+ #
126
+ # @param directory [String] The data point directory to zip up.
127
+ # @return nil
128
+ #
129
+ def zip_results(directory)
130
+ # create zip file using a system call
131
+ if Dir.exist?(directory) && File.directory?(directory)
132
+ zip_filename = @datapoint ? "data_point_#{@datapoint.uuid}.zip" : 'data_point.zip'
133
+ zip_filename = File.join(directory, zip_filename)
134
+ zip_directory directory, zip_filename
135
+ end
136
+
137
+ # zip up only the reports folder
138
+ report_dir = File.join(directory, 'reports')
139
+ if Dir.exist?(report_dir) && File.directory?(report_dir)
140
+ zip_filename = @datapoint ? "data_point_#{@datapoint.uuid}_reports.zip" : 'data_point_reports.zip'
141
+ zip_filename = File.join(directory, zip_filename)
142
+ zip_directory directory, zip_filename, 'reports'
143
+ end
144
+ end
145
+ end
146
+ end
147
+ end
@@ -1,22 +1,22 @@
1
- module OpenStudio
2
- module Workflow
3
- class Job
4
- def initialize(input_adapter, output_adapter, registry, options = {})
5
- @options = options
6
- @input_adapter = input_adapter
7
- @output_adapter = output_adapter
8
- @registry = registry
9
- @logger = @registry[:logger]
10
- @results = {}
11
-
12
- @logger.debug "#{self.class} passed the following options #{@options}"
13
- @logger.debug "#{self.class} passed the following registry #{@registry.to_hash}" if @options[:debug]
14
- end
15
- end
16
-
17
- def self.new_class(current_job, input_adapter, output_adapter, registry, options = {})
18
- new_job = Object.const_get(current_job).new(input_adapter, output_adapter, registry, options)
19
- return new_job
20
- end
21
- end
22
- end
1
+ module OpenStudio
2
+ module Workflow
3
+ class Job
4
+ def initialize(input_adapter, output_adapter, registry, options = {})
5
+ @options = options
6
+ @input_adapter = input_adapter
7
+ @output_adapter = output_adapter
8
+ @registry = registry
9
+ @logger = @registry[:logger]
10
+ @results = {}
11
+
12
+ @logger.debug "#{self.class} passed the following options #{@options}"
13
+ @logger.debug "#{self.class} passed the following registry #{@registry.to_hash}" if @options[:debug]
14
+ end
15
+ end
16
+
17
+ def self.new_class(current_job, input_adapter, output_adapter, registry, options = {})
18
+ new_job = Object.const_get(current_job).new(input_adapter, output_adapter, registry, options)
19
+ return new_job
20
+ end
21
+ end
22
+ end
@@ -1,222 +1,222 @@
1
- Output:Table:Monthly,
2
- Building Energy Performance - Electricity, !- Name
3
- 2, !- Digits After Decimal
4
- InteriorLights:Electricity, !- Variable or Meter 1 Name
5
- SumOrAverage, !- Aggregation Type for Variable or Meter 1
6
- ExteriorLights:Electricity, !- Variable or Meter 2 Name
7
- SumOrAverage, !- Aggregation Type for Variable or Meter 2
8
- InteriorEquipment:Electricity, !- Variable or Meter 3 Name
9
- SumOrAverage, !- Aggregation Type for Variable or Meter 3
10
- ExteriorEquipment:Electricity, !- Variable or Meter 4 Name
11
- SumOrAverage, !- Aggregation Type for Variable or Meter 4
12
- Fans:Electricity, !- Variable or Meter 5 Name
13
- SumOrAverage, !- Aggregation Type for Variable or Meter 5
14
- Pumps:Electricity, !- Variable or Meter 6 Name
15
- SumOrAverage, !- Aggregation Type for Variable or Meter 6
16
- Heating:Electricity, !- Variable or Meter 7 Name
17
- SumOrAverage, !- Aggregation Type for Variable or Meter 7
18
- Cooling:Electricity, !- Variable or Meter 8 Name
19
- SumOrAverage, !- Aggregation Type for Variable or Meter 8
20
- HeatRejection:Electricity, !- Variable or Meter 9 Name
21
- SumOrAverage, !- Aggregation Type for Variable or Meter 9
22
- Humidifier:Electricity, !- Variable or Meter 10 Name
23
- SumOrAverage, !- Aggregation Type for Variable or Meter 10
24
- HeatRecovery:Electricity,!- Variable or Meter 11 Name
25
- SumOrAverage, !- Aggregation Type for Variable or Meter 11
26
- WaterSystems:Electricity,!- Variable or Meter 12 Name
27
- SumOrAverage, !- Aggregation Type for Variable or Meter 12
28
- Cogeneration:Electricity,!- Variable or Meter 13 Name
29
- SumOrAverage, !- Aggregation Type for Variable or Meter 13
30
- Refrigeration:Electricity,!- Variable or Meter 14 Name
31
- SumOrAverage; !- Aggregation Type for Variable or Meter 14
32
-
33
- Output:Table:Monthly,
34
- Building Energy Performance - Natural Gas, !- Name
35
- 2, !- Digits After Decimal
36
- InteriorEquipment:Gas, !- Variable or Meter 1 Name
37
- SumOrAverage, !- Aggregation Type for Variable or Meter 1
38
- ExteriorEquipment:Gas, !- Variable or Meter 2 Name
39
- SumOrAverage, !- Aggregation Type for Variable or Meter 2
40
- Heating:Gas, !- Variable or Meter 3 Name
41
- SumOrAverage, !- Aggregation Type for Variable or Meter 3
42
- Cooling:Gas, !- Variable or Meter 4 Name
43
- SumOrAverage, !- Aggregation Type for Variable or Meter 4
44
- WaterSystems:Gas, !- Variable or Meter 5 Name
45
- SumOrAverage, !- Aggregation Type for Variable or Meter 5
46
- Cogeneration:Gas, !- Variable or Meter 6 Name
47
- SumOrAverage; !- Aggregation Type for Variable or Meter 6
48
-
49
- Output:Table:Monthly,
50
- Building Energy Performance - District Heating, !- Name
51
- 2, !- Digits After Decimal
52
- InteriorLights:DistrictHeating, !- Variable or Meter 1 Name
53
- SumOrAverage, !- Aggregation Type for Variable or Meter 1
54
- ExteriorLights:DistrictHeating, !- Variable or Meter 2 Name
55
- SumOrAverage, !- Aggregation Type for Variable or Meter 2
56
- InteriorEquipment:DistrictHeating, !- Variable or Meter 3 Name
57
- SumOrAverage, !- Aggregation Type for Variable or Meter 3
58
- ExteriorEquipment:DistrictHeating, !- Variable or Meter 4 Name
59
- SumOrAverage, !- Aggregation Type for Variable or Meter 4
60
- Fans:DistrictHeating, !- Variable or Meter 5 Name
61
- SumOrAverage, !- Aggregation Type for Variable or Meter 5
62
- Pumps:DistrictHeating, !- Variable or Meter 6 Name
63
- SumOrAverage, !- Aggregation Type for Variable or Meter 6
64
- Heating:DistrictHeating, !- Variable or Meter 7 Name
65
- SumOrAverage, !- Aggregation Type for Variable or Meter 7
66
- Cooling:DistrictHeating, !- Variable or Meter 8 Name
67
- SumOrAverage, !- Aggregation Type for Variable or Meter 8
68
- HeatRejection:DistrictHeating, !- Variable or Meter 9 Name
69
- SumOrAverage, !- Aggregation Type for Variable or Meter 9
70
- Humidifier:DistrictHeating, !- Variable or Meter 10 Name
71
- SumOrAverage, !- Aggregation Type for Variable or Meter 10
72
- HeatRecovery:DistrictHeating,!- Variable or Meter 11 Name
73
- SumOrAverage, !- Aggregation Type for Variable or Meter 11
74
- WaterSystems:DistrictHeating,!- Variable or Meter 12 Name
75
- SumOrAverage, !- Aggregation Type for Variable or Meter 12
76
- Cogeneration:DistrictHeating,!- Variable or Meter 13 Name
77
- SumOrAverage; !- Aggregation Type for Variable or Meter 13
78
-
79
- Output:Table:Monthly,
80
- Building Energy Performance - District Cooling, !- Name
81
- 2, !- Digits After Decimal
82
- InteriorLights:DistrictCooling, !- Variable or Meter 1 Name
83
- SumOrAverage, !- Aggregation Type for Variable or Meter 1
84
- ExteriorLights:DistrictCooling, !- Variable or Meter 2 Name
85
- SumOrAverage, !- Aggregation Type for Variable or Meter 2
86
- InteriorEquipment:DistrictCooling, !- Variable or Meter 3 Name
87
- SumOrAverage, !- Aggregation Type for Variable or Meter 3
88
- ExteriorEquipment:DistrictCooling, !- Variable or Meter 4 Name
89
- SumOrAverage, !- Aggregation Type for Variable or Meter 4
90
- Fans:DistrictCooling, !- Variable or Meter 5 Name
91
- SumOrAverage, !- Aggregation Type for Variable or Meter 5
92
- Pumps:DistrictCooling, !- Variable or Meter 6 Name
93
- SumOrAverage, !- Aggregation Type for Variable or Meter 6
94
- Heating:DistrictCooling, !- Variable or Meter 7 Name
95
- SumOrAverage, !- Aggregation Type for Variable or Meter 7
96
- Cooling:DistrictCooling, !- Variable or Meter 8 Name
97
- SumOrAverage, !- Aggregation Type for Variable or Meter 8
98
- HeatRejection:DistrictCooling, !- Variable or Meter 9 Name
99
- SumOrAverage, !- Aggregation Type for Variable or Meter 9
100
- Humidifier:DistrictCooling, !- Variable or Meter 10 Name
101
- SumOrAverage, !- Aggregation Type for Variable or Meter 10
102
- HeatRecovery:DistrictCooling,!- Variable or Meter 11 Name
103
- SumOrAverage, !- Aggregation Type for Variable or Meter 11
104
- WaterSystems:DistrictCooling,!- Variable or Meter 12 Name
105
- SumOrAverage, !- Aggregation Type for Variable or Meter 12
106
- Cogeneration:DistrictCooling,!- Variable or Meter 13 Name
107
- SumOrAverage; !- Aggregation Type for Variable or Meter 13
108
-
109
- Output:Table:Monthly,
110
- Building Energy Performance - Electricity Peak Demand, !- Name
111
- 2, !- Digits After Decimal
112
- Electricity:Facility, !- Variable or Meter 1 Name
113
- Maximum, !- Aggregation Type for Variable or Meter 1
114
- InteriorLights:Electricity, !- Variable or Meter 1 Name
115
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 1
116
- ExteriorLights:Electricity, !- Variable or Meter 2 Name
117
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 2
118
- InteriorEquipment:Electricity, !- Variable or Meter 3 Name
119
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 3
120
- ExteriorEquipment:Electricity, !- Variable or Meter 4 Name
121
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 4
122
- Fans:Electricity, !- Variable or Meter 5 Name
123
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 5
124
- Pumps:Electricity, !- Variable or Meter 6 Name
125
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 6
126
- Heating:Electricity, !- Variable or Meter 7 Name
127
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 7
128
- Cooling:Electricity, !- Variable or Meter 8 Name
129
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 8
130
- HeatRejection:Electricity, !- Variable or Meter 9 Name
131
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 9
132
- Humidifier:Electricity, !- Variable or Meter 10 Name
133
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 10
134
- HeatRecovery:Electricity,!- Variable or Meter 11 Name
135
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 11
136
- WaterSystems:Electricity,!- Variable or Meter 12 Name
137
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 12
138
- Cogeneration:Electricity,!- Variable or Meter 13 Name
139
- ValueWhenMaximumOrMinimum; !- Aggregation Type for Variable or Meter 13
140
-
141
- Output:Table:Monthly,
142
- Building Energy Performance - Natural Gas Peak Demand, !- Name
143
- 2, !- Digits After Decimal
144
- Gas:Facility, !- Variable or Meter 1 Name
145
- Maximum, !- Aggregation Type for Variable or Meter 1
146
- InteriorEquipment:Gas, !- Variable or Meter 1 Name
147
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 1
148
- ExteriorEquipment:Gas, !- Variable or Meter 2 Name
149
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 2
150
- Heating:Gas, !- Variable or Meter 3 Name
151
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 3
152
- Cooling:Gas, !- Variable or Meter 4 Name
153
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 4
154
- WaterSystems:Gas, !- Variable or Meter 5 Name
155
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 5
156
- Cogeneration:Gas, !- Variable or Meter 6 Name
157
- ValueWhenMaximumOrMinimum; !- Aggregation Type for Variable or Meter 6
158
-
159
- Output:Table:Monthly,
160
- Building Energy Performance - District Heating Peak Demand, !- Name
161
- 2, !- Digits After Decimal
162
- DistrictHeating:Facility, !- Variable or Meter 1 Name
163
- Maximum, !- Aggregation Type for Variable or Meter 1
164
- InteriorLights:DistrictHeating, !- Variable or Meter 1 Name
165
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 1
166
- ExteriorLights:DistrictHeating, !- Variable or Meter 2 Name
167
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 2
168
- InteriorEquipment:DistrictHeating, !- Variable or Meter 3 Name
169
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 3
170
- ExteriorEquipment:DistrictHeating, !- Variable or Meter 4 Name
171
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 4
172
- Fans:DistrictHeating, !- Variable or Meter 5 Name
173
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 5
174
- Pumps:DistrictHeating, !- Variable or Meter 6 Name
175
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 6
176
- Heating:DistrictHeating, !- Variable or Meter 7 Name
177
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 7
178
- Cooling:DistrictHeating, !- Variable or Meter 8 Name
179
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 8
180
- HeatRejection:DistrictHeating, !- Variable or Meter 9 Name
181
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 9
182
- Humidifier:DistrictHeating, !- Variable or Meter 10 Name
183
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 10
184
- HeatRecovery:DistrictHeating,!- Variable or Meter 11 Name
185
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 11
186
- WaterSystems:DistrictHeating,!- Variable or Meter 12 Name
187
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 12
188
- Cogeneration:DistrictHeating,!- Variable or Meter 13 Name
189
- ValueWhenMaximumOrMinimum; !- Aggregation Type for Variable or Meter 13
190
-
191
- Output:Table:Monthly,
192
- Building Energy Performance - District Cooling Peak Demand, !- Name
193
- 2, !- Digits After Decimal
194
- DistrictCooling:Facility, !- Variable or Meter 1 Name
195
- Maximum, !- Aggregation Type for Variable or Meter 1
196
- InteriorLights:DistrictCooling, !- Variable or Meter 1 Name
197
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 1
198
- ExteriorLights:DistrictCooling, !- Variable or Meter 2 Name
199
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 2
200
- InteriorEquipment:DistrictCooling, !- Variable or Meter 3 Name
201
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 3
202
- ExteriorEquipment:DistrictCooling, !- Variable or Meter 4 Name
203
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 4
204
- Fans:DistrictCooling, !- Variable or Meter 5 Name
205
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 5
206
- Pumps:DistrictCooling, !- Variable or Meter 6 Name
207
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 6
208
- Heating:DistrictCooling, !- Variable or Meter 7 Name
209
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 7
210
- Cooling:DistrictCooling, !- Variable or Meter 8 Name
211
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 8
212
- HeatRejection:DistrictCooling, !- Variable or Meter 9 Name
213
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 9
214
- Humidifier:DistrictCooling, !- Variable or Meter 10 Name
215
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 10
216
- HeatRecovery:DistrictCooling,!- Variable or Meter 11 Name
217
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 11
218
- WaterSystems:DistrictCooling,!- Variable or Meter 12 Name
219
- ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 12
220
- Cogeneration:DistrictCooling,!- Variable or Meter 13 Name
221
- ValueWhenMaximumOrMinimum; !- Aggregation Type for Variable or Meter 13
222
-
1
+ Output:Table:Monthly,
2
+ Building Energy Performance - Electricity, !- Name
3
+ 2, !- Digits After Decimal
4
+ InteriorLights:Electricity, !- Variable or Meter 1 Name
5
+ SumOrAverage, !- Aggregation Type for Variable or Meter 1
6
+ ExteriorLights:Electricity, !- Variable or Meter 2 Name
7
+ SumOrAverage, !- Aggregation Type for Variable or Meter 2
8
+ InteriorEquipment:Electricity, !- Variable or Meter 3 Name
9
+ SumOrAverage, !- Aggregation Type for Variable or Meter 3
10
+ ExteriorEquipment:Electricity, !- Variable or Meter 4 Name
11
+ SumOrAverage, !- Aggregation Type for Variable or Meter 4
12
+ Fans:Electricity, !- Variable or Meter 5 Name
13
+ SumOrAverage, !- Aggregation Type for Variable or Meter 5
14
+ Pumps:Electricity, !- Variable or Meter 6 Name
15
+ SumOrAverage, !- Aggregation Type for Variable or Meter 6
16
+ Heating:Electricity, !- Variable or Meter 7 Name
17
+ SumOrAverage, !- Aggregation Type for Variable or Meter 7
18
+ Cooling:Electricity, !- Variable or Meter 8 Name
19
+ SumOrAverage, !- Aggregation Type for Variable or Meter 8
20
+ HeatRejection:Electricity, !- Variable or Meter 9 Name
21
+ SumOrAverage, !- Aggregation Type for Variable or Meter 9
22
+ Humidifier:Electricity, !- Variable or Meter 10 Name
23
+ SumOrAverage, !- Aggregation Type for Variable or Meter 10
24
+ HeatRecovery:Electricity,!- Variable or Meter 11 Name
25
+ SumOrAverage, !- Aggregation Type for Variable or Meter 11
26
+ WaterSystems:Electricity,!- Variable or Meter 12 Name
27
+ SumOrAverage, !- Aggregation Type for Variable or Meter 12
28
+ Cogeneration:Electricity,!- Variable or Meter 13 Name
29
+ SumOrAverage, !- Aggregation Type for Variable or Meter 13
30
+ Refrigeration:Electricity,!- Variable or Meter 14 Name
31
+ SumOrAverage; !- Aggregation Type for Variable or Meter 14
32
+
33
+ Output:Table:Monthly,
34
+ Building Energy Performance - Natural Gas, !- Name
35
+ 2, !- Digits After Decimal
36
+ InteriorEquipment:Gas, !- Variable or Meter 1 Name
37
+ SumOrAverage, !- Aggregation Type for Variable or Meter 1
38
+ ExteriorEquipment:Gas, !- Variable or Meter 2 Name
39
+ SumOrAverage, !- Aggregation Type for Variable or Meter 2
40
+ Heating:Gas, !- Variable or Meter 3 Name
41
+ SumOrAverage, !- Aggregation Type for Variable or Meter 3
42
+ Cooling:Gas, !- Variable or Meter 4 Name
43
+ SumOrAverage, !- Aggregation Type for Variable or Meter 4
44
+ WaterSystems:Gas, !- Variable or Meter 5 Name
45
+ SumOrAverage, !- Aggregation Type for Variable or Meter 5
46
+ Cogeneration:Gas, !- Variable or Meter 6 Name
47
+ SumOrAverage; !- Aggregation Type for Variable or Meter 6
48
+
49
+ Output:Table:Monthly,
50
+ Building Energy Performance - District Heating, !- Name
51
+ 2, !- Digits After Decimal
52
+ InteriorLights:DistrictHeating, !- Variable or Meter 1 Name
53
+ SumOrAverage, !- Aggregation Type for Variable or Meter 1
54
+ ExteriorLights:DistrictHeating, !- Variable or Meter 2 Name
55
+ SumOrAverage, !- Aggregation Type for Variable or Meter 2
56
+ InteriorEquipment:DistrictHeating, !- Variable or Meter 3 Name
57
+ SumOrAverage, !- Aggregation Type for Variable or Meter 3
58
+ ExteriorEquipment:DistrictHeating, !- Variable or Meter 4 Name
59
+ SumOrAverage, !- Aggregation Type for Variable or Meter 4
60
+ Fans:DistrictHeating, !- Variable or Meter 5 Name
61
+ SumOrAverage, !- Aggregation Type for Variable or Meter 5
62
+ Pumps:DistrictHeating, !- Variable or Meter 6 Name
63
+ SumOrAverage, !- Aggregation Type for Variable or Meter 6
64
+ Heating:DistrictHeating, !- Variable or Meter 7 Name
65
+ SumOrAverage, !- Aggregation Type for Variable or Meter 7
66
+ Cooling:DistrictHeating, !- Variable or Meter 8 Name
67
+ SumOrAverage, !- Aggregation Type for Variable or Meter 8
68
+ HeatRejection:DistrictHeating, !- Variable or Meter 9 Name
69
+ SumOrAverage, !- Aggregation Type for Variable or Meter 9
70
+ Humidifier:DistrictHeating, !- Variable or Meter 10 Name
71
+ SumOrAverage, !- Aggregation Type for Variable or Meter 10
72
+ HeatRecovery:DistrictHeating,!- Variable or Meter 11 Name
73
+ SumOrAverage, !- Aggregation Type for Variable or Meter 11
74
+ WaterSystems:DistrictHeating,!- Variable or Meter 12 Name
75
+ SumOrAverage, !- Aggregation Type for Variable or Meter 12
76
+ Cogeneration:DistrictHeating,!- Variable or Meter 13 Name
77
+ SumOrAverage; !- Aggregation Type for Variable or Meter 13
78
+
79
+ Output:Table:Monthly,
80
+ Building Energy Performance - District Cooling, !- Name
81
+ 2, !- Digits After Decimal
82
+ InteriorLights:DistrictCooling, !- Variable or Meter 1 Name
83
+ SumOrAverage, !- Aggregation Type for Variable or Meter 1
84
+ ExteriorLights:DistrictCooling, !- Variable or Meter 2 Name
85
+ SumOrAverage, !- Aggregation Type for Variable or Meter 2
86
+ InteriorEquipment:DistrictCooling, !- Variable or Meter 3 Name
87
+ SumOrAverage, !- Aggregation Type for Variable or Meter 3
88
+ ExteriorEquipment:DistrictCooling, !- Variable or Meter 4 Name
89
+ SumOrAverage, !- Aggregation Type for Variable or Meter 4
90
+ Fans:DistrictCooling, !- Variable or Meter 5 Name
91
+ SumOrAverage, !- Aggregation Type for Variable or Meter 5
92
+ Pumps:DistrictCooling, !- Variable or Meter 6 Name
93
+ SumOrAverage, !- Aggregation Type for Variable or Meter 6
94
+ Heating:DistrictCooling, !- Variable or Meter 7 Name
95
+ SumOrAverage, !- Aggregation Type for Variable or Meter 7
96
+ Cooling:DistrictCooling, !- Variable or Meter 8 Name
97
+ SumOrAverage, !- Aggregation Type for Variable or Meter 8
98
+ HeatRejection:DistrictCooling, !- Variable or Meter 9 Name
99
+ SumOrAverage, !- Aggregation Type for Variable or Meter 9
100
+ Humidifier:DistrictCooling, !- Variable or Meter 10 Name
101
+ SumOrAverage, !- Aggregation Type for Variable or Meter 10
102
+ HeatRecovery:DistrictCooling,!- Variable or Meter 11 Name
103
+ SumOrAverage, !- Aggregation Type for Variable or Meter 11
104
+ WaterSystems:DistrictCooling,!- Variable or Meter 12 Name
105
+ SumOrAverage, !- Aggregation Type for Variable or Meter 12
106
+ Cogeneration:DistrictCooling,!- Variable or Meter 13 Name
107
+ SumOrAverage; !- Aggregation Type for Variable or Meter 13
108
+
109
+ Output:Table:Monthly,
110
+ Building Energy Performance - Electricity Peak Demand, !- Name
111
+ 2, !- Digits After Decimal
112
+ Electricity:Facility, !- Variable or Meter 1 Name
113
+ Maximum, !- Aggregation Type for Variable or Meter 1
114
+ InteriorLights:Electricity, !- Variable or Meter 1 Name
115
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 1
116
+ ExteriorLights:Electricity, !- Variable or Meter 2 Name
117
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 2
118
+ InteriorEquipment:Electricity, !- Variable or Meter 3 Name
119
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 3
120
+ ExteriorEquipment:Electricity, !- Variable or Meter 4 Name
121
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 4
122
+ Fans:Electricity, !- Variable or Meter 5 Name
123
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 5
124
+ Pumps:Electricity, !- Variable or Meter 6 Name
125
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 6
126
+ Heating:Electricity, !- Variable or Meter 7 Name
127
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 7
128
+ Cooling:Electricity, !- Variable or Meter 8 Name
129
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 8
130
+ HeatRejection:Electricity, !- Variable or Meter 9 Name
131
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 9
132
+ Humidifier:Electricity, !- Variable or Meter 10 Name
133
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 10
134
+ HeatRecovery:Electricity,!- Variable or Meter 11 Name
135
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 11
136
+ WaterSystems:Electricity,!- Variable or Meter 12 Name
137
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 12
138
+ Cogeneration:Electricity,!- Variable or Meter 13 Name
139
+ ValueWhenMaximumOrMinimum; !- Aggregation Type for Variable or Meter 13
140
+
141
+ Output:Table:Monthly,
142
+ Building Energy Performance - Natural Gas Peak Demand, !- Name
143
+ 2, !- Digits After Decimal
144
+ Gas:Facility, !- Variable or Meter 1 Name
145
+ Maximum, !- Aggregation Type for Variable or Meter 1
146
+ InteriorEquipment:Gas, !- Variable or Meter 1 Name
147
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 1
148
+ ExteriorEquipment:Gas, !- Variable or Meter 2 Name
149
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 2
150
+ Heating:Gas, !- Variable or Meter 3 Name
151
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 3
152
+ Cooling:Gas, !- Variable or Meter 4 Name
153
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 4
154
+ WaterSystems:Gas, !- Variable or Meter 5 Name
155
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 5
156
+ Cogeneration:Gas, !- Variable or Meter 6 Name
157
+ ValueWhenMaximumOrMinimum; !- Aggregation Type for Variable or Meter 6
158
+
159
+ Output:Table:Monthly,
160
+ Building Energy Performance - District Heating Peak Demand, !- Name
161
+ 2, !- Digits After Decimal
162
+ DistrictHeating:Facility, !- Variable or Meter 1 Name
163
+ Maximum, !- Aggregation Type for Variable or Meter 1
164
+ InteriorLights:DistrictHeating, !- Variable or Meter 1 Name
165
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 1
166
+ ExteriorLights:DistrictHeating, !- Variable or Meter 2 Name
167
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 2
168
+ InteriorEquipment:DistrictHeating, !- Variable or Meter 3 Name
169
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 3
170
+ ExteriorEquipment:DistrictHeating, !- Variable or Meter 4 Name
171
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 4
172
+ Fans:DistrictHeating, !- Variable or Meter 5 Name
173
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 5
174
+ Pumps:DistrictHeating, !- Variable or Meter 6 Name
175
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 6
176
+ Heating:DistrictHeating, !- Variable or Meter 7 Name
177
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 7
178
+ Cooling:DistrictHeating, !- Variable or Meter 8 Name
179
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 8
180
+ HeatRejection:DistrictHeating, !- Variable or Meter 9 Name
181
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 9
182
+ Humidifier:DistrictHeating, !- Variable or Meter 10 Name
183
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 10
184
+ HeatRecovery:DistrictHeating,!- Variable or Meter 11 Name
185
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 11
186
+ WaterSystems:DistrictHeating,!- Variable or Meter 12 Name
187
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 12
188
+ Cogeneration:DistrictHeating,!- Variable or Meter 13 Name
189
+ ValueWhenMaximumOrMinimum; !- Aggregation Type for Variable or Meter 13
190
+
191
+ Output:Table:Monthly,
192
+ Building Energy Performance - District Cooling Peak Demand, !- Name
193
+ 2, !- Digits After Decimal
194
+ DistrictCooling:Facility, !- Variable or Meter 1 Name
195
+ Maximum, !- Aggregation Type for Variable or Meter 1
196
+ InteriorLights:DistrictCooling, !- Variable or Meter 1 Name
197
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 1
198
+ ExteriorLights:DistrictCooling, !- Variable or Meter 2 Name
199
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 2
200
+ InteriorEquipment:DistrictCooling, !- Variable or Meter 3 Name
201
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 3
202
+ ExteriorEquipment:DistrictCooling, !- Variable or Meter 4 Name
203
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 4
204
+ Fans:DistrictCooling, !- Variable or Meter 5 Name
205
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 5
206
+ Pumps:DistrictCooling, !- Variable or Meter 6 Name
207
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 6
208
+ Heating:DistrictCooling, !- Variable or Meter 7 Name
209
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 7
210
+ Cooling:DistrictCooling, !- Variable or Meter 8 Name
211
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 8
212
+ HeatRejection:DistrictCooling, !- Variable or Meter 9 Name
213
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 9
214
+ Humidifier:DistrictCooling, !- Variable or Meter 10 Name
215
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 10
216
+ HeatRecovery:DistrictCooling,!- Variable or Meter 11 Name
217
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 11
218
+ WaterSystems:DistrictCooling,!- Variable or Meter 12 Name
219
+ ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 12
220
+ Cogeneration:DistrictCooling,!- Variable or Meter 13 Name
221
+ ValueWhenMaximumOrMinimum; !- Aggregation Type for Variable or Meter 13
222
+