Gibbs Energy System (GES) Examples

Using the Gibbs Energy System (GES) module, this example calculates the CVM and compares it with the sublattices of a fictitious A B system. You also learn how to overlay diagrams from two calculations.
This example uses some GES commands that are not yet supported by GES6. Therefore, we enforce the use of GES5.
These GES commands are of note and used in this example:

This example uses the Gibbs energy system (GES) module to calculate the Morral rose, which are miscibility gaps.
These commands are of note and used in this example:

This example shows how to calculate the reversible Carnot cycle of a heat engine using one mole of an ideal gas with two fictitious species A and A2. The GES, POLY3, and POST modules are used, as well as the SUBDEMO database, which is included with your installation.
One application of the Second Law is to the efficiencies of heat engines, pumps and refrigerators. Whenever there is a difference of temperature, work can be produced - the principle of heat engines. The Gibbs energy also enables the prediction of the maximum work that a process may achieve. The goal of this example is to help relate the results to different thermodynamic quantities.
These commands are of note and used in this example:

This example shows how to enter parameters for a FACT quasichemical liquid model and how to calculate the sulfur activity using the GIBBS_ENERGY_SYSTEM (GES) module commands.
This example uses some GES commands that are not yet supported by GES6. Therefore, the example uses GES5.
These commands are of note and used in this example:

Solution Models in the GIBBS (GES) Module
This example uses some GES commands that are not yet supported by GES6. Therefore, the example uses GES5.
This example shows how to change the excess models for binary and ternary interactions in a solution phase, either
- through direct interactive amendments of phase descriptions within the GIBBS_ENERGY_SYSTEM (GES) module, or
- enforced by specific type-definitions given in a database file retrieved by the DATABASE_RETRIEVAL module (also called the TDB module).
For binary excess models, the example changes it from the default R-K model to a Mixed-Excess-Model. The phase has to be a substitutional phase in this case.
For ternary extrapolation models, the example changes it from the default R-K-M model to a Toop_Kohler model.
Notes Related to the Example
The following is included in the macro file as part of the instructions but may be of use to new users:

The default binary excess model is the Redlich-Kister Model for all the three associated binary interaction pairs (A-B, A-C and B-C) in the substitutional LIQUID solution phase (without sublattice) that consists of three elements (A, B and C).
Before changing this default binary excess model for the ternary LIQUID solution phase, one must have already entered the G parameters (for standard Gibbs energies of all pure end-members) and L parameters (for binary R-K excess interaction energies), as shown in the example.
In this particular example, we want to change from the default R-K binary excess model to the Mixed-Excess-Model (with three different binary excess models, namely Legendre, Polynom and Redlich-Kister models, applied to the A-B, A-C and B-C binaries, respectively), as demonstrated below:
For the A-B interaction, the Legendre binary excess model should be used (rather than the default Redlich-Kister Model), with the first species (i.e. A) as the independent constituent and the second species (i.e. B) as the dependent constituent, while the L parameters for the A-B interaction shall remain the same as those handled by the R-K model.
For the A-C interaction, the Polynom binary excess model should be used (rather than the default Redlich-Kister Model), with the second species (i.e. C) as the independent constituent and the first species (i.e. A) as the dependent constituent, while the L parameters for the A-C interaction shall remain the same as those handled by the R-K model.

The default ternary excess model is the Redlich-Kister_Muggianu Model (i.e., the MUGGIANU_RESTOR method for ternary extrapolation based on binary parameters) for the associated ternary interaction terms; when no ternary L parameter is entered for that, such a default Redlich-Kister_Muggianu Model is thus to be used for extrapolation from binary excess energies to ternary interactions in the substitutional LIQUID solution phase (without sublattice) that consists of three elements (A, B and C).
However, in this particular example as illustrated in the following, we shall change from this default R-K-M ternary excess model to the TOOP-KOHLER method for the ternary extrapolation method, with the species C as the Toop constituent, while the species A and B as the Kohler constituents (entering A and B, or B and A, as the basis constituent and first interacting constituent). This will implicitly enforce that, during the ternary extrapolation, only the A-B binary interaction parameters are utilized in accordance with the Kohler ternary extrapolation formula for A-B-C ternary interaction, while any other binary interaction parameters used in line with the Toop-Kohler ternary extrapolation formula (for the A-C-B and B-C-A ternary interactions). This makes the extrapolated ternary excess interaction terms different from those handled either by the default MUGGIANU_RESTOR method or by the alternative KOHLER-ALL method.
Note that only when all the relevant binary excess energies in a ternary system are treated by the default Redlich-Kister Model (i.e., the Mixed-Excess-Model should have not been used), the MUGGIANU_RESTOR method for ternary extrapolations is equivalent to the Redlich-Kister_Muggianu Model, or the KOHLER-ALL method to the Redlich-Kister_Kohler Model.