Code Monkey home page Code Monkey logo

vasp2wan90_v2_fix's Introduction

VASP2WAN90_v2_fix

This project provides a patch for the VASP code, fixing the VASP2WANNIER90v2 interface with additional abilities.

Abilities

  • 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 UNK files.
    • Reduce the size of the UNK files.
  • Write .spn files.
    • Choose the format of the .spn files
  • Control which collinear spin channel to compute.
  • Control whether to calculate/write .mmn and .amn files.

Installation

THIS FIX ONLY WORKS WITH VASP v5.4.4.pl2

For this patch to work, you have to recompile VASP.

If you are not familiar with VASP's compilation process, click ๐Ÿ”— HERE.

Also, you need a compiled libwannier.a. If you don't know what it is, check out wannier90's user guide.

To apply the patch, put the mlwf.patch file in the root directory (not under src) of your VASP distro and type:

$ patch -p0 < mlwf.patch

Then, compile the code with -DVASP2WANNIER90v2 precompile flag alone with the wannier90 library libwannier.a

CPP_OPTIONS+=-DVASP2WANNIER90v2
LLIBS+=/path/to/your/wannier90_distro/libwannier.a

Usage

The VASP2WANNIER90 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 the INCAR file.

For full documentation, see wiki.

Keywords

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 calculate mmn matrix? TRUE/FALSE TRUE
LCALC_AMN Do we want calculate amn 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 the UNK files? TRUE/FALSE FALSE
LUNK_FMTED Do we want the UNK files be human-readable? TRUE/FALSE FALSE
LREDUCE_UNK Do we want the UNK 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

How to cite

Citation of the code is not mandatory but would be appreciated. A reference to this website using this BibTeX entry will suffice.

Contributing

Issues and pull-requests are welcome, feel free to ask anything E-mail.

vasp2wan90_v2_fix's People

Contributors

chengcheng-xiao 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.