Jump to content

Requests for technical support from the VASP team should be posted in the VASP Forum.

VCAIMAGES: Difference between revisions

From VASP Wiki
No edit summary
Csheldon (talk | contribs)
No edit summary
 
(19 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{TAGDEF|VCAIMAGES|[real]|-1}}
{{TAGDEF|VCAIMAGES|[real]|-1}}


Description: The tag {{TAG|VCAIMAGES}} allows to perform two different MD's with e.g. different {{TAG|POTCAR}} files and perform force averaging between the two calculations.
Description: The tag {{TAG|VCAIMAGES}} allows to perform thermodynamic integrations (TI); it defines the coupling parameter λ.  
----
----
The tag {{TAG|VCAIMAGES}} gives the weight of the first image. The weight of the second image is 1-{{TAG|VCAIMAGES}}. Each image needs a seperate directory with all important files in it ({{TAG|POSCAR}}, {{TAG|INCAR}}, {{TAG|KPOINTS}} and {{TAG|POTCAR}}). The subdirectories for images one
{{TAG|VCAIMAGES}} allows two molecular dynamics (MD) simulations to be performed with e.g. different {{TAG|POTCAR}} or {{TAG|KPOINTS}} files or different exchange-correlation functionals, and averages the energies and forces between the two calculations. This is known as thermodynamic integration (TI) {{cite|dorner:PRL:2018}}.
and two have to be named '''01''' and '''02''', respectively. The tags {{TAG|VCAIMAGES}} and {{TAG|NCORE_IN_IMAGE1}} have to be the same in the {{TAG|INCAR}} files of the parent directory and both subdirectories. {{TAG|POTCAR}}, {{TAG|POSCAR}} and {{TAG|KPOINTS}} are first seeked in the root directory, and if they do not exist they have to be in the subdirectories '''01''' or '''02'''. The {{TAG|KPOINTS}} files can differ in the subdirectories. Also the remaining {{TAG|INCAR}} tags can differ in the subdirectories.


Forces and energies are averaged over the two images.
The tag {{TAG|VCAIMAGES}} internally splits the available nodes into two groups, and each group then performs an independent VASP calculation (this implies {{TAG|VCAIMAGES}} only works in the MPI version). This behavior is implemented in the same way as the [[Nudged elastic bands | nudged elastic band method]] (NEB) described under the tag {{TAG|IMAGES}}. As opposed to NEB, only two images are created ({{TAG|IMAGES}}=2 is set internally). The two calculations are performed in subdirectories <code>01</code> and <code>02</code> (<code>00</code> and <code>03</code> are not required, in contrast to NEB).


By setting {{TAG|VCAIMAGES}}>-1 (regardless of the value) the tag {{TAG|IMAGES}}=2 is automatically set. This means the communicator is split into two images. To set the number of cores in the first image the tag {{TAG|NCORE_IN_IMAGE1}} has to be set. The second image contains the remaining number of cores.
=== Description of reading a writing during the calculation ===
The two calculations are performed essentially independently in subdirectories <code>01</code> and <code>02</code>. The forces, energies, and the stress tensor of the two calculations are averaged according to the coupling parameter supplied by {{TAG|VCAIMAGES}}. Specifically, the value supplied in the tag {{TAG|VCAIMAGES}} determines the weight of the calculations performed in subdirectory <code>01</code>. The weight of the second image is 1-{{TAG|VCAIMAGES}}. After self-consistency has been reach for both calculations, the energies and forces are averaged, affecting the final total energy as well as the forces. This ensures that the trajectories for the two MD simulations are identical.  
{{NB|important|Make sure that the initial {{FILE|POSCAR}} is identical in both subdirectories.}}


== Related Tags and Sections ==
=== Finding the energies ===
{{TAG|NCORE_IN_IMAGE1}}
The averaged energies can be found in the {{TAG|OUTCAR}} file after the lines
<code>ENERGY OF THE ELECTRON-ION-THERMOSTAT SYSTEM (eV)</code>, as well as in the file {{TAG|OSZICAR}}
(in the lines writing the free energy <code>F=</code>). This can make looking for the energies of the individual calculation awkward. You can find these under <code>FREE ENERGIE OF THE ION-ELECTRON SYSTEM (eV)</code> in the {{FILE|OUTCAR}} file for a DFT calculation (They are under <code>ML FREE ENERGIE OF THE ION-ELECTRON SYSTEM (eV)</code> for a machine-learned force field (MLFF)). 
{{NB|important|In some cases it might be desirable to use a different number of cores for
the first image and the second image. E.g., when the thermodynamic integration is performed from a coarse to a dense k-point grid, or from a cheap
to an expensive exchange-correlation functional. To set the number of cores in the first image the tag {{TAG|NCORE_IN_IMAGE1}} has to be set. The second image then
contains the remaining cores.}}
The usage of this tag is also explained in the supplementary information of reference {{cite|dorner:PRL:2018}}.


----
== Related tags and articles ==
{{TAG|NCORE_IN_IMAGE1}}, {{TAG|SCALEE}}, {{TAG|IMAGES}}


[[Category:INCAR]][[Category:Molecular Dynamics]][[Category:Thermodynamic integration]]
== References ==
[[Category:INCAR tag]][[Category:Advanced molecular-dynamics sampling]]

Latest revision as of 11:37, 20 March 2026

VCAIMAGES = [real]
Default: VCAIMAGES = -1 

Description: The tag VCAIMAGES allows to perform thermodynamic integrations (TI); it defines the coupling parameter λ.


VCAIMAGES allows two molecular dynamics (MD) simulations to be performed with e.g. different POTCAR or KPOINTS files or different exchange-correlation functionals, and averages the energies and forces between the two calculations. This is known as thermodynamic integration (TI) [1].

The tag VCAIMAGES internally splits the available nodes into two groups, and each group then performs an independent VASP calculation (this implies VCAIMAGES only works in the MPI version). This behavior is implemented in the same way as the nudged elastic band method (NEB) described under the tag IMAGES. As opposed to NEB, only two images are created (IMAGES=2 is set internally). The two calculations are performed in subdirectories 01 and 02 (00 and 03 are not required, in contrast to NEB).

Description of reading a writing during the calculation

The two calculations are performed essentially independently in subdirectories 01 and 02. The forces, energies, and the stress tensor of the two calculations are averaged according to the coupling parameter supplied by VCAIMAGES. Specifically, the value supplied in the tag VCAIMAGES determines the weight of the calculations performed in subdirectory 01. The weight of the second image is 1-VCAIMAGES. After self-consistency has been reach for both calculations, the energies and forces are averaged, affecting the final total energy as well as the forces. This ensures that the trajectories for the two MD simulations are identical.

Finding the energies

The averaged energies can be found in the OUTCAR file after the lines ENERGY OF THE ELECTRON-ION-THERMOSTAT SYSTEM (eV), as well as in the file OSZICAR (in the lines writing the free energy F=). This can make looking for the energies of the individual calculation awkward. You can find these under FREE ENERGIE OF THE ION-ELECTRON SYSTEM (eV) in the OUTCAR file for a DFT calculation (They are under ML FREE ENERGIE OF THE ION-ELECTRON SYSTEM (eV) for a machine-learned force field (MLFF)).

The usage of this tag is also explained in the supplementary information of reference [1].

Related tags and articles

NCORE_IN_IMAGE1, SCALEE, IMAGES

References