The Subroutines and Functions

The FORTRAN subroutines and functions available in the TQ-Interface can be classified into categories based on purpose:

  1. Initialization Subroutines. For example, initializing the workspace, reading the thermodynamic data files, setting default units for thermodynamic quantities, selecting the input and output options, changing the program input and output units
  2. System Data Manipulation Subroutines. For example, identifying system components, phases, and constituents, redefining the system components, changing the status of components and phases or the system reference state.
  3. Condition, Stream and Segment Subroutines. For example, defining conditions for an equilibrium calculation, setting conditions for a thermodynamic equilibrium calculation, and setting a new equilibrium segment.
  4. Calculations and Results Subroutines. For example, calculate equilibriums, get molar Gibbs energy values, and calculate interfacial energy between a matrix phase and a precipitate phase.
  5. Miscellaneous Subroutines. For example, reinitiate the calculation workspace, set error codes and messages, or set equilibrium calculation options.

Essentially, only subroutines 1, 3, and 4 are required to use the TQ- Interface. In the simplest case, only one or two subroutines are needed from each category.

Additional subroutines are grouped as follows: