Ejemplo n.º 1
0
 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)
Ejemplo n.º 2
0
 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)
Ejemplo n.º 3
0
 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)
Ejemplo n.º 4
0
 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)