cantera/interfaces/matlab/toolbox/1D/@Domain1D/isInlet.m

9 lines
153 B
Matlab

function a = isInlet(d)
% ISINLET - Returns 1 if the domain is an inlet, and 0 otherwise.
%
t = domainType(d);
if t == 104
a = 1;
else
a = 0;
end