Exemple #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)
Exemple #2
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)