cantera/interfaces/matlab/toolbox/1D/@Domain1D/isFlow.m
Ray Speth fefc008ed2 [Matlab] Fix definition of isFlow
Caused most Matlab flame simulations to fail, e.g. those using
CounterFlowDiffusionFlame.m or flame.m. Fixes regression introduced in c1067aa.

Fixes #554
2018-08-23 16:45:28 -04:00

17 lines
323 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);
% See Domain1D.h for definitions of constants
if t < 100
a = 1;
else
a = 0;
end