openstudio-common-measures 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/lib/openstudio/common_measures/version.rb +1 -1
- metadata +3 -63
- data/lib/measures/AddDaylightSensors/LICENSE.md +0 -27
- data/lib/measures/AddDaylightSensors/README.md +0 -136
- data/lib/measures/AddDaylightSensors/README.md.erb +0 -42
- data/lib/measures/AddDaylightSensors/measure.rb +0 -521
- data/lib/measures/AddDaylightSensors/measure.xml +0 -233
- data/lib/measures/EnableDemandControlledVentilation/LICENSE.md +0 -27
- data/lib/measures/EnableDemandControlledVentilation/README.md +0 -32
- data/lib/measures/EnableDemandControlledVentilation/README.md.erb +0 -42
- data/lib/measures/EnableDemandControlledVentilation/measure.rb +0 -154
- data/lib/measures/EnableDemandControlledVentilation/measure.xml +0 -99
- data/lib/measures/EnableEconomizerControl/LICENSE.md +0 -27
- data/lib/measures/EnableEconomizerControl/README.md +0 -48
- data/lib/measures/EnableEconomizerControl/README.md.erb +0 -42
- data/lib/measures/EnableEconomizerControl/measure.rb +0 -172
- data/lib/measures/EnableEconomizerControl/measure.xml +0 -124
- data/lib/measures/IncreaseInsulationRValueForExteriorWalls/LICENSE.md +0 -27
- data/lib/measures/IncreaseInsulationRValueForExteriorWalls/README.md +0 -64
- data/lib/measures/IncreaseInsulationRValueForExteriorWalls/README.md.erb +0 -42
- data/lib/measures/IncreaseInsulationRValueForExteriorWalls/measure.rb +0 -422
- data/lib/measures/IncreaseInsulationRValueForExteriorWalls/measure.xml +0 -150
- data/lib/measures/IncreaseInsulationRValueForExteriorWallsByPercentage/LICENSE.md +0 -27
- data/lib/measures/IncreaseInsulationRValueForExteriorWallsByPercentage/README.md +0 -32
- data/lib/measures/IncreaseInsulationRValueForExteriorWallsByPercentage/README.md.erb +0 -42
- data/lib/measures/IncreaseInsulationRValueForExteriorWallsByPercentage/measure.rb +0 -328
- data/lib/measures/IncreaseInsulationRValueForExteriorWallsByPercentage/measure.xml +0 -98
- data/lib/measures/IncreaseInsulationRValueForRoofs/LICENSE.md +0 -27
- data/lib/measures/IncreaseInsulationRValueForRoofs/README.md +0 -64
- data/lib/measures/IncreaseInsulationRValueForRoofs/README.md.erb +0 -42
- data/lib/measures/IncreaseInsulationRValueForRoofs/measure.rb +0 -422
- data/lib/measures/IncreaseInsulationRValueForRoofs/measure.xml +0 -143
- data/lib/measures/IncreaseInsulationRValueForRoofsByPercentage/LICENSE.md +0 -27
- data/lib/measures/IncreaseInsulationRValueForRoofsByPercentage/README.md +0 -32
- data/lib/measures/IncreaseInsulationRValueForRoofsByPercentage/README.md.erb +0 -42
- data/lib/measures/IncreaseInsulationRValueForRoofsByPercentage/measure.rb +0 -328
- data/lib/measures/IncreaseInsulationRValueForRoofsByPercentage/measure.xml +0 -98
- data/lib/measures/ReduceElectricEquipmentLoadsByPercentage/LICENSE.md +0 -27
- data/lib/measures/ReduceElectricEquipmentLoadsByPercentage/README.md +0 -97
- data/lib/measures/ReduceElectricEquipmentLoadsByPercentage/README.md.erb +0 -42
- data/lib/measures/ReduceElectricEquipmentLoadsByPercentage/measure.rb +0 -450
- data/lib/measures/ReduceElectricEquipmentLoadsByPercentage/measure.xml +0 -186
- data/lib/measures/ReduceLightingLoadsByPercentage/LICENSE.md +0 -27
- data/lib/measures/ReduceLightingLoadsByPercentage/README.md +0 -96
- data/lib/measures/ReduceLightingLoadsByPercentage/README.md.erb +0 -42
- data/lib/measures/ReduceLightingLoadsByPercentage/measure.rb +0 -513
- data/lib/measures/ReduceLightingLoadsByPercentage/measure.xml +0 -191
- data/lib/measures/ReduceSpaceInfiltrationByPercentage/LICENSE.md +0 -27
- data/lib/measures/ReduceSpaceInfiltrationByPercentage/README.md +0 -104
- data/lib/measures/ReduceSpaceInfiltrationByPercentage/README.md.erb +0 -42
- data/lib/measures/ReduceSpaceInfiltrationByPercentage/measure.rb +0 -349
- data/lib/measures/ReduceSpaceInfiltrationByPercentage/measure.xml +0 -181
- data/lib/measures/ReduceVentilationByPercentage/LICENSE.md +0 -27
- data/lib/measures/ReduceVentilationByPercentage/README.md +0 -40
- data/lib/measures/ReduceVentilationByPercentage/README.md.erb +0 -42
- data/lib/measures/ReduceVentilationByPercentage/measure.rb +0 -291
- data/lib/measures/ReduceVentilationByPercentage/measure.xml +0 -96
- data/lib/measures/create_variable_speed_rtu/LICENSE.md +0 -27
- data/lib/measures/create_variable_speed_rtu/README.md +0 -120
- data/lib/measures/create_variable_speed_rtu/README.md.erb +0 -42
- data/lib/measures/create_variable_speed_rtu/measure.rb +0 -539
- data/lib/measures/create_variable_speed_rtu/measure.xml +0 -207
@@ -1,99 +0,0 @@
|
|
1
|
-
<measure>
|
2
|
-
<schema_version>3.0</schema_version>
|
3
|
-
<name>enable_demand_controlled_ventilation</name>
|
4
|
-
<uid>3ff4b412-8689-4b11-a588-935c621dc97d</uid>
|
5
|
-
<version_id>bde5f0d5-ecf6-4425-936c-0a216cdc35d4</version_id>
|
6
|
-
<version_modified>20200229T024316Z</version_modified>
|
7
|
-
<xml_checksum>ECE70A70</xml_checksum>
|
8
|
-
<class_name>EnableDemandControlledVentilation</class_name>
|
9
|
-
<display_name>Enable Demand Controlled Ventilation</display_name>
|
10
|
-
<description>The facility currently does not have a demand controlled ventilation system or CO2 sensors in the air delivery system. Outside air is introduced and conditioned at a fixed rate based on the maximum design. Since the building occupancy fluctuates and is often less than the maximum design occupancy, it is being over-ventilated and consuming more energy than necessary. The building CO2 level is closely related to the occupancy. The typical outside CO2 level is relatively low concentration, around 400 to 500 ppm, and is used to dilute the higher indoor CO2 levels.
Demand controlled ventilation could be implemented by deploying CO2 sensors located in each AHU return air duct and in densely occupied spaces, such as conference rooms. Implementation of this ECM will require:
-Rebalance the open/closed outside air dampers to a lower minimum ventilation rate.
-Program demand ventilation controls into each AHU, controlling modulating dampers in mixed air AHUs and VFDs in outside air units. Ventilation will be generally controlled from return air sensors, but will be increased as needed based on densely occupied space sensors.
-Commission the project.</description>
|
11
|
-
<modeler_description>This measure enable demand controlled ventilation on all or a single air loops in the building. The measure will loop through the selected systems, go into the "control" tab for the air system and toggles the "Demand Controlled Ventilation" button to the "on" position.




