5.11: TQSTXP

TOCGroup 5TQGDPCTQGTLCGroup 1A-ZGroup 5

GET-THERMODYNAMIC-PROPERTY-OF-A-STREAM

Use TQSTXP to get the calculated thermodynamic properties of a stream.

Added for ChemApp version 1.1.3

Synopsis

FORTRAN: CALL TQSTXP(IDENTS,OPTION,VAL,NOERR)

C: tqstxp(idents,option,&val,&noerr);

Pascal: tqstxp(idents,option,val,noerr);

Basic: Call tqstxp(idents,option,val,noerr)


Name Type Value set on call or returned
IDENTS CHARACTER Set to the name of a stream
OPTION CHARACTER Set to a string as shown in Table 20
VAL DOUBLE PRECISION Returns the value of the thermodynamic quantity
NOERR INTEGER Returns an error number

IDENTS and OPTION are both input. IDENTS is a name previously defined by calling TQSTTP. OPTION is character input identifying the thermodynamic quantity (see Table 20). The subroutine returns the value of the desired thermodynamic quantity through VAL, using the currently selected system units. See also the notes in Appendix B.1 for more information on how the extensive properties are calculated.

For users of ChemApp versions prior to 3.2.0: Please note that the values returned by TQSTXP always refer to the last calculated equilibrium state. If TQSTXP is called before the first equilibrium calculation has been performed using TQCE or TQMAP, VAL will be zero.

As of ChemApp version 3.2.0, TQSTXP can be called to get the calculated thermodynamic properties of a stream also before an equilibrium calculation has been performed.

See also

TQSTCA, TQSTEC, TQSTRM, TQSTTP, Appendix B.1

Examples

See TQSTTP


ChemApp Programmer's Manual, Edition 3.6© GTT-Technologies, 2003