urbanopt-geojson 0.3.1 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/pull_request_template.md +2 -2
- data/CHANGELOG.md +48 -4
- data/CONTRIBUTING.md +1 -1
- data/LICENSE.md +29 -17
- data/RDOC_MAIN.md +26 -22
- data/README.md +2 -2
- data/Rakefile +16 -6
- data/doc_templates/LICENSE.md +27 -17
- data/doc_templates/copyright_erb.txt +40 -30
- data/doc_templates/copyright_js.txt +1 -1
- data/doc_templates/copyright_ruby.txt +17 -7
- data/docs/.vuepress/components/InnerJsonSchema.vue +7 -11
- data/docs/.vuepress/config.js +11 -1
- data/docs/.vuepress/highlight.js +1 -1
- data/docs/.vuepress/json-schema-deref-loader.js +22 -0
- data/docs/README.md +3 -4
- data/docs/package-lock.json +5280 -6960
- data/docs/package.json +10 -8
- data/lib/measures/urban_geometry_creation/LICENSE.md +27 -17
- data/lib/measures/urban_geometry_creation/README.md +8 -0
- data/lib/measures/urban_geometry_creation/measure.rb +34 -9
- data/lib/measures/urban_geometry_creation/measure.xml +33 -14
- data/lib/measures/urban_geometry_creation_zoning/LICENSE.md +27 -17
- data/lib/measures/urban_geometry_creation_zoning/measure.rb +16 -8
- data/lib/measures/urban_geometry_creation_zoning/measure.xml +11 -11
- data/lib/urbanopt-geojson.rb +16 -6
- data/lib/urbanopt/geojson.rb +17 -6
- data/lib/urbanopt/geojson/building.rb +76 -15
- data/lib/urbanopt/geojson/derived_extension.rb +16 -6
- data/lib/urbanopt/geojson/district_system.rb +16 -6
- data/lib/urbanopt/geojson/feature.rb +102 -9
- data/lib/urbanopt/geojson/geo_file.rb +18 -8
- data/lib/urbanopt/geojson/helper.rb +52 -7
- data/lib/urbanopt/geojson/logging.rb +16 -6
- data/lib/urbanopt/geojson/mapper_classes.rb +16 -6
- data/lib/urbanopt/geojson/model.rb +1 -1
- data/lib/urbanopt/geojson/region.rb +1 -1
- data/lib/urbanopt/geojson/scale_area.rb +95 -0
- data/lib/urbanopt/geojson/schema/building_properties.json +57 -13
- data/lib/urbanopt/geojson/schema/electrical_connector_properties.json +24 -15
- data/lib/urbanopt/geojson/schema/thermal_connector_properties.json +1 -1
- data/lib/urbanopt/geojson/schema/thermal_junction_properties.json +1 -1
- data/lib/urbanopt/geojson/update_areas.rb +1 -1
- data/lib/urbanopt/geojson/validate_geojson.rb +1 -1
- data/lib/urbanopt/geojson/version.rb +2 -2
- data/lib/urbanopt/geojson/zoning.rb +21 -16
- data/urbanopt-geojson-gem.gemspec +4 -8
- metadata +12 -24
@@ -1,21 +1,31 @@
|
|
1
1
|
# *********************************************************************************
|
2
|
-
# URBANopt
|
2
|
+
# URBANopt™, Copyright (c) 2019-2021, Alliance for Sustainable Energy, LLC, and other
|
3
3
|
# contributors. All rights reserved.
|
4
|
-
|
4
|
+
|
5
5
|
# Redistribution and use in source and binary forms, with or without modification,
|
6
6
|
# are permitted provided that the following conditions are met:
|
7
|
-
|
7
|
+
|
8
8
|
# Redistributions of source code must retain the above copyright notice, this list
|
9
9
|
# of conditions and the following disclaimer.
|
10
|
-
|
10
|
+
|
11
11
|
# Redistributions in binary form must reproduce the above copyright notice, this
|
12
12
|
# list of conditions and the following disclaimer in the documentation and/or other
|
13
13
|
# materials provided with the distribution.
|
14
|
-
|
14
|
+
|
15
15
|
# Neither the name of the copyright holder nor the names of its contributors may be
|
16
16
|
# used to endorse or promote products derived from this software without specific
|
17
17
|
# prior written permission.
|
18
|
-
|
18
|
+
|
19
|
+
# Redistribution of this software, without modification, must refer to the software
|
20
|
+
# by the same designation. Redistribution of a modified version of this software
|
21
|
+
# (i) may not refer to the modified version by the same designation, or by any
|
22
|
+
# confusingly similar designation, and (ii) must refer to the underlying software
|
23
|
+
# originally provided by Alliance as “URBANopt”. Except to comply with the foregoing,
|
24
|
+
# the term “URBANopt”, or any confusingly similar designation may not be used to
|
25
|
+
# refer to any modified version of this software or any modified version of the
|
26
|
+
# underlying software originally provided by Alliance without the prior written
|
27
|
+
# consent of Alliance.
|
28
|
+
|
19
29
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
20
30
|
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
21
31
|
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
@@ -183,7 +193,9 @@ module URBANopt
|
|
183
193
|
# * +origin_lat_lon+ - _Type:Float_ - An instance of +OpenStudio::PointLatLon+ indicating the origin's latitude and longitude.
|
184
194
|
# * +runner+ - _Type:String_ - The measure run's instance of +OpenStudio::Measure::OSRunner+ .
|
185
195
|
# * +zoning+ - _Type:Boolean_ - Value is +True+ if utilizing detailed zoning, else +False+. Zoning is set to False by default.
|
186
|
-
|
196
|
+
# * +scaled_footprint_area+ - Used to scale the footprint area using the floor area. 0 by
|
197
|
+
# default (no scaling).
|
198
|
+
def self.floor_print_from_polygon(polygon, elevation, origin_lat_lon, runner, zoning = false, scaled_footprint_area = 0)
|
187
199
|
floor_print = OpenStudio::Point3dVector.new
|
188
200
|
all_points = OpenStudio::Point3dVector.new
|
189
201
|
polygon.each do |p|
|
@@ -207,9 +219,42 @@ module URBANopt
|
|
207
219
|
floor_print = OpenStudio.reverse(floor_print)
|
208
220
|
runner.registerWarning('Reversing floor print')
|
209
221
|
end
|
222
|
+
|
223
|
+
# check for scaling
|
224
|
+
if scaled_footprint_area > 0
|
225
|
+
|
226
|
+
# check that the scaled_footprint_area desired is no less than X % of the original
|
227
|
+
original_floor_print_area = OpenStudio.getArea(floor_print).get
|
228
|
+
if scaled_footprint_area / original_floor_print_area <= 0.5 || scaled_footprint_area / original_floor_print_area >= 2
|
229
|
+
# TOO MUCH SCALING...using original footprint when scaled is 2x bigger or smaller than the original
|
230
|
+
runner.registerWarning('Desired scaled_footprint_area is a factor of 2 of the original footprint...keeping original footprint (no scaling!)')
|
231
|
+
else
|
232
|
+
new_floor_print = adjust_vertices_to_area(floor_print, scaled_footprint_area, runner)
|
233
|
+
new_footprint_area = OpenStudio.getArea(new_floor_print).get
|
234
|
+
runner.registerInfo("New floor area: #{new_footprint_area}, compared to scaled area desired: #{scaled_footprint_area}")
|
235
|
+
floor_print = new_floor_print
|
236
|
+
end
|
237
|
+
end
|
238
|
+
|
210
239
|
return floor_print
|
211
240
|
end
|
212
241
|
|
242
|
+
##
|
243
|
+
# Used to scale footprint to desired area while keeping the original shape.
|
244
|
+
#
|
245
|
+
# [Parameters]
|
246
|
+
# * +vertices+ - _Type:Array_ - An array of vertices for the original floorprint
|
247
|
+
# * +desired_area+ - _Type:String_ - Area to which you want to scale the vertices to
|
248
|
+
# * +runner+ - _Type:String_ - An instance of +Openstudio::Measure::OSRunner+ for the measure run.
|
249
|
+
#
|
250
|
+
def self.adjust_vertices_to_area(vertices, desired_area, runner, eps = 0.1)
|
251
|
+
ar = ScaleArea.new(vertices, desired_area, runner, eps)
|
252
|
+
|
253
|
+
n = Newton.nlsolve(ar, [0])
|
254
|
+
|
255
|
+
return ar.new_vertices
|
256
|
+
end
|
257
|
+
|
213
258
|
##
|
214
259
|
# Calculate which other buildings are shading the current feature and return as an array of
|
215
260
|
# +OpenStudio::Model::Space+.
|
@@ -1,21 +1,31 @@
|
|
1
1
|
# *********************************************************************************
|
2
|
-
# URBANopt
|
2
|
+
# URBANopt™, Copyright (c) 2019-2021, Alliance for Sustainable Energy, LLC, and other
|
3
3
|
# contributors. All rights reserved.
|
4
|
-
|
4
|
+
|
5
5
|
# Redistribution and use in source and binary forms, with or without modification,
|
6
6
|
# are permitted provided that the following conditions are met:
|
7
|
-
|
7
|
+
|
8
8
|
# Redistributions of source code must retain the above copyright notice, this list
|
9
9
|
# of conditions and the following disclaimer.
|
10
|
-
|
10
|
+
|
11
11
|
# Redistributions in binary form must reproduce the above copyright notice, this
|
12
12
|
# list of conditions and the following disclaimer in the documentation and/or other
|
13
13
|
# materials provided with the distribution.
|
14
|
-
|
14
|
+
|
15
15
|
# Neither the name of the copyright holder nor the names of its contributors may be
|
16
16
|
# used to endorse or promote products derived from this software without specific
|
17
17
|
# prior written permission.
|
18
|
-
|
18
|
+
|
19
|
+
# Redistribution of this software, without modification, must refer to the software
|
20
|
+
# by the same designation. Redistribution of a modified version of this software
|
21
|
+
# (i) may not refer to the modified version by the same designation, or by any
|
22
|
+
# confusingly similar designation, and (ii) must refer to the underlying software
|
23
|
+
# originally provided by Alliance as “URBANopt”. Except to comply with the foregoing,
|
24
|
+
# the term “URBANopt”, or any confusingly similar designation may not be used to
|
25
|
+
# refer to any modified version of this software or any modified version of the
|
26
|
+
# underlying software originally provided by Alliance without the prior written
|
27
|
+
# consent of Alliance.
|
28
|
+
|
19
29
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
20
30
|
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
21
31
|
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
@@ -1,21 +1,31 @@
|
|
1
1
|
# *********************************************************************************
|
2
|
-
# URBANopt
|
2
|
+
# URBANopt™, Copyright (c) 2019-2021, Alliance for Sustainable Energy, LLC, and other
|
3
3
|
# contributors. All rights reserved.
|
4
|
-
|
4
|
+
|
5
5
|
# Redistribution and use in source and binary forms, with or without modification,
|
6
6
|
# are permitted provided that the following conditions are met:
|
7
|
-
|
7
|
+
|
8
8
|
# Redistributions of source code must retain the above copyright notice, this list
|
9
9
|
# of conditions and the following disclaimer.
|
10
|
-
|
10
|
+
|
11
11
|
# Redistributions in binary form must reproduce the above copyright notice, this
|
12
12
|
# list of conditions and the following disclaimer in the documentation and/or other
|
13
13
|
# materials provided with the distribution.
|
14
|
-
|
14
|
+
|
15
15
|
# Neither the name of the copyright holder nor the names of its contributors may be
|
16
16
|
# used to endorse or promote products derived from this software without specific
|
17
17
|
# prior written permission.
|
18
|
-
|
18
|
+
|
19
|
+
# Redistribution of this software, without modification, must refer to the software
|
20
|
+
# by the same designation. Redistribution of a modified version of this software
|
21
|
+
# (i) may not refer to the modified version by the same designation, or by any
|
22
|
+
# confusingly similar designation, and (ii) must refer to the underlying software
|
23
|
+
# originally provided by Alliance as “URBANopt”. Except to comply with the foregoing,
|
24
|
+
# the term “URBANopt”, or any confusingly similar designation may not be used to
|
25
|
+
# refer to any modified version of this software or any modified version of the
|
26
|
+
# underlying software originally provided by Alliance without the prior written
|
27
|
+
# consent of Alliance.
|
28
|
+
|
19
29
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
20
30
|
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
21
31
|
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# *********************************************************************************
|
2
|
-
# URBANopt, Copyright (c) 2019-2020, Alliance for Sustainable Energy, LLC, and other
|
2
|
+
# URBANopt (tm), Copyright (c) 2019-2020, Alliance for Sustainable Energy, LLC, and other
|
3
3
|
# contributors. All rights reserved.
|
4
4
|
#
|
5
5
|
# Redistribution and use in source and binary forms, with or without modification,
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# *********************************************************************************
|
2
|
-
# URBANopt, Copyright (c) 2019-2020, Alliance for Sustainable Energy, LLC, and other
|
2
|
+
# URBANopt (tm), Copyright (c) 2019-2020, Alliance for Sustainable Energy, LLC, and other
|
3
3
|
# contributors. All rights reserved.
|
4
4
|
#
|
5
5
|
# Redistribution and use in source and binary forms, with or without modification,
|
@@ -0,0 +1,95 @@
|
|
1
|
+
# *********************************************************************************
|
2
|
+
# URBANopt (tm), Copyright (c) 2019-2020, Alliance for Sustainable Energy, LLC, and other
|
3
|
+
# contributors. All rights reserved.
|
4
|
+
#
|
5
|
+
# Redistribution and use in source and binary forms, with or without modification,
|
6
|
+
# are permitted provided that the following conditions are met:
|
7
|
+
#
|
8
|
+
# Redistributions of source code must retain the above copyright notice, this list
|
9
|
+
# of conditions and the following disclaimer.
|
10
|
+
#
|
11
|
+
# Redistributions in binary form must reproduce the above copyright notice, this
|
12
|
+
# list of conditions and the following disclaimer in the documentation and/or other
|
13
|
+
# materials provided with the distribution.
|
14
|
+
#
|
15
|
+
# Neither the name of the copyright holder nor the names of its contributors may be
|
16
|
+
# used to endorse or promote products derived from this software without specific
|
17
|
+
# prior written permission.
|
18
|
+
#
|
19
|
+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
20
|
+
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
21
|
+
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
22
|
+
# IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
23
|
+
# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
24
|
+
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
25
|
+
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
26
|
+
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
27
|
+
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
28
|
+
# OF THE POSSIBILITY OF SUCH DAMAGE.
|
29
|
+
# *********************************************************************************
|
30
|
+
|
31
|
+
require 'json'
|
32
|
+
require 'net/http'
|
33
|
+
require 'uri'
|
34
|
+
require 'openssl'
|
35
|
+
require 'bigdecimal/newton'
|
36
|
+
|
37
|
+
module Newton
|
38
|
+
def self.jacobian(f, fx, x)
|
39
|
+
Jacobian.jacobian(f, fx, x)
|
40
|
+
end
|
41
|
+
|
42
|
+
def self.ludecomp(a, n, zero = 0, one = 1)
|
43
|
+
LUSolve.ludecomp(a, n, zero, one)
|
44
|
+
end
|
45
|
+
|
46
|
+
def self.lusolve(a, b, ps, zero = 0.0)
|
47
|
+
LUSolve.lusolve(a, b, ps, zero)
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
module URBANopt
|
52
|
+
module GeoJSON
|
53
|
+
class ScaleArea
|
54
|
+
def initialize(vertices, desired_area, runner, eps)
|
55
|
+
@vertices = vertices
|
56
|
+
@centroid = OpenStudio.getCentroid(vertices)
|
57
|
+
raise "Cannot compute centroid for '#{vertices}'" if @centroid.empty?
|
58
|
+
@centroid = @centroid.get
|
59
|
+
@desired_area = desired_area
|
60
|
+
@new_vertices = vertices
|
61
|
+
@runner = runner
|
62
|
+
@zero = BigDecimal('0.0')
|
63
|
+
@one = BigDecimal('1.0')
|
64
|
+
@two = BigDecimal('2.0')
|
65
|
+
@ten = BigDecimal('10.0')
|
66
|
+
@eps = eps
|
67
|
+
end
|
68
|
+
|
69
|
+
attr_reader :zero
|
70
|
+
|
71
|
+
attr_reader :one
|
72
|
+
|
73
|
+
attr_reader :two
|
74
|
+
|
75
|
+
attr_reader :ten
|
76
|
+
|
77
|
+
attr_reader :eps
|
78
|
+
|
79
|
+
##
|
80
|
+
# Used to determine new scaled vertices, by iteratively passing in the perimeter distance to
|
81
|
+
# minimise the difference of the new and scaled area. Returns the difference of the new area and desired area.
|
82
|
+
#
|
83
|
+
def values(x)
|
84
|
+
@new_vertices = URBANopt::GeoJSON::Zoning.divide_floor_print(@vertices, x[0].to_f, @runner, scale = true)
|
85
|
+
new_area = OpenStudio.getArea(@new_vertices)
|
86
|
+
raise "Cannot compute area for '#{@new_vertices}'" if new_area.empty?
|
87
|
+
new_area = new_area.get
|
88
|
+
|
89
|
+
return [new_area - @desired_area]
|
90
|
+
end
|
91
|
+
|
92
|
+
attr_reader :new_vertices
|
93
|
+
end # ScaleArea
|
94
|
+
end # GeoJSON
|
95
|
+
end # URBANopt
|
@@ -87,7 +87,7 @@
|
|
87
87
|
"type": "string"
|
88
88
|
},
|
89
89
|
"floor_area": {
|
90
|
-
"description": "Usable floor area (ft^2).",
|
90
|
+
"description": "Usable floor area (ft^2). Required for residential buildings, this represents conditioned floor area.",
|
91
91
|
"type": "number"
|
92
92
|
},
|
93
93
|
"number_of_stories": {
|
@@ -95,7 +95,7 @@
|
|
95
95
|
"type": "integer"
|
96
96
|
},
|
97
97
|
"number_of_stories_above_ground": {
|
98
|
-
"description": "The number of building stories above ground. Defaults to number_of_stories.",
|
98
|
+
"description": "The number of building stories above ground. Defaults to number_of_stories. Required for residential buildings.",
|
99
99
|
"type": "integer"
|
100
100
|
},
|
101
101
|
"maximum_roof_height": {
|
@@ -142,7 +142,7 @@
|
|
142
142
|
"$ref": "#/definitions/heatingSystemFuelType"
|
143
143
|
},
|
144
144
|
"weekday_start_time": {
|
145
|
-
"description": "Weekday operating hours start time in 08:30 format, using 24-hr clock. Leave blank to use default.
|
145
|
+
"description": "Weekday operating hours start time in 08:30 format, using 24-hr clock. Leave blank to use default.",
|
146
146
|
"type": "string"
|
147
147
|
},
|
148
148
|
"weekday_duration": {
|
@@ -150,7 +150,7 @@
|
|
150
150
|
"type": "string"
|
151
151
|
},
|
152
152
|
"weekend_start_time": {
|
153
|
-
"description": "Weekend operating hours start time in 08:30 format, using 24-hr clock. Leave blank to use default.
|
153
|
+
"description": "Weekend operating hours start time in 08:30 format, using 24-hr clock. Leave blank to use default.",
|
154
154
|
"type": "string"
|
155
155
|
},
|
156
156
|
"weekend_duration": {
|
@@ -194,7 +194,7 @@
|
|
194
194
|
"maximum": 100
|
195
195
|
},
|
196
196
|
"number_of_residential_units": {
|
197
|
-
"description": "Total number of residential units in the building. Required for single-family attached
|
197
|
+
"description": "Total number of residential units in the building. Required for single-family attached and multifamily residential buildings.",
|
198
198
|
"type": "integer"
|
199
199
|
},
|
200
200
|
"number_of_bedrooms": {
|
@@ -225,6 +225,45 @@
|
|
225
225
|
},
|
226
226
|
"user_data": {
|
227
227
|
"description": "Arbitrary user data"
|
228
|
+
},
|
229
|
+
"ev_charging": {
|
230
|
+
"description": "Should be set to true if EV charging is associated with the building.",
|
231
|
+
"type": "boolean"
|
232
|
+
},
|
233
|
+
"ev_charging_station_type": {
|
234
|
+
"description": "Indicates whether EV charging associated with the building is for Typical Home, Public or Work charging station",
|
235
|
+
"type": "string",
|
236
|
+
"enum": [
|
237
|
+
"Typical Home",
|
238
|
+
"Typical Public",
|
239
|
+
"Typical Work"
|
240
|
+
]
|
241
|
+
},
|
242
|
+
"delay_type": {
|
243
|
+
"description": "Adds workplace charging flexibility for different scenarios. Min delay scenario indicates EV charging immediately upon arriving to work, Max delay indicates not charging until necessary thereby shifting EV charging load to later in the day and Min power indicates charging EVs at a minimum rate over the parking event.",
|
244
|
+
"type": "string",
|
245
|
+
"enum": [
|
246
|
+
"Min Delay",
|
247
|
+
"Max Delay",
|
248
|
+
"Min Power"
|
249
|
+
]
|
250
|
+
},
|
251
|
+
"ev_charging_behavior": {
|
252
|
+
"description": "Describes scenarios for EV charging behavior, Business as Usual implies home dominant charging behavior, Free Workplace Charging at Project Site implies peak power draw from EV charging during morning hours due to EV charging at workplaces and Free Workplace Charging Across Metro Area scenario reduces Home EV charging relative to Free Workplace Charging at Project Site for residents who work elsewhere and can charge their vehicles for free at those workplaces.",
|
253
|
+
"type": "string",
|
254
|
+
"enum": [
|
255
|
+
"Business as Usual",
|
256
|
+
"Free Workplace Charging at Project Site",
|
257
|
+
"Free Workplace Charging Across Metro Area"
|
258
|
+
]
|
259
|
+
},
|
260
|
+
"ev_percent": {
|
261
|
+
"description": "Denotes the % of vehicles parked at the building that are EVs.",
|
262
|
+
"type": "number"
|
263
|
+
},
|
264
|
+
"ev_curtailment_frac": {
|
265
|
+
"description": "Fraction between 0 and 1 that denotes curtailment of EV charging load to better align EV charging with expected energy production from a solar PV system",
|
266
|
+
"type": "number"
|
228
267
|
}
|
229
268
|
},
|
230
269
|
"oneOf": [
|
@@ -241,8 +280,8 @@
|
|
241
280
|
"type",
|
242
281
|
"name",
|
243
282
|
"floor_area",
|
283
|
+
"number_of_stories_above_ground",
|
244
284
|
"number_of_stories",
|
245
|
-
"footprint_area",
|
246
285
|
"building_type",
|
247
286
|
"number_of_bedrooms",
|
248
287
|
"foundation_type",
|
@@ -254,7 +293,7 @@
|
|
254
293
|
"building_type": {
|
255
294
|
"enum": [
|
256
295
|
"Single-Family Attached"
|
257
|
-
|
296
|
+
]
|
258
297
|
}
|
259
298
|
},
|
260
299
|
"required": [
|
@@ -262,8 +301,8 @@
|
|
262
301
|
"type",
|
263
302
|
"name",
|
264
303
|
"floor_area",
|
304
|
+
"number_of_stories_above_ground",
|
265
305
|
"number_of_stories",
|
266
|
-
"footprint_area",
|
267
306
|
"building_type",
|
268
307
|
"number_of_residential_units",
|
269
308
|
"number_of_bedrooms",
|
@@ -276,7 +315,7 @@
|
|
276
315
|
"building_type": {
|
277
316
|
"enum": [
|
278
317
|
"Multifamily"
|
279
|
-
|
318
|
+
]
|
280
319
|
}
|
281
320
|
},
|
282
321
|
"required": [
|
@@ -284,8 +323,8 @@
|
|
284
323
|
"type",
|
285
324
|
"name",
|
286
325
|
"floor_area",
|
326
|
+
"number_of_stories_above_ground",
|
287
327
|
"number_of_stories",
|
288
|
-
"footprint_area",
|
289
328
|
"building_type",
|
290
329
|
"number_of_residential_units",
|
291
330
|
"number_of_bedrooms",
|
@@ -373,7 +412,7 @@
|
|
373
412
|
]
|
374
413
|
},
|
375
414
|
"systemType": {
|
376
|
-
"description": "Building HVAC system type.
|
415
|
+
"description": "Building HVAC system type.",
|
377
416
|
"type": "string",
|
378
417
|
"enum": [
|
379
418
|
"PTAC with baseboard electric",
|
@@ -437,7 +476,7 @@
|
|
437
476
|
"Direct evap coolers with baseboard electric",
|
438
477
|
"Direct evap coolers with baseboard gas boiler",
|
439
478
|
"Direct evap coolers with baseboard central air source heat pump",
|
440
|
-
"Direct evap coolers with no heat",
|
479
|
+
"Direct evap coolers with no heat",
|
441
480
|
"Direct evap coolers with gas unit heaters",
|
442
481
|
"Direct evap coolers with forced air furnace",
|
443
482
|
"Gas unit heaters",
|
@@ -519,7 +558,12 @@
|
|
519
558
|
"DEER 2060",
|
520
559
|
"DEER 2065",
|
521
560
|
"DEER 2070",
|
522
|
-
"DEER 2075"
|
561
|
+
"DEER 2075",
|
562
|
+
"Residential IECC 2006 - Customizable Template Sep 2020",
|
563
|
+
"Residential IECC 2009 - Customizable Template Sep 2020",
|
564
|
+
"Residential IECC 2012 - Customizable Template Sep 2020",
|
565
|
+
"Residential IECC 2015 - Customizable Template Sep 2020",
|
566
|
+
"Residential IECC 2018 - Customizable Template Sep 2020"
|
523
567
|
]
|
524
568
|
},
|
525
569
|
"foundationType": {
|
@@ -50,22 +50,31 @@
|
|
50
50
|
"description": "Id of the junction that this line starts at.",
|
51
51
|
"type": "string"
|
52
52
|
},
|
53
|
-
"line_properties":{
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
53
|
+
"line_properties": {
|
54
|
+
"description": "A sub-element containing all the attributes that can be assigned to a line, including wires",
|
55
|
+
"type": "object",
|
56
|
+
"properties": {
|
57
|
+
"is_switch": {
|
58
|
+
"type": "boolean",
|
59
|
+
"description": "Flag indicating if the line is a switch or not"
|
60
|
+
},
|
61
|
+
"is_fuse": {
|
62
|
+
"type": "boolean",
|
63
|
+
"description": "Flag indicating if the line is a fuse or not"
|
64
|
+
},
|
65
|
+
"is_open": {
|
66
|
+
"type": "boolean",
|
67
|
+
"description": "Flag indicating if the switch/fuse is a open or not"
|
60
68
|
}
|
69
|
+
}
|
61
70
|
},
|
62
71
|
"wires": {
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
72
|
+
"description": "Array of wires that are on the line",
|
73
|
+
"type": "array",
|
74
|
+
"items": {
|
75
|
+
"$ref": "#/definitions/WireType",
|
76
|
+
"type": "string"
|
77
|
+
}
|
69
78
|
},
|
70
79
|
"endJunctionId": {
|
71
80
|
"description": "Id of the junction that this line ends at.",
|
@@ -88,7 +97,7 @@
|
|
88
97
|
"description": "Type of electrical line",
|
89
98
|
"type": "string",
|
90
99
|
"enum": [
|
91
|
-
"
|
100
|
+
"Wire"
|
92
101
|
]
|
93
102
|
},
|
94
103
|
"WireType": {
|
@@ -214,4 +223,4 @@
|
|
214
223
|
]
|
215
224
|
}
|
216
225
|
}
|
217
|
-
}
|
226
|
+
}
|