def setVelocity(self, vfunc): """ Specify the velocity function [m/s]. 'vfunc' must be a functor (an instance of a subclass of Cantera.Func1) See: Func1. """ n = 0 if vfunc: n = vfunc.func_id() _cantera.wall_setVelocity(self.__wall_id, n)
def setVelocity(self, vfunc): """ Specify the velocity function [m/s]. *vfunc* must be a functor (an instance of :class:`.Func1`) """ if vfunc: self._vfunc = vfunc # hold on to a reference so it doesn't get deleted n = vfunc.func_id() else: n = 0 _cantera.wall_setVelocity(self.__wall_id, n)