cantera/interfaces/matlab/toolbox/@Mixture/phaseMoles.m
Ray Speth 2528df0f75 Reorganized source tree structure
These changes make it unnecessary to copy header files around during
the build process, which tends to confuse IDEs and debuggers. The
headers which comprise Cantera's external C++ interface are now in
the 'include' directory.

All of the samples and demos are now in the 'samples' subdirectory.
2012-02-12 02:27:14 +00:00

15 lines
338 B
Matlab

function moles = phaseMoles(self, n)
% PHASEMOLES - moles of phase number 'n' (kmol).
%
if nargin == 2
moles = mixturemethods(28, mix_hndl(self), n);
elseif nargin == 1
np = nPhases(self);
for n = 1:np
m(n) = mixturemethods(28, mix_hndl(self), n);
end
moles = m;
else
error('wrong number of arguments');
end