3.5: TQSTSC

TOCGroup 2TQNOSCTQCSCGroup 3A-ZGroup 2

GET-STOICHIOMETRY-OF-SYSTEM-COMPONENT

Use TQSTSC to get the stoichiometry and molecular mass of a system component.

Synopsis

FORTRAN: CALL TQSTSC(INDEXS,STOI,WMASS,NOERR)

C: tqstsc(indexs,&stoi,&wmass,&noerr);

Pascal: tqstsc(indexs,stoi,wmass,noerr);

Basic: Call tqstsc(indexs,stoi,wmass,noerr)


Name Type Value set on call or returned
INDEXS INTEGER Set to the index number for a component
STOI Array of
DOUBLE PRECISION
Returns the stoichiometry of the component
WMASS DOUBLE PRECISION Returns the molecular mass of the component
NOERR INTEGER Returns an error number

INDEXS is integer input. The array STOI needs to be declared large enough to hold at least as much DOUBLE PRECISION values as there are system components, see parameter NSCOM in TQNOSC. The component's full stoichiometry matrix is always returned through STOI, even if known from the component's index number. WMASS is the molecular mass of a component with index number INDEXS.

The contents of the array STOI are fairly trivial: The array is filled with zeros except for the element no. INDEXS, which has a value of 1.0. The reason for TQSTSC to return this array despite its redundant contents is to keep its calling syntax similar to that of TQSTPC. For more information on the stoichiometry matrix, see Appendix E.3.

Note that the value for the molecular mass is returned in the current amount unit per mol. Since the default amount unit is also mol (see Table 7), the result will always be 1.0, unless the amount unit is changed, for instance to gram.

See also

TQNOSC, TQINSC, TQGNSC, TQCSC

Examples

See TQCSC


ChemApp Programmer's Manual, Edition 3.6© GTT-Technologies, 2003