GithubHelp home page GithubHelp logo

cif2qewan's Introduction

cif2qewan

cif2qewan.py is a simple python script to create quantum-ESPRESSO and wannier90 inputs from cif files.

Usage

  1. Prepare cif2cell. (See for details, https://sourceforge.net/projects/cif2cell/)

  2. Prepare pseudopotentials in PSLibrary.

  3. Download or clone the github repository, e.g.

    % git clone https://github.com/wannier-utils-dev/cif2qewan

  4. Edit cif2cell_path and pseudo_dir in cif2qewan.py.

  5. Run.

    % python cif2qewan.py **.cif

    % pw.x < scf.in > scf.out

    % pw.x < nscf.in > nscf.out

    % wannier90.x -pp pwscf

    % pw2wannier90.x < pw2wan.in

  6. Edit dis_froz_max in pwscf.win. Recommended value is around EF+1eV ~ EF+3eV.

  7. Wannierize.

    % wannier90.x pwscf

Compare band structures of DFT and wannier90

cif2qewan.py prepares band calculation input files in directory "band".

 % cd band

 % pw.x < ../scf.in > scf.out

 % pw.x < nscf.in > nscf.out

 % bands.x < band.in > band.out

 % cd ..

 % python band_comp.py

Then, you can get the band structure plot of DFT and wannier90.

Compare band energy of DFT and wannier90

cif2qewan.py prepares nscf input file for energy diffierence. Wannier90 Hamiltonian should reproduce the band energy on the kmesh for wannierzation. (For example, 8x8x8 mesh including gamma point (8 8 8 0 0 0 in QE expression).) Here, the code checks the energy difference of DFT and wannier90 on the shifted kmesh. (c.f., 8 8 8 1 1 1 in QE expression))

% cd check_wannier

% pw.x < ../scf.in > scf.out

% pw.x < nscf.in > nscf.out

% cd ..

% python wannier_conv.py

% cat check_wannier/CONV

wannier_conv.py calculates the energy differences and outputs the result in check_wannier/CONV. average diff means \delta defined by

\delta^2 = \frac{1}{N} \sum_{n,k} (e_{n,k}^{DFT} - e_{n,k}^{Wannier})^2.

Reference

cif2qewan's People

Contributors

t-koretsune avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.