cantera/interfaces/matlab/toolbox/@FlowDevice/setFunction.m

11 lines
242 B
Matlab

function setFunction(f, mf)
% SETMASSFLOWRATE -
%
if f.type == 1
k = flowdevicemethods(5, f.index, func_hndl(mf));
if k < 0
error(geterr);
end
else
error('Mass flow rate can only be set for mass flow controllers')
end