PetThermoTools Workshop
Thermodynamic Modeling and the MELTS Family of Models
1. Why Thermodynamic Modeling Is Needed in Igneous Petrology
Igneous petrology examines the formation and evolution of magmas and igneous rocks. Natural magmatic systems are difficult to interpret because the processes involved are usually distributed across:
Long periods of time
Different depths within Earth
Changing temperatures and pressures
Multiple compositional reservoirs
Several interacting minerals, melts, and volatile phases
A single laboratory experiment rarely reproduces every aspect of the natural process responsible for forming a particular rock or suite of rocks. Instead, petrologists combine:
Natural observations of rocks and minerals
Experimental data from laboratory studies
Thermodynamic or empirical models that integrate the observations and experiments
The model then allows a proposed geological process to be tested against the observed characteristics of rocks.
Thermodynamic modeling provides a way to combine many experimental results and calculate whether a proposed sequence of equilibrium processes could produce the observed rocks.
Simplified Phase Diagrams
Petrologists have traditionally reduced natural systems to a small number of chemical components and represented their behavior using phase diagrams. These diagrams are powerful because they provide intuition about:
Which phases are stable
How phase compositions change
The temperatures and pressures at which phases appear or disappear
How melts evolve during crystallization or melting
However, most natural magmas contain many components. Systems may involve six, seven, eight, ten, or even twelve important chemical components. A low-component phase diagram therefore rarely gives a complete description of a natural magmatic system.
Thermodynamic models are needed to handle these high-dimensional systems and to combine knowledge about many phases and components.
2. Empirical Models, Machine Learning, and Thermodynamic Models
Empirical Models
An empirical model is constructed by fitting mathematical functions directly to experimental measurements. The general procedure is:
Collect experimental data.
Choose a mathematical form to represent the relationships.
Fit the parameters of that function to the data, often using regression.
Use the fitted function to interpolate between experimental conditions.
Sometimes extrapolate beyond the conditions of the experiments.
Empirical equations can be very useful when the available experiments directly address the question being studied. For example, an experimentally calibrated equation may predict a mineral–melt partition coefficient.
The major danger is extrapolation. Empirical functions are selected because they fit a particular dataset, not necessarily because they represent general physical principles. Predictions can therefore become unreliable outside the range of the calibration experiments.
Machine-Learning Models
Machine learning provides a powerful modern approach to empirical model building. However, it has a similar fundamental limitation: it requires a dataset that is directly relevant to the desired prediction.
For example, to predict the distribution coefficient of iron and magnesium between liquid and olivine, the most useful training data would be measurements of that specific liquid–olivine distribution coefficient. Measurements of unrelated properties of liquids and olivines may not be sufficient, even if they seem indirectly relevant.
Thermodynamic Models
Thermodynamic modeling attempts to construct models that are more general than empirical fits. A thermodynamic model is based on relationships between:
Pressure
Temperature
Composition
Phase stability
Chemical potentials
Energy and entropy
If the model is sufficiently accurate, it can predict equilibrium properties under conditions that were not directly included in the calibration experiments.
This approach is most appropriate when equilibrium provides a reasonable approximation to natural processes. Igneous petrology is particularly suited to this approach because many magmatic processes involve crystallization, melting, dissolution, and volatile exsolution that can approach equilibrium, at least locally or temporarily.
3. The MELTS and Holland–Powell Modeling Families
The MELTS family was developed primarily for igneous petrology. Its goal is to calculate equilibrium relationships among silicate melts, minerals, and volatile phases.
The Holland–Powell family represents a parallel thermodynamic modeling effort that historically emphasized metamorphic petrology more strongly. Both model families can now calculate systems below and above the solidus, allowing direct comparisons between them.
A major advantage of PetThermoTools is that it provides a common input and output format for calculations using both:
MELTS-based models
Holland–Powell-based models, including those accessed through Perple_X or similar systems
Previously, comparing the two model families required learning separate software systems and formatting inputs and outputs differently. A common interface makes side-by-side comparison much more practical.
4. Thermodynamic Principles Underlying Equilibrium Calculations
4.1 The Fundamental Thermodynamic Relationship
The first and second laws of thermodynamics can be combined into the inequality:
where:
E is internal energy
T is temperature
S is entropy
P is pressure
V is volume
μi is the chemical potential of component i
ni is the number of moles of component i
The summation accounts for changes in the amounts of all chemical components in the system.
Constant-Entropy, Constant-Volume, Constant-Composition Conditions
If the system is held at:
Constant entropy, so dS=0
Constant volume, so dV=0
Constant composition, so dni=0 for every component
then the right-hand side becomes zero:
Under these conditions:
A reversible process leaves the internal energy unchanged.
A spontaneous process decreases the internal energy.
Equilibrium is reached when no spontaneous process can further change the system.
The equilibrium state corresponds to the minimum internal energy.
Although this is a correct thermodynamic statement, experiments are rarely performed under constant entropy and constant volume. More useful energy functions are therefore defined for other sets of externally controlled variables.
4.2 Thermodynamic Potentials
Thermodynamic potentials are modified energy functions designed to describe systems under experimentally convenient constraints. Important potentials include:
Internal energy
Enthalpy
Helmholtz free energy
Gibbs free energy
A potential appropriate for exchanging oxygen with an external reservoir
Each potential is minimized under a different set of independent variables.
Gibbs Free Energy
The differential of the Gibbs free energy is:
At constant temperature, pressure, and composition:
Therefore:
A spontaneous process decreases the Gibbs free energy, and equilibrium is the configuration with the lowest possible Gibbs free energy.
At fixed temperature, pressure, and bulk composition, MELTS generally finds equilibrium by minimizing the Gibbs free energy.
Other Equilibrium Conditions
MELTS can also perform calculations using other thermodynamic constraints.
Isentropic Calculations
Entropy is fixed instead of temperature.
The enthalpy is minimized.
These calculations describe systems evolving at constant entropy.
Isochoric Calculations
Volume is fixed instead of pressure.
The Helmholtz free energy is minimized.
This is useful for systems such as closed melt inclusions or fluid inclusions, where volume may be constrained.
Oxygen-Buffered Calculations
The number of moles of oxygen is replaced as an independent variable by the chemical potential of oxygen. The chemical potential of oxygen is related to its fugacity, fO2.
This allows equilibrium to be calculated at fixed:
Temperature
Pressure
Oxygen fugacity
Composition of the non-mobile components
Such calculations are useful for modeling oxygen-buffered equilibria.
4.3 Why the Gibbs Energy Function Is Central
If a model provides the Gibbs energy G as a differentiable function of pressure, temperature, and composition for every possible phase, many other thermodynamic quantities can be obtained from its derivatives.
For example:
and
Once entropy and volume are known, other thermodynamic functions can be calculated, including:
Enthalpy
Helmholtz free energy
Internal energy
Thus, the central requirement of a thermodynamic model is a sufficiently accurate and differentiable expression for the Gibbs energy of every phase that may occur.
5. What an Equilibrium Calculation Does
A thermodynamic equilibrium calculation requires enough constraints to uniquely determine the equilibrium state.
5.1 Required Inputs
The model generally requires:
Bulk Composition
The bulk composition specifies the total mass of each chemical component in the system. In MELTS, the bulk composition is commonly represented as the mass of each oxide component.
Two Independent Intensive Variables
The most common choices are:
Pressure and temperature
Volume and temperature
Pressure and entropy
Pressure and enthalpy
Optional Constraints
The calculation may also specify:
Oxygen fugacity, fO2
Water activity
Other constraints associated with volatile exchange
5.2 Distribution of Components Among Phases
Given the bulk composition and thermodynamic constraints, the model searches through possible distributions of matter among all phases included in its database.
Potential phases include:
Silicate melt
Vapor
Pure mineral phases
Mineral solid solutions
Multiple coexisting liquids
Metallic alloys under strongly reducing conditions
The model determines the phase assemblage and compositions that minimize the relevant thermodynamic potential.
The output can include:
Amount of each phase
Composition of each phase
Mineral proportions
Melt composition
Vapor composition
Density of the system
Other thermodynamic properties
6. From Single Equilibria to Geological Processes
A single equilibrium calculation describes one point in pressure–temperature–composition space. Natural magmatic processes usually follow a path through this space.
A process can be modeled by repeatedly calculating equilibrium while changing one or more variables between steps.
Examples include:
Cooling in a magma chamber
Decompression during magma ascent
Melting during mantle upwelling
Crystallization
Assimilation of surrounding rocks
Degassing
Mixing between reservoirs
At each step, the result of the previous calculation can provide the initial guess for the next one.
6.1 Fractional Crystallization
Perfect fractional crystallization can be approximated by the following procedure:
Calculate equilibrium at an initial temperature and pressure.
Identify the solids that crystallize.
Remove those solids from the system.
Lower the temperature by a small increment.
Recalculate equilibrium using the remaining melt.
Repeat the process.
This procedure is only stepwise fractional crystallization because finite temperature increments are used. However, as the size of each step approaches zero, the calculation converges toward continuous perfect fractional crystallization.
6.2 Forward Modeling
Forward modeling begins with a proposed geological scenario and calculates its consequences.
Examples include:
Decompression melting of mantle peridotite
Fractional crystallization of a magma
Assimilation and fractional crystallization
Degassing during ascent
Crystallization during cooling
The calculated results are then compared with observations. Forward modeling is generally the most intuitive application of MELTS because it directly tests whether a proposed process can produce the measured rock and mineral compositions.
6.3 Inverse Modeling
Inverse modeling begins with observations and attempts to infer the conditions or processes that produced them.
Unknown parameters might include:
Mantle potential temperature
Source composition
Degree of melting
Pressure of melting
Amount of assimilant
Crystallization conditions
The model searches for parameter values that provide the best match to the observations.
6.4 Phase Diagrams
Thermodynamic models can also produce phase diagrams. A phase diagram maps the equilibrium assemblage as a function of selected independent variables, such as:
Temperature
Pressure
Bulk composition
Oxygen fugacity
Phase diagrams provide a visual representation of where particular phases are stable and how phase assemblages change.
7. Requirements for a Thermodynamic Modeling System
A complete thermodynamic modeling system requires three broad classes of tools.
7.1 Thermodynamic Phase Models
For every possible phase, the system needs a function describing Gibbs energy as a function of:
Pressure
Temperature
Composition
The function must also provide the necessary derivatives, such as entropy and volume.
The database must include models for:
Minerals
Mineral solid solutions
Silicate liquids
Carbonate-bearing liquids
Vapor
Metallic phases, where relevant
7.2 Equilibrium Algorithms
The system requires numerical algorithms that can:
Evaluate the thermodynamic functions
Search possible phase assemblages
Minimize the appropriate thermodynamic potential
Determine stable phase compositions
Detect when phases should appear or disappear
Identify multiple coexisting phases
7.3 Auxiliary Algorithms and Bookkeeping
Additional procedures are required to manage complex calculations, including:
Selecting which phases are allowed in a calculation
Removing phases that become unstable
Detecting miscibility gaps
Splitting one phase into two compositions when required
Adding assimilant
Removing crystallized phases during fractional crystallization
Passing results from one calculation step to the next
Storing and reporting the results
7.4 User Interfaces
An interface translates between human instructions and the numerical model. It must make it possible to:
Define the bulk composition
Set pressure and temperature paths
Select the thermodynamic model
Specify phase constraints
Start calculations
Retrieve and visualize results
Automate repeated calculations
PetThermoTools is an interface to existing thermodynamic models rather than an entirely new equilibrium model. Many available interfaces use essentially the same underlying algorithms, with relatively minor differences in implementation and usability.
8. Versions of the MELTS Model
The MELTS name is used with several prefixes and suffixes. These can refer either to different thermodynamic models or to different software interfaces. The actual thermodynamic models are relatively stable and have changed less frequently than their interfaces.
8.1 Original MELTS
Released in 1995
Designed for igneous systems at relatively low pressure
Now obsolete
No longer supported by current interfaces
The original model should not be used because later versions correct important problems, especially those involving quartz saturation and high-silica systems.
8.2 pMELTS
Released in 2002
Recalibrated primarily for high-pressure melting
Designed especially for peridotite and pyroxenite bulk compositions
Most appropriate at approximately 1–3 GPa
pMELTS incorporated many additional high-pressure experiments and modified aspects of the equations of state. It provides substantially improved predictions for mantle melting at high pressure.
However, pMELTS is not universally superior to the original low-pressure formulation. Its pressure-independent mixing assumptions and imperfect equations of state mean that improving the high-pressure behavior can worsen predictions at low pressure.
Therefore:
pMELTS is preferred for many mantle-melting calculations at 1–3 GPa.
Standard low-pressure MELTS-type models are generally preferable at pressures below approximately 0.5 GPa.
8.3 pHMELTS
pHMELTS is designed for calculations involving extremely small amounts of water in nominally anhydrous mantle minerals.
It is useful for systems in which:
The bulk water content is very low
Water is stored in nominally anhydrous minerals
Small quantities of water may be released into a melt during mantle melting
8.4 Rhyolite-MELTS 1.0
First introduced in 2012
Supersedes the original MELTS model
Particularly important for natural silicic and rhyolitic systems
Provides improved behavior for quartz-saturated, water-bearing felsic magmas
Rhyolite-MELTS 1.0 corrected important problems in the high-silica region of the model.
8.5 Rhyolite-MELTS 1.1 and 1.2
Later developments introduced improved treatment of:
Mixed water–carbon dioxide vapor
Carbon dioxide dissolved in silicate melt
Volatile solubility and degassing
Two related versions were created because improving volatile behavior required changing the water-mixing parameters, which affected the model’s ability to reproduce the wet granite minimum.
Rhyolite-MELTS 1.1
Includes carbon dioxide
Retains the older water-mixing parameters
Better for quartz-saturated rhyolitic systems, especially those related to the wet granite minimum
Appropriate for CO₂-bearing rhyolites where accurate granite-minimum behavior is important
Rhyolite-MELTS 1.2
Uses the revised water and carbon dioxide calibration
Provides the best predictions for mixed H₂O–CO₂ vapor behavior and degassing
Preferred for most other CO₂-bearing systems, including:
Basaltic systems
Alkaline systems
Systems where quartz saturation and the granite minimum are not the primary concern
9. Choosing an Appropriate MELTS Model
The choice of model depends on pressure, composition, volatile content, and the type of magmatic system.
Mantle Melting at High Pressure
Use pMELTS when:
Modeling peridotite or pyroxenite mantle melting
The pressure is approximately 1–3 GPa
Natural-Magma Crystallization at Low to Moderate Pressure
MELTS-type models are designed primarily for:
Natural magmas
Crystallization between approximately 0 and 2 GPa
MELTS is not intended for:
Highly simplified chemical systems
Many ceramic applications
Extremely high-pressure systems such as those near 10 GPa
Systems Without Water or Carbon Dioxide
Use Rhyolite-MELTS 1.0 when:
No fluid phase is present
The melt does not contain dissolved H₂O or CO₂
If quartz saturation is not involved, MELTS and Rhyolite-MELTS generally produce identical results.
Quartz-Saturated, Fluid-Saturated Felsic Systems
Use Rhyolite-MELTS 1.1 when:
The system is quartz saturated
The magma evolves toward the fluid-saturated granite minimum
Accurate reproduction of wet granite-minimum behavior is important
Other CO₂-Bearing Systems
Use Rhyolite-MELTS 1.2 for most other systems containing CO₂, especially:
Basaltic magmas
Alkaline magmas
Mixed H₂O–CO₂ degassing systems
Systems where granite-minimum behavior is not the central issue
10. Why Different MELTS Versions Were Developed
10.1 High-Pressure Errors in Original MELTS
Experiments on fertile lherzolite melting at approximately 1 GPa revealed systematic errors in the original MELTS model.
The original model did correctly predict an initially increasing silica content at low melt fractions, a behavior that was not widely recognized at the time. However, it differed from the experimental silica concentrations by roughly three weight percent and produced systematic temperature errors of approximately 100∘C.
pMELTS improved the predictions by:
Adding more high-pressure experimental constraints
Modifying equations of state
Recalibrating the model for mantle-pressure melting
The improvement was significant at high pressure, although it came at the cost of less accurate behavior at low pressure.
10.2 Quartz Saturation and the Bishop Tuff
The original model had relatively few quartz-saturated experiments in its calibration database. This was a serious problem because the activity–composition relationship in high-silica melts is very flat, making the predicted behavior highly sensitive to small parameter errors.
When crystallization of the Bishop Tuff was simulated using the older model:
The model predicted a broad crystallization interval of approximately 100∘C.
Feldspar appeared on the liquidus.
The liquid evolved toward quartz before reaching a eutectic.
The natural Bishop Tuff instead lies close to the wet granite-minimum eutectic and crystallized over a much narrower temperature interval.
Rhyolite-MELTS corrected this behavior by adjusting the standard-state properties of:
Quartz
Sanidine
These adjustments remained within experimental uncertainties but caused the Bishop Tuff composition to behave as a eutectic system, transitioning from nearly all liquid to nearly all solid over a narrow temperature interval.
Additional adjustments were later made for silica polymorphs such as:
Cristobalite
Tridymite
This corrected inconsistencies in the silica phase relations.
If quartz saturation is irrelevant, MELTS and Rhyolite-MELTS are effectively identical. If quartz saturation is important, the original MELTS model is inappropriate and Rhyolite-MELTS should be used.
10.3 Water and Carbon Dioxide Calibration
In 2015, the model was extensively calibrated for:
H₂O in vapor
CO₂ in vapor
Mixed H₂O–CO₂ vapor
CO₂ dissolved in silicate melt
This produced accurate predictions of volatile solubility and degassing.
However, the revised water-mixing parameters no longer reproduced the wet granite minimum as accurately as Rhyolite-MELTS 1.0. This led to the development of Rhyolite-MELTS 1.1 and 1.2, which prioritize different applications.
11. Phases Represented in MELTS
MELTS contains a library of phases that may crystallize from or coexist with silicate melt.
11.1 Pure Solid Phases
Some phases are treated as nearly pure solids containing one principal component. For these phases, the model primarily requires their standard-state thermodynamic properties.
11.2 Vapor
The vapor phase may consist of:
Water
Carbon dioxide
A mixture of water and carbon dioxide
The standard MELTS volatile treatment does not include a broad range of reduced volatile species.
11.3 Metallic Alloys
Under highly reducing conditions, the model can allow iron–nickel alloy to occur as:
A solid alloy
A liquid alloy
11.4 Mineral Solid Solutions
Much of the power of MELTS comes from its solid-solution models. These include:
Pyroxenes
Olivines
Garnets
Feldspars
Biotite
Spinels
Rhombohedral oxides
Simplified amphiboles
Feldspars
In some interfaces, alkali feldspar and plagioclase are treated as one feldspar phase. In alphamelts and related implementations, they are separated so that different trace-element partition coefficients can be assigned to them.
Spinels
The spinel solid solution extends across several compositions, including:
Mg–Al spinel
Hercynite
Chrome spinel
Magnetite
Ulvöspinel
The term “spinel” therefore refers to a broad compositional solid solution. The actual composition must be examined to determine whether a calculated spinel is primarily:
Aluminum spinel
Chrome spinel
Magnetite
Ulvöspinel
Rhombohedral Oxides
The rhombohedral oxide model includes compositions related to:
Ilmenite
Fe³⁺–Ti³⁺ oxide components
Hematite
Pyrophanite
Ecandrewsite or related oxide components
Two-oxide oxybarometry commonly examines equilibrium between:
The rhombohedral oxide phase
The spinel phase
Although this may be described geologically as an ilmenite–magnetite equilibrium, MELTS represents both minerals within broader solid-solution phase models.
12. Limitations of the Mineral Models
Several mineral models are simplified and do not include all chemically important components.
Missing or incompletely represented components occur in:
Pyroxenes
Garnets
Micas
Amphiboles
Amphibole as a Major Limitation
Amphibole is particularly difficult to model accurately. Natural amphiboles commonly contain:
Potassium-site vacancies
Manganese
Titanium
Fluorine
Non-stoichiometric substitutions
Other minor components
These substitutions increase the configurational entropy of amphibole and lower its Gibbs energy. As a result, natural amphiboles can be stable in many igneous systems.
A simplified hornblende model may fail to crystallize in a calculation even when amphibole is expected in nature. The simplified phase has a higher Gibbs energy than a chemically complex natural amphibole and is therefore predicted to be unstable.
A fully satisfactory amphibole model would need to include the relevant minor components and substitutions. Until then, amphibole predictions should be interpreted cautiously.
13. Solid-Solution Thermodynamics
A solid-solution model describes how different chemical components mix within a crystal structure.
Constructing such a model requires determining:
The number of crystallographic sites
Which ions can occupy each site
The allowed compositional range
How ions are distributed among sites
Which order parameters describe site ordering
An order parameter describes the distribution of an ion among multiple crystallographic sites when the same ion can occupy more than one site.
Most users do not need to manipulate these details directly, but the representation becomes important when setting up simplified chemical systems.
Pyroxene Components
Pyroxenes may include familiar components such as:
Diopside
Hedenbergite
Enstatite
Jadeite
Ferric iron, aluminum, and titanium may be represented using specially defined components such as:
Essenite
Buffonite
Aluminobuffonite
These components are mathematical representations that allow combinations of ferric iron, aluminum, and titanium to be incorporated into the pyroxene model.
Some individual model components may have negative amounts. This is acceptable if the resulting amounts of the actual chemical ions on the crystallographic sites are nonnegative.
14. Numerical Problems in Simplified Systems
MELTS is primarily intended for natural compositions that contain small but nonzero amounts of many components. Problems can occur when simplified systems are assigned exactly zero amounts of certain elements.
For example, if a system contains aluminum but exactly zero titanium and zero ferric iron, the model may require two component amounts to cancel exactly in order to produce zero titanium. Because of computer roundoff, two values that should cancel may instead sum to a small negative number, such as:
The model may then attempt to calculate the logarithm of this negative quantity:
which is undefined for real-valued thermodynamic calculations and can cause the calculation to crash.
Practical Implication
When using MELTS for simplified systems:
Avoid setting relevant components exactly to zero.
Include very small nonzero amounts instead.
A small amount, such as 0.1 g, may be sufficient in some cases.
This is especially important for aluminum, ferric iron, and titanium in systems involving pyroxene solid solutions.
15. The Central Scientific Components of MELTS
The model’s central strengths come from two major developments.
15.1 Mineral Solid-Solution Models
The solid-solution models developed by Sack and Ghiorso beginning in the late 1980s provide the model with the ability to represent compositionally variable minerals.
These models allow MELTS to calculate:
Mineral compositions
Mineral stability
Partitioning of components between minerals and melts
Changes in mineral composition during crystallization or melting
Coexistence among multiple mineral phases
15.2 Thermodynamic Mixing in Silicate Liquids
A completely accurate general thermodynamic model of silicate liquids is difficult because liquid structures are:
Chemically complex
Dynamic
Time-dependent
Difficult to represent with a simple fixed molecular structure
MELTS uses a heuristic approximation in which the liquid is treated as if it were a mixture of simple mineral-like molecular species.
For example:
Magnesium may be represented as occurring in forsterite-like or picrochromite-like molecular units.
Ferrous iron may be represented as occurring in fayalite-like units.
Other elements are similarly associated with mineral-like liquid species.
This molecular description is not literally a complete representation of the liquid structure. However, it provides a tractable expression for the liquid Gibbs energy.
The excess mixing parameters are calibrated using large experimental datasets, particularly experiments in which minerals and liquids coexist at equilibrium.
The calibration procedure assumes that the thermodynamic properties of the solid phases are known and adjusts the liquid chemical-potential function so that it reproduces the observed mineral–liquid equilibrium relationships.
This approximation has produced many useful and meaningful predictions despite not representing the liquid structure exactly.
15.3 Carbon Speciation in Volatile-Bearing Liquids
In models through Rhyolite-MELTS 1.1, the number of components and the number of liquid mixing species were generally the same.
When CO₂ was incorporated, it became necessary to represent carbon in at least two forms:
Molecular CO₂
Carbonate groups
The model therefore includes a degree of freedom that allows carbon to partition between molecular and carbonate species. This is needed to reproduce CO₂ behavior across a wide compositional range, from rhyolitic to basaltic liquids.
16. The MELTS Equilibrium Algorithm
MELTS uses an iterative procedure to identify the stable equilibrium assemblage.
16.1 Initial Equilibrium Guess
The calculation begins with an initial guess for the phase assemblage and compositions.
Superliquidus Initial Guess
The system is initially assumed to be entirely liquid:
Temperature and pressure are specified.
The liquid composition is set equal to the bulk composition.
The system is treated as though it lies above the liquidus.
This is usually a valid and convenient starting point because a liquid can adjust its composition relatively freely.
However, this approach can be inefficient for calculations that are:
Subsolidus
Very close to the solidus
Expected to contain many stable solids
Subsolidus Initial Guess
A subsolidus initial guess distributes the bulk components among solid phases from the beginning.
This can be more efficient when the target state is known to be below or near the solidus because it avoids repeatedly starting from an all-liquid state.
16.2 Phase Addition and Minimization
The general sequence is:
Establish an initial phase assemblage.
Test whether additional phases should be added.
Add any thermodynamically favored phases.
Minimize the appropriate thermodynamic potential over the current phases.
Determine whether any phase is approaching zero mass.
Remove phases that are disappearing.
Test whether any phase should split into two distinct compositions.
Add additional copies of phases when required.
Repeat the minimization and phase-stability tests.
Continue until no additional phases, removals, or phase splits are required.
16.3 Phase Disappearance
A phase is removed when its calculated mass approaches zero and it is no longer stable in the assemblage.
The calculation then returns to the minimization step using the smaller set of phases.
16.4 Phase Splitting and Miscibility Gaps
A phase may become unstable as a single homogeneous composition and split into two compositions. Examples include:
Two pyroxenes
Two feldspars
Two liquids
This behavior reflects a miscibility gap, in which the system lowers its free energy by separating into two phases of different composition rather than remaining homogeneous.
The algorithm adds a second copy of the relevant phase and recalculates equilibrium.
16.5 Completion and Path Following
The calculation is complete when:
No additional phase should be added.
No existing phase should disappear.
No phase should split into multiple compositions.
The thermodynamic potential has been minimized for the stable assemblage.
The resulting state can then be:
Saved to an output file
Plotted
Used as the initial guess for the next pressure, temperature, or composition step
This allows MELTS to follow a continuous geological path efficiently.
17. Strengths and Limitations of Thermodynamic Modeling
17.1 Strengths
Thermodynamic models can:
Provide relatively accurate predictions
Test a wide range of geological hypotheses
Simulate complex multistage processes
Track many useful phase and system properties
Predict behavior outside the direct calibration dataset
Produce unexpected scientific results
Support efficient automated calculations through modern interfaces
Because the models are based on general thermodynamic relationships rather than being fitted to only one particular dataset, they can sometimes make scientifically useful predictions that were not anticipated during model construction. For example, Rhyolite-MELTS 1.2 was reported to predict carbonatite formation even though carbonatites were not part of its direct training or calibration target.
17.2 Limitations
Thermodynamic models are not always accurate, and the user may not know in advance when a prediction is unreliable. Proper interpretation requires:
Comparison with experiments
Knowledge of the model’s calibration range
Geological intuition
Awareness of known phase-model limitations
Testing under relevant conditions
Other limitations include:
Inadequate treatment of minor components
Simplified models for phases such as amphibole
Potentially incorrect behavior outside the calibration range
High computational cost for extremely large numbers of calculations
Some applications require millions or billions of calculations. For such workloads, MELTS may still be too slow for practical use without additional approximations or optimization.
17.3 Convergence Failures and Crashes
Thermodynamic calculations may occasionally:
Fail to converge
Enter an unstable numerical state
Produce an invalid phase composition
Crash because of roundoff or logarithm errors
Require a different initial guess or calculation path
A failed calculation does not necessarily mean that the geological problem is impossible or that the model cannot solve it. Often, convergence can be improved by:
Changing the initial phase assemblage
Using a subsolidus rather than superliquidus starting guess
Taking smaller pressure or temperature steps
Avoiding exact zeros in component concentrations
Adjusting phase options
Restarting from a nearby successful equilibrium state
A single MELTS failure should be treated as a numerical problem to investigate, not automatically as evidence that the modeled geological process is invalid.
The most reliable use of MELTS combines thermodynamic calculations with experimental constraints, geological observations, and careful awareness of the model’s calibration and limitations.

Ask anything
We've read this whole study set, so questions about it get the best answers.