|
12
|
-





|
13
|
-
If the HVAC system does not have an air side system, or if the "Demand Controlled Ventilation" button is already in the "on" position, then the runner sends an info message to the user that the model was not changed.




|
14
|
-





|
15
|
-
The cost arguments are user arguments that start with a default of $0.</modeler_description>
|
16
|
-
<arguments>
|
17
|
-
<argument>
|
18
|
-
<name>dcv_type</name>
|
19
|
-
<display_name>DCV Type</display_name>
|
20
|
-
<type>Choice</type>
|
21
|
-
<required>true</required>
|
22
|
-
<model_dependent>false</model_dependent>
|
23
|
-
<choices>
|
24
|
-
<choice>
|
25
|
-
<value>EnableDCV</value>
|
26
|
-
<display_name>EnableDCV</display_name>
|
27
|
-
</choice>
|
28
|
-
<choice>
|
29
|
-
<value>DisableDCV</value>
|
30
|
-
<display_name>DisableDCV</display_name>
|
31
|
-
</choice>
|
32
|
-
<choice>
|
33
|
-
<value>NoChange</value>
|
34
|
-
<display_name>NoChange</display_name>
|
35
|
-
</choice>
|
36
|
-
</choices>
|
37
|
-
</argument>
|
38
|
-
</arguments>
|
39
|
-
<outputs/>
|
40
|
-
<provenances/>
|
41
|
-
<tags>
|
42
|
-
<tag>HVAC.Ventilation</tag>
|
43
|
-
</tags>
|
44
|
-
<attributes>
|
45
|
-
<attribute>
|
46
|
-
<name>Measure Type</name>
|
47
|
-
<value>ModelMeasure</value>
|
48
|
-
<datatype>string</datatype>
|
49
|
-
</attribute>
|
50
|
-
<attribute>
|
51
|
-
<name>Uses SketchUp API</name>
|
52
|
-
<value>false</value>
|
53
|
-
<datatype>boolean</datatype>
|
54
|
-
</attribute>
|
55
|
-
</attributes>
|
56
|
-
<files>
|
57
|
-
<file>
|
58
|
-
<filename>0320_ModelWithHVAC_01.osm</filename>
|
59
|
-
<filetype>osm</filetype>
|
60
|
-
<usage_type>test</usage_type>
|
61
|
-
<checksum>049F3417</checksum>
|
62
|
-
</file>
|
63
|
-
<file>
|
64
|
-
<filename>README.md.erb</filename>
|
65
|
-
<filetype>erb</filetype>
|
66
|
-
<usage_type>readmeerb</usage_type>
|
67
|
-
<checksum>703C9964</checksum>
|
68
|
-
</file>
|
69
|
-
<file>
|
70
|
-
<filename>README.md</filename>
|
71
|
-
<filetype>md</filetype>
|
72
|
-
<usage_type>readme</usage_type>
|
73
|
-
<checksum>F6CB5CF3</checksum>
|
74
|
-
</file>
|
75
|
-
<file>
|
76
|
-
<version>
|
77
|
-
<software_program>OpenStudio</software_program>
|
78
|
-
<identifier>2.0.0</identifier>
|
79
|
-
<min_compatible>2.0.0</min_compatible>
|
80
|
-
</version>
|
81
|
-
<filename>measure.rb</filename>
|
82
|
-
<filetype>rb</filetype>
|
83
|
-
<usage_type>script</usage_type>
|
84
|
-
<checksum>EE5A157C</checksum>
|
85
|
-
</file>
|
86
|
-
<file>
|
87
|
-
<filename>EnableDemandControlledVentilation_Test.rb</filename>
|
88
|
-
<filetype>rb</filetype>
|
89
|
-
<usage_type>test</usage_type>
|
90
|
-
<checksum>913FEC40</checksum>
|
91
|
-
</file>
|
92
|
-
<file>
|
93
|
-
<filename>LICENSE.md</filename>
|
94
|
-
<filetype>md</filetype>
|
95
|
-
<usage_type>license</usage_type>
|
96
|
-
<checksum>E0468DD6</checksum>
|
97
|
-
</file>
|
98
|
-
</files>
|
99
|
-
</measure>
|
@@ -1,27 +0,0 @@
|
|
1
|
-
OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC. All rights reserved.
|
2
|
-
|
3
|
-
Redistribution and use in source and binary forms, with or without modification, are permitted
|
4
|
-
provided that the following conditions are met:
|
5
|
-
|
6
|
-
(1) Redistributions of source code must retain the above copyright notice, this list of conditions
|
7
|
-
and the following disclaimer.
|
8
|
-
|
9
|
-
(2) Redistributions in binary form must reproduce the above copyright notice, this list of conditions
|
10
|
-
and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
11
|
-
|
12
|
-
(3) Neither the name of the copyright holder nor the names of any contributors may be used to endorse
|
13
|
-
or promote products derived from this software without specific prior written permission from the
|
14
|
-
respective party.
|
15
|
-
|
16
|
-
(4) Other than as required in clauses (1) and (2), distributions in any form of modifications or other
|
17
|
-
derivative works may not use the "OpenStudio" trademark, "OS", "os", or any other confusingly similar
|
18
|
-
designation without specific prior written permission from Alliance for Sustainable Energy, LLC.
|
19
|
-
|
20
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
|
21
|
-
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
|
22
|
-
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER, THE UNITED STATES GOVERNMENT,
|
23
|
-
OR ANY CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
24
|
-
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
|
25
|
-
OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
|
26
|
-
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
27
|
-
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
@@ -1,48 +0,0 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
###### (Automatically generated documentation)
|
4
|
-
|
5
|
-
# Enable Economizer Control
|
6
|
-
|
7
|
-
## Description
|
8
|
-
|
9
|
-
|
10
|
-
## Modeler Description
|
11
|
-
|
12
|
-
|
13
|
-
## Measure Type
|
14
|
-
ModelMeasure
|
15
|
-
|
16
|
-
## Taxonomy
|
17
|
-
|
18
|
-
|
19
|
-
## Arguments
|
20
|
-
|
21
|
-
|
22
|
-
### Economizer Control Type
|
23
|
-
|
24
|
-
**Name:** economizer_type,
|
25
|
-
**Type:** Choice,
|
26
|
-
**Units:** ,
|
27
|
-
**Required:** true,
|
28
|
-
**Model Dependent:** false
|
29
|
-
|
30
|
-
### Economizer Maximum Limit Dry-Bulb Temperature (F).
|
31
|
-
|
32
|
-
**Name:** econoMaxDryBulbTemp,
|
33
|
-
**Type:** Double,
|
34
|
-
**Units:** ,
|
35
|
-
**Required:** true,
|
36
|
-
**Model Dependent:** false
|
37
|
-
|
38
|
-
### Economizer Minimum Limit Dry-Bulb Temperature (F).
|
39
|
-
|
40
|
-
**Name:** econoMinDryBulbTemp,
|
41
|
-
**Type:** Double,
|
42
|
-
**Units:** ,
|
43
|
-
**Required:** true,
|
44
|
-
**Model Dependent:** false
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
@@ -1,42 +0,0 @@
|
|
1
|
-
<%#= README.md.erb is used to auto-generate README.md. %>
|
2
|
-
<%#= To manually maintain README.md throw away README.md.erb and manually edit README.md %>
|
3
|
-
###### (Automatically generated documentation)
|
4
|
-
|
5
|
-
# <%= name %>
|
6
|
-
|
7
|
-
## Description
|
8
|
-
<%= description %>
|
9
|
-
|
10
|
-
## Modeler Description
|
11
|
-
<%= modelerDescription %>
|
12
|
-
|
13
|
-
## Measure Type
|
14
|
-
<%= measureType %>
|
15
|
-
|
16
|
-
## Taxonomy
|
17
|
-
<%= taxonomy %>
|
18
|
-
|
19
|
-
## Arguments
|
20
|
-
|
21
|
-
<% arguments.each do |argument| %>
|
22
|
-
### <%= argument[:display_name] %>
|
23
|
-
<%= argument[:description] %>
|
24
|
-
**Name:** <%= argument[:name] %>,
|
25
|
-
**Type:** <%= argument[:type] %>,
|
26
|
-
**Units:** <%= argument[:units] %>,
|
27
|
-
**Required:** <%= argument[:required] %>,
|
28
|
-
**Model Dependent:** <%= argument[:model_dependent] %>
|
29
|
-
<% end %>
|
30
|
-
|
31
|
-
<% if arguments.size == 0 %>
|
32
|
-
<%= "This measure does not have any user arguments" %>
|
33
|
-
<% end %>
|
34
|
-
|
35
|
-
<% if outputs.size > 0 %>
|
36
|
-
## Outputs
|
37
|
-
<% output_names = [] %>
|
38
|
-
<% outputs.each do |output| %>
|
39
|
-
<% output_names << output[:display_name] %>
|
40
|
-
<% end %>
|
41
|
-
<%= output_names.join(", ") %>
|
42
|
-
<% end %>
|
@@ -1,172 +0,0 @@
|
|
1
|
-
# *******************************************************************************
|
2
|
-
# OpenStudio(R), Copyright (c) 2008-2020, 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 HOLDER(S) AND ANY CONTRIBUTORS
|
24
|
-
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
25
|
-
# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
26
|
-
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER(S), ANY CONTRIBUTORS, THE
|
27
|
-
# UNITED STATES GOVERNMENT, OR THE UNITED STATES DEPARTMENT OF ENERGY, NOR ANY OF
|
28
|
-
# THEIR EMPLOYEES, BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
29
|
-
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
|
30
|
-
# OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
31
|
-
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
|
32
|
-
# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
33
|
-
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
34
|
-
# *******************************************************************************
|
35
|
-
|
36
|
-
# start the measure
|
37
|
-
class EnableEconomizerControl < OpenStudio::Measure::ModelMeasure
|
38
|
-
# define the name that a user will see, this method may be deprecated as
|
39
|
-
# the display name in PAT comes from the name field in measure.xml
|
40
|
-
def name
|
41
|
-
return 'Enable Economizer Control'
|
42
|
-
end
|
43
|
-
|
44
|
-
# define the arguments that the user will input
|
45
|
-
def arguments(model)
|
46
|
-
args = OpenStudio::Measure::OSArgumentVector.new
|
47
|
-
|
48
|
-
# make choice argument economizer control type
|
49
|
-
choices = OpenStudio::StringVector.new
|
50
|
-
choices << 'FixedDryBulb'
|
51
|
-
choices << 'NoEconomizer'
|
52
|
-
choices << 'NoChange'
|
53
|
-
economizer_type = OpenStudio::Measure::OSArgument.makeChoiceArgument('economizer_type', choices, true)
|
54
|
-
economizer_type.setDisplayName('Economizer Control Type')
|
55
|
-
args << economizer_type
|
56
|
-
|
57
|
-
# make an argument for econoMaxDryBulbTemp
|
58
|
-
econoMaxDryBulbTemp = OpenStudio::Measure::OSArgument.makeDoubleArgument('econoMaxDryBulbTemp', true)
|
59
|
-
econoMaxDryBulbTemp.setDisplayName('Economizer Maximum Limit Dry-Bulb Temperature (F).')
|
60
|
-
econoMaxDryBulbTemp.setDefaultValue(69.0)
|
61
|
-
args << econoMaxDryBulbTemp
|
62
|
-
|
63
|
-
# make an argument for econoMinDryBulbTemp
|
64
|
-
econoMinDryBulbTemp = OpenStudio::Measure::OSArgument.makeDoubleArgument('econoMinDryBulbTemp', true)
|
65
|
-
econoMinDryBulbTemp.setDisplayName('Economizer Minimum Limit Dry-Bulb Temperature (F).')
|
66
|
-
econoMinDryBulbTemp.setDefaultValue(-148.0)
|
67
|
-
args << econoMinDryBulbTemp
|
68
|
-
|
69
|
-
return args
|
70
|
-
end
|
71
|
-
|
72
|
-
# define what happens when the measure is cop
|
73
|
-
def run(model, runner, user_arguments)
|
74
|
-
super(model, runner, user_arguments)
|
75
|
-
|
76
|
-
# use the built-in error checking
|
77
|
-
if !runner.validateUserArguments(arguments(model), user_arguments)
|
78
|
-
return false
|
79
|
-
end
|
80
|
-
|
81
|
-
# assign the user inputs to variables
|
82
|
-
economizer_type = runner.getStringArgumentValue('economizer_type', user_arguments)
|
83
|
-
econoMaxDryBulbTemp = runner.getDoubleArgumentValue('econoMaxDryBulbTemp', user_arguments)
|
84
|
-
econoMinDryBulbTemp = runner.getDoubleArgumentValue('econoMinDryBulbTemp', user_arguments)
|
85
|
-
|
86
|
-
# Note if economizer_type == NoChange
|
87
|
-
# and register as N/A
|
88
|
-
if economizer_type == 'NoChange'
|
89
|
-
runner.registerAsNotApplicable('N/A - User requested No Change in economizer operation.')
|
90
|
-
return true
|
91
|
-
end
|
92
|
-
|
93
|
-
# short def to make numbers pretty (converts 4125001.25641 to 4,125,001.26 or 4,125,001). The definition be called through this measure
|
94
|
-
def neat_numbers(number, roundto = 2) # round to 0 or 2)
|
95
|
-
if roundto == 2
|
96
|
-
number = format '%.2f', number
|
97
|
-
else
|
98
|
-
number = number.round
|
99
|
-
end
|
100
|
-
# regex to add commas
|
101
|
-
number.to_s.reverse.gsub(/([0-9]{3}(?=([0-9])))/, '\\1,').reverse
|
102
|
-
end
|
103
|
-
|
104
|
-
# info for initial condition
|
105
|
-
air_loops_changed = []
|
106
|
-
loops_with_outdoor_air = false
|
107
|
-
|
108
|
-
# loop through air loops
|
109
|
-
model.getAirLoopHVACs.each do |air_loop|
|
110
|
-
# find AirLoopHVACOutdoorAirSystem on loop
|
111
|
-
air_loop.supplyComponents.each do |supply_component|
|
112
|
-
hVACComponent = supply_component.to_AirLoopHVACOutdoorAirSystem
|
113
|
-
if hVACComponent.is_initialized
|
114
|
-
hVACComponent = hVACComponent.get
|
115
|
-
|
116
|
-
# set flag that at least one air loop has outdoor air objects
|
117
|
-
loops_with_outdoor_air = true
|
118
|
-
|
119
|
-
# get ControllerOutdoorAir
|
120
|
-
controller_oa = hVACComponent.getControllerOutdoorAir
|
121
|
-
|
122
|
-
# get ControllerMechanicalVentilation
|
123
|
-
controller_mv = controller_oa.controllerMechanicalVentilation # not using this
|
124
|
-
|
125
|
-
if controller_oa.getEconomizerControlType == economizer_type
|
126
|
-
# report info about air loop
|
127
|
-
runner.registerInfo("#{air_loop.name} already has the requested economizer type of #{economizer_type}.")
|
128
|
-
else
|
129
|
-
# store starting economizer type
|
130
|
-
starting_econo_control_type = controller_oa.getEconomizerControlType
|
131
|
-
|
132
|
-
# set economizer to the requested control type
|
133
|
-
controller_oa.setEconomizerControlType(economizer_type)
|
134
|
-
|
135
|
-
# report info about air loop
|
136
|
-
runner.registerInfo("Changing Economizer Control Type on #{air_loop.name} from #{starting_econo_control_type} to #{controller_oa.getEconomizerControlType} and adjusting temperature and enthalpy limits per measure arguments.")
|
137
|
-
|
138
|
-
air_loops_changed << air_loop
|
139
|
-
|
140
|
-
end
|
141
|
-
|
142
|
-
# set maximum limit drybulb temperature
|
143
|
-
controller_oa.setEconomizerMaximumLimitDryBulbTemperature(OpenStudio.convert(econoMaxDryBulbTemp, 'F', 'C').get)
|
144
|
-
|
145
|
-
# set minimum limit drybulb temperature
|
146
|
-
controller_oa.setEconomizerMinimumLimitDryBulbTemperature(OpenStudio.convert(econoMinDryBulbTemp, 'F', 'C').get)
|
147
|
-
|
148
|
-
end
|
149
|
-
end
|
150
|
-
end
|
151
|
-
|
152
|
-
# Report N/A if none of the air loops had OA systems
|
153
|
-
if loops_with_outdoor_air == false
|
154
|
-
runner.registerAsNotApplicable('The affected loop(s) do not have any outdoor air objects.')
|
155
|
-
return true
|
156
|
-
end
|
157
|
-
|
158
|
-
# Report N/A if none of the air loops were changed
|
159
|
-
if air_loops_changed.empty?
|
160
|
-
runner.registerAsNotApplicable('No air loops had economizers added or removed.')
|
161
|
-
return true
|
162
|
-
end
|
163
|
-
|
164
|
-
# Report the final condition of model
|
165
|
-
runner.registerFinalCondition("#{air_loops_changed.size} air loops now have economizers.")
|
166
|
-
|
167
|
-
return true
|
168
|
-
end
|
169
|
-
end
|
170
|
-
|
171
|
-
# this allows the measure to be used by the application
|
172
|
-
EnableEconomizerControl.new.registerWithApplication
|
@@ -1,124 +0,0 @@
|
|
1
|
-
<measure>
|
2
|
-
<schema_version>3.0</schema_version>
|
3
|
-
<name>enable_economizer_control</name>
|
4
|
-
<uid>f8cc920d-8ae3-411a-922f-e6fed3223c4d</uid>
|
5
|
-
<version_id>d45560a8-abbf-4fa3-bf5f-ff0e93faaeaa</version_id>
|
6
|
-
<version_modified>20200229T024317Z</version_modified>
|
7
|
-
<xml_checksum>ECE70A70</xml_checksum>
|
8
|
-
<class_name>EnableEconomizerControl</class_name>
|
9
|
-
<display_name>Enable Economizer Control</display_name>
|
10
|
-
<description>There is currently not a functioning air side economizer enabled in the building. Air side economizers use cold outside air to either assist the mechanical cooling system, or if the air is cold enough, provide all of the cooling for a facility.




