Skip to content

Commit

Permalink
Merge pull request #1294 from NREL/fix/ext_door_prm
Browse files Browse the repository at this point in the history
Fix/ext door prm
  • Loading branch information
mdahlhausen committed Mar 29, 2022
2 parents aa47fa0 + 2eaa3f7 commit c9c6e38
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
15 changes: 15 additions & 0 deletions lib/openstudio-standards/standards/Standards.PlanarSurface.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,21 @@ def planar_surface_apply_standard_construction(planar_surface, climate_zone, pre
OpenStudio.logFree(OpenStudio::Warn, 'openstudio.standards.PlanarSurface', "Could not determine the standards fenestration type for #{planar_surface.name} from #{construction.name}. This surface will not have the standard applied.")
return previous_construction_map
end
# Exterior Doors
elsif surf_type == 'ExteriorDoor'
stds_type = standards_info.standardsConstructionType
if stds_type.is_initialized
stds_type = stds_type.get
case stds_type
when 'RollUp', 'Rollup', 'NonSwinging', 'Nonswinging'
stds_type = 'NonSwinging'
else
stds_type = 'Swinging'
end
else
OpenStudio.logFree(OpenStudio::Warn, 'openstudio.standards.PlanarSurface', "Could not determine the standards construction type for exterior door #{planar_surface.name}. This door will not have the standard applied.")
return previous_construction_map
end
# All other surface types
else
stds_type = standards_info.standardsConstructionType
Expand Down
15 changes: 15 additions & 0 deletions lib/openstudio-standards/standards/deer/deer.PlanarSurface.rb
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,21 @@ def planar_surface_apply_standard_construction(planar_surface, climate_zone, pre
OpenStudio.logFree(OpenStudio::Warn, 'openstudio.model.PlanarSurface', "Could not determine the standards fenestration type for #{planar_surface.name} from #{construction.name}. This surface will not have the standard applied.")
return previous_construction_map
end
# Exterior Doors
elsif surf_type == 'ExteriorDoor'
stds_type = standards_info.standardsConstructionType
if stds_type.is_initialized
stds_type = stds_type.get
case stds_type
when 'RollUp', 'Rollup', 'NonSwinging', 'Nonswinging'
stds_type = 'NonSwinging'
else
stds_type = 'Swinging'
end
else
OpenStudio.logFree(OpenStudio::Warn, 'openstudio.standards.PlanarSurface', "Could not determine the standards construction type for exterior door #{planar_surface.name}. This door will not have the standard applied.")
return previous_construction_map
end
# All other surface types
else
stds_type = standards_info.standardsConstructionType
Expand Down

0 comments on commit c9c6e38

Please sign in to comment.