RANDOM_SEED

From VASP Wiki
Revision as of 11:20, 5 December 2023 by Jona (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

RANDOM_SEED = [integer][integer][integer]
Default: RANDOM_SEED = based on the system clock 

Description: RANDOM_SEED specifies the seed of the random-number generator (compile VASP with -Dtbdyn).


The random-number generator (RNG) generates a sequence of random numbers, which is initialized by the tag RANDOM_SEED. For example, in molecular dynamics simulations, the RNG can be used to initialize atomic velocities. Hence, the seed for the RNG influences the trajectory of a molecular dynamics simulation. The three integers of RANDOM_SEED must fulfill these conditions:

0 <= RANDOM_SEED(1) < 900000000
0 <= RANDOM_SEED(2) < 1000000
0 <= RANDOM_SEED(3)

A typical input for the RANDOM_SEED looks like this:

RANDOM_SEED =         248489752                0                0

The initial value of RANDOM_SEED and the value after each MD step are written to the REPORT file.

Tip: If multiple molecular dynamics runs with different random seeds result in inconsistent time averages, then not enough configurations were sampled. Hence, longer or more trajectories are required to get converged ensemble averages.
Mind: If no RANDOM_SEED is set in the INCAR then the used value will depend on the system time. For example, in molecular dynamics simulations, initial velocities will be different each time VASP is executed (if TEBEG is used and no velocities are provided in the POSCAR file). Hence, the trajectories will diverge. If reproducibility is desired the RANDOM_SEED has to be set manually.

Related tags and articles

IBRION, MDALGO

Examples that use this tag