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

23 lines
552 B
Matlab
Executable file

function cdot = creationRates(a)
% CREATIONRATES Chemical creation rates (kmol/m^3/s).
%
% cdot = creationRates(K)
%
% Returns a column vector of the creation rates of all
% species. If the output is not assigned to a variable, a
% bar graph is produced.
%
% See also: destructionRates, netProdRates.
%
cdot = kinetics_get(a.id,21,0);
if nargout == 0
figure
set(gcf,'Name','Creation Rates')
bar(cdot)
xlabel('Species Number')
ylabel('Creation Rate (kmol/m^3-s)')
title('Species Chemical Creation Rates')
end