Nudged elastic bands: Difference between revisions

From VASP Wiki
No edit summary
m (Huebsch moved page Construction:Nudged elastic bands to Nudged elastic bands without leaving a redirect)
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
The nudged elastic band (NEB) method{{cite|mills:surf-sci:1995}}{{cite|jonsson:book:1998}} is a computational technique to study the energy landscape and reaction pathways of chemical reactions or phase transitions.
The nudged elastic band (NEB) method{{cite|mills:surf-sci:1995}}{{cite|jonsson:book:1998}} is a computational technique used for studying energy landscapes and reaction pathways in chemical reactions or phase transitions.
It involves the construction of an initial path connecting the initial and final states of a system, with a series of ''images'' representing intermediate configurations.
It entails creating an initial path connecting the system's initial and final states, employing a series of ''images'' to represent intermediate configurations.
These images are connected by springs, which create an elastic band.
These images are linked by springs, forming an elastic band.
The method then iteratively adjusts the positions of the images along the band, while minimizing the energy, until a minimum energy pathway (the "nudged" path) is found.
The method then iteratively adjusts the image positions along the band, minimizing energy until a minimum energy pathway, known as the 'nudged' path, is achieved.


== How-to set up a NEB calculation ==
== How to set up an NEB calculation ==


The nudged elastic band (NEB) method is a technique used to calculate energy barriers in VASP. When employing this method, the SPRING parameter is set to a negative value (e.g., SPRING= -5), which is the recommended setting. This negative value introduces additional tangential springs to maintain equidistance among images during the relaxation process. It is important not to use excessively large values for SPRING, as it can hinder convergence. The default value generally provides reliable results.
==== Step 1 ====
Carefully converge the fixed structures of your elastic band, i.e., the initial and the final state.
Remember that in the subsequent steps, the elastic band will be attached to these fixed structures, so any error will affect the transition path you obtain.


One challenge with the NEB method arises from its non-linear constraint, where movements are restricted to the hyper-plane perpendicular to the current tangent. This characteristic can lead to convergence issues with the Conjugate Gradient (CG) algorithm. In such cases, it is advisable to use alternative algorithms like the RMM-DIIS algorithm (IBRION=1) or the quick-min algorithm (IBRION=3). Additionally, the equidistant images tend to deviate from this constraint in the initial steps. To address this, applying a low dimensionality parameter (IBRION=1, NFREE=2) in the initial steps or using steepest descent minimization without line optimization (IBRION=3, SMASS=2) can help pre-converge the images.
==== Step 2 ====
Construct an initial guess for the intermediate structures.
You may use a script like in the [[Collective jumps of a Pt adatom on fcc-Pt (001): Nudged Elastic Band Calculation|tutorial]] or develop your own method.
This script in the tutorial also offers the option to remove center-of-mass motion.
These intermediate images should be somewhat close to the real transition path; otherwise, the optimization of the elastic band may fail.
Place the {{FILE|POSCAR}} files corresponding to these intermediate structures in subdirectories 01, 02, etc.
{{NB|mind|Make sure that the {{FILE|POSCAR}} contains the same ordering of elements for initial, final, and intermediate states. It is highly recommended to minimize the number of images used to an absolute minimum. Convergence to the ground state is faster with fewer images. Starting with a single image between the two endpoints and increasing the number of images after the initial run has converged is often a prudent approach.}}


If all degrees of freedom are allowed to relax (e.g., in isolated molecules or surfaces), it is crucial to ensure that the sum of all positions remains consistent across all cells. Failing to do so introduces artificial forces, causing the images to drift apart. While this doesn't affect the VASP calculations, it can complicate result visualization. Often, an initial linearly interpolated starting guess is appropriate, which can be achieved using a script called interpolatePOS. This script also offers the option to remove center-of-mass motion.
==== Step 3 ====
Create an {{FILE|INCAR}} file in the root directory and set the tag {{TAG|IMAGES}} to the number of intermediate structures.
This will introduce tangential springs to maintain equidistance among images during the relaxation process.
You can control the strength with the {{TAG|SPRING}} tag, where negative values (like the default of -5) activate the NEB method.
It is important not to use excessively large values for {{TAG|SPRING}}, as it can hinder convergence.
The default value generally provides reliable results.
You should also set {{TAG|IBRION}}, {{TAG|ISIF}}, {{TAG|NSW}}, and other [[Category:Ionic minimization|relaxation-related tags]].


It is highly recommended to minimize the number of images used to an absolute minimum. Convergence to the ground state is faster with fewer images. Starting with a single image between the two endpoints and increasing the number of images after the initial run has converged is often a prudent approach.
==== Step 4 ====
Create the remaining input files {{FILE|KPOINTS}} and {{FILE|POTCAR}}.
For the NEB method, we recommend that all input files, except the {{TAG|POSCAR}}, {{TAG|WAVECAR}} and {{TAG|CHGCAR}} file, reside in the root directory.
Then, run VASP until the path is optimized.


