updated documentation and ev_tally

This commit is contained in:
Jaap Kroes
2017-03-01 16:13:44 +01:00
parent 3605208a45
commit 8a0e44db83
5 changed files with 33 additions and 14 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

View File

@ -5,9 +5,9 @@
\begin{eqnarray*} \begin{eqnarray*}
E & = & \frac{1}{2} \sum_i \sum_{j \neq i} V_{ij} \\ E & = & \frac{1}{2} \sum_i \sum_{j \neq i} V_{ij} \\
V_{ij} & = & e^{-\lambda(r_{ij} -z_0}) \left[ C + f(\rho_{ij}) + f(\rho_{ji}) - A \left( \frac{r_{ij}}{z_0}\right)^{-6}\right] \\ V_{ij} & = & e^{-\lambda(r_{ij} -z_0}) \left[ C + f(\rho_{ij}) + f(\rho_{ji}) \right] - A \left( \frac{r_{ij}}{z_0}\right)^{-6} + A \left( \frac{\textrm{cutoff}}{z_0}\right)^{-6} \\
\rho_{ij}^2 & = & x_{ij}^2 + y_{ij}^2 \\ \rho_{ij}^2 = \rho_{ji}^2 & = & x_{ij}^2 + y_{ij}^2 ~\hspace{2cm} (\mathbf{n_i}\equiv\hat \mathbf{z})\\
f(\rho) & = & e^{-(\rho/\delta)^2} \sum_{n=0}^2 C_{2n} { \rho/\delta }^{2n} f(\rho) & = & e^{-(\rho/\delta)^2} \sum_{n=0}^2 C_{2n} \left( \rho/\delta \right) ^{2n}
\end{eqnarray*} \end{eqnarray*}
\end{document} \end{document}

View File

@ -10,7 +10,7 @@ pair_style kolmogorov/crespi/z command :h3
[Syntax:] [Syntax:]
pair_style kolmogorov/crespi/z cutoff :pre pair_style hybrid/overlay kolmogorov/crespi/z cutoff :pre
[Examples:] [Examples:]
@ -24,14 +24,26 @@ pair_coeff 1 2 kolmogorov/crespi/z CC.KC C C :pre
[Description:] [Description:]
The {kolmogorov/crespi/z} style computes the Kolmogorov-Crespi interaction potential as The {kolmogorov/crespi/z} style computes the Kolmogorov-Crespi interaction
described in "(KC)"_#KC. An important simplification is made, which is to potential as described in "(KC05)"_#KC05. An important simplification is made,
take all normals along the z-axis. which is to take all normals along the z-axis.
:c,image(Eqs/pair_kolmogorov_crespi_z.jpg) :c,image(Eqs/pair_kolmogorov_crespi_z.jpg)
It is important to have a suffiently large cutoff to ensure smooth forces.
Energies are shifted so that they go continously to zero at the cutoff assuming
that the exponential part of {Vij} (first term) decays sufficiently fast.
This shift is achieved by the last term in the equation for {Vij} above.
This potential is intended for interactions between two layers of graphene.
Therefore, to avoid interaction between layers in multi-layered materials,
each layer should have a separate atom type and interactions should only
be computed between atom types of neighbouring layers.
The parameter file (e.g. CC.KC), is intended for use with metal The parameter file (e.g. CC.KC), is intended for use with metal
"units"_units.html, with energies in meV. "units"_units.html, with energies in meV. An additional parameter, {S},
is available to facilitate scaling of energies in accordance with
"(vanWijk)"_#vanWijk.
This potential must be used in combination with hybrid/overlay. This potential must be used in combination with hybrid/overlay.
Other interactions can be set to zero using pair_style {none}. Other interactions can be set to zero using pair_style {none}.
@ -46,10 +58,15 @@ LAMMPS"_Section_start.html#start_3 section for more info.
"pair_coeff"_pair_coeff.html "pair_coeff"_pair_coeff.html
"pair_none"_pair_none.html "pair_none"_pair_none.html
"pair_style hybrid/overlay"_pair_hybrid.html
[Default:] none [Default:] none
:line :line
:link(KC) :link(KC05)
[(KC)] Kolmogorov, Crespi, Phys. Rev. B 71, 235415 (2005) [(KC05)] A. N. Kolmogorov, V. H. Crespi, Phys. Rev. B 71, 235415 (2005)
:link(vanWijk)
[(vanWijk)] M.M. van Wijk, A. Schuring, M.I. Katsnelson, and A. Fasolino,
Physical Review Letters, 113, 135504 (2014)

View File

@ -2,7 +2,7 @@
# #
# Cite as A.N. Kolmogorov & V. H. Crespi, # Cite as A.N. Kolmogorov & V. H. Crespi,
# Registry-dependent interlayer potential for graphitic systems # Registry-dependent interlayer potential for graphitic systems
# Physical Review B 71, 2354150 (2005) # Physical Review B 71, 235415 (2005)
# #
# z0 C0 C2 C4 C delta lambda A S # z0 C0 C2 C4 C delta lambda A S
C C 3.34 15.71 12.29 4.933 3.030 0.578 3.629 10.238 1.0 C C 3.34 15.71 12.29 4.933 3.030 0.578 3.629 10.238 1.0

View File

@ -158,11 +158,12 @@ void PairKolmogorovCrespiZ::compute(int eflag, int vflag)
} }
if (eflag) { if (eflag) {
evdwl = -p.A*p.z06/r6+ exp1*sumCff+offset[itype][jtype]; evdwl = -p.A*p.z06/r6+ exp1*sumCff - offset[itype][jtype];
} }
if (evflag){ if (evflag){
ev_tally(i,j,nlocal,newton_pair,evdwl,0.0,fpair,delx,dely,delz); ev_tally_xyz(i,j,nlocal,newton_pair,evdwl,0,
fsum,fsum,fpair,delx,dely,delz);
} }
} }
} }
@ -286,7 +287,8 @@ double PairKolmogorovCrespiZ::init_one(int i, int j)
if (offset_flag) { if (offset_flag) {
int iparam_ij = elem2param[map[i]][map[j]]; int iparam_ij = elem2param[map[i]][map[j]];
offset[i][j] = params[iparam_ij].A*pow(params[iparam_ij].z0/cut[i][j],6); Param& p = params[iparam_ij];
offset[i][j] = -p.A*pow(p.z0/cut[i][j],6);
} else offset[i][j] = 0.0; } else offset[i][j] = 0.0;
offset[j][i] = offset[i][j]; offset[j][i] = offset[i][j];