예제 #1
0
 def __init__(self, reactorlist = None):
     """
     Create a new ReactorNet instance. If a list of reactors is supplied,
     these will be added to the network.
     """
     self._reactors = []
     self.__reactornet_id = _cantera.reactornet_new()
     if reactorlist:
         for r in reactorlist:
             self.add(r)
예제 #2
0
파일: Reactor.py 프로젝트: minhbau/Cantera
 def __init__(self, reactorlist=None):
     """
     Create a new ReactorNet instance. If a list of reactors is supplied,
     these will be added to the network.
     """
     self._reactors = []
     self.__reactornet_id = _cantera.reactornet_new()
     if reactorlist:
         for r in reactorlist:
             self.add(r)