cantera/interfaces/matlab/toolbox/@Kinetics/destruction_rates.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

20 lines
497 B
Matlab
Executable file

function q = destruction_rates(a)
% destruction_rates Chemical destruction rates for all species.
%
% q = destruction_rates(a)
%
% Returns a column vector of the destruction rates of all species.
%
% See also: creation_rates, net_production_rates.
%
q = production(a.id,nSpecies(a.ph),1);
if nargout == 0
figure
set(gcf,'Name','Destruction Rates')
bar(q)
xlabel('Species Number')
ylabel('Destruction Rate (kmol/m^3/s)')
title('Species Chemical Destruction Rates')
end