2

Get Fan Associated with VRF Terminal

For a VRF terminal unit, I can access the heating or cooling coil quite simply by .heatingCoil or .coolingCoil however the method .supplyAirFan returns an HVACComponent. I can't seem to figure out how to access the fan so I can adjust the pressure rise. Moreover, the constructor for ZoneHVACTerminalUnitVariableRefrigerantFlow doesn'y allow me to pass in a fan object the way I could with ZoneHVACFourPipeFanCoil for example.

In short, what I'm wondering is how to return the fan associated with a VRF terminal unit or if there is a simple method to pass in a fan as an argument? I could just grab all the fans from the model space, but that's not quite as direct.

pflaumingo's avatar
1.9k
pflaumingo
asked 2015-05-08 16:19:06 -0500
__AmirRoth__'s avatar
4.4k
__AmirRoth__
updated 2017-08-05 13:23:30 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

4

Here's the code I've used to get the HVAC components associated with a ZoneHVAC object.

# get equipment and components
ptac = eqpt.to_ZoneHVACPackagedTerminalAirConditioner.get

if ptac.supplyAirFan.to_FanOnOff.is_initialized
   fan = ptac.supplyAirFan.to_FanOnOff.get
elsif ptac.supplyAirFan.to_FanConstantVolume.is_initialized
   fan = ptac.supplyAirFan.to_FanConstantVolume.get
end

This is used in a measure to Rename Zone HVAC Equipment And Components available in my OpenStudio Measures repository.

# rename equipment
if rename_hvac_eqpt == true
  ptac.setName("#{z.name} PTAC")
  count_eqpt += 1
end

# rename components
if rename_hvac_comp == true
  fan.setName("#{ptac.name} Fan")
  count_fans += 1
  htg_coil.setName("#{ptac.name} Htg Coil")
  count_htg_coils += 1
  clg_coil.setName("#{ptac.name} Clg Coil")
  count_clg_coils += 1
end
MatthewSteen's avatar
10.1k
MatthewSteen
answered 2015-05-08 17:40:54 -0500
edit flag offensive 0 remove flag delete link

Comments

1

I really should've finished reading the measure writing guide because "to_" conversions are exactly what I need. Thanks!

pflaumingo's avatar pflaumingo (2015-05-08 18:06:27 -0500) edit
1

Thanks to @Eric Ringold for answering a related question.

MatthewSteen's avatar MatthewSteen (2015-05-08 18:32:54 -0500) edit

The Rename Zone HVAC Equipment And Components measure is now on the BCL.

MatthewSteen's avatar MatthewSteen (2015-06-29 08:17:29 -0500) edit
add a comment see more comments