Skip to content

"CoilCoolingWaterPanelRadiant.setCoolingControlTemperatureSchedule" but keep getting 'incompatible ScheduleTypeLimits' error OpenstudioSDK 3.10.0 #5595

@chenkianwee

Description

@chenkianwee

Description

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 a "incompatible ScheduleTypeLimits" error message saying I cannot to do it although the schedule limit is correct according to the EP+ input/output document

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

Expected Behavior

It should successfully assign the schedule to the CoilCoolingWaterPanelRadiant

Steps to reproduce

This python 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

No response

Operating System affected

Ubuntu 24.04

Environment

Platform: Ubuntu 24

Version of OpenStudio

3.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.

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions