6.2 Variable-cell nudged elastic band (VCNEB) method

Prediction of a phase transition mechanism can be considered as a double-ended problem, in which the algorithm has to locate the intermediate states. The nudged elastic band (NEB) 32; 33; 34 method is a widely used technique for solving double-ended problems, an efficient and robust approach for seeking reaction paths and saddle points along the “minimum energy path” (MEP) on the potential energy surface between the two endpoints. The NEB method has been successfully applied to study molecular chemical reactions, and defect migration, and in principle it could provide the energy barrier between the given initial and final states of a phase transition process. Unfortunately, most of the problems treated by the NEB method are considered under the constraint of constant unit cell — which precludes it from being used for phase transitions (which involve the variation of the unit cell along the transition path).

\includegraphics[scale=0.95]{pic/VCNEB.png}
Figure 15: The minimum energy path (line with gray circles) and initial path on a model 2D enthalpy surface. The forces in the VCNEB method on image $i$ are shown in the inset. $\mathbf{F}^{\nabla }_{i}$ is the potential force in the gradient direction. $\mathbf{F}^{\nabla \bot }_{i}$ and $\mathbf{F}^{s\parallel }_{i}$ are the transverse component of $\mathbf{F}^{\nabla }_{i}$ and the spring force, respectively.

The variable-cell NEB (VCNEB) method 14, which we have developed, treats the cell and atomic coordinates on an equal footing and operates in an expanded configuration space under the condition of constant pressure. Our VCNEB method framework has been added to the USPEX code in 2013. The VCNEB method is a more general tool for exploring the activation paths between the two endpoints of a phase transition process within a larger configuration space. Every structure on the pathway in the VCNEB method is regarded as an “Image”.

Input options for VCNEB

The VCNEB method is only enabled with the VASP, GULP and Quantum Espresso codes at the moment.

To switch on the VCNEB mode, you have to:

  1. Specify

    VCNEB : calculationMethod

  2. Create a file Images in the VASP5 format in your folder (VCNEB requires at least two structures, initial and final phases, to run the phase transition pathway prediction).

  3. Specify the following VCNEB options:

$\triangleright $ variable blue vcnebType

Meaning: Specifies type of the VCNEB calculation. This variable consists of three indices: calculation mode, image number variability, and spring constant variability:

Default: 110

Format:

111 : vcnebType

NOTE: If vcnebType=111, i.e., a calculation for VCNEB calculation with variable number of Images and variable spring constant is to be performed. We strongly suggest users to run a variable number of images in VCNEB calculations when investigating reconstructive phase transitions.

$\triangleright $ variable blue numImages

Meaning: Initial number of images to perform the calculation.

Default: 9

Format:

13 : numImages

$\triangleright $ variable blue numSteps

Meaning: Maximum number of VCNEB steps.

Default: 600

Format:

500 : numSteps

Notes: (1) When numSteps=-1, the initial pathway will only be generated with no further optimization. (2) Convergence of VCNEB pathways is usually rather slow. We recommend to set numSteps to at least 500.

$\triangleright $ variable blue optReadImages

Meaning: Options for reading the Images file:

Default: 2

Format:

1 : optReadImages

NOTE: In all options, the initial and final images must be specified. Automatic linear interpolation will be applied to generated the initial Images in option 1 and 2.

$\triangleright $ variable blue optimizerType

Meaning: Optimization algorithm option of structure relaxation:

Default: 1 (SD) — for VCNEB calculations; 2 (FIRE) — for structure relaxation

Format:

1 : optimizerType

$\triangleright $ variable blue optRelaxType

Meaning: Structure relaxation mode:

Default: 3

Format:

3 : optRelaxType

$\triangleright $ variable blue dt

Meaning: Time step for structure relaxation.

Default: 0.05

Format:

0.1 : dt

NOTE: If dt is very small, the calculations will be very slow. If dt is too large, the calculation will be unstable and may generate meaningless results.

$\triangleright $ variable blue ConvThreshold

Meaning: Halting criteria condition for RMS (Root Mean Square forces) on images.

Default: 0.003 eV/$\text {\r{A}}$

Format:

0.005 : ConvThreshold

$\triangleright $ variable blue VarPathLength

Meaning: Criterion for path length between images for variable Image method. When the length between two neighbor images is larger than 1.5 times of VarPathLength, a new image will be added between the two images using linear interpolation; when less then 0.5 the value, the second image will be removed.

Default: The average path length between images of the initial pathway

Format:

0.3 : VarPathLength

$\triangleright $ variable blue K$\_ $min

Meaning: Minimum spring constant, only used in variable-spring constant VCNEB (in eV/$\text {\r{A}}^2$).

Default: 5

Format:

3 : K$\_ $min

$\triangleright $ variable blue K$\_ $max

