ML LHEAT: Difference between revisions
No edit summary |
No edit summary |
||
(7 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{TAGDEF| | {{DISPLAYTITLE:ML_LHEAT}} | ||
{{TAGDEF|ML_LHEAT|[logical]|.FALSE.}} | |||
Description: This | Description: This tag specifies whether the heat flux is calculated or not in the machine learning force field method. | ||
---- | ---- | ||
The heat flux within machine learning force fields | The heat flux within machine learning force fields is decomposed into atomic contributions written as | ||
<math> | <math> | ||
Line 22: | Line 23: | ||
<math> | <math> | ||
m_{i} \frac{d \mathbf{v}_{i}}{dt} = - \sum\limits_{j=1}{N_{a}} \nabla_{i} U_{j} | m_{i} \frac{d \mathbf{v}_{i}}{dt} = - \sum\limits_{j=1}^{N_{a}} \nabla_{i} U_{j} | ||
</math> | </math> | ||
Line 28: | Line 29: | ||
<math> | <math> | ||
\mathbf{q}(t) = \sum\limits_{i=1}^{N_{a}} \mathbf{v}_{i} E_{i} - \sum\limits_{i=1}^{N_{a}} \sum\limits_{j=1}^{N_{a}} \mathbf{r}_{i} \left( \mathbf{v}_{i} \cdot \nabla_{i} U_{j} \right) + | \mathbf{q}(t) = \sum\limits_{i=1}^{N_{a}} \mathbf{v}_{i} E_{i} - \sum\limits_{i=1}^{N_{a}} \sum\limits_{j=1}^{N_{a}} \mathbf{r}_{i} \left( \mathbf{v}_{i} \cdot \nabla_{i} U_{j} \right) + \sum\limits_{i=1}^{N_{a}} \sum\limits_{j=1}^{N_{a}} \mathbf{r}_{i} \left( \mathbf{v}_{j} \cdot \nabla_{j} U_{i} \right) = \sum\limits_{i=1}^{N_{a}} \mathbf{v}_{i} E_{i} + \sum\limits_{i=1}^{N_{a}} \sum\limits_{j=1}^{N_{a}} \left( \mathbf{r}_{i} - \mathbf{r}_{j} \right) \left( \mathbf{v}_{j} \cdot \nabla_{j} U_{i} \right). | ||
</math> | </math> | ||
Line 44: | Line 45: | ||
The heat flux is written to the file {{TAG|ML_HEAT}}. | The heat flux is written to the file {{TAG|ML_HEAT}}. | ||
== Related | == Related tags and articles == | ||
{{TAG| | {{TAG|ML_LMLFF}}, {{TAG|ML_LEATOM}} | ||
{{sc| | {{sc|ML_LHEAT|Examples|Examples that use this tag}} | ||
---- | ---- | ||
[[Category:INCAR]][[Category:Machine | [[Category:INCAR tag]][[Category:Machine-learned force fields]] |
Latest revision as of 07:24, 10 May 2022
ML_LHEAT = [logical]
Default: ML_LHEAT = .FALSE.
Description: This tag specifies whether the heat flux is calculated or not in the machine learning force field method.
The heat flux within machine learning force fields is decomposed into atomic contributions written as
[math]\displaystyle{ \mathbf{q}(t) = \sum\limits_{i=1}^{N_{a}} \frac{d}{dt} \left( \mathbf{r}_{i} E_{i} \right), }[/math]
[math]\displaystyle{ E_{i}=\frac{m_{i} \left|\mathbf{v}_{i} \right|^{2}}{2} + U_{i} }[/math]
where [math]\displaystyle{ \mathbf{r}_{i} }[/math], [math]\displaystyle{ \mathbf{v}_{i} }[/math] and [math]\displaystyle{ E_{i} }[/math] denote the position vector, velocity and energy of atom [math]\displaystyle{ i }[/math], respectively. The number of atoms in the system is denoted by [math]\displaystyle{ N_{a} }[/math]. The heat flux can be further rewritten as
[math]\displaystyle{ \mathbf{q}(t) = \sum\limits_{i=1}^{N_{a}} \mathbf{v}_{i} E_{i} + \sum\limits_{i=1}^{N_{a}} \mathbf{r}_{i} \left( m_{i} \mathbf{v}_{i} \cdot \frac{d\mathbf{v}_{i}}{dt} + \sum\limits_{j=1}^{N_{a}} \mathbf{v}_{j} \cdot \nabla_{j} U_{i} \right). }[/math]
Using the equation of motions
[math]\displaystyle{ m_{i} \frac{d \mathbf{v}_{i}}{dt} = - \sum\limits_{j=1}^{N_{a}} \nabla_{i} U_{j} }[/math]
the heat flux can be simplified to
[math]\displaystyle{ \mathbf{q}(t) = \sum\limits_{i=1}^{N_{a}} \mathbf{v}_{i} E_{i} - \sum\limits_{i=1}^{N_{a}} \sum\limits_{j=1}^{N_{a}} \mathbf{r}_{i} \left( \mathbf{v}_{i} \cdot \nabla_{i} U_{j} \right) + \sum\limits_{i=1}^{N_{a}} \sum\limits_{j=1}^{N_{a}} \mathbf{r}_{i} \left( \mathbf{v}_{j} \cdot \nabla_{j} U_{i} \right) = \sum\limits_{i=1}^{N_{a}} \mathbf{v}_{i} E_{i} + \sum\limits_{i=1}^{N_{a}} \sum\limits_{j=1}^{N_{a}} \left( \mathbf{r}_{i} - \mathbf{r}_{j} \right) \left( \mathbf{v}_{j} \cdot \nabla_{j} U_{i} \right). }[/math]
Finally (in a post-processing step), the thermal conductivity at temperature [math]\displaystyle{ T }[/math] in the Green-Kubo formalism can be calculated from the correlation of the heat flux [math]\displaystyle{ \mathbf{q} }[/math] as
[math]\displaystyle{ \kappa = \frac{1}{3Vk_{b}T^{2}} \int\limits_{0}^{\infty} \langle \mathbf{q}(t) \cdot \mathbf{q}(0) \rangle dt, }[/math]
where [math]\displaystyle{ V }[/math] and [math]\displaystyle{ k_{b} }[/math] denotes the volume of the system and the Boltzmann constant, respectively.
The heat flux is written to the file ML_HEAT.