openstudio-model-articulation 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +3 -1
- data/CHANGELOG.md +13 -0
- data/Gemfile +2 -2
- data/README.md +14 -0
- data/lib/measures/SetWindowToWallRatioByFacade/measure.rb +10 -3
- data/lib/measures/SetWindowToWallRatioByFacade/measure.xml +10 -4
- data/lib/measures/add_empd_material_properties/LICENSE.md +27 -0
- data/lib/measures/add_empd_material_properties/README.md +116 -0
- data/lib/measures/add_empd_material_properties/README.md.erb +42 -0
- data/lib/measures/add_empd_material_properties/docs/.gitkeep +0 -0
- data/lib/measures/add_empd_material_properties/measure.rb +247 -0
- data/lib/measures/add_empd_material_properties/measure.xml +201 -0
- data/lib/measures/create_DOE_prototype_building/measure.xml +2 -2
- data/lib/measures/create_bar_from_building_type_ratios/README.md +109 -35
- data/lib/measures/create_bar_from_building_type_ratios/README.md.erb +54 -35
- data/lib/measures/create_bar_from_building_type_ratios/measure.rb +5 -0
- data/lib/measures/create_bar_from_building_type_ratios/measure.xml +16 -16
- data/lib/measures/create_bar_from_deer_building_type_ratios/README.md +301 -79
- data/lib/measures/create_bar_from_deer_building_type_ratios/README.md.erb +62 -79
- data/lib/measures/create_bar_from_deer_building_type_ratios/measure.rb +6 -1
- data/lib/measures/create_bar_from_deer_building_type_ratios/measure.xml +19 -63
- data/lib/measures/create_bar_from_doe_building_type_ratios/README.md +298 -57
- data/lib/measures/create_bar_from_doe_building_type_ratios/README.md.erb +54 -57
- data/lib/measures/create_bar_from_doe_building_type_ratios/measure.rb +6 -1
- data/lib/measures/create_bar_from_doe_building_type_ratios/measure.xml +16 -20
- data/lib/measures/create_bar_from_space_type_ratios/README.md +94 -42
- data/lib/measures/create_bar_from_space_type_ratios/README.md.erb +60 -42
- data/lib/measures/create_bar_from_space_type_ratios/measure.rb +5 -0
- data/lib/measures/create_bar_from_space_type_ratios/measure.xml +19 -19
- data/lib/measures/create_baseline_building/measure.xml +2 -2
- data/lib/measures/create_deer_prototype_building/measure.xml +2 -2
- data/lib/measures/create_typical_building_from_model/README.md +81 -16
- data/lib/measures/create_typical_building_from_model/README.md.erb +36 -16
- data/lib/measures/create_typical_building_from_model/measure.rb +5 -0
- data/lib/measures/create_typical_building_from_model/measure.xml +19 -19
- data/lib/measures/create_typical_deer_building_from_model/README.md +173 -53
- data/lib/measures/create_typical_deer_building_from_model/README.md.erb +57 -53
- data/lib/measures/create_typical_deer_building_from_model/measure.rb +6 -1
- data/lib/measures/create_typical_deer_building_from_model/measure.xml +25 -25
- data/lib/measures/create_typical_doe_building_from_model/README.md +182 -44
- data/lib/measures/create_typical_doe_building_from_model/README.md.erb +58 -44
- data/lib/measures/create_typical_doe_building_from_model/measure.rb +6 -1
- data/lib/measures/create_typical_doe_building_from_model/measure.xml +25 -25
- data/lib/measures/radiant_slab_with_doas/measure.rb +5 -1
- data/lib/measures/radiant_slab_with_doas/measure.xml +9 -9
- data/lib/openstudio/model_articulation/version.rb +1 -1
- data/openstudio-model-articulation.gemspec +2 -2
- metadata +13 -7
@@ -12,59 +12,55 @@
|
|
12
12
|
## Measure Type
|
13
13
|
<%= measureType %>
|
14
14
|
|
15
|
-
[//]: # (
|
16
|
-
|
17
|
-
|
15
|
+
[//]: # (Only finds value if taxonomy method is added to measure.rb, won't read out of measure.xml)
|
16
|
+
## Taxonomy
|
17
|
+
<%= taxonomy %>
|
18
18
|
|
19
19
|
___
|
20
20
|
## Table of Contents
|
21
21
|
- [Measure Overview](#measure-overview)<br/>
|
22
22
|
- [DOE Template and Building Type Mapping](#doe-template-and-building-type-mapping)<br/>
|
23
|
-
- [
|
24
|
-
- [
|
25
|
-
- [
|
26
|
-
- [
|
27
|
-
- [
|
28
|
-
- [
|
29
|
-
- [
|
23
|
+
- [Functionality and Input Overview](#functionality-and-input-overview)<br/>
|
24
|
+
- [Building Type Mix](#building-type-mix)<br/>
|
25
|
+
- [Floor Area](#floor-area)<br/>
|
26
|
+
- [Height, Stories, and Orientation](#height-stories-and-orientation)<br/>
|
27
|
+
- [Template](#template)<br/>
|
28
|
+
- [Building Shape](#building-shape)<br/>
|
29
|
+
- [Window to Wall Ratio](#window-to-wall-ratio)<br/>
|
30
|
+
- [Party Walls and Exposure of Top and Bottom Stories](#party-walls-and-exposure-of-top-and-bottom-stories)<br/>
|
31
|
+
- [Calculation Methods and Articulation Logic](#calculation-methods-and-articulation-logic)<br/>
|
30
32
|
- [Development Comments](#development-comments)<br/>
|
31
33
|
- [Automatically Generated Argument List](#arguments)<br/>
|
32
34
|
|
33
35
|
## Measure Overview
|
34
36
|
|
35
|
-
The intent of this measure is to create basic geometry given a mix of building types and high level characteristics about the building envelope like the number of stories, aspect ratio, orientation etc. This will result in one or more rectangular building elements. The spaces will have stub space type assignments but will not have any internal loads or and the surfaces will not have constructions. The stub space type ratios are based on DOE prototype buildings, depending on the building type you select. The typical workflow is to run other measures after this measure that populate the stub space types and other model elements. This measure has
|
37
|
+
The intent of this measure is to create basic geometry given a mix of building types and high level characteristics about the building envelope like the number of stories, aspect ratio, orientation etc. This will result in one or more rectangular building elements. The spaces will have stub space type assignments but will not have any internal loads or and the surfaces will not have constructions. The stub space type ratios are based on DOE prototype buildings, depending on the building type you select. The typical workflow is to run other measures after this measure that populate the stub space types and other model elements. This measure has more than 30 arguments and can look intimidating, but all of them have defaults, so it will run properly without you changing any arguments; however at a minimum you will typically want to at least choose the primary building type, building floor area, and number of stories above grade. Make use of additional arguments as you have a need to.
|
36
38
|
|
37
|
-
This is generally meant to run on an empty model, but it does not
|
39
|
+
This is generally meant to run on an empty model, but it does not actively delete any geometry or objects that may already be in the model.
|
38
40
|
|
39
41
|
## DOE Template and Building Type Mapping
|
40
42
|
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
- HighriseApartment
|
63
|
-
- Hospital
|
64
|
-
- Outpatient
|
65
|
-
- SuperMarket
|
66
|
-
|
67
|
-
[//]: # (Would be nice to make these lists dynamic from the measure to they don't become outdated)
|
43
|
+
The Templates prefixed with "Comstock"" have been slightly modified over the template of the same name without the prefix to be more representation of general use inputs."
|
44
|
+
|
45
|
+
#### Templates:
|
46
|
+
<% arguments.each do |argument| %>
|
47
|
+
<% if argument[:name] == 'template'%>
|
48
|
+
<% argument[:choice_display_names].each do |choice|%>
|
49
|
+
- <%= choice %><br/>
|
50
|
+
<% end %>
|
51
|
+
<% end %>
|
52
|
+
<% end %>
|
53
|
+
|
54
|
+
#### Building Types::
|
55
|
+
<% arguments.each do |argument| %>
|
56
|
+
<% if argument[:name] == 'bldg_type_a'%>
|
57
|
+
<% argument[:choice_display_names].each do |choice|%>
|
58
|
+
- <%= choice %><br/>
|
59
|
+
<% end %>
|
60
|
+
<% end %>
|
61
|
+
<% end %>
|
62
|
+
|
63
|
+
[//]: # (argument values for template and bldg_type_a are dynamically generated from current version of the measure.)
|
68
64
|
|
69
65
|
## Functionality and Input Overview
|
70
66
|
|
@@ -76,7 +72,7 @@ Building Type A is an exception from the others in that it doesn't have an argum
|
|
76
72
|
|
77
73
|
#### Floor Area
|
78
74
|
|
79
|
-
The typical use case for this measure is to set the total building floor area using the `Total Building Floor Area` argument. With this approach you can maintain a set building floor area while changing the number of stories. An alternate workflow is to set a static footprint area. This alternate workflow is enabled by
|
75
|
+
The typical use case for this measure is to set the total building floor area using the `Total Building Floor Area` argument. With this approach you can maintain a set building floor area while changing the number of stories. An alternate workflow is to set a static footprint area. This alternate workflow is enabled by setting a non-zero value for the `Single Floor Area` argument.
|
80
76
|
|
81
77
|
[//]: # (todo - add screenshot of same floor area on different num stories and shapes)
|
82
78
|
|
@@ -84,7 +80,7 @@ The typical use case for this measure is to set the total building floor area us
|
|
84
80
|
|
85
81
|
The Floor to floor height for the building is controlled through the `Typical Floor to FLoor Height` argument. It is the first of a number of arguments where a value of 0 represents a **smart default**. If leave the default value of zero in place it will pick a building specific floor to floor height. For example 9' would be picked for a small hotel and 14' for a hospital.
|
86
82
|
|
87
|
-
Some building types have space type specific definitions for height that can be enabled with the `Enable Custom Height Bar Application` argument. If I building doesn't have any custom heights defined the value of this argument will not matter. One example of where this argument would have an impact is for the gym and
|
83
|
+
Some building types have space type specific definitions for height that can be enabled with the `Enable Custom Height Bar Application` argument. If I building doesn't have any custom heights defined the value of this argument will not matter. One example of where this argument would have an impact is for the gym and auditorium in the SecondarySchool which would have a height 26' instead of the default school height of 13'. This is accomplished by pulling space types with a custom height into a separate rectangular building that sits away from the main structure. If this argument is set to false then all of the space types will have the same height, which for the school would be the default of 13'
|
88
84
|
|
89
85
|
![No Custom Height Space Types](./docs/custom_height_false.png?raw=true)
|
90
86
|
*Secondary school without custom space type heights enabled*
|
@@ -97,11 +93,11 @@ There are two arguments that control the number of stories the building has. `Nu
|
|
97
93
|
![Baesment](./docs/basement.png?raw=true)
|
98
94
|
*Secondary school with 1 below grade story*
|
99
95
|
|
100
|
-
The `Building Rotation` argument will rotate the building after the geometry is created. So if you for example make a bar oriented east/west and then rotate it 80 degrees, the end result will be a bar just off of being north/south orientation. A positive value rotates clockwise. If you had a party wall assigned to the south facade, after the 80 degree rotation, those party walls would not be 10
|
96
|
+
The `Building Rotation` argument will rotate the building after the geometry is created. So if you for example make a bar oriented east/west and then rotate it 80 degrees, the end result will be a bar just off of being north/south orientation. A positive value rotates clockwise. If you had a party wall assigned to the south facade, after the 80 degree rotation, those party walls would not be 10 degrees south of due west.
|
101
97
|
|
102
98
|
#### Template
|
103
99
|
|
104
|
-
The `Template` is
|
100
|
+
The `Template` is used in OpenStudio measures and the OpenStudio standards gem to refer to a specific target building code standard or vintage. For example ASHRAE 90.1 2004 or the DOE Ref Pre-1980 vintage used for the DOE reference buildings. Template is used here along with the building types selected to define the list and ratios of space types in the model. While generally the space type ratio is the same across different templates there are exceptions to this such as the inclusion of data centers in newer LargeOffice buildings.
|
105
101
|
|
106
102
|
#### Building Shape
|
107
103
|
|
@@ -111,12 +107,12 @@ While the floor area and number of stories arguments determine the size of the b
|
|
111
107
|
*Aspect Ratio of 2.0*
|
112
108
|
|
113
109
|
![Aspect Ratio 1.0](./docs/ar_1.png?raw=true)
|
114
|
-
*Aspect Ratio of
|
110
|
+
*Aspect Ratio of 1.0*
|
115
111
|
|
116
112
|
![Aspect Ratio 0.5](./docs/ar_05.png?raw=true)
|
117
113
|
*Aspect Ratio of 0.5*
|
118
114
|
|
119
|
-
The `Perimeter Multiplier` provides a mechanism to maintain your target footprint floor area and your target aspect ratio while increasing the total exterior perimeter exposure. The intent here is to support, in a simplified way, the impacts of non-rectangular buildings. This is accomplished by adding a second bar when necessary that is turned 90 degrees relative ot the primary bar but maintains the same width. These two building elements are separate from each other and from the custom height bar, if it exists. If you keep the default value of 0.0 the measure will lookup a value inferred from the prototype
|
115
|
+
The `Perimeter Multiplier` provides a mechanism to maintain your target footprint floor area and your target aspect ratio while increasing the total exterior perimeter exposure. The intent here is to support, in a simplified way, the impacts of non-rectangular buildings. This is accomplished by adding a second bar when necessary that is turned 90 degrees relative ot the primary bar but maintains the same width. These two building elements are separate from each other and from the custom height bar, if it exists. If you keep the default value of 0.0 the measure will lookup a value inferred from the prototype building. For most prototype building types this will result in a value of 1.0, because the buildings are rectangular, but for PrimarySchool, SecondarySchool, and Outpatient a value larger than 1.0 will be used. If you use or a smart default of 1.0 applied for this argument you get a single bar. As you increase the multiplier higher than 1.0 it will add a second bar to increase the building perimeter while maintaining both the floor area and the north south to east west aspect ratio. Below is an example of the calculation method. If you use a very small multiplier such as 1.05, a situation may exist that would have too small of a secondary bar to properly model. In this case the single bar will just be extended a bit to achieve the target total perimeter, but will sacrifice meeting the requested north/south versus east/west aspect ratio. In some cases with when the multiplier is not high enough above 1 the ends of the secondary bar may be made adiabatic to achieve target values.
|
120
116
|
|
121
117
|
![Perim Mult b](./docs/perim_mult_2012.png?raw=true)
|
122
118
|
*Aspect Ratio of 2.0 with a Perimeter Multiplier of 1.2. Able to add second bar but needs to have adiabatic ends. See earlier screenshot for Aspect Ratio of 2.0 with Perimeter Multiplier of 1.0*
|
@@ -131,9 +127,9 @@ The `Perimeter Multiplier` provides a mechanism to maintain your target footprin
|
|
131
127
|
|
132
128
|
Representing for example a U shaped footprint (which might have a "Perimeter Multiplier" of 3 or higher) with a single bar would either under-estimate the perimeter if a reduced bounding box was fit around it to match the area, or over skew the orientation if a single long skinny bar was created with almost all of the exposure in only two opposing cardinal directions. A more common term that could have been used for an argument would have been a 1building perimeter to floor area ratio(P/A)`. That was considered but there could have been incompatible inputs passed in where the target P/A isn't possible for the given footprint area and aspect ratio. A 100' square has a P/A of 0.04 while a 1000' square has a ratio 0.004. In addition to changing with size it would also change with the shape of the rectangle. This measure in uses the multiplier to increase the perimeter of the foorprint(s) given a specified area and aspect ratio above the minim possible rectangular perimeter value. If you just want to make a single bar, you can leave the value at 1.0 and not worry about it. As a last note, if you also are using a custom height bar, that excluded from the calculation of the primary bar(s)
|
133
129
|
|
134
|
-
`Bar Width` can be specified. If you know due to the layout of your building or other factors that you have a specific building width you would like to have you can enter that in the `Bar Width` argument. `Perimeter Multiplier` will be
|
130
|
+
`Bar Width` can be specified. If you know due to the layout of your building or other factors that you have a specific building width you would like to have you can enter that in the `Bar Width` argument. `Perimeter Multiplier` will be ignored when a non-zero `Bar Width` is used. If you leave this argument value at the default value of 0 then it will not impact the model. A non-zero value here will also bypass the `Perimeter Multiplier` argument.
|
135
131
|
|
136
|
-
`Bar Separation Distance Multiplier` is used when there is more than one bar, to specify the distance between the bars as a multiple of the building height. The default value is 10 x the height of the building, but that can be customized here. Currently 0 is not a valid multiplier, since all the intersection, matching, and fenestration occur in the
|
132
|
+
`Bar Separation Distance Multiplier` is used when there is more than one bar, to specify the distance between the bars as a multiple of the building height. The default value is 10 x the height of the building, but that can be customized here. Currently 0 is not a valid multiplier, since all the intersection, matching, and fenestration occur in the individual bar elements. When two bars are required to meet the `Perimeter Multiplier` target they are in configuration of an with the vertical leg to the right of the horizontal leg, like a backwards "L". If a custom height bar was used that will be positioned to the left of the other bars.
|
137
133
|
|
138
134
|
![Sept Dist 0.5](./docs/sep_05.png?raw=true)
|
139
135
|
*Bar Separation Distance Multiplier of 0.5*
|
@@ -153,7 +149,7 @@ There is just a single `Window to Wall Ratio` argument for this measure. It has
|
|
153
149
|
![Custom WWR](./docs/wwr_custom.png?raw=true)
|
154
150
|
*Example of space type specific WWR for warehouse model, shown with custom space type height enabled*
|
155
151
|
|
156
|
-
Orientation specific characteristics and/or overhangs may be added to this in the future, but are
|
152
|
+
Orientation specific characteristics and/or overhangs may be added to this in the future, but are currently possible by adding existing measure to the workflow after this measure. Currently skylights are not directly supported either, but can be added outside of this measure.
|
157
153
|
|
158
154
|
#### Party Walls and Exposure of Top and Bottom Stories
|
159
155
|
|
@@ -163,7 +159,7 @@ There are two approaches for the party walls. One approach is a single fraction
|
|
163
159
|
|
164
160
|
The second approach is ideal when you know more about the conditions of a specific condition and allows you to enter an integer for reach cardinal direction with arguments named `Number of North facing stories with party wall` etc. You can for example have a 5 story building that has a 1 story building to the west, a 3 story building to the east, a 2 story building to the north, and exterior exposure to the south. If you are using this as part of a parametric study where number of stories is changeling and you want all of a specific facade to be adjacent to a building that is taller, You can enter an large value such as 99 for the value; the overly large value relative to number of stories in the building will not create any issues.
|
165
161
|
|
166
|
-
The ability to model what is essence party floor/ceilings in your model are controlled through two bool arguments named `Is the Bottom Story Exposed to Ground` and `Is the Top Story an Exterior Roof`
|
162
|
+
The ability to model what is in essence party floor/ceilings in your model are controlled through two bool arguments named `Is the Bottom Story Exposed to Ground` and `Is the Top Story an Exterior Roof`
|
167
163
|
|
168
164
|
![Party Wall](./docs/party.png?raw=true)
|
169
165
|
*1 story Party wall on south, 2 story on east, story multipliers not enabled*
|
@@ -176,11 +172,11 @@ The ability to model what is essence party floor/ceilings in your model are cont
|
|
176
172
|
|
177
173
|
#### Calculation Methods and Articulation Logic
|
178
174
|
|
179
|
-
- `Calculation Method for Story Multiplier` is used to determine if zone multipliers should be used as story multipliers on taller buildings. This reduces the
|
175
|
+
- `Calculation Method for Story Multiplier` is used to determine if zone multipliers should be used as story multipliers on taller buildings. This reduces the number of zones and should speed up simulations, but may not be appropriate in all cases. If you select a value of `None` then no (non 1) zone multipliers will be used and zones will be modeled for all building stories. The other choice currently available is `Basements Ground Mid Top` which for a building without party walls will never have more than 4 modeled stories regardless of the number of stories. The measure will evaluate uniqueness of stories taking into account party walls and may add additional stories to accommodate this. Note that while the size of space types on a story with a multiplier greater than 1 may appear smaller, they may be larger once the multiplier is applied. More options may be added in the future, specifically vacations of something like `Basements Ground Midx5 Top` that for very tall buildings would and multiple mid-stories vs. a single mid-story.
|
180
176
|
|
181
177
|
- `Make Mid Story Floor Surfaces Adiabatic` determines of surface intersection and surface matching should be applied between stories (when they are adjacent and capable of being matched e.g. story multiplier not used). Setting this to true can reduce the number of surfaces in the model
|
182
178
|
|
183
|
-
- `Division Method for Bar Space Types` is used to determine how the internal zoning and space type division of the bar(s) is approached. The default
|
179
|
+
- `Division Method for Bar Space Types` is used to determine how the internal zoning and space type division of the bar(s) is approached. The default value of `Multiple Space Types - Individual Stories Sliced` is the primary method that should be used. It creates what looks like a core and perimeter model, but slices it up by space type, with large space types moving towards the upper stories. There is some basic logic to minimize small slivers of a space type being created that would create thermal zones with small volumes that may not simulate well. The two largest space types will be at the ends of the bars to minimize having excessive exterior exposure on a zone with a small floor area. `Multiple Space Types - Simple Sliced` is an earlier method that pre-dates the individual sliced stories. The logic is similar but it puts all space types on every building story and creates multiple stories with the exact same slicing logic. `Single Space Type - Core and Perimeter` is not sliced up by space type and isn't relevant for building types with multiple space types. If you do have a building type with only a single space type, like small or medium office, the multiple space type methods will still work. The single space type method will eventually be deprecated.
|
184
180
|
|
185
181
|
![Individualy Sliced](./docs/bar_sliced_indiv.png?raw=true)
|
186
182
|
*Multiple Space Types - Individual Stories Slice method that has been used through the examples above*
|
@@ -191,23 +187,21 @@ The ability to model what is essence party floor/ceilings in your model are cont
|
|
191
187
|
![Single Core Perimeter](./docs/bar_single_core_perim.png?raw=true)
|
192
188
|
*Single Space Type - Core and Perimeter, should not be a reason to use this*
|
193
189
|
|
194
|
-
- The `Double Loaded Corridor`
|
190
|
+
- The `Double Loaded Corridor` argument when enabled, take a circulation space type, when it exists, and pair it with the default space type, and will create a double loaded corridor for the space division and thermal zoning, instead of the typical sliced core and perimeter zoning. This not only alters the geometry of the internal division, but creates a hybrid slice that instead of being a single space type, contains a circulation space type running down the center of the bar, surrounded by spaces of another space type. For an example, with a primary school the corridor will be paired with the classrooms. The width of the corridor is determined to achieve the proper space type ratios of the two space types.
|
195
191
|
|
196
192
|
![Double Loaded Corridor](./docs/bar_double_loaded.png?raw=true)
|
197
193
|
*Double Loaded Corridor with classroom and corridor for secondary school.*
|
198
194
|
|
199
|
-
- The `Choose Space Type Sorting Method` only comes into play when you are modeling a building with more than one building type. With `Size` selected the space types are organized by size, independent of the building type, with smaller space types on lower stories and larger space types on higher stories. `Building Type > Size` is a newer method that first sorts by
|
195
|
+
- The `Choose Space Type Sorting Method` only comes into play when you are modeling a building with more than one building type. With `Size` selected the space types are organized by size, independent of the building type, with smaller space types on lower stories and larger space types on higher stories. `Building Type > Size` is a newer method that first sorts by building type, putting smaller building types on lower stories, and then within a building type will sort by size. An example use case for this method is when modeling a 4 story building with 25% office and 75% large hotel. With the `Building Type > Size` value the first story will be entirely office, with the rest of the stories large hotel. If the `Size` value is selected, building types wll be mixed together.
|
200
196
|
|
201
197
|
![Sort Space Types by Building Types](./docs/story_sort.png?raw=true)
|
202
198
|
*Building Type > Size used to sort by buiding types, and then by space types.*
|
203
199
|
|
204
|
-
- `Use Upstream Argument Values` can be left at the default value of true for most cases. This argument shows up in a number of measures, and then intent is to enable the synchronization of arguments that may be used as a variable in a parametric study across multiple measures. Generally
|
205
|
-
|
206
|
-
- `Climate Zone` is not used at all by this measure but is necessary for an obscure reason
|
200
|
+
- `Use Upstream Argument Values` can be left at the default value of true for most cases. This argument shows up in a number of measures, and then intent is to enable the synchronization of arguments that may be used as a variable in a parametric study across multiple measures. Generally a measures has unique argument names that don't exist in other measures, but some such ase `template` are used frequently. This argument, when set to true, will use the value of `template` from an earlier measure in the workflow, if found, in place of what is entered as the argument value for this measure.
|
207
201
|
|
208
202
|
## Development Comments
|
209
203
|
|
210
|
-
This measure relies on the openstudio-standards gem which is included in the OpenStudio CLI as well as a number of resources files listed below that are contained in the
|
204
|
+
This measure relies on the openstudio-standards gem which is included in the OpenStudio CLI as well as a number of resources files listed below that are contained in the openstudio-extension gem which is also included in the OpenStudio CLI. Other than the arguments almost none of the measure code is in the measure.rb file. The resource files are used by a number of measures and should be updated from the shared library and not within this measure.
|
211
205
|
- os_lib_model_generation.rb
|
212
206
|
- os_lib_model_simplification.rb
|
213
207
|
- os_lib_geometry.rb
|
@@ -227,6 +221,9 @@ ___
|
|
227
221
|
**Units:** <%= argument[:units] %>,
|
228
222
|
**Required:** <%= argument[:required] %>,
|
229
223
|
**Model Dependent:** <%= argument[:model_dependent] %>
|
224
|
+
<% if argument[:type] == "Choice" && !argument[:model_dependent]%>
|
225
|
+
**Choice Display Names** <%= argument[:choice_display_names] %>
|
226
|
+
<% end %>
|
230
227
|
<% end %>
|
231
228
|
|
232
229
|
<% if arguments.size == 0 %>
|
@@ -68,6 +68,11 @@ class CreateBarFromDOEBuildingTypeRatios < OpenStudio::Measure::ModelMeasure
|
|
68
68
|
return 'The building floor area can be described as a footprint size or as a total building area. The shape can be described by its aspect ratio or can be defined as a set width.'
|
69
69
|
end
|
70
70
|
|
71
|
+
# used to populate taxonomy in readme.md
|
72
|
+
def taxonomy
|
73
|
+
return 'Envelope.Form'
|
74
|
+
end
|
75
|
+
|
71
76
|
# define the arguments that the user will input
|
72
77
|
def arguments(model)
|
73
78
|
args = OpenStudio::Measure::OSArgumentVector.new
|
@@ -165,7 +170,7 @@ class CreateBarFromDOEBuildingTypeRatios < OpenStudio::Measure::ModelMeasure
|
|
165
170
|
args << building_rotation
|
166
171
|
|
167
172
|
# Make argument for template
|
168
|
-
template = OpenStudio::Measure::OSArgument.makeChoiceArgument('template', get_doe_templates(
|
173
|
+
template = OpenStudio::Measure::OSArgument.makeChoiceArgument('template', get_doe_templates(false), true)
|
169
174
|
template.setDisplayName('Target Standard')
|
170
175
|
template.setDefaultValue('90.1-2004')
|
171
176
|
args << template
|
@@ -3,8 +3,8 @@
|
|
3
3
|
<schema_version>3.0</schema_version>
|
4
4
|
<name>create_bar_from_doe_building_type_ratios</name>
|
5
5
|
<uid>0de3cff9-c805-42c4-964e-18cb43a22c63</uid>
|
6
|
-
<version_id>
|
7
|
-
<version_modified>
|
6
|
+
<version_id>b22052fe-59c2-43ce-b4eb-9685a9469847</version_id>
|
7
|
+
<version_modified>20211029T201024Z</version_modified>
|
8
8
|
<xml_checksum>5F523097</xml_checksum>
|
9
9
|
<class_name>CreateBarFromDOEBuildingTypeRatios</class_name>
|
10
10
|
<display_name>Create Bar From DOE Building Type Ratios</display_name>
|
@@ -565,10 +565,6 @@
|
|
565
565
|
<value>ComStock 90.1-2013</value>
|
566
566
|
<display_name>ComStock 90.1-2013</display_name>
|
567
567
|
</choice>
|
568
|
-
<choice>
|
569
|
-
<value>NREL ZNE Ready 2017</value>
|
570
|
-
<display_name>NREL ZNE Ready 2017</display_name>
|
571
|
-
</choice>
|
572
568
|
</choices>
|
573
569
|
</argument>
|
574
570
|
<argument>
|
@@ -992,18 +988,6 @@
|
|
992
988
|
<usage_type>doc</usage_type>
|
993
989
|
<checksum>D1E7B644</checksum>
|
994
990
|
</file>
|
995
|
-
<file>
|
996
|
-
<filename>README.md.erb</filename>
|
997
|
-
<filetype>erb</filetype>
|
998
|
-
<usage_type>readmeerb</usage_type>
|
999
|
-
<checksum>87CB14B2</checksum>
|
1000
|
-
</file>
|
1001
|
-
<file>
|
1002
|
-
<filename>README.md</filename>
|
1003
|
-
<filetype>md</filetype>
|
1004
|
-
<usage_type>readme</usage_type>
|
1005
|
-
<checksum>8A37AD01</checksum>
|
1006
|
-
</file>
|
1007
991
|
<file>
|
1008
992
|
<filename>LICENSE.md</filename>
|
1009
993
|
<filetype>md</filetype>
|
@@ -1019,13 +1003,25 @@
|
|
1019
1003
|
<filename>measure.rb</filename>
|
1020
1004
|
<filetype>rb</filetype>
|
1021
1005
|
<usage_type>script</usage_type>
|
1022
|
-
<checksum>
|
1006
|
+
<checksum>F458CCEC</checksum>
|
1007
|
+
</file>
|
1008
|
+
<file>
|
1009
|
+
<filename>README.md.erb</filename>
|
1010
|
+
<filetype>erb</filetype>
|
1011
|
+
<usage_type>readmeerb</usage_type>
|
1012
|
+
<checksum>764EC4D9</checksum>
|
1013
|
+
</file>
|
1014
|
+
<file>
|
1015
|
+
<filename>README.md</filename>
|
1016
|
+
<filetype>md</filetype>
|
1017
|
+
<usage_type>readme</usage_type>
|
1018
|
+
<checksum>7D3973D6</checksum>
|
1023
1019
|
</file>
|
1024
1020
|
<file>
|
1025
1021
|
<filename>create_bar_from_doe_building_type_ratios_test.rb</filename>
|
1026
1022
|
<filetype>rb</filetype>
|
1027
1023
|
<usage_type>test</usage_type>
|
1028
|
-
<checksum>
|
1024
|
+
<checksum>A5886CCE</checksum>
|
1029
1025
|
</file>
|
1030
1026
|
</files>
|
1031
1027
|
</measure>
|