Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Get Fan Associated with VRF Terminal

asked 2015-05-08 16:19:06 -0500

pflaumingo's avatar

updated 2017-08-05 13:23:30 -0500

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.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-05-08 17:40:54 -0500

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

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("#{} PTAC")
  count_eqpt += 1

# rename components
if rename_hvac_comp == true
  fan.setName("#{} Fan")
  count_fans += 1
  htg_coil.setName("#{} Htg Coil")
  count_htg_coils += 1
  clg_coil.setName("#{} Clg Coil")
  count_clg_coils += 1
edit flag offensive delete link more



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

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Training Workshops

Question Tools

1 follower


Asked: 2015-05-08 16:19:06 -0500

Seen: 116 times

Last updated: May 09 '15