VASP.5.4.4+wannier90_v2.1+vtst+OPTCELL
The way to compile vasp equipped with related packages, including wannier90, VTST, constrained optimization.
Files:
- vasp.5.4.4.tar.gz
- patch.5.4.4.16052018.gz
- vasp.5.lib.tar.gz
Operations:
- Extract 1 and 3 using tar -zxvf, 2 by gun zip
- Move patch.5.4.4.16052018 into vasp.5.4.4 and go to the root of VASP
- patch -p0 < patch.5.4.4.16052018 (only for vasp.5.4.4)
Below are the VASP2WANNIER90v2 part, thanks for C.C.Xiao
4. Download wannier90_v2.1, then decompress and go to the root of wannier90-2.1.0
5. cp config/make.inc.ifort ./make.inc
1 |
|
- make all, then make test (you will get the wannier90.x and libwannier.a)
- Fix the VASP2WANNIER90v2 interface
Below is Constrained Optimization:
8. Two methods:
For Orthorhombic:
vi src/constr_cell_relax.F
1 |
|
For example:
ISIF=3 in INCAR
and OPTCELL file with "a b c" in text
For arbitrary crystal system:
1 |
|
and modify src/main.F(line 3559), replace CALL CONSTR_CELL_RELAX(D2SIF)
with CALL CONSTR_CELL_RELAX(IO%IU5,IO%IU0,D2SIF)
For example:
ISIF=3
IOPTCELL = $a_{1}$ $a_{2}$ $a_{3}$ $b_{1}$ $b_{2}$ $b_{3}$ $c_{1}$ $c_{2}$ $c_{3}$ in INCAR
IOPCELL denotes the lattice matrix elements in POSCAR from line 3 to 5 whether fixed (0) or free (1)
$$
\begin{bmatrix}
a_{1} & b_{1} & c_{1} \
a_{2} & b_{2} & c_{2} \
a_{3} & b_{3} & c_{3}
\end{bmatrix}
$$
Below is VTST:
9. Download vtst and decompress
10. Install
vi src/main.F(line 3146)
replace
1 |
|
with
1 |
|
To install, download the files in vtst/src into vasp.5.4.4/src. The file chain.F is replaced, so back up the old version.
vi src/.objects
Add bfgs.o dynmat.o instanton.o lbfgs.o sd.o cg.o dimer.o bbm.o fire.o lanczos.o neb.o qm.o opt.o
behind chain.o
This code will only be run if IMAGES is set in the INCAR file, or if ICHAIN is set, to specify which method should be run.
ICHAIN=0: Nudged elastic band (default)
ICHAIN=1: Dynamical matrix
ICHAIN=2: Dimer
ICHAIN=3: Lanczos
11. makefile.include in vasp root
1 |
|
- VASP is a commercial package, be sure you have a proper license to use it.
本博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议 ,转载请注明出处!