Adding Heating Source to Desuperheater
I am writing a measure to add a DOAS that cools, dehumidify then reheat the air using a two stage dx cooling coil and a desuperheater. The measure runs successfully, but when I run the simulation this severe error shows up
* Severe * <root>[Coil:Heating:Desuperheater][Coil Heating Desuperheater 1][heating_source_object_type] - "CoilSystem:Cooling:DX" - Failed to match against any enum values.
The reason for that is OS plugging “CoilSystem:Cooling:DX” as the heat source instead of two stage cooling coil. I used the two stage cooling coil variable directly and the “to_CoilCoolingDXTwoStageWithHumidityControlMode.get” in the “setHeatingSource” method but the results were the same. Is there another way to access the two stage cooling coil?
# make a two stage cooling coil.
doas_dx_cooling_coil = OpenStudio::Model::CoilCoolingDXTwoStageWithHumidityControlMode.new(model)
doas_dx_cooling_coil.setNumberofCapacityStages(2)
doas_dx_cooling_coil.setNumberofEnhancedDehumidificationModes(1)
doas_dx_cooling_coil.setNormalModeStage1CoilPerformance(doas_Standard_Perf_1)
doas_dx_cooling_coil.setNormalModeStage1Plus2CoilPerformance(doas_Standard_Perf_st_sec)
doas_dx_cooling_coil.setDehumidificationMode1Stage1CoilPerformance(doas_Dehumid_Perf_1)
doas_dx_cooling_coil.setDehumidificationMode1Stage1Plus2CoilPerformance(doas_Dehumid_Perf_st_sec)
air_loop_comps << doas_dx_cooling_coil
# make a desuperheater
doas_desuperheater = OpenStudio::Model::CoilHeatingDesuperheater.new(model)
doas_desuperheater.setHeatReclaimRecoveryEfficiency(hot_gas_eff)
doas_desuperheater.setHeatingSource(doas_dx_cooling_coil.to_CoilCoolingDXTwoStageWithHumidityControlMode.get)
air_loop_comps << doas_desuperheater