Meaning: Maximum spring constant, only used in variable-spring constant VCNEB (in eV/$\text {\r{A}}^2$).

Default: 5

Format:

6 : K$\_ $max

$\triangleright $ variable blue Kconstant

Meaning: Spring constant, Only used in fixed-spring constant VCNEB (in eV/$\text {\r{A}}^2$).

Default: 5

Format:

4 : Kconstant

$\triangleright $ variable blue optFreezing

Meaning: Option for freezing the Image structure. Image structure will be frozen when ConvThreshold is achieved if enabled. Image structure freezing options:

Default: 0

Format:

1 : optFreezing

$\triangleright $ variable blue optMethodCIDI

Meaning: Option for Climbing-Image (CI) and Descending-Image (DI) method. This method is only suggested to be used when you have a reasonable and well converged pathway. CI/DI-Image method options:

Default: 0

Format:

1 : optMethodCIDI

$\triangleright $ variable blue pickupImages

Meaning: Number of images to be picked up for CI/DI method.

Default: Image number of transition state and local minima state Images

Format:

% pickupImages
9 11 17
% EndPickupImages

NOTE: In this case, the 9$^{th}$, 11$^{th}$ and 17$^{th}$ images will be picked up for applying CI/DI-Image method. The image at transition state will evolve with CI method and the image at local minimum will evolve with DI method automatically.

$\triangleright $ variable blue FormatType

Meaning: The format of structures in pathway output file, locates in results1/PATH/. Pathway structures output format:

Default: 2

Format:

1 : FormatType

$\triangleright $ variable blue PrintStep

Meaning: Save the VCNEB restart files located in results1/STEP/ every PrintStep steps.

Default: 1

Format:

10 : PrintStep

NOTE: For forcefield codes, such as GULP, we suggest users to set PrintStep=10 to reduce time cost of saving the restart files.

\includegraphics[scale=1.01]{pic/VCNEB_BH.png}
Figure 16: The $Ibam \rightarrow P6/mmm$ transition of BH at 168 GPa 14. A $Pbcm$ intermediate phase is revealed. The saddle points on $Ibam \rightarrow Pbcm$ and $Pbcm \rightarrow P6/mmm$ segments have barriers of 0.32 and 0.19 eV/f.u., respectively.

Fig. 16 shows an example of use of the VCNEB method: phase transition mechanism and energy barrier with the $Ibam \rightarrow P6/mmm$ transition of BH at 168 GPa, here we obtained a $Pbcm$ intermediate phase.


How to set the initial pathway in the VCNEB calculation

The VCNEB method is very efficient for finding the phase transition path, but we must also carefully prepare the initial path. Cell rotations happen near the initial and final structures during the VCNEB calculation, where the pathway includes a lot of identical structures near the initial and finial images. We improved Variable-Image-Number method will prevent cell rotations automatically, which saves quite a lot of time.

Alternatively, you can apply the rotation-avoiding technique before you apply the VCNEB method when generating the initial image set. The general $3 \times 3$ rotation matrix with Euler angles $R(\phi , \theta , \psi )$ and the lattice mirror operator $M(x, y, z)$ matrix are defined. Before performing a VCNEB calculation, the global numerical search in space of Euler angles and mirror operator are used to find the minimal lattice cell transformation distance $\Delta h$:

  \begin{equation}  \Delta h = \left| {h_{initial} - R(\phi ,\theta ,\psi ) M(x,y,z)h_{final}}\right|. \end{equation}   (14)

The rotation-avoiding lattice vector of the final image $\tilde h_{final}$ is assigned as the endpoint image:

  \begin{equation}  \tilde h_{final} = R(\phi ,\theta ,\psi )M(x,y,z)h_{final}. \end{equation}   (15)

More important, we need to prevent the arbitrariness in assigning the atomic fractional coordinates $\mathbf{r}_{v}$ of the initial and finial images (correctly mapping the atoms at the initial and final structures). Otherwise, the calculation will be hard to converge or several identical paths can be found in a calculation, as shown in Fig. 17. For more complicated systems, you will get some unreasonable or messy pathways if you don’t have a good initial pathway. Global numerical search for minimizing the distance between the atoms from two endpoint images helps the VCNEB method to reassign the atom sequence. The ability to automatically create model paths before the VCNEB calculation is crucial for the stability and convergence of the algorithm, and is a prerequisite for studying large and complex systems.

\includegraphics[scale=1.01]{pic/VCNEB_pathway.png}
Figure 17: Identical pathways found when setting up a “bad” initial image file. The pathway is for the B3$\rightarrow $B1 phase transition in GaN at the equilibrium pressure 45.0 GPa. At images 11 and 21, B1 and B3 structures in a monoclinic cell are found during the MEP optimization. The Ga atoms move along the arrow directions during the phase transition.