コード例 #1
0
ファイル: Reactor.py プロジェクト: anujg1991/cantera
 def setHeatFlux(self, qfunc):
     """
     Specify the time-dependent heat flux function [W/m2].
     'qfunc' must be a functor (an instance of a subclass of Cantera.Func1).
     See: Func1.
     """
     n = 0
     if qfunc: n = qfunc.func_id()
     return _cantera.wall_setHeatFlux(self.__wall_id, n)
コード例 #2
0
 def setHeatFlux(self, qfunc):
     """
     Specify the time-dependent heat flux function [W/m2].
     'qfunc' must be a functor (an instance of a subclass of Cantera.Func1).
     See: Func1.
     """
     n = 0
     if qfunc: n = qfunc.func_id()
     return _cantera.wall_setHeatFlux(self.__wall_id, n)
コード例 #3
0
ファイル: Reactor.py プロジェクト: athlonshi/cantera
 def setHeatFlux(self, qfunc):
     """
     Specify the time-dependent heat flux function [W/m2].
     *qfunc* must be a functor (an instance of :class:`.Func1`).
     """
     if qfunc:
         self._qfunc = qfunc # hold on to a reference so it doesn't get deleted
         n = qfunc.func_id()
     else:
         n = 0
     return _cantera.wall_setHeatFlux(self.__wall_id, n)
コード例 #4
0
ファイル: Reactor.py プロジェクト: minhbau/Cantera
 def setHeatFlux(self, qfunc):
     """
     Specify the time-dependent heat flux function [W/m2].
     *qfunc* must be a functor (an instance of :class:`.Func1`).
     """
     if qfunc:
         self._qfunc = qfunc  # hold on to a reference so it doesn't get deleted
         n = qfunc.func_id()
     else:
         n = 0
     return _cantera.wall_setHeatFlux(self.__wall_id, n)