Skip to content

Commit f084c98

Browse files
authored
Merge pull request lammps#4707 from chogene/fix_elastic_born_silicon
Update ELASTIC_T examples: use virial instead of thermo_press and remove repeated line.
2 parents 792d014 + 78c41df commit f084c98

16 files changed

+4167
-1404
lines changed

doc/src/compute_born_matrix.rst

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ as a 6x6 symmetric matrix:
6767
In the above expression, :math:`\sigma` stands for the virial stress
6868
tensor, :math:`\delta` is the Kronecker delta and the usual notation apply for
6969
the number of particle, the temperature and volume respectively :math:`N`,
70-
:math:`T` and :math:`V`. :math:`k_{B}` is the Boltzmann constant.
70+
:math:`T` and :math:`V`. :math:`k_{B}` is the Boltzmann constant. For a
71+
more detailed explanation of the terms appearing in the above equation,
72+
see :ref:`(Lutsko)<Lutsko>`.
7173

7274
The Born term is a symmetric 6x6 matrix, as is the matrix of second derivatives
7375
of potential energy w.r.t strain,
@@ -90,7 +92,7 @@ of the derivatives of every contribution to the potential energy
9092
in the system as explained in :ref:`(VanWorkum)
9193
<VanWorkum>`.
9294

93-
The output can be accessed using usual Lammps routines:
95+
The output can be accessed using the usual LAMMPS routines:
9496

9597
.. code-block:: LAMMPS
9698
@@ -99,15 +101,17 @@ The output can be accessed using usual Lammps routines:
99101
variable S1 equal -c_2[1]
100102
variable S2 equal -c_2[2]
101103
variable S3 equal -c_2[3]
102-
variable S4 equal -c_2[4]
104+
variable S4 equal -c_2[6]
103105
variable S5 equal -c_2[5]
104-
variable S6 equal -c_2[6]
106+
variable S6 equal -c_2[4]
105107
fix 1 all ave/time 1 1 1 v_S1 v_S2 v_S3 v_S4 v_S5 v_S6 c_1[*] file born.out
106108
109+
Note interchange of 4th and 6th stress values to satisfy Voigt notation.
107110
In this example, the file *born.out* will contain the information needed to
108111
compute the first and second terms of the elastic constant matrix in a post
109-
processing procedure. The other required quantities can be accessed using any
110-
other *LAMMPS* usual method. Several examples of this method are
112+
processing procedure. The third term depends only on *T*, which can
113+
be specified directly or estimated by sampling the atom velocities.
114+
Several examples of this method are
111115
provided in the examples/ELASTIC_T/BORN_MATRIX directory
112116
described on the :doc:`Examples <Examples>` doc page.
113117

@@ -210,12 +214,16 @@ none
210214

211215
.. _VanWorkum:
212216

213-
**(Van Workum)** K. Van Workum et al., J. Chem. Phys. 125 144506 (2006)
217+
**(Van Workum)** K. Van Workum et al., J Chem Phys, 125, 144506 (2006).
214218

215219
.. _Clavier2:
216220

217221
**(Clavier)** G. Clavier, N. Desbiens, E. Bourasseau, V. Lachet, N. Brusselle-Dupend and B. Rousseau, Mol Sim, 43, 1413 (2017).
218222

219223
.. _Zhen:
220224

221-
**(Zhen)** Y. Zhen, C. Chu, Computer Physics Communications 183(2012)261-265
225+
**(Zhen)** Y. Zhen, C. Chu, Comp Phys Comm, 183, 261-265 (2012).
226+
227+
.. _Lutsko:
228+
229+
**(Lutsko)** J. F. Lutsko, J Appl Phys, 65, 2991-2997 (1989).

doc/utils/sphinx-config/false_positives.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2138,6 +2138,7 @@ lunit
21382138
Lunkad
21392139
Lussetti
21402140
Lustig
2141+
Lutsko
21412142
lval
21422143
lwsock
21432144
lx

examples/ELASTIC_T/BORN_MATRIX/Argon/Analytical/in.ljcov

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# adjustable parameters
1111

1212
units real
13-
variable nsteps index 100000 # length of run
13+
variable nsteps index 10000 # length of run
1414
variable nthermo index 1000 # thermo output interval
1515
variable nlat equal 5 # size of box
1616
variable T equal 60. # Temperature in K
@@ -39,7 +39,7 @@ thermo 100
3939
fix aL all ave/time 1 1 1 v_vol ave running
4040
fix NPT all npt temp $T $T 100 aniso 1. 1. 1000 fixedpoint 0. 0. 0.
4141

42-
run 20000
42+
run 2000
4343

4444
unfix NPT
4545

0 commit comments

Comments
 (0)