openstudio-common-measures 0.2.0 → 0.2.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 +44 -0
- data/Rakefile +3 -0
- data/lib/measures/ChangeBuildingLocation/measure.xml +11 -11
- data/lib/measures/ExportScheduleCSV/measure.rb +1 -1
- data/lib/measures/ExportScheduleCSV/measure.xml +16 -15
- data/lib/measures/ImportEnvelopeAndInternalLoadsFromIdf/measure.xml +7 -6
- data/lib/measures/MeterFlodPlot/measure.rb +1 -1
- data/lib/measures/MeterFlodPlot/measure.xml +16 -15
- data/lib/measures/ReportModelChanges/measure.xml +2 -2
- data/lib/measures/RunPeriodMultiple/measure.xml +12 -11
- data/lib/measures/ServerDirectoryCleanup/README.md +97 -3
- data/lib/measures/ServerDirectoryCleanup/measure.rb +1 -1
- data/lib/measures/ServerDirectoryCleanup/measure.xml +10 -59
- data/lib/measures/UnmetLoadHoursTroubleshooting/README.md +9 -3
- data/lib/measures/UnmetLoadHoursTroubleshooting/measure.rb +1 -1
- data/lib/measures/UnmetLoadHoursTroubleshooting/measure.xml +66 -17
- data/lib/measures/VentilationQAQC/README.md +9 -3
- data/lib/measures/VentilationQAQC/measure.rb +52 -45
- data/lib/measures/VentilationQAQC/measure.xml +25 -30
- data/lib/measures/ZoneReport/README.md +2 -2
- data/lib/measures/ZoneReport/measure.rb +1 -1
- data/lib/measures/ZoneReport/measure.xml +10 -11
- data/lib/measures/add_ems_to_control_ev_charging/LICENSE.MD.txt +15 -0
- data/lib/measures/{AddDaylightSensors → add_ems_to_control_ev_charging}/LICENSE.md +0 -0
- data/lib/measures/add_ems_to_control_ev_charging/ReadMe.MD +29 -0
- data/lib/measures/add_ems_to_control_ev_charging/measure.rb +288 -0
- data/lib/measures/add_ems_to_control_ev_charging/measure.xml +87 -0
- data/lib/measures/add_ev_load/LICENSE.MD.txt +15 -0
- data/lib/measures/{EnableDemandControlledVentilation → add_ev_load}/LICENSE.md +0 -0
- data/lib/measures/add_ev_load/ReadMe.MD +34 -0
- data/lib/measures/add_ev_load/measure.rb +328 -0
- data/lib/measures/add_ev_load/measure.xml +153 -0
- data/lib/measures/add_ev_load/resources/EV_Load_Profiles/PSN_BuildingKey.csv +104 -0
- data/lib/measures/add_ev_load/resources/EV_Load_Profiles/PSN_BuildingKey_v2.csv +104 -0
- data/lib/measures/add_ev_load/resources/EV_Load_Profiles/chg1_dow1_flex1.csv +96 -0
- data/lib/measures/add_ev_load/resources/EV_Load_Profiles/chg1_dow1_flex2.csv +96 -0
- data/lib/measures/add_ev_load/resources/EV_Load_Profiles/chg1_dow1_flex3.csv +96 -0
- data/lib/measures/add_ev_load/resources/EV_Load_Profiles/chg1_dow2_flex1.csv +96 -0
- data/lib/measures/add_ev_load/resources/EV_Load_Profiles/chg1_dow2_flex2.csv +96 -0
- data/lib/measures/add_ev_load/resources/EV_Load_Profiles/chg1_dow2_flex3.csv +96 -0
- data/lib/measures/add_ev_load/resources/EV_Load_Profiles/chg1_dow3_flex1.csv +96 -0
- data/lib/measures/add_ev_load/resources/EV_Load_Profiles/chg1_dow3_flex2.csv +96 -0
- data/lib/measures/add_ev_load/resources/EV_Load_Profiles/chg1_dow3_flex3.csv +96 -0
- data/lib/measures/add_ev_load/resources/EV_Load_Profiles/chg2_dow1_flex1.csv +96 -0
- data/lib/measures/add_ev_load/resources/EV_Load_Profiles/chg2_dow1_flex2.csv +96 -0
- data/lib/measures/add_ev_load/resources/EV_Load_Profiles/chg2_dow1_flex3.csv +96 -0
- data/lib/measures/add_ev_load/resources/EV_Load_Profiles/chg2_dow2_flex1.csv +96 -0
- data/lib/measures/add_ev_load/resources/EV_Load_Profiles/chg2_dow2_flex2.csv +96 -0
- data/lib/measures/add_ev_load/resources/EV_Load_Profiles/chg2_dow2_flex3.csv +96 -0
- data/lib/measures/add_ev_load/resources/EV_Load_Profiles/chg2_dow3_flex1.csv +96 -0
- data/lib/measures/add_ev_load/resources/EV_Load_Profiles/chg2_dow3_flex2.csv +96 -0
- data/lib/measures/add_ev_load/resources/EV_Load_Profiles/chg2_dow3_flex3.csv +96 -0
- data/lib/measures/add_ev_load/resources/EV_Load_Profiles/chg3_dow1_flex1.csv +96 -0
- data/lib/measures/add_ev_load/resources/EV_Load_Profiles/chg3_dow1_flex2.csv +96 -0
- data/lib/measures/add_ev_load/resources/EV_Load_Profiles/chg3_dow1_flex3.csv +96 -0
- data/lib/measures/add_ev_load/resources/EV_Load_Profiles/chg3_dow2_flex1.csv +96 -0
- data/lib/measures/add_ev_load/resources/EV_Load_Profiles/chg3_dow2_flex2.csv +96 -0
- data/lib/measures/add_ev_load/resources/EV_Load_Profiles/chg3_dow2_flex3.csv +96 -0
- data/lib/measures/add_ev_load/resources/EV_Load_Profiles/chg3_dow3_flex1.csv +96 -0
- data/lib/measures/add_ev_load/resources/EV_Load_Profiles/chg3_dow3_flex2.csv +96 -0
- data/lib/measures/add_ev_load/resources/EV_Load_Profiles/chg3_dow3_flex3.csv +96 -0
- data/lib/measures/add_ev_load/resources/EV_Load_Profiles/fast_charge_15min_Saturday.csv +96 -0
- data/lib/measures/add_ev_load/resources/EV_Load_Profiles/fast_charge_15min_Sunday.csv +96 -0
- data/lib/measures/add_ev_load/resources/EV_Load_Profiles/fast_charge_15min_Weekday.csv +96 -0
- data/lib/measures/envelope_and_internal_load_breakdown/README.md +4 -3
- data/lib/measures/envelope_and_internal_load_breakdown/measure.rb +7 -4
- data/lib/measures/envelope_and_internal_load_breakdown/measure.xml +16 -17
- data/lib/measures/envelope_and_internal_load_breakdown/resources/report.html.erb +1 -0
- data/lib/measures/example_report/README.md +27 -5
- data/lib/measures/example_report/measure.rb +7 -4
- data/lib/measures/example_report/measure.xml +16 -29
- data/lib/measures/example_report/resources/report.html.erb +1 -0
- data/lib/measures/gem_env_report/measure.xml +1 -1
- data/lib/measures/generic_qaqc/README.md +187 -5
- data/lib/measures/generic_qaqc/measure.rb +1 -1
- data/lib/measures/generic_qaqc/measure.xml +15 -85
- data/lib/measures/generic_qaqc/resources/report.html.erb +1 -0
- data/lib/measures/hvac_psychrometric_chart/README.md +11 -5
- data/lib/measures/hvac_psychrometric_chart/measure.rb +1 -1
- data/lib/measures/hvac_psychrometric_chart/measure.xml +13 -18
- data/lib/measures/hvac_psychrometric_chart/resources/report.html.erb +1 -0
- data/lib/measures/inject_idf_objects/measure.xml +25 -24
- data/lib/measures/openstudio_results/README.md +195 -5
- data/lib/measures/openstudio_results/measure.rb +2 -2
- data/lib/measures/openstudio_results/measure.xml +30 -154
- data/lib/measures/openstudio_results/resources/report.html.erb +1 -0
- data/lib/measures/set_run_period/measure.xml +2 -2
- data/lib/measures/{EnableEconomizerControl → view_data}/LICENSE.md +0 -0
- data/lib/measures/view_data/README.md +64 -0
- data/lib/measures/{AddDaylightSensors → view_data}/README.md.erb +0 -0
- data/lib/measures/view_data/measure.rb +454 -0
- data/lib/measures/view_data/measure.xml +159 -0
- data/lib/measures/view_data/resources/report.html.in +2881 -0
- data/lib/measures/view_data/resources/va3c.rb +1021 -0
- data/lib/measures/{ImproveFanBeltEfficiency → view_model}/LICENSE.md +0 -0
- data/lib/measures/view_model/README.md +26 -0
- data/lib/measures/{EnableDemandControlledVentilation → view_model}/README.md.erb +0 -0
- data/lib/measures/view_model/measure.rb +146 -0
- data/lib/measures/view_model/measure.xml +98 -0
- data/lib/measures/view_model/resources/report.html.in +2881 -0
- data/lib/measures/view_model/resources/va3c.rb +1021 -0
- data/lib/openstudio/common_measures/version.rb +1 -1
- data/openstudio-common-measures.gemspec +1 -1
- metadata +61 -71
- data/lib/measures/AddDaylightSensors/README.md +0 -136
- data/lib/measures/AddDaylightSensors/measure.rb +0 -521
- data/lib/measures/AddDaylightSensors/measure.xml +0 -233
- data/lib/measures/EnableDemandControlledVentilation/README.md +0 -32
- data/lib/measures/EnableDemandControlledVentilation/measure.rb +0 -154
- data/lib/measures/EnableDemandControlledVentilation/measure.xml +0 -99
- 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/ImproveFanBeltEfficiency/README.md +0 -104
- data/lib/measures/ImproveFanBeltEfficiency/README.md.erb +0 -42
- data/lib/measures/ImproveFanBeltEfficiency/measure.rb +0 -366
- data/lib/measures/ImproveFanBeltEfficiency/measure.xml +0 -185
- data/lib/measures/ImproveMotorEfficiency/LICENSE.md +0 -27
- data/lib/measures/ImproveMotorEfficiency/README.md +0 -104
- data/lib/measures/ImproveMotorEfficiency/README.md.erb +0 -42
- data/lib/measures/ImproveMotorEfficiency/measure.rb +0 -365
- data/lib/measures/ImproveMotorEfficiency/measure.xml +0 -182
- 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/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/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/VentilationQAQC/ExampleModel.osm +0 -28468
- 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
- data/lib/measures/radiant_slab_with_doas/LICENSE.md +0 -27
- data/lib/measures/radiant_slab_with_doas/README.md +0 -156
- data/lib/measures/radiant_slab_with_doas/README.md.erb +0 -42
- data/lib/measures/radiant_slab_with_doas/measure.rb +0 -403
- data/lib/measures/radiant_slab_with_doas/measure.xml +0 -345
@@ -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>
|
@@ -1,104 +0,0 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
###### (Automatically generated documentation)
|
4
|
-
|
5
|
-
# Improve Fan Belt Efficiency
|
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
|
-
### Choose an Air Loop to Alter.
|
23
|
-
|
24
|
-
**Name:** object,
|
25
|
-
**Type:** Choice,
|
26
|
-
**Units:** ,
|
27
|
-
**Required:** true,
|
28
|
-
**Model Dependent:** false
|
29
|
-
|
30
|
-
### Motor Efficiency Improvement Due to Fan Belt Improvements(%).
|
31
|
-
|
32
|
-
**Name:** motor_eff,
|
33
|
-
**Type:** Double,
|
34
|
-
**Units:** ,
|
35
|
-
**Required:** true,
|
36
|
-
**Model Dependent:** false
|
37
|
-
|
38
|
-
### Remove Baseline Costs From Effected Fans?
|
39
|
-
|
40
|
-
**Name:** remove_costs,
|
41
|
-
**Type:** Boolean,
|
42
|
-
**Units:** ,
|
43
|
-
**Required:** true,
|
44
|
-
**Model Dependent:** false
|
45
|
-
|
46
|
-
### Material and Installation Costs per Motor ($).
|
47
|
-
|
48
|
-
**Name:** material_cost,
|
49
|
-
**Type:** Double,
|
50
|
-
**Units:** ,
|
51
|
-
**Required:** true,
|
52
|
-
**Model Dependent:** false
|
53
|
-
|
54
|
-
### Demolition Costs per Motor ($).
|
55
|
-
|
56
|
-
**Name:** demolition_cost,
|
57
|
-
**Type:** Double,
|
58
|
-
**Units:** ,
|
59
|
-
**Required:** true,
|
60
|
-
**Model Dependent:** false
|
61
|
-
|
62
|
-
### Years Until Costs Start (whole years).
|
63
|
-
|
64
|
-
**Name:** years_until_costs_start,
|
65
|
-
**Type:** Integer,
|
66
|
-
**Units:** ,
|
67
|
-
**Required:** true,
|
68
|
-
**Model Dependent:** false
|
69
|
-
|
70
|
-
### Demolition Costs Occur During Initial Construction?
|
71
|
-
|
72
|
-
**Name:** demo_cost_initial_const,
|
73
|
-
**Type:** Boolean,
|
74
|
-
**Units:** ,
|
75
|
-
**Required:** true,
|
76
|
-
**Model Dependent:** false
|
77
|
-
|
78
|
-
### Expected Life (whole years).
|
79
|
-
|
80
|
-
**Name:** expected_life,
|
81
|
-
**Type:** Integer,
|
82
|
-
**Units:** ,
|
83
|
-
**Required:** true,
|
84
|
-
**Model Dependent:** false
|
85
|
-
|
86
|
-
### O & M Costs per Motor ($).
|
87
|
-
|
88
|
-
**Name:** om_cost,
|
89
|
-
**Type:** Double,
|
90
|
-
**Units:** ,
|
91
|
-
**Required:** true,
|
92
|
-
**Model Dependent:** false
|
93
|
-
|
94
|
-
### O & M Frequency (whole years).
|
95
|
-
|
96
|
-
**Name:** om_frequency,
|
97
|
-
**Type:** Integer,
|
98
|
-
**Units:** ,
|
99
|
-
**Required:** true,
|
100
|
-
**Model Dependent:** false
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|