converts VASP WAVECAR file into UNK files for wannier90
Project description
wavecar2unk
Converts the VASP WAVECAR to UNK files for wannier90. This works for non-collinear WAVECARs, which is needed for spin-orbit coupling in wannier90 >= v2.0.0. However, to use this code, the full k-point grid needs to be contained in the WAVECAR file (i.e., you should run a nscf calculation with ISYM=-1 or already include the tag as recommended in the case of spin-orbit coupling). To use non-collinear calculations with wannier90, you need to enable support for v2 in VASP. The steps are as follows:
- Install wavecar2unk using
pip. - Apply the patch
mlwf.patchfrom Chengcheng-Xiao/VASP2WAN90_v2_fix. E.g.,
curl https://raw.githubusercontent.com/Chengcheng-Xiao/VASP2WAN90_v2_fix/master/mlwf.patch | patch -p0
- Compile VASP with the
-DVASP2WANNIER90v2inCPP_OPTIONSand the path to your compiled wannier90 librarylibwannier.a. E.g.,
CPP_OPTIONS= -DHOST=\"LinuxIFC\"\
-DMPI -DMPI_BLOCK=8000 \
-Duse_collective \
-DscaLAPACK \
-DCACHE_SIZE=4000 \
-Davoidalloc \
-Duse_bse_te \
-Dtbdyn \
-Duse_shmem \
-DVASP2WANNIER90v2
LLIBS = /home/user/compile/wannier90-2.1/libwannier.a $(SCALAPACK) $(LAPACK) $(BLAS)
- Use the generated VASP binary to run a SCF calculation.
- Setup up a calculation for wannier90.
- Run
wavecar2unkin the calculation directory where thewannier90.winandWAVECARfiles are. - Run VASP with no need for
LWRITE_UNK = Truein theINCARor, more usefully, for the case of non-collinear, whereLWRITE_UNK = Truedoesn't work.
Installation
wavecar2unk is implemented in python and can be installed through pip.
Dependencies are kept to a minimum and include standard packages, such as click and pymatgen.
With pip
As always with python, it is highly recommended to use a virtual environment. To install wavecar2unk, issue the following command,
$ pip install wavecar2unk
or to install directly from github,
$ pip install git+https://github.com/mturiansky/wavecar2unk
Usage
Usage: wavecar2unk [OPTIONS]
Converts the VASP WAVECAR to UNK files for wannier90.
Args: input_file (Path): path to WAVECAR file (default='./WAVECAR')
output_directory (Path): directory where UNKs ar ewritten (default = .)
verbose (bool): verbose output (default = False)
Options:
-i, --input_file FILE input wavecar file (default = ./WAVECAR)
-o, --output-directory DIRECTORY
output directory where UNKs are written
(default = .)
-v, --verbose BOOLEAN verbose output (default = False)
--help Show this message and exit.
Contributing
Contributions are welcome and any potential change or improvement should be submitted as a pull request on Github or to pymatgen, directly.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wavecar2unk-0.0.2.tar.gz.
File metadata
- Download URL: wavecar2unk-0.0.2.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7abbbe0ae2323245e65422473f2d57af0dac8d3c3336a994e6f1aee0831819a3
|
|
| MD5 |
58b784e74ee75b229f9a2da1bada18ad
|
|
| BLAKE2b-256 |
45a4a0dcd0d333e43770897a943e2e74b976d3cacc0a198c363cf2e16554eb7f
|
File details
Details for the file wavecar2unk-0.0.2-py3-none-any.whl.
File metadata
- Download URL: wavecar2unk-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ecf9ed992a4b1973227118a07c2284101865b6e6d8ac926ff3769dc1648b895
|
|
| MD5 |
c2ce6377e42d64ce0df8c0f8db042351
|
|
| BLAKE2b-256 |
ffffa378c760f0983cd6d1de077142bbfe1a6b57e087221ea00c94933cc1070d
|