M07 Computing Elastic Constants: Difference between revisions
| Line 94: | Line 94: | ||
== Using the potential energy == |
== Using the potential energy == |
||
Sometimes, the simulation code does not implement the Virial stress calculation. |
|||
In ''ab initio'' simulations, the Virial stress is usually not very accurate. In these |
|||
cases, we can compute the elastic constants by monitoring the potential energy |
|||
of the system, because the strain energy density <math>W</math> is defined as |
|||
{|border="0" align="center" |
{|border="0" align="center" |
||
|<math> \ |
|<math> W = \frac{1}{2}\sigma_{ij}\epsilon_{ij} = \frac{1}{2}\epsilon_{ij} C_{ijkl} \epsilon_{kl}</math>. |
||
|} |
|} |
||
If the only nonzero strain is <math>\epsilon_{11}</math>, then the streain energy becomes <math>W = C_{11} \epsilon^2 /2</math>. |
|||
We can determine <math>C_{11}</math> by fitting <math>W(\epsilon_{11})</math> to a parabola as shown in Fig.2(a). |
|||
The elastic constnat <math>C_{44}</math> can be determined in a similar way as shown in Fig.2(b). |
|||
The elastic constants obtained in this way are <math>C_{11}=</math>160.5(GPa) and <math>C_{44}=</math>60.2(GPa), which are |
|||
almost the same as the results obtained by using Virial stress. |
|||
The elastic constant <math>C_{12}</math> is easily determined by the elastic relation |
|||
{|border="0" align="center" |
|||
|<math> B = \frac{1}{2}(C_{11} + 2C_{12}) </math> |
|||
|} |
|||
where <math>B</math> is the bulk modulus, which we have already calculated in the manual |
|||
03. Since the bulk modulus of silicon is 108.3 (GPa) with SW potential, the |
|||
elastic constant <math>C_{12}</math> is |
|||
{|border="0" align="center" |
|||
|<math> C_{12} = \frac{1}{2}(3B - C_{11}) = 82.2 </math> (GPa) |
|||
|} |
|||
<gallery caption="Fig.2" widths="300px" heights="300px" perrow="2"> |
|||
Image:C11_C12_E.jpg|(a) |
|||
Image:C44_E.jpg|(b) |
|||
</gallery> |
|||
== Finding shear elastic constant for a non-tilting simulation cell == |
== Finding shear elastic constant for a non-tilting simulation cell == |
||
Revision as of 21:28, 28 November 2007
Manual 07 for MD++
Calculating Elastic Constants
Keonwook Kang and Wei Cai
Elastic constants are physical properties of crystals to relate the mechanical response to the material deformation (i.e. stress and strain) within elastic regime. To calculate the elastic constants is one simple way of validating a potential model. There are two methods to compute elastic constants: one is to monitor (Virial) stress and the other is to monitor strain energy as a function of the applied strain. Conceptually, the two approaches are equivalent except that stress is a linear function of strain and the strain energy is a quadratic function of strain. In this manual, both methods will be explained to get three independent elastic constants(, and ) for the cubic crystal materials, e.g. silicon.
Using Virial Stress
If Virial stress is available to compute, the task of obtaining elastic constants is relatively easy. In crystals with cubic symmetry, there are three independent elastic constants: , and . is the proportional constant between the stress and the strain , and is the proportional constant between the stress and the strain . We can get and from one simulation by applying strain and monitoring two components of stress and . MD++ script si_elastic.script is given below.
# -*-shell-script-*-
# Calculate Elastic Constants of Si
# setnolog
setoverwrite
dirname = ~/Codes/MD++/runs/si_elastconst
#--------------------------------------------
#Create Perfect Lattice Configuration
crystalstructure = diamond-cubic
latticeconst = 5.430953e+00 #(A) for Si
latticesize = [ 1 0 0 3
0 1 0 3
0 0 1 3]
makecrystal
#-------------------------------------------------------------
#Conjugate-Gradient relaxation
conj_ftol = 1e-4 conj_itmax = 1000 conj_fevalmax = 1000
conj_fixbox = 1
eval relax eval finalcnfile = relaxed.cn writecn
#-------------------------------------------------------------
conj_fixbox = 1 #conj_monitor = 1 conj_summary = 1
input = [ 1 1 0.001 ] shiftbox relax eval
input = [ 1 1 9.99000999000999e-04 ] shiftbox relax eval
input = [ 1 1 9.98003992015968e-04 ] shiftbox relax eval
input = [ 1 1 9.97008973080758e-04 ] shiftbox relax eval
input = [ 1 1 9.96015936254980e-04 ] shiftbox relax eval
quit
You can run the script by typing
$ bin/sw gpp scripts/si elastic.script
The above script first generates a 3 × 3 × 3 perfect diamond cubic structure of Si. It then applies tensile strain in increments of 0.1% along [100] direction by the command shiftbox, and calculate the corresponding Virial stress at each strained state by the command eval. From the log file, the stress components and can be obtained and plotted as a function of the applied strain . Fig. 1(a) plots the result from running the script with Stillinger-Weber(SW) potential. The slopes of these lines give 160.6 (GPa) and 80.5 (GPa).
To compute , which is the proportional constant between and , we can simply insert the following lines before quit in the above script.
incnfile = relaxed.cn readcn input = [ 1 2 0.001 ] shiftbox relax eval input = [ 1 2 0.001 ] shiftbox relax eval input = [ 1 2 0.001 ] shiftbox relax eval input = [ 1 2 0.001 ] shiftbox relax eval input = [ 1 2 0.001 ] shiftbox relax eval
These commands shear the crystal in increments of 0.1%. Again, from the log file, the stress component can be obtained and plotted as a function of the applied strain. The result from SW potential is plotted in Fig. 1(b), from which we obtain 60.2(GPa). The values for C11 , C12 , and C44 obtained here are consistent with the original paper.[1]
- Fig.1
Using the potential energy
Sometimes, the simulation code does not implement the Virial stress calculation. In ab initio simulations, the Virial stress is usually not very accurate. In these cases, we can compute the elastic constants by monitoring the potential energy of the system, because the strain energy density is defined as
| . |
If the only nonzero strain is , then the streain energy becomes . We can determine by fitting to a parabola as shown in Fig.2(a). The elastic constnat can be determined in a similar way as shown in Fig.2(b). The elastic constants obtained in this way are 160.5(GPa) and 60.2(GPa), which are almost the same as the results obtained by using Virial stress.
The elastic constant is easily determined by the elastic relation
where is the bulk modulus, which we have already calculated in the manual 03. Since the bulk modulus of silicon is 108.3 (GPa) with SW potential, the elastic constant is
| (GPa) |
- Fig.2
Finding shear elastic constant for a non-tilting simulation cell
Notes
- ↑ H. Balamane, T. Halicioglu, and W. A. Tiler, PRB 46 2250-2279