TQX2Y
Fortran |
TQX2Y(INDEXP, NE, NCNV, NC, IWORK, WORK, XF, YF, IWSG, IWSE) |
|
---|---|---|
C-interface |
tq_x2y(TC_INT indexp,TC_INT ne,TC_INT ncnv,TC_INT nc,TC_INT* iwork,TC_FLOAT* work,TC_FLOAT* xf,TC_FLOAT* yf,TC_INT* iwsg,TC_INT* iwse); |
|
Full name: |
Get Y-fraction given X-fraction. |
|
Purpose: |
Converting mole fractions to site fractions in a phase without internal degree of freedom. |
|
Comments: |
This subroutine uses the phase constitution properties obtained by TQGPHP as input. See Example 10. |
|
Arguments |
||
Name |
Type |
Value set on call or returned |
INDEXP |
Integer |
Set to a phase index |
NE |
Integer |
Set to number of components |
NCNV |
Integer |
Set to number of constituents without counting vacancies |
NC |
Integer |
Set to number of constituents |
IWORK |
Integer array |
Set to values needed in X to Y conversion |
WORK |
Double precision array |
Set to values needed in X to Y conversion |
XF |
Double precision array |
Set to mole fractions |
YF |
Double precision array |
Return site fractions |
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.