Entering Optimizing Variables in Parameter Specifications
There are ninety-nine predefined variables in the PARROT module which you can use in your optimization. These variables are referred to as V1
, V2
, V3
, … V98
and V 99
. When the GIBBS workspace is initialized, all optimizing variables are set to a fixed numerical value of zero. When you do an optimization, there is always some variable for which you want to evaluate the best value, but you can assign fixed values to optimizing variables too. It is often useful to enter all the variables that you can conceivably want to optimize, and then you can interactively select and change which variable to focus at various stages of the optimization.
The setup file excerpts that follow show how optimizing variables are entered. However, before the optimizing variables are introduced in this example, the following command enters an ionic liquid solution phase (a phase for which you have some experimental information):
ENTER_PHASE IONIC_LIQ Y,
AL+3,ZR+4 ; ALO2-1,O-2 ; N N
This ENTER_PHASE command enters a phase called IONIC_LIQ into the GIBBS workspace. This phase is of the type ionic liquid solution, which is specified by type code Y
. Such a phase is modeled by the Ionic Two Sublattice Liquid Model. The next two arguments specify the two sublattices, in this case the cations AL+3,ZR+4 and the anions ALO2-1,O-2. Components that interact in a sublattice are separated by a comma. The first N
at the end means that no additional constituents are added to the phase. The second N
means that a list of possible parameters for the phase should not be shown in the console.
There are model parameters that describe the phase which you do not want to optimize, in which case the Gibbs energy expression of the parameter does not contain any optimizing variables.

For example, the following parameters of the IONIC_LIQ phase do not contain any optimizing variables:
ENTER_PARAMETER G(IONIC_LIQ,AL+3:ALO2-1;0) 298.15 +2*GAL2O3_L; 6000 N
ENTER_PARAMETER G(IONIC_LIQ,AL+3:O-2;0) 298.15 +GAL2O3_L+400000; 6000 N
ENTER_PARAMETER G(IONIC_LIQ,ZR+4:O-2;0) 298.15 +2*GZRO2L; 6000 N
These parameters define the Gibbs energy expressions for three constituents in the constituent array, namely AL+3:ALO2-1, AL+3:O-2 and ZR+4:O-2. The names that occur in these expressions—that is, GAL2O3_L and GZRO2L—are the names of complex functions of temperature that are entered in the GIBBS workspace with the ENTER_SYMBOL command.
The numbers that frame the Gibbs energy expressions specify the temperature range within which the expression should be applied. In the above, the expressions are applied in a temperature range from 298.15 K to 6000 K.

In this example, suppose that you want to optimize the model parameter for the ZR+4:ALO2-1 combination, then you could enter the variables V1 and V2 in the Gibbs energy expression for that parameter in the following way:
ENTER_PARAMETER G(IONIC_LIQ,ZR+4:ALO2-1;0) 298.15 +GZRO2L +2*GAL2O3_L +V1+V2*T; 6000 N
You normally have different optimizing variables in different parameters, but in some cases you may want several parameters to vary together, in which case you can use the same variable in the Gibbs energy expressions of several parameters.