1

Add custom fan to VRF terminal with openstudio sdk

Hi,

How do I edit or add a custom fan component to a VRF terminal through openstudio sdk?

I noticed that under "ZoneHVACTerminalUnitVariableRefrigerantFlow", there are member functions "setCoolingCoil" and "setHeatingCoil", which allows me to add my own coils to the terminal. However I don't see any functions for adding a fan.

Only function relevant I found is "supplyAirFan" (to get the fan object).

Thanks.

Kunyu's avatar
57
Kunyu
asked 2023-03-22 20:48:44 -0500
Aaron Boranian's avatar
14.1k
Aaron Boranian
updated 2023-03-28 10:17:01 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

The fan object is passed as an argument to the ZoneHVACTerminalUnitVariableRefrigerantFlow constructor: https://s3.amazonaws.com/openstudio-s...

So if you wanted to create a terminal unit with a Fan:SystemModel, you would first create your fan (and coils) and pass them into the constructor for the terminal unit, like:

fan = OpenStudio::Model::FanSystemModel.new(model)
ccoil = OpenStudio::Model::CoilCoolingDXVariableRefrigerantFlow.new(model)
hcoil  = OpenStudio::Model::CoilHeatingDXVariableRefrigerantFlow.new(model)
tu = ZoneHVACTerminalUnitVariableRefrigerantFlow(model, ccoil, hcoil, fan)

Also note how the EneryPlus input data dictionary limits the fan types for this terminal (which OpenStudio should enforce):

  A7 ,  \field Supply Air Fan Object Type
        \type choice
        \key Fan:SystemModel
        \key Fan:OnOff
        \key Fan:ConstantVolume
        \key Fan:VariableVolume
        \default Fan:ConstantVolume
        \note Supply Air Fan Object Type must be Fan:SystemModel, Fan:OnOff, or Fan:ConstantVolume
        \note if AirConditioner:VariableRefrigerantFlow is used to model VRF outdoor unit
        \note Supply Air Fan Object Type must be Fan:SystemModel or Fan:VariableVolume if
        \note AirConditioner:VariableRefrigerantFlow:FluidTemperatureControl or
        \note AirConditioner:VariableRefrigerantFlow:FluidTemperatureControl:HR
        \note is used to model VRF outdoor unit
        \note Required for zone equipment. Leave blank if terminal unit is used in AirLoopHVAC:OutdoorAirSystem:EquipmentList.
        \note Also leave blank if terminal unit is used on main AirloopHVAC branch and terminal unit has no fan.
ericringold's avatar
10.6k
ericringold
answered 2023-03-23 10:16:09 -0500
edit flag offensive 0 remove flag delete link

Comments

I see. Thank you Eric!

Kunyu's avatar Kunyu (2023-03-23 20:14:12 -0500) edit
add a comment see more comments