TQIPS_GET_VALUE
Fortran |
TQIPS_GET_VALUE(IBRANCH, NOSCHEME, ARR, RESULT, IERR, ISHORT, IWSG, IWSE) |
|
---|---|---|
C-interface |
tq_ips_get_value(TC_INT branch_nr, TC_INT noscheme, TC_FLOAT* variable_values, TC_FLOAT* function_values, TC_INT* err, TC_INT* shortcut, TC_INT* iwsg,TC_INT* iwse); |
|
Full name: |
Retrieve interpolated value(s) from the adaptive interpolation scheme. |
|
Purpose: |
Retrieves all the values defined by all TQIPS_INIT_FUNCTION defined for branch IBRANCH in sequential order. |
|
Arguments |
||
Name |
Type |
Value set on call or returned |
IBRANCH |
Integer |
Set to branch number. |
NOSCHEME |
Integer |
Set to 1 if the interpolation scheme is to be disabled. |
ARR |
Double precision array |
Array set to the mole-fractions of all the components followed by the temperature and the pressure, if a component is dependent the value may be arbitrary. The same applies if the temperature or pressure is constant. |
RESULT |
Double precision array |
Returns the interpolated values in the same order as they were defined in TQS_INIT_FUNCTION. |
IERR |
Integer |
Returns the error code. |
ISHORT |
Integer |
Set to the last returned value or zero, Returns a shortcut to data pertaining to the grid point in virtual composition/temperature/pressure space for the values in ARR |
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.