# Category:Forces

Forces on particles are a fundamental concept in condensed matter physics and chemistry. These forces describe the interactions that cause particles, such as atoms and molecules, to move and behave in specific ways. In VASP, forces result from electromagnetic interactions, which can be computed by means of the Hellmann-Feynman theorem within DFT, the random-phase approximation or by the use of machine learning force fields. Understanding interaction forces between atoms is crucial in many aspects of science, for example:

Formally, the force can be defined as follows. Let $\mathbf {r} (t)$ be the position of the particle, then the velocity is defined as the change of position with time

$\mathbf {v} (t)={\frac {d\mathbf {r} (t)}{dt}}$ and the momentum $\mathbf {p} (t)$ of the particle is the velocity times the particle mass $m$ $\mathbf {p} (t)=m\mathbf {v} (t).$ Newton's second law of motion states that the change of motion of an object is proportional to the force acting on the object and oriented in the same direction as the force vector. Therefore, the force is defined as the change of particle momentum with time

$\mathbf {F} (t)=m{\frac {d\mathbf {v} (t)}{dt}}=m\mathbf {a} (t),$ where $\mathbf {a} (t)$ is the acceleration of the particle. With this equation of motion, the knowledge of some starting conditions $\mathbf {r} (0)$ and $\mathbf {v} (0)$ and an algorithm to compute the forces $\mathbf {F}$ the trajectory $\mathbf {r} (t)$ of a particle can be predicted for all times.

## Theory

The force and the negative gradient of the potential energy is directly related. The gradient of the potential energy can be computed from the Lagrangian of the particle system of interest. The Lagrangian for an N particle system is

$L=\sum _{i=1}^{N}m_{i}\mathbf {v} _{i}^{2}-V(\{\mathbf {r} _{i}\}),$ where $V(\{\mathbf {r} _{i}\})$ is the potential energy of the system. With Lagrange's equation of the second kind

${\frac {d}{dt}}{\frac {\partial L}{\partial \mathbf {v} _{i}}}={\frac {\partial L}{\partial \mathbf {r} _{i}}}$ the relation

$\mathbf {F} _{i}=-{\frac {\partial V(\{\mathbf {r} _{i}\})}{\partial \mathbf {r} _{i}}}=-\nabla V(\{\mathbf {r} _{i}\}).$ In order to predict forces and particle trajectories, the negative gradient of the potential energy has to be computed.

### DFT Forces

One way to compute the potential energy's negative gradient is through DFT. In DFT there is no classical potential energy function $V(\{\mathbf {r} _{i}\})$ but a Hamiltonian ${\mathcal {H}}$ depending on the ionic positions $\mathbf {R} _{i}$ and the electronic positions $\mathbf {r} _{i}$ . The exact form of the Hamiltonian is given by

