예제 #1
0
파일: Reactor.py 프로젝트: minhbau/Cantera
 def setTolerances(self,
                   rtol=1.0e-9,
                   atol=1.0e-20,
                   rtolsens=-1.0,
                   atolsens=-1.0):
     """Set the relative and absolute error tolerances used in
     integrating the reactor equations."""
     _cantera.reactornet_setTolerances(self.__reactornet_id, rtol, atol)
     _cantera.reactornet_setSensitivityTolerances(self.__reactornet_id,
                                                  rtolsens, atolsens)
예제 #2
0
 def setTolerances(self, rtol = 1.0e-9,
                   atol = 1.0e-20, rtolsens= -1.0, atolsens = -1.0):
     """Set the relative and absolute error tolerances used in
     integrating the reactor equations."""
     _cantera.reactornet_setTolerances(self.__reactornet_id, rtol, atol)
     _cantera.reactornet_setSensitivityTolerances(self.__reactornet_id, rtolsens, atolsens)