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, 0.

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.