Appendix J: Alphabetical list of ChemApp subroutines

Table 25: Alphabetical list of ChemApp subroutines

Subroutine Group Function
TQCE 5 Calculates the chemical equilibrium
TQCEL 5 Calculates the chemical equilibrium and gives a result table (ChemSage format)
TQCEN 5 Calculates the chemical equilibrium, taking results from the previous equilibrium calculation as initial estimates
TQCENL 5 Calculates the chemical equilibrium, taking results from the previous equilibrium calculation as initial estimates, and gives a result table (ChemSage format)
TQCIO 1 Changes the value of an output option
TQCLIM 5 Changes limits of target variables
TQCLOS 1 Closes a file
TQCPRT 1 Gets copyright message
TQCSC 2 Changes the system components
TQCSP 3 Changes the status of a phase
TQCSPC 3 Changes the status of a phase constituent
TQCSU 1 Changes a system unit
TQERR 5 Gets an error message
TQGDPC 5 Gets thermodynamic data for a phase constituent
TQGETR 5 Gets calculated equilibrium results
TQGIO 1 Gets the value of an output option
TQGNLC 2 Gets the name for a sublattice constituent
TQGNP 2 Gets the name for a phase
TQGNPC 2 Gets the name for a phase constituent
TQGNSC 2 Gets the name for a system component
TQGSP 3 Gets the status of a phase
TQGSPC 3 Gets the status of a phase constituent
TQGSU 1 Gets a system unit
TQGTED 1 Gets the expiration date of the ChemApp license
TQGTHI 1 Gets the HASP dongle type and id
TQGTID 1 Gets the user ID of the license holder of ChemApp
TQGTLC 5 Gets the calculated equilibrium sublattice site fraction
TQGTNM 1 Gets the name of the license holder of ChemApp
TQGTPI 1 Gets the ID of the program
TQGTRH 1 Retrieves information stored in the header of a transparent file
TQINI 1 Initialises ChemApp
TQINLC 2 Gets the index number for a sublattice constituent
TQINP 2 Gets the index number for a phase
TQINPC 2 Gets the index number for a phase constituent
TQINSC 2 Gets the index number for a system component
TQLITE 1 Checks whether ChemApp light is used
TQMAP 5 Calculates a one-dimensional phase map
TQMAPL 5 Calculates a one-dimensional phase map and gives a result table (ChemSage format)
TQMODL 2 Gets the model name for a phase
TQNOLC 2 Gets the number of sublattice constituents
TQNOP 2 Gets the number of phases
TQNOPC 2 Gets the number of phase constituents
TQNOSC 2 Gets the number of system components
TQNOSL 2 Gets the number of sublattices
TQOPEN 1 Opens a file
TQOPNA 1 Opens a thermochemical data-file in ASCII format
TQOPNB 1 Opens a thermochemical data-file in binary format
TQOPNT 1 Opens a thermochemical data-file in transparent format
TQPCIS 2 Checks if a phase constituent is permitted as incoming species
TQRBIN 1 Reads a thermodynamic data-file in binary format
TQRCST 1 Reads a thermodynamic data-file in transparent format
TQREMC 4 Removes an equilibrium condition
TQRFIL 1 Reads a thermodynamic data-file in ASCII format
TQSETC 4 Sets an equilibrium condition
TQSHOW 5 Shows present settings
TQSIZE 1 Gets the internal array dimensions of ChemApp
TQSTCA 4 Sets constituent amounts for a stream
TQSTEC 4 Sets an equilibrium condition with input conditions defined by streams
TQSTPC 2 Gets the stoichiometry of a phase constituent
TQSTRM 4 Removes a stream
TQSTSC 2 Gets the stoichiometry of a system component
TQSTTP 4 Sets name, temperature, and pressure for a stream
TQSTXP 5 Gets thermodynamic properties of a stream
TQUSED 1 Gets the dimensions of the currently loaded thermochemical system
TQVERS 1 Gets the ChemApp version number
TQWSTR 1 Writes a character string to the units associated with 'LIST' or 'ERROR'


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