urbanopt-geojson 0.2.0.pre1 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +5 -5
  2. data/.rubocop.yml +1 -1
  3. data/CHANGELOG.md +47 -0
  4. data/Gemfile +0 -3
  5. data/RDOC_MAIN.md +13 -7
  6. data/README.md +3 -3
  7. data/Rakefile +1 -1
  8. data/lib/measures/urban_geometry_creation/README.md +1 -1
  9. data/lib/measures/urban_geometry_creation/measure.rb +2 -0
  10. data/lib/measures/urban_geometry_creation/measure.xml +20 -18
  11. data/lib/measures/urban_geometry_creation_zoning/README.md +1 -1
  12. data/lib/measures/urban_geometry_creation_zoning/measure.rb +4 -3
  13. data/lib/measures/urban_geometry_creation_zoning/measure.xml +23 -21
  14. data/lib/urbanopt/geojson.rb +1 -1
  15. data/lib/urbanopt/geojson/building.rb +33 -28
  16. data/lib/urbanopt/geojson/{extension.rb → derived_extension.rb} +0 -0
  17. data/lib/urbanopt/geojson/feature.rb +6 -1
  18. data/lib/urbanopt/geojson/geo_file.rb +40 -39
  19. data/lib/urbanopt/geojson/helper.rb +5 -6
  20. data/lib/urbanopt/geojson/mapper_classes.rb +46 -46
  21. data/lib/urbanopt/geojson/model.rb +2 -3
  22. data/lib/urbanopt/geojson/schema/building_properties.json +241 -80
  23. data/lib/urbanopt/geojson/update_areas.rb +1 -1
  24. data/lib/urbanopt/geojson/validate_geojson.rb +2 -0
  25. data/lib/urbanopt/geojson/version.rb +1 -1
  26. data/lib/urbanopt/geojson/workflows/building.osw.out +4 -4
  27. data/urbanopt-geojson-gem.gemspec +9 -13
  28. metadata +22 -43
  29. data/lib/change_log.rb +0 -147
  30. data/lib/measures/urban_geometry_creation/tests/nrel_stm_footprints.geojson +0 -3238
  31. data/lib/measures/urban_geometry_creation/tests/shadowed_tests.rb +0 -80
  32. data/lib/measures/urban_geometry_creation/tests/urban_geometry_creation_test.rb +0 -139
  33. data/lib/measures/urban_geometry_creation_zoning/tests/nrel_stm_footprints.geojson +0 -3238
  34. data/lib/measures/urban_geometry_creation_zoning/tests/urban_geometry_creation_zoning_test.rb +0 -139
@@ -44,8 +44,12 @@ module URBANopt
44
44
  @feature_json = validate_feat(feature)
45
45
  end
46
46
 
47
+ # rubocop:disable Style/MethodMissing
47
48
  def method_missing(name, *args, &blk)
49
+ # rubocop:enable Style/MethodMissing
50
+ # rubocop:disable Style/GuardClause
48
51
  if @feature_json[:properties].keys.map(&:to_sym).include? name.to_sym
52
+ # rubocop:enable Style/GuardClause
49
53
  return @feature_json[:properties][name.to_sym]
50
54
  else
51
55
  super
@@ -169,8 +173,9 @@ module URBANopt
169
173
  ##
170
174
  # Used to validate the feature by checking +feature_id+ , +geometry+, +properties+
171
175
  # and +geometry_type+ .
172
-
176
+ # rubocop:disable Style/CommentedKeyword
173
177
  def validate_feat(feature) #:doc:
178
+ # rubocop:enable Style/CommentedKeyword
174
179
  if feature.nil? || feature.empty?
175
180
  raise("Feature '#{feature_id}' could not be found")
176
181
  return false
@@ -80,7 +80,7 @@ module URBANopt
80
80
 
81
81
  # initialize @@logger
82
82
  @@logger ||= URBANopt::GeoJSON.logger
83
-
83
+
84
84
  # validate each feature against schema
85
85
  geojson_file[:features].each do |feature|
86
86
  properties = feature[:properties]
@@ -93,16 +93,16 @@ module URBANopt
93
93
  # Incase detailed_model_filename present check for fewer properties
94
94
  if feature[:properties][:detailed_model_filename]
95
95
  if feature[:properties][:id].nil?
96
- raise("No id found for Building Feature")
96
+ raise('No id found for Building Feature')
97
97
  end
98
98
  if feature[:properties][:name].nil?
