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

How to add Fan zone exhaust by measure?

asked 2018-09-02 04:44:37 -0500

TomB's avatar

updated 2018-09-02 11:39:47 -0500

zone = model.getThermalZoneByName("test zone").get
fan = OpenStudio::Model:FanZoneExhaust(model).new()
zone.addEquipment(fan)
# How to add fan to correct node?
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2018-09-03 04:23:39 -0500

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

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: 2018-09-02 04:44:37 -0500

Seen: 590 times

Last updated: Sep 03 '18