TQGPCS
Fortran |
TQGPCS (INDEXP, INDEXC, STOI, MMASS, IWSG, IWSE) |
|
---|---|---|
C-interface |
tq_gpcs(TC_INT indexp,TC_INT indexc,TC_FLOAT* stoi,TC_FLOAT* mmass,TC_INT* iwsg,TC_INT* iwse); |
|
Full name: |
Get Phase Constituent Stoichiometry. |
|
Purpose: |
With this subroutine the application program can obtain the stoichiometry of a constituent expressed in the system components and also the molecular mass. |
|
Comments: |
This does not give the chemical formula in terms of elements for the constituent. The dimension of STOI is NCOM (number of components) get by calling TQGCOM. |
|
Arguments |
||
Name |
Type |
Value set on call or returned |
INDEXP |
Integer |
Set to a phase index. |
INDEXC |
Integer |
Set to the constituent index. |
STOI |
Double precision array |
Return the stoichiometry array. |
MMASS |
Double precision |
Return the mass. |
IWSG |
Integer array |
Workspace |
IWSE |
Integer array |
Workspace |

Note the following conventions to distinguish between the programming languages.
- Routines starting with TQXXX, for example, TQGDAT, are in the Fortran interface
- Routines starting with tq_xxxx, for example tq_gdat, are in the C-interface.
- In Fortran, all routines are subroutines and do not return any values except where explicitly declared as functions.
- All the C procedures are declared as void and do not return any values except where explicitly otherwise declared.
An example of how to read the subroutine definitions.