LATTICE CONSTRAINTS: Difference between revisions

From VASP Wiki
No edit summary
No edit summary
Line 1: Line 1:
{{DISPLAYTITLE:LATTICE_CONSTRAINTS}}{{TAGDEF|LATTICE_CONSTRAINTS|[logical][logical][logical]}}
{{DISPLAYTITLE:LATTICE_CONSTRAINTS}}{{TAGDEF|LATTICE_CONSTRAINTS|[logical][logical][logical]}}


Description: The tag {{TAG|LATTICE_CONSTRAINTS}} determines whether the lattice dynamics are released ({{TAG|LATTICE_CONSTRAINTS}}=''.TRUE.'') in the given directions in molecular-dynamics calculations ({{TAG|IBRION}}=0).  
Description: Sets three boolean to selectively allow changes in the lattice vectors.
----
----
This tag requires three boolean values for the <math>a</math>, <math>b</math> and <math>c</math> direction of the lattice constants, respectively. By setting ''.TRUE.'' the lattice constant in the respective direction is allowed to change.
{{TAG|LATTICE_CONSTRAINTS}} requires three boolean values for the lattice constants corresponding to the lattice vectors  <math>{\vec a}_1, {\vec a}_2</math> and <math>{\vec a}_3</math> defined in the {{FILE|POSCAR}} file, respectively. By setting ''.TRUE.'' the lattice constant in the respective direction is allowed to change.


We recommend using {{TAG|LATTICE_CONSTRAINTS}} for (orthorombic) liquids in the isobaric-isothermal ([[NpT ensemble|NpT]]) ensemble in the following way:
For [[MD|MD simulations]] ({{TAG|IBRION}}=0), we recommend using {{TAG|LATTICE_CONSTRAINTS}} for (orthorhombic) liquids in the isobaric-isothermal ([[NpT ensemble|NpT]]) ensemble in the following way:
  {{TAGBL|LATTICE_CONSTRAINTS}} = .FALSE. .FALSE. .TRUE.
  {{TAGBL|LATTICE_CONSTRAINTS}} = .FALSE. .FALSE. .TRUE.


This way the first two lattice constants are not allowed to change. The third lattice constant needs to be free to change to allow volume changes for the barostat (the system is then like a piston). The constraints are necessary for liquids in [[NpT ensemble|NpT]] simulations, because if all lattice degrees of freedom are allowed to relax, irreversible deformations of the cell are very likely to happen that can lead to undesirable results.
This way, the first two lattice constants are not allowed to change. The third lattice constant needs to be free to change to allow volume changes for the barostat. The system is then like a piston. The constraints are necessary for liquids in [[NpT ensemble|NpT]] simulations, because if all lattice degrees of freedom are allowed to relax, irreversible deformations of the cell are very likely to happen. This can lead to undesirable results like a very flat supercell, which cannot be used to obtain valid MD trajectories.
{{NB|warning|{{TAG|LATTICE_CONSTRAINTS}} is only available for molecular-dynamics calculations.}}
 
For [[Ionic minimization|structure relaxation]] ({{TAG|IBRION}}=1,2), {{TAG|LATTICE_CONSTRAINTS}} is useful to relax the lattice constants of 2D materials. In case of a slab in the <math>{\vec a}_1</math>-<math>{\vec a}_2</math> plane, add vacuum padding along <math>{\vec a}_3</math> and set
{{TAGBL|LATTICE_CONSTRAINTS}} = .TRUE. .TRUE. .FALSE.


== Related tags and articles ==
== Related tags and articles ==

Revision as of 08:10, 17 November 2023

LATTICE_CONSTRAINTS = [logical][logical][logical] 

Description: Sets three boolean to selectively allow changes in the lattice vectors.


LATTICE_CONSTRAINTS requires three boolean values for the lattice constants corresponding to the lattice vectors and defined in the POSCAR file, respectively. By setting .TRUE. the lattice constant in the respective direction is allowed to change.

For MD simulations (IBRION=0), we recommend using LATTICE_CONSTRAINTS for (orthorhombic) liquids in the isobaric-isothermal (NpT) ensemble in the following way:

LATTICE_CONSTRAINTS = .FALSE. .FALSE. .TRUE.

This way, the first two lattice constants are not allowed to change. The third lattice constant needs to be free to change to allow volume changes for the barostat. The system is then like a piston. The constraints are necessary for liquids in NpT simulations, because if all lattice degrees of freedom are allowed to relax, irreversible deformations of the cell are very likely to happen. This can lead to undesirable results like a very flat supercell, which cannot be used to obtain valid MD trajectories.

For structure relaxation (IBRION=1,2), LATTICE_CONSTRAINTS is useful to relax the lattice constants of 2D materials. In case of a slab in the - plane, add vacuum padding along and set

LATTICE_CONSTRAINTS = .TRUE. .TRUE. .FALSE.

Related tags and articles

IBRION, MDALGO, Interface pinning

Examples that use this tag