TQCE

Fortran

TQCE(TARGET, INDEXP, INDEXC, VALUE, IWSG, IWSE)

C-interface

tq_ce(TC_STRING var,TC_INT indexp,TC_INT indexc,TC_FLOAT value,TC_INT* iwsg,TC_INT* iwse);

Full name:

Calculate Equilibrium.

Purpose:

Calculate the equilibrium with current settings of conditions or streams.

Comments:

Some software needs a TARGET specified for certain types of calculations. A TARGET is a state variable as specified in TQSETC. When working with Thermo‑Calc, it is only useful in stream reaction calculations, where an initial guess of the target variable may be of some help. Otherwise, TARGET is normally set as an empty string and the values of INDEXP, INDEXC, and VALUE are irrelevant.

Arguments

Name

Type

Value set on call or returned

TARGET

Character*8

Set to a state variable, if necessary.

INDEXP

Integer

Set to a phase index, if necessary.

INDEXC

Integer

Set to a component index, if necessary.

VALUE

Double precision

Set to an estimate of the target variable.

IWSG

Integer array

Workspace

IWSE

Integer array

Workspace