Use TQSTPC to get the stoichiometry and molecular mass of a specified phase constituent.
|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
| 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.
TQNOPC, TQINPC, TQGNPC, TQPCIS, TQGDPC
|ChemApp Programmer's Manual, Edition 3.6||© GTT-Technologies, 2003|