First time here? Check our help page!
2

How to add Fan zone exhaust by measure?

zone = model.getThermalZoneByName("test zone").get
fan = OpenStudio::Model:FanZoneExhaust(model).new()
zone.addEquipment(fan)
# How to add fan to correct node?
TomB's avatar
1.7k
TomB
asked 2018-09-02 04:44:37 -0500
__AmirRoth__'s avatar
4.4k
__AmirRoth__
updated 2018-09-02 11:39:47 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

2

Like all ZoneHVACComponents, you'd use ZoneHVACComponent::addToThermalZone. See the SDK Documentation here:

bool openstudio::model::ZoneHVACComponent::addToThermalZone ( ThermalZone & thermalZone )

Adds this ZoneHVACComponent to the thermal zone while managing all node connections automatically. Returns true if the operation was successful.

The actual implementation for FanZoneExhaust is at FanZoneExhaust.cpp#L152:L188 if you're curious.

Example:

m = OpenStudio::Model::Model.new
z = OpenStudio::Model::ThermalZone.new(m)
fan = OpenStudio::Model::FanZoneExhaust.new(m)
fan.addToThermalZone(z)
Julien Marrec's avatar
29.7k
Julien Marrec
answered 2018-09-03 04:23:39 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments