cantera/interfaces/matlab/toolbox/@Mixture/display.m
Ray Speth ac9dfa055c [Thermo] Synchronize Mixture/Multiphase state before printing report
Do not assume that the states of the individual ThermoPhase objects still
correspond to the state of the mixture object. See #306.
2015-11-12 12:42:35 -05:00

15 lines
443 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`
%
mixturemethods(9, mix_hndl(self));
[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