lib/to_openstudio/hvac/template.rb in honeybee-openstudio-2.11.0 vs lib/to_openstudio/hvac/template.rb in honeybee-openstudio-2.11.1

- old
+ new

@@ -33,10 +33,18 @@ require 'to_openstudio/model_object' module Honeybee class TemplateHVAC + @@vintage_mapper = { + DOE_Ref_Pre_1980: 'DOE Ref Pre-1980', + DOE_Ref_1980_2004: 'DOE Ref 1980-2004', + ASHRAE_2004: '90.1-2004', + ASHRAE_2007: '90.1-2007', + ASHRAE_2010: '90.1-2010', + ASHRAE_2013: '90.1-2013' + } def to_openstudio(openstudio_model, room_ids) # only load openstudio-standards when needed require 'openstudio-standards' @@ -45,12 +53,12 @@ # get the defaults for the specific system type hvac_defaults = defaults(@hash[:type]) # make the standard applier if @hash[:vintage] - standard = Standard.build(@hash[:vintage]) + standard = Standard.build(@@vintage_mapper[@hash[:vintage].to_sym]) else - standard = Standard.build(hvac_defaults[:vintage][:default]) + standard = Standard.build(@@vintage_mapper[hvac_defaults[:vintage][:default].to_sym]) end # get the default equipment type if @hash[:equipment_type] equipment_type = @hash[:equipment_type]