cantera/interfaces/matlab/toolbox/@ThermoPhase/isIdealGas.m

10 lines
176 B
Matlab

function v = isIdealGas(tp)
% ISIDEALGAS - True if the phase is an ideal gas or ideal gas
% mixture, and false otherwise.
%
if eosType(tp) == 1
v = 1;
else
v = 0;
end