2.11: TQUSED | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
TOC | Group 1 | TQSIZE | TQGIO | Group 2 | A-Z | Group 1 |
Use TQUSED to get the dimensions of the currently loaded thermochemical system.
Added for ChemApp version 4.0.0
FORTRAN: CALL TQUSED(NA,NB,NC,ND,NE,NF,NG,NH,NI,NJ,NK,NOERR)
C: tqused(&na,&nb,&nc,&nd,&ne,&nf,&ng,&nh,&ni,&nj,&nk,&noerr)
;
Pascal: tqused(na,nb,nc,nd,ne,nf,ng,nh,ni,nj,nk,noerr)
;
Basic: Call tqused(na,nb,nc,nd,ne,nf,ng,nh,ni,nj,nk,noerr)
Name | Type | Value set on call or returned |
NA | INTEGER | Returns the number of constituents |
NB | INTEGER | Returns the number of system components |
NC | INTEGER | Returns the number of mixture phases |
ND | INTEGER | Returns the highest number of excess Gibbs energy coefficients for a mixture phase |
NE | INTEGER | Returns the highest number of excess magnetic coefficients for a mixture phase |
NF | INTEGER | Returns the highest number of sublattices for a mixture phase |
NG | INTEGER | Returns the highest number of constituents of a sublattice |
NH | INTEGER | Returns the highest number of oxide constituents of a phase described by the Gaye-Kapoor-Frohberg or modified quasichemical formalisms |
NI | INTEGER | Returns the highest number of Gibbs energy/heat capacity equations for a constituent |
NJ | INTEGER | Returns the number of Gibbs energy/heat capacity equations |
NK | INTEGER | Returns the number of constituents with P,T-dependent molar volumes |
NOERR | INTEGER | Returns an error number |
TQUSED resembles TQSIZE and mirrors its parameters. The difference is that TQUSED returns the values for the currently loaded thermochemical system, whereas TQSIZE returns the maximum values for these parameters, and thus indicates the size of the internal arrays in ChemApp.
TQUSED was introduced as a support subroutine for transparent data-files, but might be used by a ChemApp programmer to check how much larger a thermochemical system contained in a data-file can be before the internal limits of the ChemApp library used (light, standard, or extended) are reached. In this case the parameters NA through NK returned by TQUSED would be compared to the parameters of the same name TQSIZE returns.
See TQSIZE
ChemApp Programmer's Manual, Edition 3.6 | © GTT-Technologies, 2003 |