- Notifications
You must be signed in to change notification settings - Fork40
Chengcheng-Xiao/VASP2WAN90_v2_fix
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This project provides a patch for theVASP code, fixing the |
- Calculate non-collinear Wannier functions.
- Support spinor projection method (specify spinor channel, quantization axis).
- New and improved UNK files:
- Write non-collinear UNK files (
UNKxxxxx.NC). - Choose the format of the
UNKfiles. - Reduce the size of the
UNKfiles.
- Write non-collinear UNK files (
- Write
.spnfiles.- Choose the format of the
.spnfiles
- Choose the format of the
- Control which collinear spin channel to compute.
- Control whether to calculate/write
.mmnand.amnfiles.
Important
THIS FIX ONLY WORKS WITH VASP v5.4.4.pl2
For this patch to work, you have torecompile VASP.If you are not familiar with VASP's compilation process, click🔗 HERE.Also, you need a compiledlibwannier.a.If you don't know what it is, check out wannier90's user guide.
To apply the patch, put themlwf.patch file in theroot directory (not undersrc) of your VASP distro and type:
$ patch -p0 < mlwf.patchThen, compile the code with-DVASP2WANNIER90v2 precompile flag alone with the wannier90 librarylibwannier.a
CPP_OPTIONS+=-DVASP2WANNIER90v2LLIBS+=/path/to/your/wannier90_distro/libwannier.aTheVASP2WANNIER90 interface is fully incorporated in the VASP package, this means we don't need another executable to run it. The interface is enabled by specific keywords in theINCAR file.
For full documentation, seewiki.
A list of useful keywords:
| Tag | meaning | value | default |
|---|---|---|---|
| LWANNIER90 | Do we want to use the interface? | TRUE/FALSE | FALSE |
| W90_SPIN | Which collinear spin channel to compute? | 0->all,1->up,2->down | 0->all |
| LCALC_MMN | Do we want calculatemmn matrix? | TRUE/FALSE | TRUE |
| LCALC_AMN | Do we want calculateamn matrix? | TRUE/FALSE | TRUE |
| LWRITE_MMN | Do we want to write.mmn file? | TRUE/FALSE | TRUE |
| LWRITE_AMN | Do we want to write.mmn file? | TRUE/FALSE | TRUE |
| LWRITE_EIG | Do we want to write.eig file? | TRUE/FALSE | TRUE |
| LWRITE_UNK | Do we want theUNK files? | TRUE/FALSE | FALSE |
| LUNK_FMTED | Do we want theUNK files be human-readable? | TRUE/FALSE | FALSE |
| LREDUCE_UNK | Do we want theUNK files be reduced in size? | TRUE/FALSE | FALSE |
| LWRITE_SPN | Do we want the.spn files? (Serial only) | TRUE/FALSE | FALSE |
| LSPN_FMTED | Do we want the.spn files be human-readable? | TRUE/FALSE | FALSE |
Citation of the code is not mandatory but would be appreciated. A reference to this website using thisBibTeX entry will suffice.
Issues and pull-requests are welcome, feel free to ask anythingE-mail.
About
An updated version of the VASP2WANNIER90v2 interface
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.