99
- raise("No name found for Building Feature")
99
+ raise('No name found for Building Feature')
100
100
  end
101
101
  if feature[:properties][:number_of_stories].nil?
102
102
  @@logger.warn("Number of stories is required to calculate shading using the UrbanGeometryCreation measure...ignoring #{feature[:properties][:id]} in shading calculations")
103
103
  end
104
104
  feature[:additionalProperties] = true
105
- # Else validate for all required properties in the schema
105
+ # Else validate for all required properties in the schema
106
106
  else
107
107
  errors = validate(@@building_schema, properties)
108
108
  end
@@ -114,16 +114,15 @@ module URBANopt
114
114
  errors = validate(@@electrical_junction_schema, properties)
115
115
  when 'ElectricalConnector'
116
116
  errors = validate(@@electrical_connector_schema, properties)
117
- when 'ElectricalJunction'
117
+ when 'ThermalJunction'
118
118
  errors = validate(@@thermal_junction_schema, properties)
119
119
  when 'ThermalConnector'
120
120
  errors = validate(@@thermal_connector_schema, properties)
121
121
  end
122
-
122
+
123
123
  unless errors.empty?
124
- raise ("#{type} does not adhere to schema: \n #{errors.join('\n ')}")
124
+ raise "#{type} does not adhere to schema: \n #{errors.join('\n ')}"
125
125
  end
126
-
127
126
  end
128
127
  return new(geojson_file, path)
129
128
  end
@@ -162,7 +161,9 @@ module URBANopt
162
161
  if f[:properties] && f[:properties][:id] == feature_id
163
162
  # merge site origin properties
164
163
  f = merge_site_properties(f)
164
+ # rubocop:disable Style/GuardClause
165
165
  if f[:properties][:type] == 'Building'
166
+ # rubocop:enable Style/GuardClause
166
167
  return URBANopt::GeoJSON::Building.new(f)
167
168
  elsif f[:properties] && f[:properties][:type] == 'District System'
168
169
  return URBANopt::GeoJSON::DistrictSystem.new(f)
@@ -172,47 +173,48 @@ module URBANopt
172
173
  return nil
173
174
  end
174
175
 
175
- ##
176
- # Merge Site Properties in Feature. Returns feature with site properties added to its properties section. Does not overwrite existing properties.
177
- #
176
+ ##
177
+ # Merge Site Properties in Feature. Returns feature with site properties added to its properties section. Does not overwrite existing properties.
178
+ #
178
179
  # [Parameters]
179
180
  # +feature+ - _Type:Hash_ - feature object.
180
181
  def merge_site_properties(feature)
181
- site_origins = @geojson_file[:features].select {|f| f[:properties][:type] == 'Site Origin'}
182
- if site_origins.size > 0
183
- site_origin = site_origins[0]
184
- # site origin found, do some merging
185
- # this maps site properties to building/district system properties.
186
- add_props = [
187
- {site: :surface_elevation, feature: :surface_elevation},
188
- {site: :timesteps_per_hour, feature: :timesteps_per_hour},
189
- {site: :begin_date, feature: :begin_date},
190
- {site: :end_date, feature: :end_date},
191
- {site: :cec_climate_zone, feature: :cec_climate_zone},
192
- {site: :climate_zone, feature: :climate_zone},
193
- {site: :default_template, feature: :template},
194
- {site: :weather_filename, feature: :weather_filename},
195
- {site: :tariff_filename, feature: :tariff_filename}
196
- ]
182
+ project = {}
183
+ if @geojson_file.key?(:project)
184
+ project = @geojson_file[:project]
185
+ end
197
186
 
198
- add_props.each do |prop|
199
- if site_origin[:properties].key?(prop[:site]) and site_origin[:properties][prop[:site]]
200
- # property exists in site
201
- if !feature[:properties].key?(prop[:feature]) or feature[:properties][prop[:feature]].nil? or feature[:properties][prop[:feature]].empty?
202
- # property does not exist in feature or is nil: add site property (don't overwrite)
203
- feature[:properties][prop[:feature]] = site_origin[:properties][prop[:site]]
204
- end
187
+ # this maps site properties to building/district system properties.
188
+ add_props = [
189
+ { site: :surface_elevation, feature: :surface_elevation },
190
+ { site: :timesteps_per_hour, feature: :timesteps_per_hour },
191
+ { site: :begin_date, feature: :begin_date },
192
+ { site: :end_date, feature: :end_date },
193
+ { site: :cec_climate_zone, feature: :cec_climate_zone },
194
+ { site: :climate_zone, feature: :climate_zone },
195
+ { site: :default_template, feature: :template },
196
+ { site: :weather_filename, feature: :weather_filename },
197
+ { site: :tariff_filename, feature: :tariff_filename }
198
+ ]
199
+
200
+ add_props.each do |prop|
201
+ if project.key?(prop[:site]) && project[prop[:site]]
202
+ # property exists in site
203
+ if !feature[:properties].key?(prop[:feature]) || feature[:properties][prop[:feature]].nil? || feature[:properties][prop[:feature]].empty?
204
+ # property does not exist in feature or is nil: add site property (don't overwrite)
205
+ feature[:properties][prop[:feature]] = project[prop[:site]]
205
206
  end
