LWANNIER90: Difference between revisions
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
Description: {{TAG|LWANNIER90}}=.TRUE. switches on the interface between VASP and [http://www.wannier.org WANNIER90]. | Description: {{TAG|LWANNIER90}}=.TRUE. switches on the interface between VASP and [http://www.wannier.org WANNIER90]. | ||
---- | ---- | ||
For {{TAG|LWANNIER90}}=.TRUE., VASP will run <tt>wannier_setup</tt> in library mode (see Chapter 6 of the [http://www.wannier.org/doc/user_guide.pdf WANNIER90 manual]). | For {{TAG|LWANNIER90}}=.TRUE., VASP will run <tt>wannier_setup</tt> in library mode (see Chapter 6 of the [http://www.wannier.org/doc/user_guide.pdf WANNIER90 manual]). |
Revision as of 11:36, 5 April 2011
LWANNIER90 = .TRUE. | .FALSE.
Default: LWANNIER90 = .FALSE.
Description: LWANNIER90=.TRUE. switches on the interface between VASP and WANNIER90.
For LWANNIER90=.TRUE., VASP will run wannier_setup in library mode (see Chapter 6 of the WANNIER90 manual).
The VASP2WANNIER90 interface will write the following files that WANNIER90 needs as input:
- 1. If this file does not exist, VASP will create it and write the following information onto it:
num_wann = NBANDS begin unit_cell_cart ... ... ... ... ... ... ... ... ... end unit_cell_cart begin atoms_cart ... ... ... ... ... ... ... ... ... ... ... ... end atoms_cart mp_grid = .. .. .. begin kpoints ... ... ... ... ... ... ... ... ... ... ... ... end kpoints
- Where the unit_cell_cart, atoms_cart, and kpoints blocks, and mp_grid array, will be set in accordance with the setup of the VASP calculation (i.e., basically the information from the POSCAR and KPOINTS files). For the meaning of the tags and blocks please refer to the WANNIER90 manual.
- 2. If the wannier90.win file already exists, VASP will only add the the aforementioned information insofar it is not already present. This means that VASP will check, for instance, whether or not the wannier90.win file contains a kpoints-block, and add one if not. If it finds a kpoints-block, however, it will not check whether this block tallies with the present set of k-points used in the VASP calculation!
- 3. The user may specify any tag and/or block in the wannier90.win file that is understood by wannier_setup and/or wannier_run prior to running VASP and executing the VASP2WANNIER90 interface. The most common example of this is probably the projections-block that specifies the initial guess for the maximally localized Wannier functions (see Chapter 3 of the WANNIER90 manual).
- wannier90.mmn
- wannier90.eig
- wannier90.amn: if projections have been specified in wannier90.win.
- wannier90.unk: if LWRITE_UNK=.TRUE. is set in the INCAR file.
Mind: VASP needs to be compiled with the following additional precompiler flag:
-DVASP2WANNIER90
and the variable LIB in the makefile must contain an entry that points to libwannier.a.
For instance:
LIB = -L../vasp.5.lib -ldmy \ ../vasp.5.lib/linpack_double.o $(SCA) $(LAPACK) $(BLAS)
might be changed to
LIB = -L../vasp.5.lib -ldmy \ ../vasp.5.lib/linpack_double.o ../wannier90-1.2/libwannier.a $(SCA) $(LAPACK) $(BLAS)
depending on where you have installed WANNIER90, obviously.
Related Tags and Sections
LWRITE_UNK, LWANNIER90_RUN, Compiling VASP