Пример #1
0
 def _setEnergy(self, eflag):
     """Turn the energy equation on or off. If the argument is the
     string ``'off'`` or the number 0, the energy equation is disabled,
     and the reactor temperature is held constant at its initial
     value."""
     ie = 1
     if eflag == 'off' or eflag == 0:
         ie = 0
     if self._verbose:
         if ie:
             print 'enabling energy equation for reactor',self._name
         else:
             print 'disabling energy equation for reactor',self._name
     _cantera.reactor_setEnergy(self.__reactor_id, ie)
Пример #2
0
 def _setEnergy(self, eflag):
     """Turn the energy equation on or off. If the argument is the
     string ``'off'`` or the number 0, the energy equation is disabled,
     and the reactor temperature is held constant at its initial
     value."""
     ie = 1
     if eflag == 'off' or eflag == 0:
         ie = 0
     if self._verbose:
         if ie:
             print 'enabling energy equation for reactor', self._name
         else:
             print 'disabling energy equation for reactor', self._name
     _cantera.reactor_setEnergy(self.__reactor_id, ie)