cantera/interfaces/matlab/toolbox/@Mixture/display.m

14 lines
408 B
Matlab

function display(self)
% DISPLAY Display the state of the mixture on the terminal.
% display(self)
% :param self:
% Instance of class :mat:func:`Mixture`
%
[np nc] = size(self.phases);
for n = 1:np
s = [sprintf('\n******************* Phase %d', n) ...
sprintf(' ******************************\n\n Moles: %12.6g', phaseMoles(self,n))];
disp(s);
display(self.phases{n, 1});
end