Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The cooling coil appears to be a CoilCoolingWater. As such, it is a WaterToAirComponent. And as such, it inherits the airInletModelObject(), airOutletModelObject(), waterInletModelObject() and waterOutletModelObject() methods. I do not kow whether these always return a node, but here is a Pyhton snippet to see what gives.

import openstudio
cooling_coil_name = "CHWC-1"
cooling_coil = model.getCoilCoolingWaterByName(cooling_coil_name)
if cooling_coil.is_initialized():
  cooling_coil = cooling_coil.get()
  cooling_coil_node = cooling_coil.airOutletModelObject()
  if cooling_coil_node.is_initialized():
    cooling_coil_node = cooling_coil_node.get()
    if isinstance(cooling_coil_node,openstudio.openstudiomodelhvac.Node):
      print("Congratulations, this is a Node: ",cooling_coil_node)
    else:
      cooling_coil_node = cooling_coil_node.to_Node()
      if cooling_coil_node.is_initialized():
        cooling_coil_node = cooling_coil_node.get()
        print("Congratulations perhaps, this may be a Node: ",cooling_coil_node)