Defining Inlet and Outlet Node Names
Hello, I am writing an ASHP measure on Ruby to be used in Open Studio and am encountering an error. The error file reads as the following:
** Severe ** <root>[Coil:Cooling:DX:SingleSpeed][Coil Cooling DX Single Speed 3] - Missing required property 'air_inlet_node_name'.
** Severe ** <root>[Coil:Cooling:DX:SingleSpeed][Coil Cooling DX Single Speed 3] - Missing required property 'air_outlet_node_name'.
** Severe ** <root>[CoilSystem:Cooling:DX][Coil Cooling DX Single Speed 3 CoilSystem] - Missing required property 'dx_cooling_coil_system_inlet_node_name'.
** Severe ** <root>[CoilSystem:Cooling:DX][Coil Cooling DX Single Speed 3 CoilSystem] - Missing required property 'dx_cooling_coil_system_outlet_node_name'.
** Severe ** <root>[CoilSystem:Cooling:DX][Coil Cooling DX Single Speed 3 CoilSystem] - Missing required property 'dx_cooling_coil_system_sensor_node_name'.
** Severe ** <root>[SetpointManager:MixedAir][Setpoint Manager Mixed Air 2] - Missing required property 'fan_inlet_node_name'.
** Severe ** <root>[SetpointManager:SingleZone:Reheat][Setpoint Manager Single Zone Reheat 1] - Missing required property 'control_zone_name'.
** Severe ** <root>[SetpointManager:SingleZone:Reheat][Setpoint Manager Single Zone Reheat 1] - Missing required property 'zone_inlet_node_name'.
** Severe ** <root>[SetpointManager:SingleZone:Reheat][Setpoint Manager Single Zone Reheat 1] - Missing required property 'zone_node_name'.
** Fatal ** Errors occurred on processing input file. Preceding condition(s) cause termination.
Seems like the DX cooling coil doesn't know where to go because the nodes are not defined. Is there a method that can define the nodes for the system in a standardized way? As context, I initialized a new cooling coil with the following lines (similar for heating coil):
new_cooling_coil = OpenStudio::Model::CoilCoolingDXSingleSpeed.new(model)
air_loop_hvac_unitary_system.setCoolingCoil(new_cooling_coil)
Thank you!
Learning that chatGPT doesn't produce valid code eh? :) Something just need to be hooked somewhere. Maybe you forgot to add the Unitary to an AirLoopHVAC or a ThermalZone? It's hard to tell without seeing the code in its entirety. You can find some examples on the OpenStudio-resources repository (this the regression testing suite we use to test the OpenStudio SDK and also serves as an API demonstration). Check out for eg unitary_system.rb
Thank you for the tips, Julien. Ah that unitary_system script is helpful - and yes, I had not added the supply node to the unitary system.
Although I wrote this measure on my own, I also have a different version with AI as a start point (can be helpful as a jumping off point sometimes, but definitely far from perfect!)
@MDW I turned it into an answer. So you can accept it to mark the thread as resolved.