cantera/interfaces/matlab/toolbox/@Mixture/setSpeciesMoles.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

12 lines
474 B
Matlab

function setSpeciesMoles(self, moles)
% SETSPECIESMOLES - Set the moles of the species [kmol]. The moles may
% be specified either as a string, or as an array. If an array is
% used, it must be dimensioned at least as large as the total number
% of species in the mixture. Note that the species may belong to any
% phase, and unspecified species are set to zero.
%
% >> setSpeciesMoles(mix, 'C(s):1.0, CH4:2.0, O2:0.2');
%
mixturemethods(8, mix_hndl(self), moles);