lib/to_openstudio/model.rb in honeybee-openstudio-2.33.6 vs lib/to_openstudio/model.rb in honeybee-openstudio-2.33.7
- old
+ new
@@ -90,14 +90,10 @@
end
# create all openstudio objects in the model
create_openstudio_objects(log_report)
- if log_report
- puts 'Done with Model translation!'
- end
-
@openstudio_model
end
private
@@ -125,10 +121,12 @@
$window_dynamic_hash = Hash.new # hash to track any dynamic window constructions
$programtype_shw_hash = Hash.new # hash to track ServiceHotWater objects
$programtype_setpoint_hash = Hash.new # hash to track Setpoint objects
$interior_afn_srf_hash = Hash.new # track whether an adjacent surface is already in the AFN
$shw_for_plant = nil # track whether a hot water plant is needed
+ $detailed_hvac_hash = Hash.new # track the detailed HVAC systems that have been assigned
+ $ironbug_exe = nil # ironbug executable; will be overwritten by any detailed HVACs
# create all of the non-geometric model elements
if @hash[:properties].key?(:energy)
if log_report # schedules are used by all other objects and come first
puts 'Translating Schedules'
@@ -569,9 +567,14 @@
unless humid_get.empty?
os_ideal_air.setDehumidificationControlType('Humidistat')
os_ideal_air.setHumidificationControlType('Humidistat')
end
end
+ end
+ elsif system_type == 'DetailedHVAC'
+ $detailed_hvac_hash[hvac[:identifier]] = hvac[:specification]
+ unless hvac[:ironbug_exe].nil?
+ $ironbug_exe = hvac[:ironbug_exe]
end
elsif TemplateHVAC.types.include?(system_type)
template_system = TemplateHVAC.new(hvac)
template_system.to_openstudio(@openstudio_model, hvac['rooms'])
end