For the nudged elastic band method, it is recommended that all input files, except the {{TAG|POSCAR}}, {{TAG|WAVECAR}} and {{TAG|CHGCAR}} file, reside in the root directory.  
== Possible issues and advice on how to address it ==
One challenge with the NEB method arises from its non-linear constraint, which restricts movements to a hyper-plane perpendicular to the current tangent.
This characteristic can lead to convergence issues with the conjugate-gradient (CG) algorithm ({{TAG|IBRION}}=2).
In such cases, it is advisable to use alternative algorithms like the RMM-DIIS algorithm ({{TAG|IBRION}}=1) or the quick-min algorithm ({{TAG|IBRION}}=3).
Additionally, the equidistant images tend to deviate from this constraint in the initial steps.
To address this, applying a low dimensionality parameter ({{TAG|IBRION}}=1, {{TAG|NFREE}}=2) in the initial steps or using steepest descent minimization without line optimization ({{TAG|IBRION}}=3, {{TAG|SMASS}}=2) can help pre-converge the images.
 
If all degrees of freedom are allowed to relax, (e.g., in isolated molecules or surfaces), it is crucial to ensure that the sum of all positions remains consistent across all cells.
Failing to do so introduces artificial forces, causing the images to drift apart.
While this does not affect the VASP calculations, it can complicate result visualization.
{{NB|tip|For more advanced calculations, consider using the [https://theory.cm.utexas.edu/vtsttools/ Transition State Tools for VASP].}}


== Related tags and articles ==
== Related tags and articles ==
Line 22: Line 49:


[[TS search using the NEB Method]]
[[TS search using the NEB Method]]
== References ==
== References ==
<references/>
<references/>


[[Category:Transition States]][[Category:Howto]]
[[Category:Transition states]][[Category:Ionic minimization]][[Category:Howto]]

Latest revision as of 11:26, 20 October 2023

The nudged elastic band (NEB) method[1][2] is a computational technique used for studying energy landscapes and reaction pathways in chemical reactions or phase transitions. It entails creating an initial path connecting the system's initial and final states, employing a series of images to represent intermediate configurations. These images are linked by springs, forming an elastic band. The method then iteratively adjusts the image positions along the band, minimizing energy until a minimum energy pathway, known as the 'nudged' path, is achieved.

How to set up an NEB calculation

Step 1

Carefully converge the fixed structures of your elastic band, i.e., the initial and the final state. Remember that in the subsequent steps, the elastic band will be attached to these fixed structures, so any error will affect the transition path you obtain.

Step 2

Construct an initial guess for the intermediate structures. You may use a script like in the tutorial or develop your own method. This script in the tutorial also offers the option to remove center-of-mass motion. These intermediate images should be somewhat close to the real transition path; otherwise, the optimization of the elastic band may fail. Place the POSCAR files corresponding to these intermediate structures in subdirectories 01, 02, etc.

Mind: Make sure that the POSCAR contains the same ordering of elements for initial, final, and intermediate states. It is highly recommended to minimize the number of images used to an absolute minimum. Convergence to the ground state is faster with fewer images. Starting with a single image between the two endpoints and increasing the number of images after the initial run has converged is often a prudent approach.

Step 3

Create an INCAR file in the root directory and set the tag IMAGES to the number of intermediate structures. This will introduce tangential springs to maintain equidistance among images during the relaxation process. You can control the strength with the SPRING tag, where negative values (like the default of -5) activate the NEB method. It is important not to use excessively large values for SPRING, as it can hinder convergence. The default value generally provides reliable results. You should also set IBRION, ISIF, NSW, and other.

Step 4

Create the remaining input files KPOINTS and POTCAR. For the NEB method, we recommend that all input files, except the POSCAR, WAVECAR and CHGCAR file, reside in the root directory. Then, run VASP until the path is optimized.

Possible issues and advice on how to address it

One challenge with the NEB method arises from its non-linear constraint, which restricts movements to a hyper-plane perpendicular to the current tangent. This characteristic can lead to convergence issues with the conjugate-gradient (CG) algorithm (IBRION=2). In such cases, it is advisable to use alternative algorithms like the RMM-DIIS algorithm (IBRION=1) or the quick-min algorithm (IBRION=3). Additionally, the equidistant images tend to deviate from this constraint in the initial steps. To address this, applying a low dimensionality parameter (IBRION=1, NFREE=2) in the initial steps or using steepest descent minimization without line optimization (IBRION=3, SMASS=2) can help pre-converge the images.

If all degrees of freedom are allowed to relax, (e.g., in isolated molecules or surfaces), it is crucial to ensure that the sum of all positions remains consistent across all cells. Failing to do so introduces artificial forces, causing the images to drift apart. While this does not affect the VASP calculations, it can complicate result visualization.

Tip: For more advanced calculations, consider using the Transition State Tools for VASP.

Related tags and articles

IMAGES, SPRING, IBRION

Collective jumps of a Pt adatom on fcc-Pt (001): Nudged Elastic Band Calculation

TS search using the NEB Method

References