14.9. BaTiO3 : An SCPH-based structural optimization example#
At a glance
- Goal:
Calculate the temperature dependence of the atomic positions across the cubic-tetragonal phase transition of BaTiO3 with the SCPH theory.
- You will learn:
how to set
RELAX_STRand the&relaxand&displacefieldshow to run cooling (
SET_INIT_STR = 3) and heating (SET_INIT_STR = 2) calculationshow to read the transition temperature from the atomic displacements and free energies
- Prerequisites:
The BaTiO3 IFC tutorial (the IFC file is provided) and the SrTiO3 SCPH tutorial.
- Example files:
example/BaTiO3/scph_relax- Run time:
A few minutes or less (about 20 s on a 64-core node).
This page explains how to calculate crystal structures at finite temperatures based on the SCPH theory. We calculate the cubic-tetragonal structural phase transition of BaTiO3. We fix the shape of the unit cell and calculate the temperature(\(T\))-dependence of the atomic positions.
The example input files are provided in example/BaTiO3/scph_relax.
Let’s move to the example directory
$ cd ${ALAMODE_ROOT}/example/BaTiO3/scph_relax
1. Prepare force constants#
This tutorial assumes that the harmonic and anharmonic force constants are already calculated up to the fourth order. Please copy the file of IFCs calculated in BaTiO3 : Anharmonic interatomic force constants (IFCs) to the current directory.
$ cp ../anharm_IFCs/4_optimize/reference/cBTO222.h5 ./
Note
We need to calculate the force constants in the phase with the highest symmetry (cubic phase in the case of BaTiO3) to calculate the structural phase transitions. This is because the calculated set of IFCs satisfies the symmetry at this reference structure.
Suppose we calculate the IFCs at orthorhombic structure, for example. In that case, the generated IFCs do not satisfy the symmetry between the states with opposite polarizations, and the structure will not converge to the high-symmetry cubic phase at high temperatures.
2. Prepare the input file#
In addition to the input file of the SCPH calculation at the fixed reference structure
(See SrTiO3 : A self-consistent phonon example for example),
we need to set RELAX_STR-tag in &scph-field, &relax-field, and &displace-field properly.
We specify the initial atomic displacements in &displace-field,
which are added to the high-symmetry reference structure.
This is necessary to induce spontaneous symmetry breaking from the cubic phase.
The input file of the anphon calculation is BTO_scph_thermo.in. The line
SET_INIT_STR = 3
is for the cooling calculation.
With SET_INIT_STR = 3, the initial structure of the SCPH-based structural optimization
is set from the &displace-field if the structure at the previous temperature converges to
the high-symmetry phase.
The structure is judged to be in the high-symmetry phase when spglib finds the space group of
the undistorted reference cell for it, using the symmetry tolerance of the
TOLERANCE tag.
Please see the documentation for more detailed explanations.
The COOLING_U0_INDEX and COOLING_U0_THR tags of ALAMODE 1.x are deprecated and ignored;
the high-symmetry phase is detected automatically.
To perform the heating calculation, set LOWER_TEMP = 0 in &scph-field and SET_INIT_STR = 2.
Then, write the low-temperature structure to the &displace-field.
Note
We use a coarse SCPH \(q\)-mesh of KMESH_SCPH = 4 4 4 to save computational cost.
Convergence with respect to KMESH_SCPH and the threshold COORD_CONV_TOL needs
to be carefully checked to obtain accurate calculation results.
Note
The convergence of the structure gets significantly slower in the vicinity of the phase transition because the gradient of the free energy almost vanishes. In such cases, getting a smooth \(T\)-dependence for materials with more complicated structures is sometimes difficult. This problem can be partially avoided by choosing a larger \(T\)-step and estimating the transition temperature from the crossing point of the free energies with different phases.
Now, run the calculation with
$ ${ALAMODE_ROOT}/_build/anphon/anphon BTO_scph_thermo.in > BTO_scph_thermo.log
Note
If you want to try the calculation in a shorter time, use a larger COORD_CONV_TOL
(1.0e-5 in the input) or DT (25), or a smaller TMAX (400).
The structure will not be completely convergent for large COORD_CONV_TOL,
but you will be able to get the overview of the calculation.
3. Analyze the calculation results#
Plotting the result with
$ gnuplot plot_structure.plt
you will get the following plot.
The atomic displacements are zero at high temperatures, where the structure converges to the high-symmetry cubic phase. At low temperatures, the atoms are displaced along the \(z\)-direction, and the structure is in the tetragonal phase. The estimated transition temperature (\(T_c\)) is around 150~175 K.
The \(T\)-dependence of the atomic displacements in cubic-tetragonal structural phase transition of BaTiO3.#
The polar soft mode of cubic BaTiO3 at \(\Gamma\) in the harmonic approximation: Ti moves against the O octahedra, predominantly along \(z\) (displacements exaggerated).#
The plot of the free energy can be obtained with
$ gnuplot plot_free_energy.plt
We can see that static energy \(U_0\) monotonically increases while the vibrational free energy \(F_{vib}\) decreases monotonically with temperature. Such changes in \(U_0\) and \(F_{vib}\) are especially drastic near the phase transition. The change of the total free energy is not as significant because the free energies of the two phases are equal at \(T_c\). Thus, we can see the competition between the enthalpy and the entropic terms in the \(T\)-dependence of the crystal structure.
The \(T\)-dependence of the free energy in cubic-tetragonal structural phase transition of BaTiO3.#
Note
We can estimate \(T_c\) more accurately from the crossing point of the free energies of different phases.
If we perform the cooling calculation without initial displacement, we will get the free energy of the cubic phase with lower temperatures.
If we perform the heating calculation, we may get the free energy of the tetragonal phase with higher temperatures.
Then, we can find the crossing point if the \(T\)-step (DT) is small enough.
If DT is too large to see the crossing point and the hysteresis,
we can extrapolate the free energy difference \(F_{cubic}-F_{tetra}\) from the low temperature to estimate \(T_c\).
Note
BaTiO3 shows a three-step structural phase transition between four different phases. For the other two phase transitions that occur at lower temperatures (tetragonal-orthorhombic and orthorhombic-rhombohedral transition), the symmetry of each low-\(T\) phase is not a subgroup of that of the high-\(T\) phase.
In such cases, we recommend calculating cubic-orthorhombic and cubic-rhombohedral phase transitions separately and comparing the free energies because
The calculated hysteresis does not necessarily reflect the physics if the transition is strongly first-order.
The symmetry makes the calculation more stable and efficient. If we directly calculate the tetra-ortho transition, the symmetry used in the calculation is the common subgroup of the symmetry groups of these two phases, while we can take advantage of the full symmetry of the orthorhombic phase if we calculate the cubic-ortho transition instead.
Note
We will need to prepare additional inputs, the elastic constants, and the strain-harmonic-IFC coupling if we relax the unit cell as well. The strain-force coupling is not necessary for BaTiO3 because they are zero from symmetry.
Please see ZnO : A QHA-based structural optimization example for the details of the preparation of these inputs;
the tools/elastic.py and tools/strainifc.py scripts generate them from DFT calculations of strained cells
and collect them in one HDF5 file given as STRAINFILE in the &relax field.