Adaptive Interpolation Schemes

About Adaptive Interpolation Schemes

In order to perform a simulation using the scheme, the TQ-library must be initialized in the normal way using the routine TQINI and thermodynamic information must be loaded, usually with the TQRFIL routine.

The scheme is then initialized using the TQIPS_INIT_TOP routine and each branch in the calculation is initialized using the TQIPS_INIT_BRANCH routine. For each set of interpolated values which are to be defined and obtained from a certain branch of the scheme, the TQIPS_INIT_FUNCTION routine is called. The values for all functions defined in the branch are then returned using the TQIPS_GET_VALUE routine.

Purpose Subroutine

Initiate the interpolation scheme

TQIPS_INIT_TOP

Initiate a branch in the interpolation scheme

TQIPS_INIT_BRANCH

Define a function or state variable to be interpolated

TQIPS_INIT_FUNCTION

Retrieve the interpolated value

TQIPS_GET_VALUE

Write the data of the interpolation scheme to file.

TQIPS_WRITE_IPS_DATA_TO_FILE

Read interpolation scheme data from file.

TQIPS_READ_IPS_DATA_FROM_FILE

Get statistics on the usage of the interpolation scheme.

TQIPS_GET_MEMORY_USAGE