Coder Social home page Coder Social logo

cnncnnzh / topophonon Goto Github PK

View Code? Open in Web Editor NEW
20.0 4.0 1.0 1.3 MB

topoPhonon package is a python package that allows users to calculate topological properties (berry phase, berry curvature, wannier charge center evolution...), by building phonon tight binding model.

License: GNU General Public License v3.0

Python 100.00%

topophonon's Introduction

topoPhonon

topoPhonon is a python package that allows users to phononic calculate topological properties, by building phonon tight-binding model.

  • Build tight-binding models from user's input, FORCE_CONSTANTS files or Phonopy API. The last method is much faster, but need to import Phonopy package and manually create phonopy.harmonic.dynamical_matrix.DynamicalMatrix object.
  • Calculate berry phase, berry curvature, wannier charge center evolution around Weyl points from tight-binding model.
  • Build slab/ribbon models for surface/edge.
  • Plot 3d band surfaces.

Installation:

pip install topophonon

Basic usage:

Use one line of code to build tight-binding model:
model = read_from_files(path)
where the path should contain POSCAR, SPOSCAR and FORCE_CONSTANTS files.

From the model just built, build a slab model with multi layers along fin_dir:
model_2d = model.cut_piece(multi, fin_dir)
model_2d = model_2d.atom_projected_band(q_path, node_names)

Create a Topology object:
tp = Topology(model)
Plot the energy surfaces of band1 and band2 and find the degenerate points on z=0 plane:
model.plot_3d_band([band1, band2], center, xy_range)
Then plot wannier charge center evolution around center for band_indices:
tp.wcc_evol_sphere(band_indices, center)
and the berry curvature distribution on $k_i$=kz plane, where $k_i$ = $k_z, k_y, k_z$ if dirc = 0, 1, 2, respectively:
tp.berry_curvature_proj(band_indices, dirc, kz)

More examples can be found in runExamples.py file

topophonon's People

Contributors

cnncnnzh avatar

Stargazers

 avatar Peter Goa avatar  avatar  avatar  avatar Shan Wang avatar  avatar Yu-Jia Zeng avatar  avatar Shahram_Yalameha avatar  avatar  avatar Xianquan (Sarinstein) Yan avatar J. George avatar NJ Yang avatar  avatar  avatar  avatar  avatar  avatar

Watchers

Lucian avatar Kostas Georgiou avatar  avatar  avatar

Forkers

dazhuangzhu

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.