First time here? Check out the Help page!
1 | initial version |
These fields shouldn't be displayed in the OpenStudioApplication to begin with. I added an issue on Github NREL/OpenStudio#3707
If you want to set this, you have to use the API directly (via the ruby bindings or an OpenStudio Measure).
Here's a demonstration of the API for these fields:
require 'openstudio'
include OpenStudio::Model
m = Model.new
a = AirLoopHVAC.new(m)
z = ThermalZone.new(m)
atu = AirTerminalSingleDuctConstantVolumeNoReheat.new(m, m.alwaysOnDiscreteSchedule)
a.addBranchForZone(z, atu)
# 1. This will create an AvailabilityManagerNightCycle
# a.setNightCycleControlType("CycleOnAny")
# avm = a.availabilityManagers[0]
# avm_nc = avm.to_AvailabilityManagerNightCycle.get
# 2. Alternatively you can directly create one and add it to the AirLoopHVAC
avm_nc = AvailabilityManagerNightCycle.new(m)
a.addAvailabilityManager(avm_nc)
# Check all Control Type that you can set
AvailabilityManagerNightCycle::controlTypeValues
#=> ["StayOff",
# "CycleOnAny",
# "CycleOnControlZone",
# "CycleOnAnyZoneFansOnly",
# "CycleOnAnyCoolingOrHeatingZone",
# "CycleOnAnyCoolingZone",
# "CycleOnAnyHeatingZone",
# "CycleOnAnyHeatingZoneFansOnly"]
# Depending on the control type you choose, you'll have to use one or several of these methods to set the correct zones
avm_nc.setControlThermalZones([z])
avm_nc.setCoolingControlThermalZones([z])
avm_nc.setHeatingControlThermalZones([z])
avm_nc.setHeatingZoneFansOnlyThermalZones([z])