Conventions#
This page documents the project-wide sign conventions used by nvalchemi.
Hessian#
Here, the Hessian is the matrix of second derivatives of total energy with respect to Cartesian positions:
Here i and j identify atoms, while a and b identify Cartesian
components. Dense Hessian blocks are stored with axes
[atom_out, atom_in, xyz_out, xyz_in], so entry [i, j, a, b] is
\(H_{ia,jb}\). In the default Toolkit unit system, the Hessian has units of
\(\mathrm{eV}/\mathrm{\AA}^2\).
Forces use \(F=-\partial E/\partial R\). Their directional Jacobian therefore has the opposite sign:
Virial#
The virial tensor is defined as the negative strain derivative of the energy:
where \(\varepsilon\) is the symmetric infinitesimal strain tensor.
Low-level interaction kernels in nvalchemiops return virials using this
convention.
Stress#
The public stress tensor in nvalchemi follows the tensile-positive
Cauchy stress convention:
where \(V = |\det(\mathbf{C})|\) is the cell volume. Cauchy stress is the true stress tensor for the current configuration: it maps a surface normal to the traction acting on that surface.
Pressure#
Scalar and tensor pressure are positive for compression. From the tensile-positive stress tensor:
The NPT/NPH pressure tensor uses the same sign convention:
where \(\mathbf{K}\) is the kinetic tensor and \(W\) is the virial. For a static system with \(\sigma = -p\mathbf{I}\), this gives \(\mathbf{P} = p\mathbf{I}\).
References#
Malvern, L. E. Introduction to the Mechanics of a Continuous Medium. Prentice-Hall, 1969.
Thompson, A. P.; Plimpton, S. J.; Mattson, W. “General formulation of pressure and stress tensor for arbitrary many-body interaction potentials under periodic boundary conditions.” J. Chem. Phys. 131, 154107 (2009). doi:10.1063/1.3245303