First time here? Check our help page!
2

How to set Air Terminal availability schedule?

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?

TomB's avatar
1.7k
TomB
asked 2017-05-16 00:11:39 -0500
__AmirRoth__'s avatar
4.4k
__AmirRoth__
updated 2017-05-16 07:03:17 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

2

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
mdahlhausen's avatar
9.5k
mdahlhausen
answered 2017-05-16 11:56:13 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments