TQSETR
Fortran |
TQSETR (INDEXC, INDEXP, TEMP, PRES, IWSG, IWSE) |
|
---|---|---|
C-interface |
tq_setr(TC_INT indexc,TC_INT indexp,TC_FLOAT temp,TC_FLOAT press,TC_INT* iwsg, TC_INT* iwse); |
|
Full name: |
Set Reference State. |
|
Purpose: |
Reset the reference state of a system component. |
|
Comments: |
By default the reference state for a component is determined by the thermodynamic data file. With this subroutine an application may select a different reference state if the one in the data file does not suit a calculation purpose. If the current temperature or pressure should be used for the calculation, the value given should not be larger than zero. |
|
Arguments |
||
Name |
Type |
Value set on call or returned |
INDEXC |
Integer |
Set to a component index. |
INDEXP |
Integer |
Set to a phase index. |
TEMP |
Double precision |
Set to a temperature value. |
PRES |
Double precision |
Set to a pressure value. |
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.