Skip to content

Commit

Permalink
Merge pull request #444 from urbanopt/res_geometry
Browse files Browse the repository at this point in the history
Initial implementation of geometry orientation and aspect ratio
  • Loading branch information
kflemin committed Dec 8, 2023
2 parents 0cdf088 + 19021e1 commit 3e9f70b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
5 changes: 4 additions & 1 deletion example_files/example_project_combined.json
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,10 @@
"system_type": "Residential - furnace and central air conditioner",
"heating_system_fuel_type": "natural gas",
"onsite_parking_fraction": 1,
"template": "Residential IECC 2015 - Customizable Template Sep 2020"
"template": "Residential IECC 2015 - Customizable Template Sep 2020",
"geometry_unit_orientation": 90.0,
"geometry_unit_aspect_ratio" : 1.0

},
"geometry": {
"type": "Polygon",
Expand Down
18 changes: 18 additions & 0 deletions example_files/mappers/Baseline.rb
Original file line number Diff line number Diff line change
Expand Up @@ -757,6 +757,24 @@ def create_osw(scenario, features, feature_names)
rescue StandardError
end

######################################################################

# Geometry Orientation and Aspect Ratio
# Orientation (North=0, East=90, South=180, West=270)
begin
args[:geometry_unit_orientation] = feature.geometry_unit_orientation
rescue StandardError
end

# Aspect Ratio
# The ratio of front/back wall length to left/right wall length for the unit, excluding any protruding garage wall area.
begin
args[:geometry_unit_aspect_ratio] = feature.geometry_unit_aspect_ratio
rescue StandardError
end

######################################################################

# Occupancy Calculation Type
begin
if feature.occupancy_calculation_type == 'operational'
Expand Down

0 comments on commit 3e9f70b

Please sign in to comment.