|
11
|
-





|
12
|
-
In order for an air side economizer to function properly, all of the outside air damper actuators need to have modulating capabilities. In addition to that, new control sequences need to be written into the building automation control system to enable the air-side economizer when outside air temperatures are below 60?F-65?F and the interior space temperatures are calling for cooling.




|
13
|
-





|
14
|
-
The building would realize the following operational benefits by utilizing an air-side economizer:




|
15
|
-
-Reduction in cooling system energy use




|
16
|
-
-Reduction in mechanical cooling system run time




|
17
|
-
-Possible improvement in indoor air quality




|
18
|
-
</description>
|
19
|
-
<modeler_description>This measure will enable economizer control for one or all of the air loops in the building. The choice list will have the following choices: No Economizer, Fixed Dry Bulb, Fixed Enthalpy, Differential Dry Bulb, Differential Enthalpy, Fixed Dew Point and Dry Bulb, Differential Dew Point and Dry Bulb, and Electronic Enthalpy. The default choice for each system will be the initial system condition. The measure will also have optional user argument fields for Economizer Maximum Limit Dry-Bulb Temperature, Economizer Maximum Limit Enthalpy, Economizer Maximum Limit Dewpoint Temperature, Economizer Minimum Limit Dry-Bulb Temperature. These user arguments get applied to every system in the project.