206
207
  end
207
208
  end
209
+
208
210
  return feature
209
211
  end
210
212
 
211
213
  ##
212
- # Validate GeoJSON against schema
214
+ # Validate GeoJSON against schema.
213
215
  #
214
216
  # [Parameters]
215
- # * +data+ - + - _Type:Hash_ - Input GeoJSON file
217
+ # * +data+ - + - _Type:Hash_ - Input GeoJSON file
216
218
  def self.validate(schema_json, data)
217
219
  errors = JSON::Validator.fully_validate(schema_json, data, errors_as_objects: true)
218
220
  return errors
@@ -242,7 +244,7 @@ module URBANopt
242
244
  end
243
245
  return result
244
246
  end
245
-
247
+
246
248
  def self.get_district_system_schema(strict)
247
249
  result = nil
248
250
  File.open(File.dirname(__FILE__) + '/schema/district_system_properties.json') do |f|
@@ -255,7 +257,7 @@ module URBANopt
255
257
  end
256
258
  return result
257
259
  end
258
-
260
+
259
261
  def self.get_region_schema(strict)
260
262
  result = nil
261
263
  File.open(File.dirname(__FILE__) + '/schema/region_properties.json') do |f|
@@ -330,7 +332,6 @@ module URBANopt
330
332
  @@electrical_junction_schema = get_electrical_junction_schema(strict)
331
333
  @@thermal_connector_schema = get_thermal_connector_schema(strict)
332
334
  @@thermal_junction_schema = get_thermal_junction_schema(strict)
333
-
334
335
  end
335
336
  end
336
337
  end
@@ -216,14 +216,13 @@ module URBANopt
216
216
  #
217
217
  # [Parameters]
218
218
  # * +building+ - _Type:URBANopt::GeoJSON::Building_ - The core building that other buildings will be referenced.
219
- # * +other_building_type+ - _Type:String_ - Describes the surrounding buildings.
219
+ # * +other_building_type+ - _Type:String_ - Describes the surrounding buildings.
220
220
  # * +other_buildings+ - _Type:URBANopt::GeoJSON::FeatureCollection_ - List of surrounding buildings to include (self will be ignored if present in list).
221
221
  # * +model+ - _Type:OpenStudio::Model::Model_ - An instance of an OpenStudio Model.
222
222
  # * +origin_lat_lon+ - _Type:Float_ - An instance of +OpenStudio::PointLatLon+ indicating the latitude and longitude of the origin.
223
223
  # * +runner+ - _Type:String_ - An instance of +Openstudio::Measure::OSRunner+ for the measure run.
224
224
  # * +zoning+ - _Type:Boolean_ - Value is +true+ if utilizing detailed zoning, else
225
- # +false+. Zoning is set to false by default. Currently, zoning set to +false+ is
226
- # only supported.
225
+ # +false+. Zoning is set to false by default.
227
226
  def self.process_other_buildings(building, other_building_type, other_buildings, model, origin_lat_lon, runner, zoning = false)
228
227
  # Empty array to store the new OpenStudio model spaces that need to be converted to shading objects
229
228
  feature_points = building.feature_points(origin_lat_lon, runner, zoning)
@@ -233,7 +232,8 @@ module URBANopt
233
232
  other_buildings[:features].each do |other_building|
234
233
  other_id = other_building[:properties][:id]
235
234
  next if other_id == building.id
236
- if other_building_type == 'ShadingOnly'
235
+ # Consider building, if other building type is ShadingOnly and other id is not equal to building id
236
+ if other_building_type == 'ShadingOnly' && other_id != building.id
237
237
  # Checks if any building point is shaded by any other building point.
238
238
  roof_elevation = other_building[:properties][:roof_elevation]
239
239
  number_of_stories = other_building[:properties][:number_of_stories]
@@ -255,7 +255,7 @@ module URBANopt
255
255
  # find the polygon of the other_building by passing it to the get_multi_polygons method
256
256
  other_building_points = building.other_points(other_building, other_height, origin_lat_lon, runner, zoning)
257
257
  shadowed = URBANopt::GeoJSON::Helper.is_shadowed(feature_points, other_building_points, origin_lat_lon)
258
- next unless shadowed
258
+ next unless shadowed
259
259
  new_building = building.create_other_building(:space_per_building, model, origin_lat_lon, runner, zoning, other_building)
260
260
  if new_building.nil? || new_building.empty?
261
261
  runner.registerWarning("Failed to create spaces for other building '#{name}'")
@@ -264,7 +264,6 @@ module URBANopt
264
264
 
265
265
  elsif other_building_type == 'None'
266
266
  end
267
-
268
267
  end
269
268
  return other_spaces
270
269
  end
@@ -32,54 +32,54 @@ require 'urbanopt/scenario'
32
32
  require 'json'
33
33
 
34
34
  module URBANopt
35
- module GeoJSON
36
- class Mapper < MapperBase
37
- @@instance_lock = Mutex.new
38
- @@osw = nil
35
+ module GeoJSON
36
+ class Mapper < MapperBase
37
+ @@instance_lock = Mutex.new
38
+ @@osw = nil
39
39
 
40
- ##
41
- # This class inherits from the +MapperBase+ .
42
- # Used to perform initializing functions, used to define the osw_path for
43
- # baseline.osw for the URBANopt GeoJSON example project and the weather file.
40
+ ##
41
+ # This class inherits from the +MapperBase+ .
42
+ # Used to perform initializing functions, used to define the osw_path for
43
+ # baseline.osw for the URBANopt GeoJSON example project and the weather file.
44
44
 
45
- def initialize()
46
- @@instance_lock.synchronize do
47
- if @@osw.nil?
48
- osw_path = File.join(File.dirname(__FILE__), 'baseline.osw')
49
- File.open(osw_path, 'r') do |file|
50
- @@osw = JSON.parse(file.read, symbolize_names: true)
51
- end
52
- @@osw[:file_paths] << File.join(File.dirname(__FILE__), '../weather/')
53
- @@osw = OpenStudio::Extension.configure_osw(@@osw)
54
- end
55
- end
56
-
57
- ##
58
- # Creates an OpenStudio Workflow file for a given ScenarioBase object,
59
- # feature id and feature name.
60
- #
61
- # [Parameters]
62
- # * +scenario+ - _Type:String_ - Used to define the Scenario for the osw.
63
-
64
- # * +feature_id+ - _Type:String/Number_ - Used to define the feature_id for
65
- # which the osw is implemented.
66
- #
67
- # * +feature_name+ - _Type:String_ - The name of the feature.
68
- def create_osw(scenario, feature_id, feature_name)
69
- # get the feature from the scenario's feature_file #:nodoc:
70
- feature_file = scenario.feature_file
71
- feature = feature_file.get_feature_by_id(feature_id)
72
-
73
- raise "Cannot find feature '#{feature_id}' in '#{scenario.geometry_file}'" if feature.nil?
74
-
75
- # deep clone of @@osw before we configure it #:nodoc:
76
- osw = Marshal.load(Marshal.dump(@@osw))
77
-
78
- osw[:name] = feature_name
79
- osw[:description] = feature_name
80
-
81
- return osw
45
+ def initialize
46
+ @@instance_lock.synchronize do
47
+ if @@osw.nil?
48
+ osw_path = File.join(File.dirname(__FILE__), 'baseline.osw')
49
+ File.open(osw_path, 'r') do |file|
50
+ @@osw = JSON.parse(file.read, symbolize_names: true)
82
51
  end
52
+ @@osw[:file_paths] << File.join(File.dirname(__FILE__), '../weather/')
53
+ @@osw = OpenStudio::Extension.configure_osw(@@osw)
54
+ end
83
55
  end
