GithubHelp home page GithubHelp logo

secondlalala / vaspberry Goto Github PK

View Code? Open in Web Editor NEW

This project forked from infant83/vaspberry

0.0 1.0 0.0 953 KB

Berry curvature and Chern number calculations with the output (WAVECAR) of VASP code

Fortran 99.54% Python 0.46%

vaspberry's Introduction

VASPBERRY

Berry curvature and Chern number calculations with the output (WAVECAR) of VASP code. VASPBERRY is written for the post-processing purpose of the VASP outputs, i.e., WAVECAR the Bloch wavefunction information. VASPBERRY can compute Berry curvature and Chern number via Fukui's method [See J. Phys. Soc. Jap. 74, 1674 (2005)]. In addition Circular dichroism also can be evaluated. Since it directly reads the wavefunction coefficients, one can also obtain real space wavefunction character psi_nk(r) by simple command.

Compile

  • Serial version :

    ifort -fpp -assume byterecl -mkl -o vaspberry vaspberry.f

  • Multicore version :

    mpif90 -DMPI_USE -mkl -fpp -assume byterecl -o vaspberry vaspberry.f

  • Note for gfortran: For gfortran, please use vaspberry_gfortran_serial.f for the compilation. This only support non-parallel calculations. For the compilation, for example

    gfortran -L/usr/local/lib/lapack/ -l lapack -o vaspberry vaspberry_gfortran_serial.f

Features

  • Berry curvature calculation
  • Compute Chern number for certain band(s)
  • Circular dichroism (optical selectivity response to the circulary polarized light)
  • Wavefunction plot (Gamma point only in the current version)

Usage

  • Instruction and possible options

./vaspberry -h

  • Berry curvature calculation and Chern number (ex, k-grid: 12x12, multiband berry curvature from 1-th to 18-th band)

./vaspberry -kx 12 -ky 12 -ii 1 -if 18

  • Circular dichroism [ex, transition rate from 11-th to 12-th state by right(+) polarized light]

./vaspberry -kx 12 -ky 12 -cd -ii 11 -if 12

  • Real space wavefunction plot [ex, to plot 18-th state with 1-st k-point (if it is gamma point), with 40x40x40 grid for density file]

./vaspberry -wf 18 -k 1 -ng 40,40,40

Example

  • 1H-MoS2 : Berry curvature and Chern number
  • Quantum Anomalous Hall effect (Trypheny-lead lattice) : See H.-J. Kim, C. Li, J. Feng, J.-H. Cho, and Z. Zhang, PRB 93, 041404(R) (2016) (the example files will be provided upon request)

vaspberry's People

Contributors

infant83 avatar

Watchers

James Cloos 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.