Skip to content
MAGEMin framework

Problem Definition

Finding the most stable phase assemblage is a challenging constrained optimization problem including both equality and inequality constraints. One has to minimize the Gibbs energy (1) of the system while satisfying the Gibbs-Duhem (2) and mass equality constraints (3) while also satisfying the mixing-in-sites inequality constraints (4).

1. Total Gibbs Energy

The Gibbs energy of a multi-component multiphase system is given by the weighted summation of the chemical potentials of all end-members and pure phases:

Gsys=λ=1Λnλi=1Nλμi(λ)pi(λ)+ω=1Ωnωμω

where nλ is the molar fraction of the solution phase, pλ is the molar fraction of the endmembers, and nω is the molar fraction of the pure phase.

The chemical potential of a phase is either a constant for a condensed (pure) phase:

μi=Gi0

or a function for a phase within a solution:

μi=Gi0+RTlog(ai)+Giex

where ai is the thermochemical activity related to the mole fraction and the activity coefficient by:

ai=xiγi

For the case of ideal mixing between the end-members, the activity coefficient is unity. The mixing of a species dissolved in a condensed phase, however, rarely behaves ideally and is typically a function of both temperature and composition (mixing-on-sites formulation).

2. Gibbs-Duhem Constraint

The Gibbs-Duhem constraint is defined as:

j=1CΓjaijμi=0

where Γj is the chemical potential of pure component (oxide) j and aij is the molar composition of component j in end-member/pure phase i.

3. Mass Constraint

The mass equality constraint is defined as:

λ=1Λnλi=1Nλaij(λ)pi(λ)+ω=1Ωnωaωjbj=0

where aij is the molar composition of component j in end-member i, and aωj is the molar composition of component j in a pure phase.

Minimization Approach

The Gibbs minimization approach employed in MAGEMin combines discretization of the equations of state in composition space with linear programming and extends the mass-constrained Gibbs-hyperplane rotation method to account for the mixing-on-sites that takes place in silicate mineral solid solutions. For an exhaustive description of the methodology, see Riel et al. (2022).

MAGEMin framework

Algorithm Demonstration

A simplified example of the Gibbs energy minimization approach used in MAGEMin is provided at:

GitHub Repository

This MATLAB application includes two pure phases, sillimanite and quartz, and activity-composition (a-x) relations for feldspar (pl4T, Holland et al., 2021) in a reduced Na2O-CaO-K2O-Al2O3-SiO2 (NCKAS) chemical system.

References

  • Holland, T. J. B., Green, E. C. R., & Powell, R. (2021). A thermodynamic model for feldspars in KAlSi3O8-NaAlSi3O8-CaAl2Si2O8 for mineral equilibrium calculations.

  • Riel N., Kaus B.J.P., Green E.C.R., Berlie N., (2022) MAGEMin, an Efficient Gibbs Energy Minimizer: Application to Igneous Systems. Geochemistry, Geophysics, Geosystems 23, e2022GC010427 https://doi.org/10.1029/2022GC010427