Elastic constants#
The theory in this section relates to the functions under the elastic
module.
Introduction#
Elastic constants measure the proportionality between strain and stress in a crystal, provided that the strain is not so large as to violate Hooke’s law.
—D. A. Papaconstantopolous
As noted by Papconstantopolous, the elastic constants may be considered a three-dimensional generalisation of Hooke’s law, where put simply, the restoring force \(F\), is proportional to the so-called spring constant \(k\) times the displacement \(dx\) so long as the material is within the “elastic region”. Elastic constants can be used for several purposes, they provide information about the speed of sound in materials, they tell how strong a material is and can give important information as to whether the material is structurally stable. They also (and most interestingly for us) can be used to predict equilibrium lattice distortions in heterostructures and estimate stress (strain) given an input strain (stress). In this work we will be discussing the methodologies for computing elastic constants using Ab Initio techniques.
Discussion#
For the following we will be using the Voigt notation to simplify higher order tensors to lower order ones. In particular reduction of the fourth-order elastic stiffness tensor and second order stress/strain tensors allows us to reduce the entire elasticity problem to a linear equation. Derivation of the elastic tensor is quite lengthy and will not be discussed here, instead we focus specifically on the stress and strain matrices \(\sigma\) and \(\epsilon\), respectively. Most generally they may be written as:
For these works it is important to define what the directions \(x,y,z\) mean. In general they define any complete coordinate system (basis vectors) of a three-dimensional space. In practice, they refer more specifically to the first, second and third components of the lattice vectors of a crystal in its standard (primitive) representation, so that we may unambiguously exploit its symmetry later in this document. It is important that these lattice vectors be described in their standard representation as the deformation matrix is not invariant with respect to rotation. The elastic constants tensor may be posthoc rotated to the symmetric frame by using a transformation matrix but this requires that the full, rather than symmetry-reduced, tensor be computed. It is therefore recommended that for whatever crystal used that you output its standard primitive form by spglib.
Resuming our discussion, regardless of orientation chosen, under Voigt notation these matrices are assumed symmetric. Therefore in the mapping, we make sure to take only the symmetric part, for stress we use:
or explicitly:
this conversion may be found in convert_stress_in_matrix_form_to_voigt_form()
,
whereas for strain (paying special attention the last three components) the mapping is:
or explicitly:
this conversion may be found in convert_strain_in_matrix_form_to_voigt_form()
.
We may then reverse the mapping to give our second-order tensors:
where the asymmetric components have been explicitly discarded, these functions are found under
convert_stress_in_voigt_form_to_matrix_form()
and
convert_strain_in_voigt_form_to_matrix_form()
respectively.
After mapping to Voigt notation, the most general stress-strain relation is thence:
where \(\sigma^{0}_i\) are the strains of the reference system, ideally zero. More succinctly, this may be written as:
Similarly, the total energy of the system is computed using a Taylor expansion in \(\epsilon\) up to second order:
where \(E_0\) and \(V_0\) are the total energy and volume of the reference system respectively. Naturally, if the system is relaxed the linear stress terms vanish. Now that we have covered the very basics of elastic constants, let’s explore how we compute them.
Computing elastic constants#
There are two main strategies for computing the elastic constants computationally. The first, known as the “Energy approach”, is based off of the energy changes one observes due to deforming the crystal using (2). The second, known as the “Stress theorem” is based on varying the strain of the crystal and monitoring the changes in the stress via (1). Both have their strengths and weaknesses as we will discuss below. To make the discussion more accessible, we demonstrate both methods using a model cubic system. Under the symmetries of a cubic system, the elastic tensor reduces to:
containing only 3 independent elastic constants.
Aside: Symmetry#
Certain methods such as ULICS [ULICS] use a set of dense vectors to sample as much of phase space as possible by coupling as many degrees of freedom as possible. This method though sensible in its goal of coupling degrees of freedom falls short when the symmetry of the problem is taken into account. Consider for instance a square lattice, the Irreducible Brillouin Zone (IBZ) is reduced to 1/8th the size of the full Brillouin Zone (BZ). If the symmetry is broken, and that all other properties converge just as quickly, this would be at least an \(8\times\) slowdown; one could compute 7 more highly symmetric evaluations in the time it takes to compute one asymmetric one. For this reason we use a set of highly symmetric vectors based off of OHESS (Liu), IRelast (Jamal et al.) and VASP (Saxe et al.) to maximally sample our space in the fewest and fastest vectors possible.
Energy-based#
To compute properties efficiently using the energy approach we use the basis sets detailed in the papers by Jamal et al. [Jamal2014], [Jamal2018], where the authors optimized their vector choices to preserve the symmetry as much as possible and (interestingly) simultaneously constraining them to conserve volume where possible, where this second correction is most important for high-pressure systems due to the nature of the energy expansion in P and V. By preserving symmetry we can use fewer (\(k\)-point) evaluations to achieve the same results at a fraction of the cost.
As energy converges much more quickly than other properties of Ab Initio simulations this method is numerically well-behaved but suffers from one major drawback; only one degree of freedom may be sampled as the energy method is a many-to-one operation. Nevertheless, it is both a useful method especially in the context of systems where the stress tensor (and the forces on atoms) cannot be computed. In such a case only the so-called “clamped” elastic constants can be computed as one cannot relax the atomic positions, or if say a method like GW, they are relaxed before applying the correction.
We break this method up into three parts, volumetric expansion, orthorhombic deformation and monoclinic deformation.
Volumetric expansion#
For volumetric expansion, the strain tensor is given by:
where \(\varepsilon\) is used to denote a general strain “value" rather than the strain tensor. This expansion completely preserves the symmetry of the underlying lattice but as the name suggests, does not (and cannot) preserve volume by some correction like our other strain types. Using this strain tensor results in:
where (for cubic crystals) \((C_{11}+2C_{12})/3\) is known as the Bulk Modulus, B. With this one can extract the bulk modulus from the second derivative using either finite difference, linear regression or by fitting an equation of state. In particular, the Birch-Murnaghan equation of state is very useful as it is derived from first principles and works for both high and low pressure limits, something which many phenomenological or perturbative fits do not. In terms of the pressure, it is given by:
where \(B_0\), \(B^\prime_0\) and \(V_0\) are the zero pressure bulk modulus, bulk modulus derivative (w.r.t. pressure) and volume respectively. For our purposes we the internal energy (its integral) given by:
we also use this method in our workflow to attain accurate estimates for the equilibrium lattice constant. To see why this is so helpful, first we take the Taylor series of (4) we arrive at:
which is the simplest expression that gives \(B_0 = \partial^2 E(V)/\partial V^2\) (everywhere) this allows us to see where higher order effects come into play by directly comparing against (4). Then, noting that volumetric expansion \(V = V_0 (1+\epsilon)^3\), we make another expansion in small \(\epsilon\) to see:
and can be seen to be equivalent to (3), thus fitting the Birch-Murnaghan equation of state (which supports high/low pressure solids without or without nonlinear corrections) with least squares gives us a useful estimate where our energy scales act perturbatively, obtain a Bulk modulus value and get a reasonable lattice parameter estimate all in one go.
Orthorhombic deformation#
Orthorhombic deformation, as the name suggests, contracts one dimension while expanding another, it is given by:
where the (roughly) quadratic correction \(\varepsilon^2/(1-\varepsilon^2)\) component to the third dimension leaves the total volume unchanged (though it will introduce an \(\varepsilon^4\) correction in the total energy, which is subsumed into the overall big O error). Neglecting the component arising from the third dimension, its energy expansion is given by:
where (for cubic crystals) \((C_{11}-C_{12})/2\) is the so-called shear modulus \(C^\prime\). One then computes this using finite differences or linear regression.
Monoclinic deformation#
The last deformation type is monoclinic, which unfortunately breaks most of the symmetry in a cubic lattice. It is given by:
where once again the \(\varepsilon^2/(1-\varepsilon^2)\) term in the third dimension is to keep the total volume constant. Its energy expansion (ignoring the components in the third dimension) is given by:
One then computes this using finite differences or linear regression. \(C_{44}\) is related to the so-called anisotropy factor or zener ratio:
which is unity for isotropic materials.
Stress-based#
As before, the eponymous stress-based method calculates the elastic constants by exploiting the many-to-many nature of the stress/strain relations. In order to efficiently and expediently calculate the properties of these crystals we use the Optimized High-Efficiency Strain-matrix Set (OHESS) [OHESS2020] strain sets which have been chosen to maximize both the symmetry and the number of degrees of freedom sampled in one evaluation.
In this example, the OHESS vector is able to sample all three elastic constants of a cubic crystal can be computed using only a single deformation type:
therefore by scaling \(\varepsilon\) only one parameter is used to fit all three elastic constants. One then computes each of the constants using finite difference or least squares regression.
Data fitting method#
In this section we will be covering how we extract parameters from these fits with high confidence. We use an over-determined, least-squares approach using the Levenberg-Marquardt method of the lmfit python package to the entire dataset. This method provides several advantages over a simple least squares approach for each line.
Let’s say we deform a cubic crystal using a strain vector \([\varepsilon,0,0,\varepsilon,0,0]\), the first and second stress elements will read:
where \(\alpha_{1,2}\) are just dummy parameters for discarding the second order contributions in the expansion. From these two calculations we see that we can compute a least squares fit and extract both \(C_{11}\) and \(C_{12}\). Let’s say we compute it using the strain vector \([\varepsilon,\varepsilon,\varepsilon,0,0,0]\), the first and second stress elements will now read:
where \(\beta_{1,2}\) are again just dummy parameters for discarding the second order contributions in the expansion. We see that in these fits we couldn’t compute either \(C_{11}\) or \(C_{12}\) if we tried. However, these data give us new constraints. By noting that the (normally useless) parameters \(\sigma^{(0)}_1 , \sigma^{(0)}_2\) appear in both datasets, as do \(C_{11}, C_{12}\), if we simultaneously compute the least squares on all of them we gain a better prediction of what the true value is of these parameters, and we gain a meaningful understanding of what our uncertainty in these fits actually are.
Similarly, this extends to energy-based methods in a analogous fashion,
though we would need more functions to find the value of all three elastic constants, we see that we have removed a degree of freedom when it comes to the zero-strain solution as well as the zero-strain components in \(\sigma^{(0)}_1, \sigma^{(0)}_4\), and also the reference energy \(E_0\). We can actually simultaneously optimize ALL of these equations together. In this sense, the “duplicate" data that is computed for various crystal types is useful as it lowers the bounds on the uncertainties of the given parameters. Below we use this example on an evaluation of the elastic constants \(C_{11}, C_{44}\) in diamond. Using the strain method presented by OHESS, we gain strain information of the form:
and similarly we gain energy information of the form:
Computing elastic constants using stress, stress, and energy least-squares fits respectively returns:
which we can see do not agree with each other. However, by constraining the reference strains to be equal, the elastic constants to be equal, and fitting using simultaneous least squares returns answers of:
where we can see that the elastic constants have changed minimally but
now their sum is consistent, the \(\pm\) terms are uncertainty
parameters from the least squares fits. For the residuals to be in the
same units, (5) was divided by \(V_0\)
before fitting. Looking at the plots in fig:diamondfits
,
we see that the reason for the discrepancy was likely due to the poor
fit of the energy-strain curve.
Jamal, M., et al. "Elastic constants of cubic crystals." Computational Materials Science 95 (2014): 592-599.
Jamal, M., et al. "IRelast package." Journal of Alloys and Compounds 735 (2018): 569-579.
Liu, Zhong-Li. “High-efficiency calculation of elastic constants enhanced by the optimized strain-matrix sets." arXiv preprint: arXiv:2002.00005 (2020).
Yu, R., et al. "Calculations of single-crystal elastic constants made simple." Comput. Phys. Commun. 181 (2010): 671-675.