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

14 lines
603 B
Matlab
Executable file

function yn = isReversible(a, i)
% ISREVERSIBLE - Reversible reaction flag.
%
% A reversible reaction is one that runs in both the forward
% direction (reactants -> products) and in the reverse direction
% (products -> reactants). The reverse rate for reversible
% reactions is computed from thermochemistry, so that the
% reaction satisfies detailed balance, and the net rate of
% progress is zero in states of chemical equilibrium.
%
% ISREVERSIBLE(K, IRXN) returns 1 if reaction number IRXN is
% reversible, and 0 if it is irreversible.
%
yn = kinetics_get(a.id,4,i);