Equations of State

Equations of State

In order to calculate the volume derivatives of the energy, an analytical expression needs to be fitted to the input data. This mathematical expression, commonly known as the equation of state (EOS), can take many forms. Which equation of state is used for a particular phase is determined by the FIT option to PHASE:

PHASE ... [FIT {POLYGIBBS|BM2|BM3|BM4|PT2|PT3|PT4|PT5|MURN|ANTONS|VINET|AP2|
                STRAIN {EULERIAN|BM|NATURAL|PT|LAGRANGIAN|LAGR|INFINITESIMAL|
                        INF|QUOTIENT|X1|X3|XINV3|X3INV|V} [order.i|0]}]
          [REG {LAD|LSQ}] [FIX i1.i v1.r i2.i v2.r ...]

Two types of EOS can be used: those based on strain polynomials and analytical expressions with a few parameters derived from the known elastic behavior of solids. The latter are very common in the literature and we refer to them as traditional EOS. The EOS is chosen using the FIT option to the PHASE keyword.

The analytical EOS is used in two distinct contexts:

  • The EOS is used to fit the static energy-volume data to generate the static equation equation of state.

  • At a given temperature, the EOS is used to fit the Hemlholtz free energy vs. volume data. This is used to calculate the volume at that temperature and an arbitrary pressure as well as the volume derivatives necessary for the calculation of the other thermodynamic properties.

Regardless of which equation of state is used to fit the data, it is strongly recommended that the quality of the fit is examined for every new set of data by at least plotting the efit file. This file presents the original source data and the fitted equation of state, and allows assessing whether the fit is good or not. Ideally, you would also examine the smoothness of some of the other thermodynamic properties that depend on the derivatives of the E(V) curve, such as the bulk modulus.

It is also important to note that gibbs2 is not designed for extrapolation. Thermodynamic properties are never calculated at equilibrium volumes outside of the input volume grid.

EOS Based on Strain Polynomials

The EOS based on strain polynomials are fitted using a linear least-squares fitting method (employing the SLATEC library). They are selected by using the FIT option to PHASE followed by the STRAIN keyword, the type of strain used, and the degree of the polynomial. The strain type can be one of:

Keyword Name Expression
EULERIAN or BM Birch-Murnaghan (Eulerian)
NATURAL or PT Poirier-Tarantola (natural)
LAGRANGIAN Lagrangian
INFINITESIMAL Infinitesimal
QUOTIENT or X1 Compression factor
X3 Linear compression factor
XINV3 or X3INV Inverse linear compression factor
V Volume

The type of strain must be followed by the degree of the polynomial (order.i). For instance, FIT STRAIN BM 4 indicates a fourth-order Birch-Murnaghan EOS, equivalent to a fourth degree polynomial in the BM strain.

If 0 is used as the degree of the polynomial, a number of polynomials of increasing degree are fitted to the data and then a polynomial average is used. The agreement between polynomials of various degrees can be used as a measure of the quality of the input data. The minimum and maximum degree of the polynomials that enter the polynomial average are controlled by the SET MPAR and SET MPARMIN keywords. By default, the polymials go from third degree up to 12th degree. In cases when the input dataset contains only a few points, the default maximum strain polynomial degree is lower to prevent overfitting.

The default EOS in gibbs2 if no FIT keyword is given is to use an average of strain polynomials based on the Birch-Murnaghan strain (FIT STRAIN BM 0). This method has proved to be quite robust.

Traditional EOS

Traditional EOS based on analytical expressions can be used in gibbs2 as well. They are activated for a given phase by using the FIT option to the PHASE keyword followed by the keyword for the desired EOS. Contrary to the strain polynomials, these EOS are fitted using a non-linear minimization method (Levenberg-Marquardt) implemented in the MINPACK library. The goodness of the fit using traditional EOS is typically lower than with strain polynomials (particularly high-degree polynomials or averages) but these EOS contain fewer parameters so they are appropriate in cases when there are fewer points to fit, and they can also be used to extrapolate or to smooth noisy data.

The list of traditional EOS implemented and the corresponding keywords are:

