Skip to content

Commit f5c5fd0

Browse files
authored
Merge pull request #132 from BuildingSync/common-floor-area
map common floor-area type
2 parents c94cb54 + 05d32d9 commit f5c5fd0

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
- BuildingSync to OpenStudio Translation for MLOD 200
99
- Add action for building the documentation
1010
- Fix purge measures method to only remove measures with SKIP argument set to True
11+
- Map "Common" BuildingSync floor area type
1112

1213
## Version 0.2.0
1314

lib/buildingsync/model_articulation/spatial_element.rb

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def initialize(base_xml, ns)
6767
@space_types_floor_area = nil
6868
@conditioned_floor_area_heated_only = nil
6969
@conditioned_floor_area_cooled_only = nil
70-
@conditioned_floor_area_heated_cooled = nil
70+
@conditioned_floor_area_heated_cooled = 0
7171
@custom_conditioned_above_grade_floor_area = nil
7272
@custom_conditioned_below_grade_floor_area = nil
7373

@@ -85,12 +85,10 @@ def read_floor_areas(parent_total_floor_area)
8585
floor_area_type = floor_area_element.elements["#{@ns}:FloorAreaType"].text
8686
if floor_area_type == 'Gross'
8787
@total_floor_area = OpenStudio.convert(validate_positive_number_excluding_zero('gross_floor_area', floor_area), 'ft^2', 'm^2').get
88-
elsif floor_area_type == 'Heated and Cooled'
89-
@conditioned_floor_area_heated_cooled = OpenStudio.convert(validate_positive_number_excluding_zero('@heated_and_cooled_floor_area', floor_area), 'ft^2', 'm^2').get
9088
elsif floor_area_type == 'Footprint'
9189
@footprint_floor_area = OpenStudio.convert(validate_positive_number_excluding_zero('@footprint_floor_area', floor_area), 'ft^2', 'm^2').get
92-
elsif floor_area_type == 'Conditioned'
93-
@conditioned_floor_area_heated_cooled = OpenStudio.convert(validate_positive_number_excluding_zero('@conditioned_floor_area_heated_cooled', floor_area), 'ft^2', 'm^2').get
90+
elsif floor_area_type == 'Conditioned' || floor_area_type == 'Common' || floor_area_type == 'Heated and Cooled'
91+
@conditioned_floor_area_heated_cooled += OpenStudio.convert(validate_positive_number_excluding_zero('@conditioned_floor_area_heated_cooled', floor_area), 'ft^2', 'm^2').get
9492
elsif floor_area_type == 'Heated Only'
9593
@conditioned_floor_area_heated_only = OpenStudio.convert(validate_positive_number_excluding_zero('@heated_only_floor_area', floor_area), 'ft^2', 'm^2').get
9694
elsif floor_area_type == 'Cooled Only'

0 commit comments

Comments
 (0)