LWANNIER90: Difference between revisions

From VASP Wiki
No edit summary
No edit summary
Line 34: Line 34:
     ... ... ...
     ... ... ...
  end kpoints
  end kpoints
:Where the <tt>unit_cell_cart</tt>, <tt>atoms_cart</tt>, and <tt>kpoints</tt> blocks, and <tt>mp_grid</tt> array, will be set in accordance with the setup of the VASP calculation (''i.e.'', basically the information from the {{FILE|POSCAR}} and {{FILE|KPOINTS}} files). For the meaning of the tags and blocks please refer to the [http://www.wannier.org/doc/user_guide.pdf WANNIER90 manual].
:Where the <tt>unit_cell_cart</tt>, <tt>atoms_cart</tt>, and <tt>kpoints</tt> blocks, and <tt>mp_grid</tt> array, will be set in accordance with the setup of the VASP calculation (''i.e.'', basically the information from the {{FILE|POSCAR}} and {{FILE|KPOINTS}} files). For the meaning of these tags and blocks please refer to the [http://www.wannier.org/doc/user_guide.pdf WANNIER90 manual].
:'''2'''. If the {{FILE|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 {{FILE|wannier90.win}} file contains a <tt>kpoints</tt>-block, and add one if not. If it finds a <tt>kpoints</tt>-block, however, it will not check whether this block tallies with the present set of '''k'''-points used in the VASP calculation!
:'''2'''. If the {{FILE|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 {{FILE|wannier90.win}} file contains a <tt>kpoints</tt>-block, and add one if not. If it finds a <tt>kpoints</tt>-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 create a {{FILE|wannier90.win}} file prior to running VASP and executing the VASP2WANNIER90 interface, and specify any tag and/or block that is understood by <tt>wannier_setup</tt> and/or <tt>wannier_run</tt>. The most common example of this is probably the <tt>projections</tt>-block that specifies the initial guess for the maximally localized Wannier functions (see Chapter 3 of the [http://www.wannier.org/doc/user_guide.pdf WANNIER90 manual]).
:'''3'''. The user may create a {{FILE|wannier90.win}} file prior to running VASP and executing the VASP2WANNIER90 interface, and specify any tag and/or block that is understood by <tt>wannier_setup</tt> and/or <tt>wannier_run</tt>. The most common example of this is probably the <tt>projections</tt>-block that specifies the initial guess for the maximally localized Wannier functions (see Chapter 3 of the [http://www.wannier.org/doc/user_guide.pdf WANNIER90 manual]).

Revision as of 14:06, 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 these 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 create a wannier90.win file prior to running VASP and executing the VASP2WANNIER90 interface, and specify any tag and/or block that is understood by wannier_setup and/or wannier_run. 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).
If projections have been specified in wannier90.win.
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


Contents