|
20
|
-





|
21
|
-
If the HVAC system does not have an OS:AirLoopHVAC:OutdoorAirSystem, then the runner sends an info message to the user that the model was not changed.




|
22
|
-





|
23
|
-
The cost arguments are user arguments that start with a default of $0.




|
24
|
-
</modeler_description>
|
25
|
-
<arguments>
|
26
|
-
<argument>
|
27
|
-
<name>economizer_type</name>
|
28
|
-
<display_name>Economizer Control Type</display_name>
|
29
|
-
<type>Choice</type>
|
30
|
-
<required>true</required>
|
31
|
-
<model_dependent>false</model_dependent>
|
32
|
-
<choices>
|
33
|
-
<choice>
|
34
|
-
<value>FixedDryBulb</value>
|
35
|
-
<display_name>FixedDryBulb</display_name>
|
36
|
-
</choice>
|
37
|
-
<choice>
|
38
|
-
<value>NoEconomizer</value>
|
39
|
-
<display_name>NoEconomizer</display_name>
|
40
|
-
</choice>
|
41
|
-
<choice>
|
42
|
-
<value>NoChange</value>
|
43
|
-
<display_name>NoChange</display_name>
|
44
|
-
</choice>
|
45
|
-
</choices>
|
46
|
-
</argument>
|
47
|
-
<argument>
|
48
|
-
<name>econoMaxDryBulbTemp</name>
|
49
|
-
<display_name>Economizer Maximum Limit Dry-Bulb Temperature (F).</display_name>
|
50
|
-
<type>Double</type>
|
51
|
-
<required>true</required>
|
52
|
-
<model_dependent>false</model_dependent>
|
53
|
-
<default_value>69</default_value>
|
54
|
-
</argument>
|
55
|
-
<argument>
|
56
|
-
<name>econoMinDryBulbTemp</name>
|
57
|
-
<display_name>Economizer Minimum Limit Dry-Bulb Temperature (F).</display_name>
|
58
|
-
<type>Double</type>
|
59
|
-
<required>true</required>
|
60
|
-
<model_dependent>false</model_dependent>
|
61
|
-
<default_value>-148</default_value>
|
62
|
-
</argument>
|
63
|
-
</arguments>
|
64
|
-
<outputs/>
|
65
|
-
<provenances/>
|
66
|
-
<tags>
|
67
|
-
<tag>HVAC.Ventilation</tag>
|
68
|
-
</tags>
|
69
|
-
<attributes>
|
70
|
-
<attribute>
|
71
|
-
<name>Measure Type</name>
|
72
|
-
<value>ModelMeasure</value>
|
73
|
-
<datatype>string</datatype>
|
74
|
-
</attribute>
|
75
|
-
<attribute>
|
76
|
-
<name>Uses SketchUp API</name>
|
77
|
-
<value>false</value>
|
78
|
-
<datatype>boolean</datatype>
|
79
|
-
</attribute>
|
80
|
-
</attributes>
|
81
|
-
<files>
|
82
|
-
<file>
|
83
|
-
<filename>0320_ModelWithHVAC_01.osm</filename>
|
84
|
-
<filetype>osm</filetype>
|
85
|
-
<usage_type>test</usage_type>
|
86
|
-
<checksum>4A5352A1</checksum>
|
87
|
-
</file>
|
88
|
-
<file>
|
89
|
-
<filename>README.md.erb</filename>
|
90
|
-
<filetype>erb</filetype>
|
91
|
-
<usage_type>readmeerb</usage_type>
|
92
|
-
<checksum>703C9964</checksum>
|
93
|
-
</file>
|
94
|
-
<file>
|
95
|
-
<filename>README.md</filename>
|
96
|
-
<filetype>md</filetype>
|
97
|
-
<usage_type>readme</usage_type>
|
98
|
-
<checksum>CF61C43C</checksum>
|
99
|
-
</file>
|
100
|
-
<file>
|
101
|
-
<filename>LICENSE.md</filename>
|
102
|
-
<filetype>md</filetype>
|
103
|
-
<usage_type>license</usage_type>
|
104
|
-
<checksum>E0468DD6</checksum>
|
105
|
-
</file>
|
106
|
-
<file>
|
107
|
-
<filename>measure_Test.rb</filename>
|
108
|
-
<filetype>rb</filetype>
|
109
|
-
<usage_type>test</usage_type>
|
110
|
-
<checksum>A2090624</checksum>
|
111
|
-
</file>
|
112
|
-
<file>
|
113
|
-
<version>
|
114
|
-
<software_program>OpenStudio</software_program>
|
115
|
-
<identifier>2.0.0</identifier>
|
116
|
-
<min_compatible>2.0.0</min_compatible>
|
117
|
-
</version>
|
118
|
-
<filename>measure.rb</filename>
|
119
|
-
<filetype>rb</filetype>
|
120
|
-
<usage_type>script</usage_type>
|
121
|
-
<checksum>605C310C</checksum>
|
122
|
-
</file>
|
123
|
-
</files>
|
124
|
-
</measure>
|