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

How to set Air Terminal availability schedule?

asked 2017-05-16 00:11:39 -0500

updated 2017-05-16 07:03:17 -0500

Using OpenStudio (2.1.0) is it possible to set an Availability Schedule on an AirTerminal:SingleDuct:NoReheat object?

OpenStudio appears to be applying 'Always On Discrete' to the air terminal object's Availability Schedule Field.

My goal is to simulate an air handling unit which has a few zones operating to a monday to saturday while the rest of the zones on that AHU operate to a monday to friday schedule.

If that is not possible using OpenStudio, what are some options for achieving the same goal? i.e Different thermostats?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2017-05-16 11:56:13 -0500

You can do this with the OpenStudio API. Make a schedule ruleset with a name (e.g. "My Schedule") and then run this script:

zones_to_change = ["Thermal Zone 1","Thermal Zone 2"]

#your new availability schedule
my_schedule = model.getScheduleByName("My Schedule").get 

#get thermal zones in the model
zones = model.getThermalZones 
zones.each do |zone|
  zone_name = zone.name.to_s
  if zones_to_change.include? zone_name
    #returns array of zone equipment
    zone_equipments = zone.equipment
    zone_equipments.each do |equip|
      #checks if the object is of this object type
      if !equip.to_AirTerminalSingleDuctVAVNoReheat.empty?
        air_terminal = equip.to_AirTerminalSingleDuctVAVNoReheat.get
        air_terminal.setAvailabilitySchedule(my_schedule)
      end
    end
  end
end
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

 

Question Tools

1 follower

Stats

Asked: 2017-05-16 00:11:39 -0500

Seen: 257 times

Last updated: May 16