Dear LAMMPS developers and users
I have been bugged for some time with an issue, which I have not found a satisfactory solution to thus far. I am basically using LAMMPS to generate representative configurations of atomic displacements of a crystal for the purpose of including the effect of atomic motion into calculations of electron scattering for the purpose of transmission electron microscopy and electron energy loss spectroscopy. The main quantity we are interested in from the MD perspective is the MSD of each atom in the super cell, which governs the strength of incoherent scattering.
What we usually do is that we set up an orthogonal super cell of the shape of about 3-5 nm in lateral dimensions (x and y) and then match the experimental thickness of the specimen in the last dimension (z), typically several tens of nm. We apply periodic boundary conditions in all directions, since surface effects play a minor role. We apply a NVT or langevin thermostat and sample atomic displacements at a temperature of 300 K.
This set up of the model system has worked out nicely for most of our calculations, but I have recently started to go to more elongated super cells (about a 1:10 to 1:20 ratio of lateral to z dimensions) in a calculation for diamond. Here I have noted that the MSD shows a behavior, which is not expected for a crystal at thermal equilibrium. The MSD does not fluctuate around its mean (like in the attached example for a 10x10x10 super cell), but it seems that the mean itself is time-dependent to some extent along all three directions (see the other attached plot for 10x10x170). I have done a more detailed analysis and the MSD of the atoms also shows a strong dependence on where the atom is located along the z coordinate in the super cell. Furthermore the deviations are mostly connected with lower frequencies below about 8 THz. So I suspect that it is primarily acoustic modes in our model system, which are not representative of the acoustic vibrational modes in crystalline diamond.
Through testing different variables (initial conditions, length of the trajectory, thermostat, force field, boundary conditions) I have developed the understanding that the origin of the problems is simply the unequal side lengths of the super cell, since the ratio of lateral size to z length seems to be the only parameter, which meaningfully affects the results. For a ratio of 1:1 everything looks as expected with equal MSD along all directions, while I observe gradually larger and larger deviations from the expected MSD for periods of time for smaller and smaller ratios. I think this observation has to do with the unequal implicit grid of allowed wave vectors \Delta \mathbf{k} = (\Delta k_x, \Delta k_y, \Delta k_z), \Delta k_x = \Delta k_y \neq \Delta k_z, for vibrational modes in the super cell, but I donât have full intuition how this comes about. I have tried to find information on this topic in the literature, but to no avail. It seems that most MD simulations of solids work with equal side lengths of the super cell, so I have not found any mentioning of the issue.
I would appreciate to hear your thoughts and comments on this issue and if you have encountered something similar. I am also grateful for any hints on how one can deal with this issue and/or tips for additional reading. The most obvious solution is to me that we need to rethink our calculation strategy and always use super cells which have a ratio of lateral to z dimensions of about 1:1, but this brings other problems which I would rather avoid, so I think a good understanding of the origin of our issue is necessary to start with.
Thanks for reading this huge wall of text and I look forward to any replies. Have a nice day!
Kind Regards,
Paul
direction projected MSD as a function of time step for super cell size 10x10x10
direction projected MSD as a function of time step for super cell size 10x10x170
LAMMPS input file lmp.in
units metal
boundary p p p
atom_style atomic
timestep 0.0005
lattice diamond 3.57329
region simbox block 0 10 0 10 0 170
create_box 1 simbox
create_atoms 1 box
mass 1 12.011
group c type 1
pair_style tersoff
pair_coeff * * C.tersoff C
thermo 1
thermo_style custom step temp ke pe econserve press pxx pyy pzz
# Set equilibration time, measurement time and other variables
variable tequi equal 10000
variable tmeas equal 400000
variable ttot equal ${tequi}+${tmeas}
variable taurelax equal "dt*100"
variable temp equal 300
variable inittemp equal 2*${temp}
variable random_seed equal 983632
velocity all create ${inittemp} ${random_seed} loop local rot yes dist gaussian mom yes
fix mynve all nve
fix mylang all langevin ${temp} ${temp} ${taurelax} 4643963 zero yes
fix mypos all recenter INIT INIT INIT
fix mymom all momentum 1 linear 1 1 1 angular rescale
compute mymsd1 c msd com yes average yes
fix myave1 c ave/time 1 1 1 c_mymsd1 file msd1_c.dat mode vector
run ${tequi}
compute mymsd2 c msd com yes average yes
fix myave2 c ave/time 1 1 1 c_mymsd2 file msd2_c.dat mode vector
run ${tmeas}
Potential file C.tersoff
created from the Tersoff potential for carbon included in LAMMPS
# DATE: 2011-04-26 UNITS: metal CONTRIBUTOR: Aidan Thompson, [email protected] CITATION: Tersoff, Phys Rev B, 39, 5566-5568 (1989)
# Si and C mixture, parameterized for Tersoff potential
# this file is from Rutuparna.Narulkar @ okstate.edu
# values are from Phys Rev B, 39, 5566-5568 (1989)
# and errata (PRB 41, 3248)
# Tersoff parameters for various elements and mixtures
# multiple entries can be added to this file, LAMMPS reads the ones it needs
# these entries are in LAMMPS "metal" units:
# A,B = eV; lambda1,lambda2,lambda3 = 1/Angstroms; R,D = Angstroms
# other quantities are unitless
# format of a single entry (one or more lines):
# element 1, element 2, element 3,
# m, gamma, lambda3, c, d, costheta0, n,
# beta, lambda2, B, R, D, lambda1, A
# Tersoff's nomenclature - - - c d h n beta mu B R = (R+S)/2 D = (S-R)/2 Lambda A
C C C 3 1 0 38049.0 4.3484 â0.7482 0.72751 1.5724E-07 2.2119 393.747 1.95 0.15 3.4879 1393.6