Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial implementation of geometry orientation and aspect ratio #444

Merged
merged 1 commit into from
Dec 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading