lib/from_openstudio/geometry/room.rb in honeybee-openstudio-2.31.8 vs lib/from_openstudio/geometry/room.rb in honeybee-openstudio-2.31.9
- old
+ new
@@ -199,9 +199,20 @@
end
thermal_zone = space.thermalZone
unless thermal_zone.empty?
thermal_zone = space.thermalZone.get
+ # Create ideal_air_system if present
+ unless thermal_zone.equipment.nil?
+ thermal_zone.equipment.each do |equipment|
+ if equipment.to_ZoneHVACIdealLoadsAirSystem.is_initialized
+ ideal_air_hash = Honeybee::IdealAirSystemAbridged.from_hvac(
+ equipment.to_ZoneHVACIdealLoadsAirSystem.get)
+ $hvacs << ideal_air_hash
+ hash[:hvac] = ideal_air_hash[:identifier]
+ end
+ end
+ end
unless thermal_zone.thermostatSetpointDualSetpoint.empty?
hash[:setpoint] = {}
hash[:setpoint][:type] = 'SetpointAbridged'
thermostat = thermal_zone.thermostatSetpointDualSetpoint.get
hash[:setpoint][:identifier] = thermostat.nameString