Sha256: c0afb1878653676f22f00494988184e297ab88efcee4adc2130df13bb5ccc5b0

Contents?: true

Size: 1.98 KB

Versions: 5

Compression:

Stored size: 1.98 KB

Contents

# Extend the class to add Small Office specific stuff
class OpenStudio::Model::Model
  def define_space_type_map(building_type, template, climate_zone)
    space_type_map = nil

    space_type_map = case template
                     when 'NECB 2011'
                       # dom = ?
                       {
                         '- undefined -' => ['Attic'],
                         'Office - enclosed' => ['Core_ZN', 'Perimeter_ZN_1', 'Perimeter_ZN_2', 'Perimeter_ZN_3', 'Perimeter_ZN_4']
                       }
                     else
                       {
                         'WholeBuilding - Sm Office' => ['Perimeter_ZN_1', 'Perimeter_ZN_2', 'Perimeter_ZN_3', 'Perimeter_ZN_4', 'Core_ZN'],
                         'Attic' => ['Attic']
                       }
                     end
    return space_type_map
  end

  def define_hvac_system_map(building_type, template, climate_zone)
    system_to_space_map = [
      {
        'type' => 'PSZ-AC',
        'name' => 'PSZ-AC-2',
        'space_names' =>
          [
            'Perimeter_ZN_1'
          ]
      },
      {
        'type' => 'PSZ-AC',
        'name' => 'PSZ-AC-3',
        'space_names' =>
          [
            'Perimeter_ZN_2'
          ]
      },
      {
        'type' => 'PSZ-AC',
        'name' => 'PSZ-AC-4',
        'space_names' =>
          [
            'Perimeter_ZN_3'
          ]
      },
      {
        'type' => 'PSZ-AC',
        'name' => 'PSZ-AC-5',
        'space_names' =>
          [
            'Perimeter_ZN_4'
          ]
      },
      {
        'type' => 'PSZ-AC',
        'name' => 'PSZ-AC-1',
        'space_names' =>
          [
            'Core_ZN'
          ]
      }
    ]

    return system_to_space_map
  end

  def custom_hvac_tweaks(building_type, template, climate_zone, prototype_input)
    return true
  end

  def custom_swh_tweaks(building_type, template, climate_zone, prototype_input)
    return true
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
openstudio-standards-0.1.9 lib/openstudio-standards/prototypes/Prototype.small_office.rb
openstudio-standards-0.1.8 lib/openstudio-standards/prototypes/Prototype.small_office.rb
openstudio-standards-0.1.7 lib/openstudio-standards/prototypes/Prototype.small_office.rb
openstudio-standards-0.1.6 lib/openstudio-standards/prototypes/Prototype.small_office.rb
openstudio-standards-0.1.5 lib/openstudio-standards/prototypes/Prototype.small_office.rb