## 18.11. State Point Evaluation

The user state point query function enables the evaluation of thermodynamic properties at a user specified state. This is accomplished by calling the following utility routine from within User Fortran subroutines (User CEL functions or Junction Boxes):

    	CALL USER_STATEPT(VAR,CPROCALC,CPROPIND,RPROPIND,NPROPIND,
    &                  CERACT,CRESLT,CZ,DZ,IZ,LZ,RZ)

The input arguments for this utility are:

- `CHARACTER*(*) CPROPCALC` - Name of requested output property variable.

- `CHARACTER*(*) CPROPIND(NPROPIND)` - Array of independent thermodynamic property names.

- `REAL RPROPCALC(NPROPIND)` - Array of independent thermodynamic property values.

- `INTEGER NPROPIND` - Number of independent thermodynamic properties.

- `CHARACTER*4 CERACT` - Error action: `STOP` to stop on error, or `SKIP` to continue silently, with the result code returned in `CRESLT`.

- `CHARACTER*1(*) CZ` - `CHARACTER` data stack.

- `DOUBLE DZ` - `DOUBLE PRECISION` data stack.

- `DOUBLE IZ` - `INTEGER` data stack.

- `DOUBLE LZ` - `LOGICAL` data stack.

- `DOUBLE RZ` - `REAL` data stack.

The output arguments for this utility are:

- `REAL VAR` - Return value of `CPROPCALC` at the user-specified thermodynamic state.

- `CHARACTER*4 CRESLT` - result code, which is `GOOD` if successful.

Release 18.2 - © ANSYS, Inc. All rights reserved.