Sha256: d6b845d2caa4a169eea022f20b58948f219d8334c60be684c57849f21e32bf1c

Contents?: true

Size: 1.84 KB

Versions: 1

Compression:

Stored size: 1.84 KB

Contents

# Extend the class to add Small Office specific stuff
class OpenStudio::Model::Model
 
  def define_space_type_map(building_type, building_vintage, climate_zone)
    space_type_map = nil
    
    case building_vintage
    when 'NECB 2011'
      space_type_map ={
        "- undefined -" => ["Attic"],
        "Office - enclosed" => ["Core_ZN", "Perimeter_ZN_1", "Perimeter_ZN_2", "Perimeter_ZN_3", "Perimeter_ZN_4"]
      }
    else
      space_type_map = {
        '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, building_vintage, 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, building_vintage, climate_zone, prototype_input)
   
    return true
    
  end

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
openstudio-standards-0.1.4 lib/openstudio-standards/prototypes/Prototype.small_office.rb