Пример #1
0
 def insert(self, contents):
     """
     Insert *contents* into the reactor. Sets the objects used to compute
     thermodynamic properties and kinetic rates.
     """
     # store a reference to contents so that it will live as long
     # as this object
     self._contents = contents
     if contents:
         _cantera.reactor_setThermoMgr(self.__reactor_id, contents._phase_id)
         _cantera.reactor_setKineticsMgr(self.__reactor_id, contents.ckin)
Пример #2
0
 def insert(self, contents):
     """
     Insert 'contents' into the reactor. Sets the objects used to compute
     thermodynamic properties and kinetic rates.
     """
     # store a reference to contents so that it will live as long
     # as this object
     self._contents = contents
     if contents:
         _cantera.reactor_setThermoMgr(self.__reactor_id, contents._phase_id)
         _cantera.reactor_setKineticsMgr(self.__reactor_id, contents.ckin)