示例#1
0
 def install(self, upstream, downstream):
     """
     Install the device between the upstream and downstream
     reactors or reservoirs.  
     >>> f.install(upstream = reactor1, downstream = reservoir2)
     """
     if self._verbose:
         print
         print self._name+': installing between '+upstream.name()+' and '+downstream.name()
     upstream._addOutlet(self, downstream)
     downstream._addInlet(self, upstream)
     _cantera.flowdev_install(self.__fdev_id, upstream.reactor_id(),
                               downstream.reactor_id())
示例#2
0
 def install(self, upstream, downstream):
     """
     Install the device between the upstream and downstream
     reactors or reservoirs.  
     >>> f.install(upstream = reactor1, downstream = reservoir2)
     """
     if self._verbose:
         print
         print self._name+': installing between '+upstream.name()+' and '+downstream.name()
     upstream._addOutlet(self, downstream)
     downstream._addInlet(self, upstream)
     _cantera.flowdev_install(self.__fdev_id, upstream.reactor_id(),
                               downstream.reactor_id())