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