18 lines
435 B
Matlab
18 lines
435 B
Matlab
function y = massFractions(tp)
|
|
% MASSFRACTIONS - Mass fractions.
|
|
%
|
|
% massFractions(phase);
|
|
%
|
|
% returns the array of species mass fractions for phase 'phase'. If
|
|
% no output argument is specified, a bar plot is produced.
|
|
%
|
|
|
|
y = phase_get(tp.tp_id, 21);
|
|
if nargout == 0
|
|
figure
|
|
set(gcf, 'Name', 'Mass Fractions')
|
|
bar(y)
|
|
xlabel('Species Number')
|
|
ylabel('Mass Fraction')
|
|
title('Species Mass Fractions')
|
|
end
|