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