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)
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)