Jump to content

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

MDALGO: Difference between revisions

From VASP Wiki
No edit summary
Line 51: Line 51:
== {{TAG|MDALGO}}=13: Multiple Andersen thermostats ==
== {{TAG|MDALGO}}=13: Multiple Andersen thermostats ==
<div id="multiAnderson"></div>
<div id="multiAnderson"></div>
Up to three user-defined atomic subsystems may be coupled with independent [[Andersen thermostat|Andersen thermostats]]<ref name="Andersen80"/> (see remarks under {{TAG|MDALGO}}=1 as well).
Up to three user-defined atomic subsystems may be coupled with independent [[Andersen thermostat|Andersen thermostats]]<ref name="Andersen80"/> ({{TAG|MDALGO}}=1).
The {{FILE|POSCAR}} file must be organized such that the positions of atoms of subsystem ''i+1'' are defined after those for the subsystem ''i'', and the following flags must be set by the user:  
The {{FILE|POSCAR}} file must be organized such that the positions of atoms of subsystem ''i+1'' are defined after those for the subsystem ''i'', and the following tags must be set: {{TAG|NSUBSYS}}, {{TAG|TSUBSYS}}, and {{TAG|PSUBSYS}}.
*{{TAG|NSUBSYS}}=[int array]
:Define the last atom for each subsystem (two or three values must be supplied). For instance, if total of 20 atoms is defined in the {{FILE|POSCAR}} file, and the initial 10 atoms belong to the subsystem 1, the next 7 atoms to the subsystem 2, and the last 3 atoms to the subsystem 3, {{TAG|NSUBSYS}} should be defined as follows:
 
:{{TAG|NSUBSYS}}= 10 17 20
 
:Note that the last number in the previous example is actually redundant (clearly the last three atoms belong to the last subsystem) and does not have to be user-supplied.
 
*{{TAG|TSUBSYS}}=[real array]
:Simulation temperature for each subsystem
*{{TAG|PSUBSYS}}=[real array]
:Collision probability for atoms in each subsystem. Only the values 0&le;{{TAG|PSUBSYS}}&le;1 are allowed.


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

Revision as of 07:29, 22 October 2025

MDALGO = 0 | 1 | 2 | 3 | 4 | 5 | 11 | 21 | 13
Default: MDALGO = 0 

Description: Specifies the thermostat for MD calculations (in case IBRION = 0).


MDALGO=1,2,3,4,5 can be applied in the context of

The main output file is the REPORT file.

MDALGO = 0 : Standard molecular dynamics

Selects a Nosé-Hoover thermostat which allows sampling the NVT ensemble at temperature TEBEG. The Nosé-Hoover thermostat requires an appropriate setting for SMASS. To sample an NVE ensemble set SMASS = -3 .

MDALGO = 1 : Andersen thermostat

The Andersen thermostat can be used to sample an NVT ensemble, which requires setting an appropriate value for ANDERSEN_PROB.

For ANDERSEN_PROB = 0.0 , the thermostat is inactive, such that the NVE ensemble is sampled. This is usually done after thermalization to a certain target temperature.

MDALGO = 2 : Nosé-Hoover thermostat

The Nosé-Hoover thermostat is currently only available for the NVT ensemble. It requires setting an appropriate value for SMASS.

MDALGO = 3 : Langevin thermostat

The Langevin thermostat is available for sampling an NVT ensemble as well as sampling an NpT ensemble.

  1. Set ISIF = 3  to allow for relaxation of the cell volume and shape. At the moment, dynamics with fixed volume+variable shape (ISIF=4) or fixed shape+variable volume (ISIF=7) are not available.
  2. Specify friction coefficients for all species in the POSCAR file by means of the LANGEVIN_GAMMA tag.
  3. Specify a separate set of friction coefficient for the lattice degrees-of-freedom using the LANGEVIN_GAMMA_L tag.
  4. Set a mass for the lattice degrees-of-freedom using the PMASS tag.
  5. Optionally, one may define an external pressure (in kB) by means of the PSTRESS tag.

Also see stochastic boundary conditions.

MDALGO = 4 : Nosé-Hoover chain thermostat

The Nosé-Hoover chain thermostat can be used to sample an NVT ensemble and requires selecting the number of thermostats in the chain via NHC_NCHAINS as well as choosing an appropriate setting for the thermostat parameter NHC_PERIOD.

MDALGO=5: Canonical sampling through velocity-rescaling (CSVR thermostat)

The CSVR thermostat can be used to sample an NVT ensemble. It requires setting CSVR_PERIOD.

MDALGO=13: Multiple Andersen thermostats

Up to three user-defined atomic subsystems may be coupled with independent Andersen thermostats[3] (MDALGO=1). The POSCAR file must be organized such that the positions of atoms of subsystem i+1 are defined after those for the subsystem i, and the following tags must be set: NSUBSYS, TSUBSYS, and PSUBSYS.

Related tags and articles

IBRION, ISIF, SMASS, ANDERSEN_PROB, RANDOM_SEED, LBLUEOUT, SHAKETOL, SHAKEMAXITER, HILLS_H, HILLS_W, HILLS_BIN, INCREM, VALUE_MIN, VALUE_MAX, LANGEVIN_GAMMA, LANGEVIN_GAMMA_L, PMASS, NSUBSYS, TSUBSYS, PSUBSYS, ICONST, PENALTYPOT, HILLSPOT, REPORT

Examples that use this tag

References