2

How to link a setpointmanager to a HeatExchanger:AirToAir:SensibleAndLatent for supply air temp control

I am trying to enable a supply air temperature control on a HeatExchanger:AirToAir:SensibleAndLatent using the OpenStudio API.

I am setting the respective flag on the heat exchanger to true.

heat_exchanger.setSupplyAirOutletTemperatureControl(true)

and create a setpoint manager

setpoint_scheduled = OpenStudio::Model::SetpointManagerScheduled.new(model, "Temperature", sat_sched) setpoint_scheduled.addToNode(node)

But could not figure out how to get the supply air outlet node of the heat exchanger that I could add to the setpointmanager. Am I missing something?

TobiasMaile's avatar
41
TobiasMaile
asked 2019-10-29 04:29:42 -0500
__AmirRoth__'s avatar
4.4k
__AmirRoth__
updated 2020-01-20 10:21:23 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

2

You need to define your node object as a reference to the ERV (HeatExchangerAirToAirSensibleAndLatent) of your AirLoopHVAC.

Please see the following code for an example.

# Assumming you have an AirLoopHVAC setup with an ERV on it.
# Get the ERV
erv = model.getHeatExchangerAirToAirSensibleAndLatentByName('The name of your ERV').get
# Add setpoint manager, normally this would be a
# SetpointManagerOutdoorAirPretreat, but you can use any
spm_sch = OpenStudio::Model::SetpointManagerScheduled.new(model, 'Temperature', sat_sched)
# Attach to the outlet of the ERV
erv_outlet = erv.primaryAirOutletModelObject.get.to_Node.get
spm_sch.addToNode(erv_outlet)

Check the I/O reference on why it may be a better idea to use a SetpointManagerOutdoorAirPretreat.

Luis Lara's avatar
2.1k
Luis Lara
answered 2019-10-29 11:11:04 -0500, updated 2019-10-29 11:15:05 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments