Vaspkit Tutorial
Vaspkit Tutorial
Introduction 1. VASPKIT
VASP Full name Vienna Ab initio Simulation Package, Is the University of ViennaHafnerPanel
developed electronic structure calculations and quantum mechanics-Molecular dynamics
simulation software package. It is one of the materials simulation and computational materials
science in popular commercial software. versus
Material Studio Software package CASTEP Similar functions, but VASP The accuracy is relatively
higher. Different from CASTEP Graphical interface, VASP No interface is a calculation software,
modeling, visualization, data analysis tools such as the need to rely on third parties P4VASP,
ASE, Pymatgen, VESTA Software. VESTA, P4VASP. It is mainly used for modeling, visualization and
analysis of partial data. And ASE, Pymatgen These software specializes in data processing, but the
installation is too much trouble, while relatively high barriers to entry, the user needs to have a
certain level of programming. VASPA wide distribution of subjects the user has to do catalysis,
optics had done, the material has to do, the data is handled very different fields. Many users to
develop and contribute their own areas where the use of scripts or applets, himself developed a
structure to handle files POSCAR tookit script. But for new users to find and successfully used these
scripts are not easy. So a easy to use, powerful pre Data Post-Processing Software vaspkit It came
into being.
The new version ofvaspkit Wang Wei teacher, Xu Nan, Liu Jincheng, Tang Gang, Li Qiang and
Leping joint effort. vaspkit 0.71Recent
Done a lot of menu adjustment, similar to the function are classified, optimizing some existing
features and adds a number of functions related to the catalytic
can. VASPKIT release Is a version with FORTRAN Written in the LINUX Binary software running
environment. It almost does not depend on other libraries, software volume only4.5MNo
installation needed to use, at the same time EXAMPLES Here are the main examples directory test
function, user-friendly learning to use.
0.71Version fixesBUGs
Fixed a bug in finding the suggested KPath for 2D oblique Bravais lattice thanks to iGo;
\ Cp -f how_to_set_environment_variable ~ / .vaspkit
vi ~ / .vaspkit
The configuration file is used to setv aspkit Environment variables, Include VASP Version
information, directory pseudopotential library, functional method of selection, and choose
whether to follow VASP The official recommendation generation elements pseudopotential files,
settings generated INCAR Templates are covered, additional or backup of the original
INCAR.
settings!
Set up POTCAR After completion of the catalog and some other settings, you can start vaspkit A.
For convenience, you can vaspkit The absolute path is added to the environment variable, if it is
LINUX The user can do this:
.Bashrc
among them/home/vaspkit.0.71/bin/With their own vaspkit Executable file bin Absolute path to the
directory instead.
Directly input terminal vaspkit or/home/vaspkit.0.71/bin/vaspkit start operation vaspkit program. Not
surprisingly,
You will get a show with my consistent interface:
+ ------------------------------------------------- -------------- + | VASPKIT Version:
Interface
0) Quit
------------ >>
If the following problems, Explain your LINUX Run dependent library version is too low, you need
to upgrade (not recommended), you can contact the developer in a low version LINUX Under the
compiled version of the environment.
If the-bash: line 7: ./vaspkit: Permission denied Permissions problem, simply giving vaspkit Execute
permissions to:
chmod u + x /home/vaspkit.0.71/bin/vaspkit
vaspkit Currently only supports command line batch operations, by vaspkit –h Get help.
3. VASPKIT child Features
This tutorial covers the use of vaspki generate VASP The input file, usePBE with HSE06 Band
calculation, the correction thermodynamic quantities, and generates a differential charge density,
band calculation includes two common examples of the use of a hybrid functional and functional,
while the main thermodynamic correction amount calculating zero-point vibrational energy and
thermal energy and enthalpy contribution to the free .
The following shows how to use vaspkit Conducted a VASP Computing tasks.
POSCAR Or generated by the software are generally obtained from the database, the system can
simply build their own. In the present embodiment from the database
([Link] Obtained wurtzite ZnO of POSCAR File (you can also download CIF
File, and then VTST script [Link] VESTA Converted to POSCAR File, only a matter of atomic
positions occupied by scores of note). In catalysthub Retrieves ZnO, As shown in the search result.
Wurtzite ZnO The hexagonal system, space groupP63mc. So next
The second line of the carrier POSCAR Download the file named [Link]. Place
vaspkit.0.71 / examples / ZnO_optimization Under contents.
Full formula Space group HM HALL Lattice system Band gap Structure f ile
Zn1O1 225 Fm-3m -F 4 2 3 Cubic 0.71940 eV CIF | POSCAR | LAMMPS Zn1O1 221 Pm-
3m -P 4 2 3 Cubic 0.00000 eV CIF | POSCAR | LAMMPS
Next reasonably be optimized lattice structure. Will be renamedPOSCARfile.
\ Cp -f [Link] POSCAR
We use vaspkit default INCARc ombination Generate the required INCAR file. In There POSCAR The
directory run vaspkit, Entry 1 Select function VASP Input Files Generator And then enter 101 select
Customize INCAR File You will get to
Display information under:
+ -------------------------- Warm Tips --------------------- ----- +
You MUST Know What You Are Doing
Some Parameters in INCAR File Neet To Be Set/ Adjusted Manually
+ ------------------------------------------------- -------------- +
======================== INCAR Options ======================== ==
ST) Static-Calculation SR) Standard Relaxation MG) Magnetic Properties SO)
Spin-Orbit Coupling
0) Quit
9) Back
------------ >>
Input Key-Parameters (STH6D2 means HSE06-D2 Static-Calcualtion) LR
Entry LR, You'll get a good pre-lattice relaxation for doing the task INCAR(Some templates need to
manually modify. such as DFT + U of U Value is set, NEB of IMAGES Number, etc.). If you already
have INCAR File, the original INCAR The file will be overwritten. You can edit~ / .Vaspkit change
INCAR The write settings. Just after row SET_INCAR_WRITE_MODE From the default OVERRIDE change
to APPEND, BACK-UP-OLD, BACK-UP-NEW One, corresponding to a new content added to the initial
INCAR Later, the original backup INCAR And then write the new INCAR And written to the new
INCAR .new inside. The next generation KPOINTS file. For non-band calculation mode, simply
sprinkle automatically, but requires the user to select the point spread mode and
KDot density. Li Qiang, the specific content can refer to the tutorial Learn VASP The Hard Way(Ex1):
VASP Prepare basic input file. start up vaspkit,Entry 1 Select function VASP Input Files Generator And
then enter 102 Select function Generate KPOINTS File for SCF Calculation, Then enter 2 select Gamma
Scheme Sprinkle way (safe choice), will
Get the following information is displayed:
->> (1) Reading Lattices & Atomic-Positions from POSCAR File ...
+ -------------------------- Warm Tips --------------------- ----- +
* Accuracy Levels: (1) Low: 0.06 ~ 0.04;
(2) Medium: 0.04 ~ 0.03;
(3) Fine: 0.02-0.01.
(4) Gamma-Only: 0. * 0.04 is Generally Precise Enough!
+ ------------------------------------------------- -------------- +
Input KP-Resolved Value (unit: 2 * PI / Angstrom):
------------>>
Follow the prompts0.04Accurate enough, so input0.04, You will have to get in the current directory
KPOINTS with POTCAR (Automatic generated)file.
Gamma
995
Learn VASP The Hard Way Ex19 Who stole my time machine is? (three)He referred to a simpleKThe
number of point criterion, the semiconductorkDot number corresponding to the real space vector
is larger than the grain20Å(Refer to the diagram), the present embodimentka = 29.62ÅIt has been
in line with empirical laws. Liu Jincheng mentioned for non-orthogonal system , And the length of
reciprocal lattice vectors crystal constant inverse relationship is not satisfied, so the use
ofka≈kb≈kcThe rule of thumb does not guarantee Kpoint
Density of equal length in all Strict calculated the proportion fell lattice vector Depending on the
KDot density
directions. is automatically
and [Link], so use selected will be
generated in all directions
generateKPOINTSAt the same time, based onPOSCARThe pseudopotential element type extracted from
the library and combined to generatePOTCAR, Provided that you~ / .VaspkitIt was set up
correctlyPBE_PATHPath, and in accordance withPOTCAR_TYPESelect is generatedGGAPW91,LDAstill
isPBEPseudopotential. It is noteworthy that messageWritten POTCAR File with the Recommended
Potential!,meanvaspkitaccording toVASPRecommendations from official websitePBEThe pseudopotential
library select
Pseudopotentials[Link]
g_vasp_5_2.html.
PBEThe pseudopotential divided into several, no suffix,_pv, _sv, _dAnd numeric suffix,_pv, _sv,
_dThat issemicoreofp, sordAlso be used as the valence process. Because in some cases, once the
outer electrons are also involved in bonding. Liu Jincheng be mentionedBaderAnalysis of charge,
with a need
_pv, _svPseudopotential. Special mention official websiteImportant Note: If dimers with short bonds
are present in the compound (O2, CO, N2, F2, P2, S2, Cl2), we recommend to use the _h potentials
Specifically, C_h, O_h, N_h, F_h, P_h, S_h. , Cl_h.Common practice is to: measure in two pseudopotential
Try influence the situation on the issues they care. Under little effect, the free choice of suffix
pseudopotential, containing more valence electrons after truncation can rise much, the amount of
calculation is increased significantly.
Auto detected POTCAR_TYPE is Zn, please type the one you want!
Zn_pv
You can see the default INCAR Parameters ENCUT = 400eVCommented out, but retained PREC =
Normal, The program will automatically ENCUT Set max (ENMAX). Of course be provided on their
own ENCUT Parameters, as long as all elements of the parameter is larger than ENMAX, This time
to set their own ENCUT Parameters prevail. Note that in the optimization unit cell constants,
needed higher ENCUT (Learn VASP The Hard
Way (Ex36): Direct optimal lattice constant), therefore LR Task (optimized lattice constant)
generated template INCAR The default settings
PREC = High, VASP The program will automatically ENCUT Set max (ENMAX) * 1.3. Leping teacher
The analysis revealed that, VASPA read-only O Elements and pseudopotential, Zn Not from
POSCAR Read out, and therefore error. The reason is that downloading from a database
POSCAR The spaces in the separator is a tab\ T, VASP Can not be read out correctly \ T It
is a string delimiter. The same problem also inINCARAppear. Also in WINDOWS System-
generated POSCAR or INCAR in VASP It may be very strange errors. The most deadly VASP
Does not automatically check POSCAR Whether the element type POTCAR Element types
are the same, that is, you count graphene can also be used H The pseudo-potential, and
does not complain, but the results must be wrong! Therefore vaspkit 0.71 He joined the
correct format and function elements pseudopotential check 109. Entry 109 , vaspkit 0.71
Will automatically INCAR with POSCAR The correct format, and check pseudo-potential
elements consistent.
Element type in POSCAR may be not corresponding to POTCAR POTCAR: Zn_pv POSCAR: Zn
After performing the examination, submit the job again. At this time, the task has been to run
correctly.
For your convenience, on the advice of Leping teachers, we set the function 108:Successive
procedure to
generate VASP files and check. First set INCAR Before setting KDot density, generating KPOINTS
with
POTCAR, Then call the function 109 Automatically check all files problems. our target is, VASP
Before first KIT a bit.
Prototype: AB
Lattice Constants in Input Cell: 3.854 3.854 3.854 Lattice Angles in Input Cell: 60.000 60.000
60.000
Group: 216
GAMMA-LWX]
+-------------------------------------------------- ------------- +
- >> (2) Written [Link] file.
- >> (3) Written [Link] File for Band-Structure Calculation.
- >> (4) Written HIGH_SYMMETRY_POINTS File for Reference.
- >> (5) Written POTCAR File with the Recommended Potential!
+-------------------------------------------------- ------------- +
| * DISCLAIMER * | | CHECK Your Results for Consistency if Necessary | | Bug
+-------------------------------------------------- ------------- +
Vaspkit Analysis of the crystal symmetry and will be suggested to give two band path [GAMMA-XU |
\ Cp -f [Link] POSCAR
The following figure shows the gallium phosphide primitive cell High symmetry and a first position
of the Brillouin zone, the See Kpath Web Site Builder.
PBE functional computing band
PBEFunctional calculated to bring in two steps, the first step in the use of ordinary KPoint Grid
(function102) Self-consistent calculation, start up vaspkit, Entry1select VASP Input Files Generator
And then select108selectSuccessive Procedure to Generate VASP
Files and Check Function, input ST, Generate static self-consistent INCAR And follow the prompts
generated by the self-consistent Kpoint. In the present embodiment
ISMEAR = 0, which is Gaussian Smearing The method, the system may be selected if it is replaced by
a metal ISMEAR = 1. Then callVASPCalculation. Step two:[Link] the high-symmetry points
as the new informationKPOINTSThen reads the chargeCHGCARBand for non-self-consistent
calculation, namely:
\ Cp -f [Link] KPOINTSecho
"ICHARG = 11" >> INCAR
That is, read on further generated CHGCAR And remain unchanged, call VASP Calculation.
After completion of the second step, by the function twenty one From the energy eigenvalues
document read in the band structure. It is worth mentioning that the Fermi level in a self-
consistent calculation should prevail, so if you want to get an accurate Fermi level, the following
command to extract self-consistent operation may be performed after the first stepDOSCARThe
Fermi level to the second step of processing the band data:
Functional and DFT + U Method, in calculating the bandgap great advantage, but HSE06 Hybrid
functional needs
KPOINTS Where weight is not only the right to 0 of KPoint self-consistent calculation, and
demanded the right weight 0 High symmetry points calculated band nature. Thus the process is
quite complicated operation. Restart vaspkit Input 25 Select function Hybrid-DFT Band-Structure
Next input interface 251 select
Generate KPOINTS File for Hybrid Band-Structure Calculation. Then enter 1 select Monkhorst-
Pack Scheme use MP The method of generating a self-consistent with KPoints of the grid and on
the recommendation of input0.04Select denser KPoint density (weight not 0 of K Point) to
generate HSE06 Calculate the required KPOINTS.
Because HSE06 Calculation is very time-consuming, two-step process used in this example to
accelerate the convergence, of course, may skip the first step directlyHSE06Self-consistent. The
first step: Use PBE Functional wave function and the electron density is generated, the second
step: maintain KPOINTS Unchanged, read the wave function get on HSE06
Calculation. Use function Customize INCAR FileThe first step in generating PBE Self-consistent need
INCR. Restart vaspkit, Entry1 select VASP Input Files Generator And then select 101 select Customize
INCAR File Function, input ST, Generate static self-consistent INCAR. In the present embodiment t
ISMEAR = 0, which is Gaussian Smearing The method, the system may be selected if it is replaced by
a metal ISMEAR = 1. transferVASPCalculated to be consistent since the completion of the second
stepHSE06Calculation. Restart vaspkit ,Select function101 Customize INCAR File Function, input STH6
,generate HSE06 Calculate the required INCAR. Call againVASPAfter the calculation, is
completeHSE06The self-consistent calculation. Then use vaspkit Extracting energy band data, and
outputs the coordinate information of the high symmetry points of the energy band diagram. Entry
25 Select function Hybrid-DFT Band-Structure Next input interface 252 select Read Band-Structure for
Hybrid-DFT
Calculation Data processing band. The processing results are shown below
->> (1) Reading Input Parameters From INCAR File ... ->> (2) Reading
KLABELS It is generated by the reading sub-band identification module. By reading [Link] (PBE
Energy is calculated withKPOINTS) After high symmetry point identification, writing KLABELS file.
[Link] Document reads as follows:
Generated by VASPKIT based on Hinuma et al.'S Paper, Comp. Mat. Sci. 128, 140
(2017), DOI: 10.1016/[Link].2016.10.015.
10
Line-Mode
Reciprocal
0.0000000000 0.0000000000 0.0000000000 GAMMA
0.5000000000 0.0000000000 0.5000000000 X
GAMMA 0.000
X 1.153
U|K 1.560
GAMMA 2.783
L 3.781
W 4.597
X 5.173
* Give the label for each high symmetry point in KPOINTS ([Link]) file. Other wise, they will be
identified as 'Undefined' in KLABELS file
Since the path of the two points, it is possible to identify with a second drawing position is high
symmetry U | K.
Users in Origin Software for processing the [Link] After, we need to follow
KLABELS The file location identified in the high energy band diagram symmetrical position. The
next version of the version will be added to generate an energy band diagram of the drawing
python Function scripts, users need to install
Matplotlib Library. The next version of eggs: There is an example of a band_plot.py Script, as long as
the implementation of thispython Script, on the next FIG.
Can be generated in a ,After the program is the energy band diagram
[Link]),Such
folder of the automatic drawing (repair as
For a system, the enthalpy and entropy of the partition function can be calculated by
statistical thermodynamics molecules to obtain: the main consideration ideal gas translation,
rotation, vibration, electronic contribution. Molecule is, for example, a non-linear triatomic
molecule, a total of 3N Degrees of freedom. Gas which is: 3A translation,3 And a rotation 3N
6A vibration. But when it is adsorbed onto the surface, since the translation and rotation is
locked, and this 6 Degrees of freedom will be converted to vibrational degrees of freedom,
i.e. on the surface of the molecule 3N A vibration mode. If the result of molecules adsorbed
on the calculated frequency you visualize the surface, will find that the last6Is a
corresponding translation and rotation, but they are not the translation and rotation of the
gas phase, we call: frustrated translation, frustrated rotation.
Thermodynamics of gas phase molecules correction
Li Qiang tutorialLearn VASP The Hard Way(Ex68) Frequency, zero-point energy, Gibbs free energy
calculationsMentionVASPFor temperature correction do really bad, he suggested that by querying
the database (NISTEtc.) thermodynamic quantities obtained by the method of gas phase
molecules.
andGaussianCorrection for thermodynamic and molecular clusters more
[Link] a practical sense, also have significant
teachingShermoprogram([Link] The output of the Gaussian analysis calculated
translational, rotational, vibrational and electronic contribution, to obtain a given temperature,
internal energy, enthalpy, entropy of the system under pressure, free energy, heat capacity. I
suggest that you look at the text of the program
[Link] program integrated in, the user can directly according to theVASPThe results are
given gas phase molecular vibration of the internal energy, enthalpy, entropy, free energy
correction.
Below ethanol (/ Examples / thermo_correction / ethanol), For example
contrastVASPwithGaussianThermodynamic calibration results. After completion of the calculation
of vibration, startVASPKIT,Entry5Select functionCatalysis-ElectroChem Kit, The next input interface
Enter502selectThermal corrections for Gas. Then prompted for temperature298.15K,pressure1atmAnd
spin multiplicity
1. Spin multiplicity is defined as2S + 1,among themSIs the spin angular momentum, the number of
single-electron system within it(N)Related.S = N / 2, The simple method of determining the final
analysis: single electron spin multiplicity is equal to the number of+1. Ethanol is not a single
electron, so as spin multiplicity1. (Spin multiplicity of oxygen3.) The module requires all atoms are
released, i.e. there can not be secured atoms.
+ -------------------------- Warm Tips --------------------- ----- +
This Feature Was Contributed by Nan XU, Sobereva.
See An Example in vaspkit / examples / thermo_correction / ethanol.
Vibrations, Translation, Rotation, Electron contribitions are considered.
GAS molecules should not be with any fix.
- >> (1) Reading Structural Parameters from CONTCAR File...
- >> (2) Analyze Molecular symmetry information ...
Molecular symmetry is: Cs
+ ------------------------------------------------- -------------- +
Please input Temperature (K)!
298.15
Please input Pressure (Atm)!
1
Please input Spin multiplicity -! (Number of Unpaired electron + 1) 1
------------ >>
GossG09RevD.01The calculation resultsU (T) 51.94 kcal / mol, H (T) 52.53 kcal / mol, G (T) 33.67 kcal /
molTheoretical levelB3LYP / CC-pVDZ, You can see the use ofVASPKITThermodynamic calculation
------------ >>
298.15
- >> (1) Reading OUTCAR File ...
+-------------------------- Summary ----------------------- ----- + H = E_DFT + E_ZPE
+ E_H
charges.([Link]
[Link])
andDifference charge densityThe method is commonly used in the literature, the need for three
different structures(A, B, AB)Do self-consistent calculation. Proceed as follows:
following information:
======================= File Options ========================= ===
Input the Names of Charge / Potential Files with Space:
(Tip: To get AB-AB, type: ~ / AB / CHGCAR ./A/CHGCAR ../B/CHGCAR)
------------>>
CO / CHGCAR C / CHGCAR O / CHGCAR
4. Small features
vaspkitNear also added a few more are also distinctive features, several of which were related to
catalysis. Features5It contains several have been developed
Catalytic related gadgets. as follows:
Before submitting the task, I want to check it again envisaged right, run it504Get
aNEB_initial.pdbfile. submit
After the task, for example, forget30Step, I want to look at how to count, and it needs to
run504To give a
MoreNEB_30.pdbfile,Meanwhile prompt youNEB is still runing, NOW 30 step!. If the task is
considered finished, I run504,getNEB_final.pdb file,Meanwhile prompt youNEB has finished. in
caseNSWSet100,Ran100Step no convergence, running504The same will be
obtainedNEB_100_end.pdbFiles, but you will be prompted toNEB has
stopped, but has reached NSW step, NOT converged!.`
The bottom bar of the main window can be animated feature bar, click on the small arrow in the lower right co
Judg
play multi-frameLinear interpolation
animation. point
By looking is vibration direction,
at the
e reasonable.
Li Qiang can be made in real time
Imageby
Into the bond length between atoms determines VMDthe
Main
Port Mouse
displaying each -> Label -> 2 , Then on to the model NEB The most relevant
interpolation points is reasonable. in 2Atoms, can be
wind
To seeNEBPath, as the distance between
Selection IMAGEChanges
interface, point in the route
atoms structure.
Main 4Gadgets structure contains several
featuresoperations.
Features401Expansion for cellular structure, the new version has been improved, the cells can
remain after expansion of the original structureSelective Information, I.e. the position of atoms
restriction information. With wurtziteZnOof0001Surface structure as an example. Fixing the
bottom three layers in the optimization process (ZnOBilayer) and hydrogen passivated, and the
surface of the three-layer release (ZnOBilayer) simulated surface relaxation. When the expanded
cell, inx, yThe position of atoms in the same layer information will be fixed in the same direction.
ZnO-1811117\ (0\0\1)
1.00000000000000
3.2890999317000000 .0000000000000000 .0000000000000000 -1.6445499659000000
31.0000000000000000
O Zn H
6 6 1 Selective dynamics
Direct
.6666700244773196 .3333300053761477 .1505069039677451 FFF .6666716924670117
1.8989822338038955 15.8558940255107430 T T T
Sometimes for a complex system, it is difficult to achieve our objective by selecting the layer, in
Liu Jincheng proposal to develop a functional403, By selecting the height atoms fixed interval. By
determining the need to be fixed in other visualization software layer in which the atomic height
interval, inVASPKITAtoms selected height fixed [Link].0.71 / utilities /It has extended the
functionality of the script directoryPOSCARtoolkit, May fulfill the functions of the fixed portion
atom or relaxation.
Features405 ,Converte XDATCAR to PDB for AnimationAnd function504Similarly, it is possible to
molecular dynamics, normal optimization,Lattice optimization processinXDATCARIon is converted
into a recording step of a plurality of frames can be [Link],OVITOOther
visualization software can only be visualized by Molecular Dynamics, ordinary ion optimization
step for optimizing the crystal lattice (ISIF = 3)ofXDATCARYou can only see the first frame
structure. [Link] same can be madeVMDView optimization
process ion step.
three groups
In myGithub Repository ([Link] Quote Reference: V. Wang, N. Xu,