3.15: TQSTPC

TOCGroup 2TQNOPCTQINLCGroup 3A-ZGroup 2

GET-STOICHIOMETRY-OF-PHASE-CONSTITUENT

Use TQSTPC to get the stoichiometry and molecular mass of a specified phase constituent.

Synopsis

FORTRAN: CALL TQSTPC(INDEXP,INDEXC,STOI,WMASS,NOERR)

C: tqstpc(indexp,indexc,&stoi,&wmass,&noerr);

Pascal: tqstpc(indexp,indexc,stoi,wmass,noerr);

Basic: Call tqstpc(indexp,indexc,stoi,wmass,noerr)


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

INDEXP and INDEXC are 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 stoichiometry of constituent INDEXC in phase INDEXP returned through STOI depends on the current set of system components. WMASS is the molecular mass of the same phase constituent.

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

TQNOPC, TQINPC, TQGNPC, TQPCIS, TQGDPC

Examples

See TQINPC


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