Constrained molecular dynamics: Difference between revisions

From VASP Wiki
No edit summary
No edit summary
 
(4 intermediate revisions by one other user not shown)
Line 35: Line 35:
<div id="Slowgro"></div>
<div id="Slowgro"></div>


== Anderson thermostat ==
== How to ==
Geometric constraints are introduced by defining one or more entries with the STATUS parameter set to 0 in the {{FILE|ICONST}}-file. Constraints can be used within a standard NVT or NpT MD setting introduced by {{TAG|MDALGO}}=1|2|3. Note that fixing geometric parameters related to lattice vectors is not allowed within an NVT simulation (VASP would terminate with an error message). Constraints can be combined with restraints, time-dependent bias potentials ([[:Category:Metadynamics|Metadynamics]]), monitored coordinates and other elements available within the context of MD.       


* For a constrained molecular dynamics run with Andersen thermostat, one has to:
#Set the standard MD-related tags: {{TAG|IBRION}}=0, {{TAG|TEBEG}}, {{TAG|POTIM}}, and {{TAG|NSW}}.
#Set {{TAG|MDALGO}}=1, and choose an appropriate setting for {{TAG|ANDERSEN_PROB}}.
#Define geometric constraints in the {{FILE|ICONST}}-file, and set the STATUS parameter for the constrained coordinates to 0.
#When the free-energy gradient is to be computed, set {{TAG|LBLUEOUT}}=.TRUE.


== References ==
== References ==

Latest revision as of 06:48, 19 July 2022

Constrained molecular dynamics is performed using the SHAKE algorithm.[1]. In this algorithm, the Lagrangian for the system is extended as follows:

where the summation is over r geometric constraints, is the Lagrangian for the extended system, and λi is a Lagrange multiplier associated with a geometric constraint σi:

with ξi(q) being a geometric parameter and ξi is the value of ξi(q) fixed during the simulation.

In the SHAKE algorithm, the Lagrange multipliers λi are determined in the iterative procedure:

  1. Perform a standard MD step (leap-frog algorithm):
  2. Use the new positions q(tt) to compute Lagrange multipliers for all constraints:
  3. Update the velocities and positions by adding a contribution due to restoring forces (proportional to λk):
  4. repeat steps 2-4 until either |σi(q)| are smaller than a predefined tolerance (determined by SHAKETOL), or the number of iterations exceeds SHAKEMAXITER.

How to

Geometric constraints are introduced by defining one or more entries with the STATUS parameter set to 0 in the ICONST-file. Constraints can be used within a standard NVT or NpT MD setting introduced by MDALGO=1|2|3. Note that fixing geometric parameters related to lattice vectors is not allowed within an NVT simulation (VASP would terminate with an error message). Constraints can be combined with restraints, time-dependent bias potentials (Metadynamics), monitored coordinates and other elements available within the context of MD.


References