cantera/interfaces/matlab/toolbox/@Kinetics/rop_f.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
446 B
Matlab
Executable file

function q = rop_f(a)
% ROP_F Forward rates of progress for all reactions.
%
% Q = ROP_F(K)
%
% Returns a column vector of the forward rates of progress
% for all reactions.
%
% See also: rop_r, rop_net.
%
q = kinetics_get(a.id,11,0);
if nargout == 0
figure
set(gcf,'Name','Rates of Progress')
bar(q)
xlabel('Reaction Number')
ylabel('Forward Rate of Progress [kmol/m^3]')
title('Forward Rates of Progress')
end