The following code works fine in OpenStudio 3.0.1 but not anymore in 3.2 and above. I found that the heating/coiling coil is an optional component now, so I used the get method. Still, something else must have changed so that the CoilHeatingLowTempRadiantVarFlow object is no longer converted into an IDF object.
heatingCoilBaseboard= OpenStudio::Model::CoilHeatingWaterBaseboard::new(model) baseboard = OpenStudio::Model::ZoneHVACBaseboardConvectiveWater.new(model, model.alwaysOnDiscreteSchedule(), heatingCoilBaseboard)
baseboard.addToThermalZone(zone) hotWaterPlant.addDemandBranchForComponent(baseboard.heatingCoil())
heatingCoilRadiant = OpenStudio::Model::CoilHeatingLowTempRadiantVarFlow::new(model, zoneHeatingTempSched) coolingCoilRadiant = OpenStudio::Model::CoilCoolingLowTempRadiantVarFlow::new(model, zoneCoolingTempSched)
radiantLowTVarFlow = OpenStudio::Model::ZoneHVACLowTempRadiantVarFlow.new(model, model.alwaysOnDiscreteSchedule(), heatingCoilRadiant, coolingCoilRadiant) radiantLowTVarFlow.setNumberofCircuits("CalculateFromCircuitLength")
radiantLowTVarFlow.addToThermalZone(zone)
hotWaterPlant.addDemandBranchForComponent(radiantLowTVarFlow.heatingCoil().get) chilledWaterPlant.addDemandBranchForComponent(radiantLowTVarFlow.coolingCoil().get)
radiantLowTVarFlow.setRadiantSurfaceType("Ceiling");
zone.setCoolingPriority(baseboard, 3) zone.setHeatingPriority(baseboard, 2) zone.setCoolingPriority(radiantLowTVarFlow, 2) zone.setHeatingPriority(radiantLowTVarFlow, 3)