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

22 lines
570 B
Matlab
Executable file

function kc = equil_Kc(a)
% equil_Kc(a) equilibrium constants for all reactions
%
% q = equil_Kc(a)
%
% Returns a column vector of the equilibrium constants
% for all reactions. The vector has an entry for every
% reaction, whether reversible or not, but non-zero values
% occur only for the reversible reactions.
%
%
kc = kinetics_get(a.id,14,0);
if nargout == 0
figure
set(gcf,'Name','Equilibrium Constants')
bar(log10(kc))
xlabel('Reaction Number')
ylabel('log_1_0 Kc [kmol, m, s]')
title('Equilibrium Constants Kc')
end