Sha256: fa43778f7e7fa648a981dc1326e331258f25c599958a04cb5ee7a4a097bf712e

Contents?: true

Size: 1.66 KB

Versions: 2

Compression:

Stored size: 1.66 KB

Contents

# frozen_string_literal: true

class BO
  EnclosureWallAreaThermalBoundary = 'Enclosure: Wall Area Thermal Boundary'
  EnclosureWallAreaExterior = 'Enclosure: Wall Area Exterior'
  EnclosureFoundationWallAreaExterior = 'Enclosure: Foundation Wall Area Exterior'
  EnclosureFloorAreaConditioned = 'Enclosure: Floor Area Conditioned'
  EnclosureFloorAreaLighting = 'Enclosure: Floor Area Lighting'
  EnclosureFloorAreaFoundation = 'Enclosure: Floor Area Foundation'
  EnclosureCeilingAreaThermalBoundary = 'Enclosure: Ceiling Area Thermal Boundary'
  EnclosureRoofArea = 'Enclosure: Roof Area'
  EnclosureWindowArea = 'Enclosure: Window Area'
  EnclosureDoorArea = 'Enclosure: Door Area'
  EnclosureDuctAreaUnconditioned = 'Enclosure: Duct Area Unconditioned'
  EnclosureRimJoistAreaExterior = 'Enclosure: Rim Joist Area'
  EnclosureSlabExposedPerimeterThermalBoundary = 'Enclosure: Slab Exposed Perimeter Thermal Boundary'

  SystemsHeatingCapacity = 'Systems: Heating Capacity'
  SystemsCoolingCapacity = 'Systems: Cooling Capacity'
  SystemsHeatPumpBackupCapacity = 'Systems: Heat Pump Backup Capacity'
  SystemsWaterHeaterVolume = 'Systems: Water Heater Tank Volume'
  SystemsMechanicalVentilationFlowRate = 'Systems: Mechanical Ventilation Flow Rate'

  def self.get_units(bldg_type)
    if bldg_type.include? 'Area'
      return 'ft^2'
    elsif bldg_type.include? 'Perimeter'
      return 'ft'
    elsif bldg_type.include? 'Capacity'
      return 'Btu/h'
    elsif bldg_type.include? 'Tank Volume'
      return 'gal'
    elsif bldg_type.include? 'Flow Rate'
      return 'cfm'
    elsif bldg_type == 'Fixed'
      return '1'
    end

    fail "Unable to assign units to: #{bldg_type}"
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
urbanopt-cli-0.14.0 example_files/resources/residential-measures/measures/ReportHPXMLOutput/resources/constants.rb
urbanopt-cli-0.13.0 example_files/resources/residential-measures/measures/ReportHPXMLOutput/resources/constants.rb