Keyword Name Order Parameters Expression
BM2 Birch-Murnaghan 2 ,
BM3 Birch-Murnaghan 3 , as above
BM4 Birch-Murnaghan 4 , , as above
PT2 Poirier-Tarantola 2 ,
PT3 Poirier-Tarantola 3 , as above
PT4 Poirier-Tarantola 4 , , as above
PT5 Poirier-Tarantola 5 Cetacean needed.
MURN Murnaghan 3
ANTONS Anton-Schmidt 3 ,
VINET Vinet 3 ,
AP2 Holzapfel’s AP2 3

Note that the AP2 EOS requires setting the number of electrons for the system with the NELECTRON keyword. Also, the BM2, BM3, etc. EOS are different from the equivalent strain polynomial versions (STRAIN BM 2, STRAIN BM 3, etc.) only in that a non-linear least-squares fit is used. The use of the strain polynomial versions is recommended, as the two of them give equivalent results when the fit is successful and non-linear fits may fail sometimes.

Lastly, the fitting method used in the previous version of the program (gibbs) can be used with the POLYGIBBS keyword. This option is available mostly for testing and backwards-compatibility. POLYGIBBS may remove points from the energy-volume grid, and is known to be unstable in some cases.

Optional PHASE options

The following optional keywords can be used in PHASE to control how gibbs2 carries out the equation of state fitting for a particular phase:

REG {LAD|LSQ}

The REG keyword chooseS the regression technique for the EOS fits: least-squares (LSQ, default) or least absolute deviation (LAD). The former minmizes and the latter minimizes . LAD is sometimes used as a robust fitting technique because it is less sensitive than least-squares to noise in the data. LAD can only be used with the traditional EOS, i.e., it cannot be used with FIT STRAIN X Y or with FIT POLYGIBBS.

FIX i1.i v1.r i2.i v2.r ...

The FIX keyword fixes some of the EOS parameters to user-defined values. This keyword only applies to traditional EOS (i.e. those that are not accessed via the FIT STRAIN keyword or POLYGIBBS). The constraints also apply to fits to static data only. They are not honored in the calculation of temperature-pressure data, i.e. when fitting free energy vs. volume curves. The i1.i integer gives the parameter to be fixed. It can be (2), (3), (4), (5), or (6). The value at which the corresponding parameter is fixed comes after the integer identifier (v1.r). Multiple identifier/value pairs can be given.

Optional global keywords

The following optional keywords can be used in the gibbs2 input to control the EOS fitting for all phases:

NELECTRONS nelec.i

The NELECTRONS keyword gives the total number of electrons per NAT atoms. This value is used only if the AP2 EOS is used. Note this variable is not associated with the NELEC option in PHASE.

SET MPAR mpar.i

In the case of a strain polynomial EOS (FIT STRAIN) using weighed average polynomials (order.i = 0), MPAR sets the maximum degree of the weighed polynomial fit to mpar.i. The default mpar.i is 12 or half the E(V) points minus one, whichever is lowest. mpar.i is never lower than 3.

SET MPARMIN mparmin.i

In the case of a strain polynomial EOS using weighed average polynomials (order.i = 0), MPARMIN sets the minimum degree of the weighed polynomial fit to mparmin.i. The default mparmin.i is 2.

SET NDEL ndel.i

Sets the number of external points to be removed from the dataset in POLYGIBBS. POLYGIBBS should only be used for testing. The default ndel.i is 3.

SET PFIT_MODE {GAUSS|SLATEC}

With the GAUSS keyword, use the method from the previous gibbs program to conduct the linear least-squares fits (i.e. the strain polynomials and POLYGIBBS). SLATEC: use dpolft and dpolcf from the SLATEC library instead. GAUSS Is known to be unstable, so the default is SLATEC. This keyword is useful only for testing purposes.

SET PWEIGH_MODE {GIBBS1|GIBBS2|SLATEC}

Use the previous gibbs version (GIBBS1) or the GIBBS2 method to average the fit polynomials. Alternatively, let the SLATEC library do it. This keyword is useful only for testing purposes. Default: GIBBS2.

Updated: