-
Notifications
You must be signed in to change notification settings - Fork 25
Description
Issue overview
I am trying to write a measure to model ZoneHVACCoolingPanelRadiantConvectiveWater, I am trying to use an existing ScheduleRuleset to set the CoilCoolingWaterPanelRadiant.setCoolingControlTemperatureSchedule. However I keep getting an error message saying I cannot to do it.
Current Behavior
if you run the minimal script in the Steps to Reproduce you will get this error:
[openstudio.model.ModelObject] <0> For Object of type 'OS:Coil:Cooling:Water:Panel:Radiant' and named 'Clg Pnl Coil' cannot set Schedule Cooling Control Temperature=Medium Office Cooling Setpoint Schedule because it has an incompatible ScheduleTypeLimits
The ScheduleTypeLimits is as follows, which is what is required based on the energyplus input/output documentation
OS:ScheduleTypeLimits,
{87944bcd-6f22-4b00-8b23-19ff657177c0}, !- Handle
Temperature, !- Name
-60, !- Lower Limit Value
200, !- Upper Limit Value
CONTINUOUS, !- Numeric Type
Temperature; !- Unit Type
However, I am able to successfully set the schedule using the openstudioapplication GUI as shown here, how is the GUI successfully assigning the schedule with no error while the SDK is getting the error?
Expected Behavior
It should successfully assign the schedule to the CoilCoolingWaterPanelRadiant
Steps to Reproduce
This script will produce the error message in the Current Behavior section.
import openstudio
osmod = openstudio.model.exampleModel()
sch_rule = osmod.getScheduleRulesetByName('Medium Office Cooling Setpoint Schedule').get()
print(sch_rule)
print(sch_rule.scheduleTypeLimits().get())
clg_pnl = openstudio.model.ZoneHVACCoolingPanelRadiantConvectiveWater(osmod)
clg_pnl.setName("Clg Pnl")
hvaccomp = clg_pnl.coolingCoil()
clg_pnl_coil_optional = hvaccomp.to_CoilCoolingWaterPanelRadiant()
if clg_pnl_coil_optional.is_initialized():
clg_pnl_coil = clg_pnl_coil_optional.get()
clg_pnl_coil.setName("Clg Pnl Coil")
clg_pnl_coil.setControlType('OperativeTemperature')
isset = clg_pnl_coil.setCoolingControlTemperatureSchedule(sch_rule)
print(isset)
Possible Solution
Details
Environment
- Platform: Ubuntu 24
- Version of OpenstidioApplicaiton: 1.10.0
Context
I am trying to write a measure for users to model radiant cooling panels. It will allow them to model radiant cooling panels for each conditioned zone and set the CoolingControlTemperatureSchedule at the same time using the measure.