GithubHelp home page GithubHelp logo

ruoitrau86 / bandstructure Goto Github PK

View Code? Open in Web Editor NEW

This project forked from itp3/bandstructure

0.0 1.0 0.0 727 KB

Python module for band structure calculations

License: MIT License

Python 99.60% Shell 0.40%

bandstructure's Introduction

Build Status Coverage Status

Introduction

bandstructure is a python module for solving tight-binding(-like) models. It has a modular structure allowing for easy customization of the underlying lattice structure as well as the specific system (defined by its tunneling rates).

Features

  • NumPy vectorization is used whenever possible. Parallelization is supported through the python multiprocessing module
  • One- and two-dimensional lattices are supported as well as different kinds of (semi-)finite systems
  • Predefined lattices: Chains, Square lattice, Honeycomb lattice, Kagome lattice, Ruby lattice
  • Calculate topological properties: Chern numbers, Berry phases

Requirements

  • Tested with Python >= 3.2
  • numpy
  • scipy
  • matplotlib (optional)

Example: graphene

The following short programm solves the nearest-neighbor tight-binding model on the two-dimensional honeycomb lattice (graphene).

from bandstructure import Parameters
from bandstructure.system import TightBindingSystem
from bandstructure.lattice import HoneycombLattice

lattice = HoneycombLattice()

params = Parameters({
    'lattice': lattice,
    't': 1
})

s = TightBindingSystem(params)

# Solve on high-symmetry path through Brillouin zone
path = lattice.getKvectorsPath(resolution=300, pointlabels=['A', 'G', 'X', 'A'])
bandstructure = s.solve(path)
bandstructure.plot("dispersion.pdf")

bandstructure's People

Contributors

sharkdp avatar seweber 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.