${\mathcal {H}}=-{\frac {1}{2}}\sum _{i}\psi _{i}^{*}({\bf {r}})\nabla ^{2}\psi _{i}({\bf {r}})-\sum _{A}{\frac {Z_{A}}{\left\vert {\bf {r}}-{\bf {R}}_{A}\right\vert }}n({\bf {r}})+{\frac {1}{2}}{\frac {n({\bf {r}})n({\bf {r'}})}{\left\vert {\bf {r}}-{\bf {r'}}\right\vert }}+E_{\rm {xc}}+{\frac {1}{2}}\sum _{A\neq B}{\frac {Z_{A}Z_{B}}{\left\vert {\bf {R}}_{A}-{\bf {R}}_{B}\right\vert }},$ where $n(\mathbf {r} )$ denotes the electronic ground-state density and $\psi _{i}$ are the Kohn-Sham orbitals. $E_{XC}$ is the exchange-correlation energy. To obtain the force acting on ion A, the Hellmann-Feynman theorem has to be used.

$\mathbf {F} _{A}=-\nabla _{A}E_{tot}^{KS-DFT}=\nabla _{A}\sum _{A}\int {\frac {Z_{A}}{\left\vert {\bf {r}}-{\bf {R}}_{A}\right\vert }}n^{KS-DFT}({\bf {r}})d^{3}r-\nabla _{A}{\frac {1}{2}}\sum _{A\neq B}{\frac {Z_{A}Z_{B}}{\left\vert {\bf {R}}_{A}-{\bf {R}}_{B}\right\vert }},$ where $\nabla _{A}$ denotes the gradient with respect to ionic position $\mathbf {R} _{A}$ . The DFT forces will depend on the chosen exchange-correlation functional via the electronic ground-state density $n^{KS-DFT}({\bf {r}})$ . Therefore, the choice of the proper exchange-correlation functional for the system of interest is crucial for obtaining proper forces and, hence, the correct material properties.

### RPA-forces

The RPA approximation can be used to yield estimates for the exchange-correlation energy as well as forces (LRPAFORCE) within many-body perturbation theory. Note that the RPA is a correction to the underlying functional. Therefore, the choice of the proper exchange-correlation functional is still crucial in the RPA approach for obtaining forces.

### Machine-learned forces

A speedy but less accurate approach for obtaining forces is through a machine-learned force field (MLFF). In this approach, a machine-learning model is first trained on either the DFT or RPA forces, whereby also energies and stresses are considered. In the case of the RPA, the stress tensor is not computed. The machine-learning approach will be an approximation to the underlying method against which it was fitted.

The machine learning force field decomposes the total DFT energy into local atomic contributions $E_{B}(\{\mathbf {R} _{C}\})$ depending on all atomic positions in the system. Therefore, the force acting on ion A is computed by

$\mathbf {F} _{A}=-\nabla _{A}\sum _{B=1}^{N}E_{B}(\{\mathbf {R} _{C}\})=-\sum _{B}^{N}w_{B}{\frac {dK_{B}(\{\mathbf {R} _{C}\})}{d\mathbf {R} _{A}}},$ where $K(\mathbf {R} _{C})$ is the kernel matrix which can be found on the machine learning theory page. The kernel matrix as the local energies depends on the positions of all atoms $\{\mathbf {R} _{C}\}$ in the actual atomic configuration.

## Related concepts

### Stress and pressure

The stress tensor (see ISIF) provides valuable information about how forces are distributed throughout a material, both in magnitude and direction. It includes normal stresses, which act perpendicular to a given plane, and shear stresses, which act parallel to the plane. Together, these components allow predicting how materials will behave under various conditions, such as tension, compression, or shear. The stress tensor can be computed from a viral theorem, including pair forces, or with a finite difference approach deforming the simulation box.

Pressure, often denoted as P, is a scalar component of the stress tensor. It represents the normal force per unit area acting on a surface within the material. In the stress tensor, pressure is related to the diagonal components $\sigma _{xx}$ , $\sigma _{yy}$ , and $\sigma _{zz}$ :

$P={\frac {1}{3}}(\sigma _{xx}+\sigma _{yy}+\sigma _{zz}).$ In other words, the pressure is the average of the normal components of the stress tensor in the three spatial directions. In electronic structure calculations, finite basis sets are used to express the electron density. Due to this finiteness of the basis set, errors on the stress tensor and the pressure are introduced. The error in the pressure is referred to as Pulay stress and can be corrected with the tag PSTRESS or by increasing ENCUT.

### Force constants and phonons

The forces are defined as the negative gradient of the potential energy. The force-constant matrix is defined by

$\Phi _{I\alpha J\beta }(\{\mathbf {R} ^{0}\})=\left.{\frac {\partial E(\{\mathbf {R} \})}{\partial R_{I\alpha }\partial R_{J\beta }}}\right|_{\mathbf {R} =\mathbf {R^{0}} }=-\left.{\frac {\partial F_{I\alpha }(\{\mathbf {R} \})}{\partial R_{J\beta }}}\right|_{\mathbf {R} =\mathbf {R^{0}} }$ and is, therefore, the gradient of the force. The force-constant matrix is a fundamental concept in solid-state physics and materials science, especially in the context of understanding the vibrational properties of crystals. It is a mathematical representation of the interatomic forces and their interactions within a crystal lattice. This matrix is used to describe the relationships between atomic displacements and the resulting forces that occur in a crystal. By Fourier transforming the force-constant matrix, the dynamical matrix is obtained. By computing the eigenvalues of the dynamic matrix on various reciprocal lattice points, the phonon dispersion relation can be obtained. Understanding phonons is essential as they influence materials properties such as the electrical conductivity, thermal conductivity, and mechanical properties of materials.

## Subcategories

This category has only the following subcategory.

## Pages in category "Forces"

The following 6 pages are in this category, out of 6 total.