56
+
57
+ ##
58
+ # Creates an OpenStudio Workflow file for a given ScenarioBase object,
59
+ # feature id and feature name.
60
+ #
61
+ # [Parameters]
62
+ # * +scenario+ - _Type:String_ - Used to define the Scenario for the osw.
63
+ # * +feature_id+ - _Type:String/Number_ - Used to define the feature_id for
64
+ # which the osw is implemented.
65
+ #
66
+ # * +feature_name+ - _Type:String_ - The name of the feature.
67
+ # rubocop:disable Lint/NestedMethodDefinition
68
+ def create_osw(scenario, feature_id, feature_name)
69
+ # rubocop:enable Lint/NestedMethodDefinition
70
+ # get the feature from the scenario's feature_file #:nodoc:
71
+ feature_file = scenario.feature_file
72
+ feature = feature_file.get_feature_by_id(feature_id)
73
+ raise "Cannot find feature '#{feature_id}' in '#{scenario.geometry_file}'" if feature.nil?
74
+ # deep clone of @@osw before we configure it #:nodoc:
75
+ osw = Marshal.load(Marshal.dump(@@osw))
76
+ osw[:name] = feature_name
77
+ osw[:description] = feature_name
78
+ end
79
+ # rubocop:disable Lint/ReturnInVoidContext
80
+ return osw
81
+ # rubocop:enable Lint/ReturnInVoidContext
82
+ end
84
83
  end
85
- end
84
+ end
85
+ end
@@ -65,17 +65,16 @@ module URBANopt
65
65
  # * +runner+ - _Type:String_ - Measure run's instance of +OpenStudio::Measure::OSRunner+ .
66
66
  def self.change_adjacent_surfaces_to_adiabatic(model, runner)
67
67
  runner.registerInfo('Changing adjacent surfaces to adiabatic')
68
- model.getSurfaces.each do |surface|
68
+ model.getSurfaces.sort.each do |surface|
69
69
  adjacent_surface = surface.adjacentSurface
70
70
  if !adjacent_surface.empty?
71
71
  surface_construction = surface.construction
72
72
  if !surface_construction.empty?
73
73
  surface.setConstruction(surface_construction.get)
74
74
  end
75
- surface.setOutsideBoundaryCondition('Adiabatic')
76
-
77
75
  adjacent_surface_construction = adjacent_surface.get.construction
78
76
  if !adjacent_surface_construction.empty?
77
+ surface.setOutsideBoundaryCondition('Adiabatic')
79
78
  adjacent_surface.get.setConstruction(adjacent_surface_construction.get)
80
79
  end
81
80
  adjacent_surface.get.setOutsideBoundaryCondition('Adiabatic')
@@ -111,6 +111,12 @@
111
111
  "Hip"
112
112
  ]
113
113
  },
114
+ "foundation_type": {
115
+ "$ref": "#/definitions/foundationType"
116
+ },
117
+ "attic_type": {
118
+ "$ref": "#/definitions/atticType"
119
+ },
114
120
  "footprint_area": {
115
121
  "description": "Area of the footprint (ft^2). Calculated on export.",
116
122
  "type": "number"
@@ -132,6 +138,9 @@
132
138
  "system_type": {
133
139
  "$ref": "#/definitions/systemType"
134
140
  },
141
+ "heating_system_fuel_type": {
142
+ "$ref": "#/definitions/heatingSystemFuelType"
143
+ },
135
144
  "weekday_start_time": {
136
145
  "description": "Weekday operating hours start time in 08:30 format, using 24-hr clock. Leave blank to use default. Should this be part of a mixed type struct?",
137
146
  "type": "string"
@@ -185,7 +194,11 @@
185
194
  "maximum": 100
186
195
  },
187
196
  "number_of_residential_units": {
188
- "description": "Total number of residential units in the building. Required for residential buildings or mixed-use buildings with residential use types.",
197
+ "description": "Total number of residential units in the building. Required for single-family attached or multifamily residential buildings.",
198
+ "type": "integer"
199
+ },
200
+ "number_of_bedrooms": {
201
+ "description": "Total number of bedrooms in the building. Required for residential buildings. Must be divisible by the number of residential units.",
189
202
  "type": "integer"
190
203
  },
191
204
  "exterior_lighting_zone": {
@@ -214,14 +227,110 @@
214
227
  "description": "Arbitrary user data"
215
228
  }
216
229
  },
