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.
17 lines
434 B
Matlab
17 lines
434 B
Matlab
function x = moleFractions(a)
|
|
% MOLEFRACTIONS - Mole fractions.
|
|
%
|
|
% moleFractions(phase)
|
|
%
|
|
% returns the array of species mole fractions for phase 'phase'. If
|
|
% no output argument is specified, a bar plot is produced.
|
|
%
|
|
x = phase_get(a.tp_id,20);
|
|
if nargout == 0
|
|
figure
|
|
set(gcf,'Name','Mole Fractions')
|
|
bar(x)
|
|
xlabel('Species Number')
|
|
ylabel('Mole Fraction')
|
|
title('Species Mole Fractions')
|
|
end
|