code: def makeductcomponent(idf, dname):
      
      aduct = idf.newidfobject("duct".upper(), Name=dname)
      aduct.Inlet_Node_Name = "%s_inlet" % (dname,)
      aduct.Outlet_Node_Name = "%s_outlet" % (dname,)
      return aduct
docs: make a duct component
      generate inlet outlet names