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

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
4

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
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
edit flag offensive delete link more

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

Your Answer

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

Add Answer

Careers

Question Tools

1 follower

Stats

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

Seen: 149 times

Last updated: May 09 '15