217
- "required": [
218
- "id",
219
- "type",
220
- "name",
221
- "floor_area",
222
- "number_of_stories",
223
- "footprint_area",
224
- "building_type"
230
+ "oneOf": [
231
+ {
232
+ "properties": {
233
+ "building_type": {
234
+ "enum": [
235
+ "Single-Family Detached"
236
+ ]
237
+ }
238
+ },
239
+ "required": [
240
+ "id",
241
+ "type",
242
+ "name",
243
+ "floor_area",
244
+ "number_of_stories",
245
+ "footprint_area",
246
+ "building_type",
247
+ "number_of_bedrooms",
248
+ "foundation_type",
249
+ "attic_type"
250
+ ]
251
+ },
252
+ {
253
+ "properties": {
254
+ "building_type": {
255
+ "enum": [
256
+ "Single-Family Attached"
257
+ ]
258
+ }
259
+ },
260
+ "required": [
261
+ "id",
262
+ "type",
263
+ "name",
264
+ "floor_area",
265
+ "number_of_stories",
266
+ "footprint_area",
267
+ "building_type",
268
+ "number_of_residential_units",
269
+ "number_of_bedrooms",
270
+ "foundation_type",
271
+ "attic_type"
272
+ ]
273
+ },
274
+ {
275
+ "properties": {
276
+ "building_type": {
277
+ "enum": [
278
+ "Multifamily"
279
+ ]
280
+ }
281
+ },
282
+ "required": [
283
+ "id",
284
+ "type",
285
+ "name",
286
+ "floor_area",
287
+ "number_of_stories",
288
+ "footprint_area",
289
+ "building_type",
290
+ "number_of_residential_units",
291
+ "number_of_bedrooms",
292
+ "foundation_type"
293
+ ]
294
+ },
295
+ {
296
+ "properties": {
297
+ "building_type": {
298
+ "enum": [
299
+ "Vacant",
300
+ "Office",
301
+ "Laboratory",
302
+ "Nonrefrigerated warehouse",
303
+ "Food sales",
304
+ "Public order and safety",
305
+ "Outpatient health care",
306
+ "Refrigerated warehouse",
307
+ "Religious worship",
308
+ "Public assembly",
309
+ "Education",
310
+ "Food service",
311
+ "Inpatient health care",
312
+ "Nursing",
313
+ "Lodging",
314
+ "Strip shopping mall",
315
+ "Enclosed mall",
316
+ "Retail other than mall",
317
+ "Service",
318
+ "Mixed use",
319
+ "Uncovered Parking",
320
+ "Covered Parking"
321
+ ]
322
+ }
323
+ },
324
+ "required": [
325
+ "id",
326
+ "type",
327
+ "name",
328
+ "floor_area",
329
+ "number_of_stories",
330
+ "footprint_area",
331
+ "building_type"
332
+ ]
333
+ }
225
334
  ],
226
335
  "additionalProperties": true,
227
336
  "definitions": {
@@ -229,10 +338,9 @@
229
338
  "description": "Primary building space type.",
230
339
  "type": "string",
231
340
  "enum": [
232
- "Single-Family",
233
- "Multifamily (2 to 4 units)",
234
- "Multifamily (5 or more units)",
235
- "Mobile Home",
341
+ "Single-Family Detached",
342
+ "Single-Family Attached",
343
+ "Multifamily",
236
344
  "Vacant",
237
345
  "Office",
238
346
  "Laboratory",
@@ -262,85 +370,116 @@
262
370
  "description": "Building HVAC system type. Should this be part of a mixed type struct?",
263
371
  "type": "string",
264
372
  "enum": [
265
- "Ideal Air Loads",
266
- "PTAC with hot water heat",
267
- "PTAC with hot water heat with central air source heat pump",
268
- "PTAC with gas coil heat",
269
- "PTAC with electric baseboard heat",
373
+ "PTAC with baseboard electric",
374
+ "PTAC with baseboard gas boiler",
375
+ "PTAC with baseboard district hot water",
376
+ "PTAC with gas unit heaters",
377
+ "PTAC with electric coil",
378
+ "PTAC with gas coil",
379
+ "PTAC with gas boiler",
270
380
  "PTAC with no heat",
271
- "PTAC with district hot water heat",
272
- "PTAC with central air source heat pump heat",
381
+ "PTAC with district hot water",
382
+ "PTAC with central air source heat pump",
273
383
  "PTHP",
274
- "PSZ-AC with gas coil heat",
275
- "PSZ-AC with electric baseboard heat",
384
+ "PSZ-AC with gas coil",
385
+ "PSZ-AC with baseboard electric",
276
386
  "PSZ-AC with no heat",
277
- "PSZ-AC with district hot water heat",
278
- "PSZ-AC with central air source heat pump heat",
387
+ "PSZ-AC with district hot water",
388
+ "PSZ-AC with central air source heat pump",
279
389
  "PSZ-HP",
280
390
  "Fan coil district chilled water with no heat",
281
- "Fan coil district chilled water and boiler",
282
- "Fan coil district chilled water and central air source heat pump",
283
- "Fan coil district chilled water unit heaters",
284
- "Fan coil district chilled water electric baseboard heat",
285
- "Fan coil district hot and chilled water",
286
- "Fan coil district hot water and chiller",
287
- "Fan coil district hot water and air-cooled chiller",
288
- "Fan coil chiller and boiler",
289
- "Fan coil air-cooled chiller and boiler",
290
- "Fan coil chiller and central air source heat pump",
291
- "Fan coil air-cooled chiller and central air source heat pump",
391
+ "Fan coil district chilled water with boiler",
392
+ "Fan coil district chilled water with central air source heat pump",
393
+ "Fan coil district chilled water with gas unit heaters",
394
+ "Fan coil district chilled water with baseboard electric",
395
+ "Fan coil district chilled water with district hot water",
396
+ "Fan coil chiller with district hot water",
397
+ "Fan coil air-cooled chiller with district hot water",
398
+ "Fan coil chiller with boiler",
399
+ "Fan coil air-cooled chiller with boiler",
400
+ "Fan coil chiller with central air source heat pump",
401
+ "Fan coil air-cooled chiller with central air source heat pump",
292
402
  "Fan coil chiller with no heat",
293
403
  "DOAS with fan coil district chilled water with no heat",
294
404
  "DOAS with fan coil district chilled water and boiler",
295
- "DOAS with fan coil district chilled water and central air source heat pump",
296
- "DOAS with fan coil district chilled water unit heaters",
297
- "DOAS with fan coil district chilled water electric baseboard heat",
298
- "DOAS with fan coil district hot and chilled water",
299
- "DOAS with fan coil district hot water and chiller",
300
- "DOAS with fan coil district hot water and air-cooled chiller",
301
- "DOAS with fan coil chiller and boiler",
302
- "DOAS with fan coil air-cooled chiller and boiler",
303
- "DOAS with fan coil chiller and central air source heat pump",
304
- "DOAS with fan coil air-cooled chiller and central air source heat pump",
405
+ "DOAS with fan coil district chilled water with central air source heat pump",
406
+ "DOAS with fan coil district chilled water with gas unit heaters",
407
+ "DOAS with fan coil district chilled water with baseboard electric",
408
+ "DOAS with fan coil district chilled water with district hot water",
409
+ "DOAS with fan coil chiller with district hot water",
410
+ "DOAS with fan coil air-cooled chiller with district hot water",
411
+ "DOAS with fan coil air-cooled chiller with boiler",
412
+ "DOAS with fan coil chiller with central air source heat pump",
413
+ "DOAS with fan coil air-cooled chiller with central air source heat pump",
305
414
  "DOAS with fan coil chiller with no heat",
306
- "VRF with DOAS",
307
- "Ground Source Heat Pumps with DOAS",
308
- "Baseboard district hot water heat",
309
- "Baseboard district hot water heat with direct evap coolers",
310
- "Baseboard electric heat",
311
- "Baseboard electric heat with direct evap coolers",
312
- "Baseboard hot water heat",
313
- "Baseboard hot water heat with direct evap coolers",
415
+ "DOAS with VRF",
416
+ "VRF",
417
+ "DOAS with water source heat pumps with ground source heat pump",
418
+ "Forced air furnace",
419
+ "Baseboard district hot water",
420
+ "Baseboard electric",
421
+ "Baseboard gas boiler",
422
+ "Baseboard central air source heat pump",
314
423
  "Window AC with no heat",
315
424
  "Window AC with forced air furnace",
316
- "Window AC with district hot water baseboard heat",
317
- "Window AC with hot water baseboard heat",
318
- "Window AC with electric baseboard heat",
425
+ "Window AC with baseboard district hot water",
426
+ "Window AC with baseboard electric",
319
427
  "Window AC with unit heaters",
320
- "Direct evap coolers",
321
- "Direct evap coolers with unit heaters",
322
- "Unit heaters",
323
- "Heat pump heat with no cooling",
324
- "Heat pump heat with direct evap cooler",
325
- "VAV with reheat",
326
- "VAV with reheat central air source heat pump",
327
- "VAV with PFP boxes",
328
- "VAV with gas reheat",
329
- "VAV with zone unit heaters",
330
- "VAV with electric baseboard heat",
331
- "VAV cool with zone heat pump heat",
332
- "PVAV with reheat",
333
- "PVAV with reheat with central air source heat pump",
428
+ "Window AC with baseboard gas boiler",
429
+ "Window AC with baseboard central air source heat pump",
430
+ "Direct evap coolers with baseboard district hot water",
431
+ "Direct evap coolers with baseboard electric",
432
+ "Direct evap coolers with baseboard gas boiler",
433
+ "Direct evap coolers with baseboard central air source heat pump",
434
+ "Direct evap coolers with no heat",
435
+ "Direct evap coolers with gas unit heaters",
436
+ "Direct evap coolers with forced air furnace",
437
+ "Gas unit heaters",
438
+ "VAV chiller with gas boiler reheat",
439
+ "VAV chiller with gas coil reheat",
440
+ "VAV chiller with central air source heat pump reheat",
441
+ "VAV chiller with PFP boxes",
442
+ "VAV air-cooled chiller with gas boiler reheat",
443
+ "VAV air-cooled chiller with central air source heat pump reheat",
444
+ "VAV air-cooled chiller with district hot water reheat",
445
+ "VAV air-cooled chiller with gas coil reheat",
446
+ "VAV air-cooled chiller with no reheat with gas unit heaters",
447
+ "VAV district chilled water with gas boiler reheat",
448
+ "VAV district chilled water with central air source heat pump reheat",
449
+ "VAV district chilled water with no reheat with zone heat pump",
450
+ "VAV chiller with no reheat with baseboard electric",
451
+ "VAV air-cooled chiller with no reheat with zone heat pump",
452
+ "VAV district chilled water with district hot water reheat",
453
+ "VAV district chilled water with gas coil reheat",
454
+ "PVAV with gas heat with electric reheat",
455
+ "PVAV with central air source heat pump reheat",
334
456
  "PVAV with PFP boxes",
335
- "Residential forced air",
336
- "Residential forced air cooling hot water baseboard heat",
337
- "Residential forced air with district hot water",
338
- "Residential heat pump",
339
- "Forced air furnace",
340
- "Forced air furnace district chilled water fan coil",
341
- "Forced air furnace direct evap cooler",
342
- "Residential AC with no heat",
343
- "Residential AC with electric baseboard heat"
457
+ "Residential - electric resistance and no cooling",
458
+ "Residential - electric resistance and central air conditioner",
459
+ "Residential - electric resistance and room air conditioner",
460
+ "Residential - electric resistance and evaporative cooler",
461
+ "Residential - furnace and no cooling",
462
+ "Residential - furnace and central air conditioner",
463
+ "Residential - furnace and room air conditioner",
464
+ "Residential - furnace and evaporative cooler",
465
+ "Residential - boiler and no cooling",
466
+ "Residential - boiler and central air conditioner",
467
+ "Residential - boiler and room air conditioner",
468
+ "Residential - boiler and evaporative cooler",
469
+ "Residential - air-to-air heat pump",
470
+ "Residential - mini-split heat pump",
471
+ "Residential - ground-to-air heat pump"
472
+ ]
473
+ },
474
+ "heatingSystemFuelType": {
475
+ "description": "The fuel type of the heating system. This does not apply for certain system types (e.g., electric resistance or heat pumps).",
476
+ "type": "string",
477
+ "enum": [
478
+ "electricity",
479
+ "natural gas",
480
+ "fuel oil",
481
+ "propane",
482
+ "wood"
344
483
  ]
345
484
  },
346
485
  "templateType": {
@@ -376,6 +515,28 @@
376
515
  "DEER 2070",
377
516
  "DEER 2075"
378
517
  ]
518
+ },
519
+ "foundationType": {
520
+ "description": "The foundation type of the building. Required for residential buildings.",
521
+ "type": "string",
522
+ "enum": [
523
+ "slab",
524
+ "crawlspace - vented",
525
+ "crawlspace - unvented",
526
+ "basement - unconditioned",
527
+ "basement - conditioned",
528
+ "ambient"
529
+ ]
530
+ },
531
+ "atticType": {
532
+ "description": "The attic type of the building. Required for single-family residential buildings.",
533
+ "type": "string",
534
+ "enum": [
535
+ "attic - vented",
536
+ "attic - unvented",
537
+ "attic - conditioned",
538
+ "flat roof"
539
+ ]
379
540
  }
380
541
  }
381
- }
542
+ }