GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - hungpham2017/pyWannier90: A Wannier90 python interface for VASP and PySCF

BranchesTags
Open more actions menu

Latest commit

 

History

110 Commits
110 Commits

Folders and files

NameName
Last commit message
Last commit date
doc
doc
 
 
examples
examples
 
 
lib-test
lib-test
 
 
src
src
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

License GitHub last commit GitHub issues

pyWannier90: A Python interface for wannier90

wannier90 is a well-established package to construct maximally-localied Wannier functions (MLWFs) as well as to perform MLWF-based analysis. pyWannier90 uses the library-mode of wannier90 to perform the wannierization on the wave function obtained by PySCF or VASP.

News:

  • pyWannier90 is now available for wannier90 community, check it out here.
  • pyWannier90 only supports the wannier90 v3.0.0 or newer.

pyWannier90 can use the wave function obtained by:

  • PySCF 1.5 and
  • VASP via the MCU package

Why pyWannier90?

  • If you would like to construct MLWFs for the wave function obtained by PySCF
  • pyWannier90 for VASP can construct MLWFs using only the WAVECAR and vasprun.xml obtained by VASP. That means you won't need to rerun the VASP calculation everytime you change some wannierization parameters with the wannier90 build-in library (pw2wannier90.x). One should note that the MLWFs constructed by pyWannier90 may be not identical to that by VASP since only the pseudo wave function (WAVECAR) is used. However, I have not experienced any significant discrepancy between the two approaches.

How to install libwannier90

libwannier90 needs to be installed first before one can call pyWannier90 from the code of choice (PySCF or MCU).

  • Replace /wannier90-xxx/src/wannier_lib.F90 with /pyWannier90/src/wannier_lib.F90

  • Go to /wannier90-xxx, modify make.inc with your favorite compiler and important adding this line to it:

     FCOPTS = -O3 -fPIC -g
    
  • Compile wannier90-xxx:

     make & make lib
    
  • Go to /pyWannier90/src, modify Makefile and compile libwannier90:

     make
    
  • Modify the path of libwannier90 in pyWannier90.py (in /pyscf/pbc/tools or in /mcu/wannier90)

  • Test libwannier90 library:

     python -c "import libwannier90"		#Should return nothing if the compilation was successful
    

How to cite?

Please cite this paper when you use pyWannier90 code in your research:

  • pyWannier90 for PySCF: Q. Sun et al.,Recent developments in the PySCF program package, J. Chem. Phys, 2020, Just Accepted
  • pyWannier90 for VASP: H. Q. Pham, MCU: a Multipurpose Python Library to Analyze the Electronic Wave Function of Solid-State Materials, Manuscript under preparation, MCU package

About

A Wannier90 python interface for VASP and PySCF

Resources

Readme
BSD-3-Clause license
Activity

Stars

43 stars

Watchers

1 watching

Forks

17 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.