Module: Warehouse

Defined in:
lib/openstudio-standards/prototypes/common/buildings/Prototype.Warehouse.rb

Overview

Custom changes for the Warehouse prototype These are changes that are inconsistent with other prototype building types.

Instance Method Summary collapse

Instance Method Details

#get_building_door_info(model) ⇒ Object

Get building door information to update infiltration

return [Hash] Door infiltration information

Parameters:

  • model (OpenStudio::Model::Model)

    OpenStudio model object



83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
# File 'lib/openstudio-standards/prototypes/common/buildings/Prototype.Warehouse.rb', line 83

def get_building_door_info(model)
  # Get Bulk storage space infiltration schedule name
  sch = ''
  model.getSpaces.sort.each do |space|
    if space.spaceType.get.standardsSpaceType.get.to_s == 'Bulk'
      space.spaceInfiltrationDesignFlowRates.each do |infil|
        infil_sch = infil.schedule.get.to_ScheduleRuleset.get
        if infil_sch.initialized
          sch = infil_sch
        end
      end
    end
  end

  if !sch.initialized
    OpenStudio.logFree(OpenStudio::Warn, 'openstudio.prototype.Warehouse', 'Could not find Bulk storage schedule.')
    return false
  end

  get_building_door_info = {
    'Metal coiling' => {
      'number_of_doors' => 2.95,
      'door_area_ft2' => 80.0, # 8'-0" by 10'-0"
      'schedule' => sch,
      'space' => 'Zone3 Bulk Storage'
    },
    'Rollup' => {
      'number_of_doors' => 8.85,
      'door_area_ft2' => 80.0, # 8'-0" by 10'-0"
      'schedule' => sch,
      'space' => 'Zone3 Bulk Storage'
    },
    'Open' => {
      'number_of_doors' => 3.2,
      'door_area_ft2' => 80.0, # 8'-0" by 10'-0"
      'schedule' => sch,
      'space' => 'Zone3 Bulk Storage'
    }
  }

  return get_building_door_info
end

#model_custom_daylighting_tweaks(building_type, climate_zone, prototype_input, model) ⇒ Object



26
27
28
# File 'lib/openstudio-standards/prototypes/common/buildings/Prototype.Warehouse.rb', line 26

def model_custom_daylighting_tweaks(building_type, climate_zone, prototype_input, model)
  return true
end

#model_custom_geometry_tweaks(model, building_type, climate_zone, prototype_input) ⇒ Boolean

geometry adjustments specific to the prototype model

Parameters:

  • model (OpenStudio::Model::Model)

    OpenStudio model object

  • building_type (String the building type)

    uilding_type [String the building type

  • climate_zone (String)

    ASHRAE climate zone, e.g. ‘ASHRAE 169-2013-4A’

  • prototype_input (Hash)

    hash of prototype inputs

Returns:

  • (Boolean)

    returns true if successful, false if not



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# File 'lib/openstudio-standards/prototypes/common/buildings/Prototype.Warehouse.rb', line 37

def model_custom_geometry_tweaks(model, building_type, climate_zone, prototype_input)
  # Set original building North axis
  OpenstudioStandards::Geometry.model_set_building_north_axis(model, 90.0)

  OpenStudio.logFree(OpenStudio::Info, 'openstudio.model.Model', 'Adjusting geometry input')
  case template
    when '90.1-2010', '90.1-2013', '90.1-2016', '90.1-2019'
      case climate_zone
        when 'ASHRAE 169-2006-6A',
             'ASHRAE 169-2006-6B',
             'ASHRAE 169-2006-7A',
             'ASHRAE 169-2006-8A',
             'ASHRAE 169-2013-6A',
             'ASHRAE 169-2013-6B',
             'ASHRAE 169-2013-7A',
             'ASHRAE 169-2013-8A'
          # Remove existing skylights
          model.getSubSurfaces.each do |subsurf|
            if subsurf.subSurfaceType.to_s == 'Skylight'
              subsurf.remove
            end
          end
          # Load older geometry corresponding to older code versions
          old_geo = load_geometry_osm('geometry/ASHRAE90120042007Warehouse.osm')
          # Clone the skylights from the older geometry
          old_geo.getSubSurfaces.each do |subsurf|
            if subsurf.subSurfaceType.to_s == 'Skylight'
              new_skylight = subsurf.clone(model).to_SubSurface.get
              old_roof = subsurf.surface.get
              # Assign surfaces to skylights
              model.getSurfaces.each do |model_surf|
                if model_surf.name.to_s == old_roof.name.to_s
                  new_skylight.setSurface(model_surf)
                end
              end
            end
          end
      end
  end
  return true
end

#model_custom_hvac_tweaks(model, building_type, climate_zone, prototype_input) ⇒ Boolean

hvac adjustments specific to the prototype model

Parameters:

  • model (OpenStudio::Model::Model)

    OpenStudio model object

  • building_type (String the building type)

    uilding_type [String the building type

  • climate_zone (String)

    ASHRAE climate zone, e.g. ‘ASHRAE 169-2013-4A’

  • prototype_input (Hash)

    hash of prototype inputs

Returns:

  • (Boolean)

    returns true if successful, false if not



11
12
13
# File 'lib/openstudio-standards/prototypes/common/buildings/Prototype.Warehouse.rb', line 11

def model_custom_hvac_tweaks(model, building_type, climate_zone, prototype_input)
  return true
end

#model_custom_swh_tweaks(model, building_type, climate_zone, prototype_input) ⇒ Boolean

swh adjustments specific to the prototype model

Parameters:

  • model (OpenStudio::Model::Model)

    OpenStudio model object

  • building_type (String the building type)

    uilding_type [String the building type

  • climate_zone (String)

    ASHRAE climate zone, e.g. ‘ASHRAE 169-2013-4A’

  • prototype_input (Hash)

    hash of prototype inputs

Returns:

  • (Boolean)

    returns true if successful, false if not



22
23
24
# File 'lib/openstudio-standards/prototypes/common/buildings/Prototype.Warehouse.rb', line 22

def model_custom_swh_tweaks(model, building_type, climate_zone, prototype_input)
  return true
end