TQGETV and TQGET1

Fortran

TQGETV(STAVAR, INDEXP, INDEXC, NUMBER, VALAR, IWSG, IWSE)

TQGET1(STAVAR, INDEXP, INDEXC, VAL, IWSG, IWSE)

C-interface

tq_getv(TC_STRING stavar,TC_INT indexp,TC_INT indexc,TC_INT number,TC_FLOAT* valar,TC_INT* iwsg,TC_INT* iwse);

tq_get1(TC_STRING stavar,TC_INT indexp,TC_INT indexc,TC_FLOAT* val,TC_INT* iwsg,TC_INT* iwse);

Full name:

Get Values.

With TQGETV an array of values can be returned; with TQGET1 a single value only.

Purpose:

These subroutines return the value of any variable in the system after an equilibrium calculation, for example, thermodynamic properties for phases and constituents, temperature, pressure and volume of the system, and amount of the system, a phase or a constituent.

Comments:

If an equilibrium is not established, the error code is set on return. Go to State Variables Available for TQGETV and TQGET1 for obtaining values.

Valid INDEXC or INDEXP has a positive value. Setting INDEXC or INDEXP to -1 means it is not relevant. Using 0 for INDEXC or INDEXP in TQGETV means all components or all phases, respectively.

Arguments

Name

Type

Value set on call or returned

STAVAR

Character*32

Set to mnemonic of state variable

INDEXP

Integer

Set to a phase index

INDEXC

Integer

Set to a component or constituent index

NUMBER

Integer

Set to the number of values in VALAR.

VALAR

Double precision array

Return the values

VAL

Double precision

Return the value

IWSG

Integer array

Workspace

IWSE

Integer array

Workspace