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

openstudio get the plenum object for thermal zones

asked 2021-02-17 20:03:13 -0600

xchen's avatar

updated 2021-07-09 17:48:06 -0600

Hi is there a way to get the plenum object for a specific thermal zone under a air loop system in a measure? For example, if I look at this zone in the screenshot below, how do I get the return air plenum object? There is only "removeReturnPlenum", or "setReturnPlenum" under the ThermalZone member list here, https://openstudio-sdk-documentation....

image description

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2021-02-18 09:52:08 -0600

If you have an AirLoopHVAC object, you can get the AirLoopHVACReturnPlenum and its associated ThermalZone by doing something like this:

air_loop_hvac.demandComponents.each do |component|
  if component.to_AirLoopHVACReturnPlenum.is_initialized
    return_plenum = component.to_AirLoopHVACReturnPlenum.get
    if return_plenum.thermalZone.is_initialized
      zone = return_plenum.thermalZone.get
      puts "Return plenum thermal zone is #{zone.name}"
    end
  end
end
edit flag offensive delete link more

Comments

Thanks, looks like this approach outputs all the plenum in this air_loop_hvac. Is there a way to get the pair? For example, zone1 and its return plenum, zone2 and its return plenum.

xchen's avatar xchen  ( 2021-02-19 17:17:17 -0600 )edit

Your Answer

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

Add Answer

Training Workshops

Careers

Question Tools

1 follower

Stats

Asked: 2021-02-17 20:03:13 -0600

Seen: 338 times

Last updated: Feb 18 '21