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

15 lines
276 B
Matlab

function a = isFlow(d)
% ISFLOW Determine whether a domain is a flow.
% a = isFlow(d)
% :param d:
% Instance of class :mat:func:`Domain1D`
% :return:
% 1 if the domain is a flow domain, and 0 otherwise.
%
t = domainType(d);
if t == 50
a = 1;
else
a = 0;
end