2.12. Automated Convergence: Find Converged VASP Settings Automatically


download:pdf

The accuracy of computed materials properties such as equilibrium lattice parameters, binding energies, and elastic moduli depend on a variety of computational parameters, most notably the quality of the plane wave basis sets and the density of k-meshes for integrations in reciprocal space.

The optimal choice of these parameters depends both on the material under investigation and on the properties of interest. For example, metallic aluminum requires very fine k-meshes to achieve convergence of the total energy while semiconductors are well described by a rather coarse k-mesh. Finding the most appropriate parameter setting is important, but tedious to do by hand. The Automated Convergence Module automates the process of determining optimal parameter settings in VASP for achieving the desired level of accuracy in calculations of materials properties.

Activate the Convergence menu entry in MedeA by clicking Tools >> Automated Convergence. Next select Convergence >> VASP computation to start a Convergence job or Convergence >> Monitor to analyze results.

../../_images/image0021.png

2.12.1. Submitting VASP Convergence Jobs

Convergence >> VASP computation launches the Convergence interface to run the VASP computations:

../../_images/image0041.png

Convergence type

You can use the following criteria for Convergence:

Total Energy: Converges the VASP total energy, where you can select a value for the Energy threshold, either for the whole system or Per atom.

../../_images/image0061.png

Structure Optimization: Converges both, the Single Point stress, as well as the lattice parameters and atom positions. You can select to Relax atoms only.

../../_images/image0081.png

The convergence will be studied as follows:

  • Single Point stress convergence calculations with the stress tensor (Stress threshold in GPa) as the convergence criterion
  • Using results from a Structure Optimization with convergence based on the relative change of the cell length, angles, and atom positions. To keep the cell fixed, select Relax atoms only.

2.12.2. Tuning Parameters

Using the above convergence criteria the module will optimize the following parameters:

Use planewave cutoff (PWC, energy cutoff): Starting from the Initial planewave cutoff the module will increase the cutoff by Increment until convergence is reached. VASP potentials provide two cutoff energies for each atom, ENMIN for low precision and ENMAX otherwise. The default value for Initial planewave cutoff is set to the maximum ENMAX value of all potentials used for the atoms present in the system. The default Increment is 1/10 of the difference between the maximum ENMAX value increased by 30 % (corresponding to the Increase planewave cutoff (cell optimizations) setting in the VASP GUI) and the maximum ENMIN value for all potentials used for the atoms.

Use spacing of k-points: The value for the Initial spacing of k-points is set such that the resulting k-mesh is 3x3x3 to allow using the tetrahedron method. For subsequent refinement of the k-mesh, the initial spacing of k-points is progressively multiplied by the Update factor until the actual number in the k-mesh increases for the next computation step.

Use smearing width: You can optimize the smearing width, in addition, when the Methfessel-Paxton method is chosen for the Type of smearing instead of the default Tetrahedron with Bloechl corrections method, which has no smearing parameter. The Update factor decreases the smearing width during the convergence process.

../../_images/image005.png

2.12.3. Monitoring VASP Convergence Jobs

Choosing a job

The Monitor menu queries the selected JobServer for a list of Convergence jobs. Select a job to retrieve and display the results from an ongoing or finished job.

Multi-parameter convergence

Before detailing the content of the monitor window, let us explain the progress of a Convergence job.

As long as only one parameter is used for tuning, the convergence process simply consists in updating the parameter until convergence is reached. If, however, several parameters are used simultaneously, the parameter space is multi-dimensional and there might be several paths that lead to different points, where convergence is reached.

The strategy used for our problem is intended to limit the overall cost as follows. For the sake of simplicity, let us consider 2 tuning parameters p1 and p2, but this might be extended directly to any number of parameters. Two series of independent tasks are started with the following settings: in the first series, p2 is set to its initial value and p1 is tuned until convergence is reached after n1 steps; in the second series, p2 is converged in n2 steps while p1 is unchanged. Finally, two tasks are launched with the two last values of both parameters: (p1 (n1-1), p2 (n2-1)) and (p1 (n1), p2 (n2)) and the convergence is tested again with the results of these two tasks. This strategy allows running at least as many tasks in parallel as there are tuning parameters, and even more during the early stage of the job.

Monitor window

This window presents a report table and a set of graphics. The table contains a row for each step (VASP task), displaying the parameter values and the computed properties.

../../_images/image009.png

The steps can be filtered according to the different phases of the convergence process by checking Display only steps from the selected phase. The selection of columns can be adjusted via the Column Display button: Parameter indices indicating steps for each parameter, Convergence phase discriminating between PWC only, K-mesh only, Sigma only or Final, Planewave cutoff (eV), K-point spacing (1/Ang), Actual spacing (1/Ang), Actual mesh, Computation time, and Total energy (eV) and differences in total energy Delta E (eV) per cell or per atom.

../../_images/image011.png

The graphics frame contains a graph for each single-parameter convergence axis and one for the final convergence steps (with all parameters):

../../_images/image013.png

When the monitored job is running, some of the computed values are still missing and are indicated by a - symbol in the table. The progress of a running calculation can be monitored by updating table and graphs by pushing the Refresh button. Stop Job allows termination of the entire process.

An estimate of the minimum completion time is calculated by multiplying the time of the longest completed task by the minimum number of remaining tasks.

In addition suggested values for the planewave cutoff energy and the k-point spacing can be found in the Job.out file:

------------------------------------------------------------------------
The final, converged parameters
------------------------------------------------------------------------
Planewave cutoff:  488.000 eV
k spacing:    0.601 1/Ang

------------------------------------------------------------------------
Results for the minimization using the converged parameters
------------------------------------------------------------------------

Basic features of the Automated Convergence module are also found in Point Defect Analysis tool.

download:pdf