Giter Club home page Giter Club logo

strawberrypy-developers / strawberrypy Goto Github PK

View Code? Open in Web Editor NEW
8.0 2.0 0.0 3.82 MB

StraWBerryPy (Single-poinT and local invaRiAnts for Wannier Berriologies in Python) is a Python package to calculate topological invariants and quantum-geometrical quantities in non-crystalline topological insulators

Home Page: https://strawberrypy.readthedocs.io/en/latest/

License: MIT License

Python 100.00%
physics tight-binding topological-insulators wannier90

strawberrypy's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

strawberrypy's Issues

interface with WannierBerri

Dear developers

@AntimoMarrazzo brought my attention to this package. From a quick look I am trying to understand what you are trying to do here

print('Reading Hamiltonian at Gamma point in Wannier gauge..')
grid = Grid(model, NK=model.NKFFT_recommended)
dK = 1. / grid.div
data = Data_K_R(model, dK, grid)
Ham_W_R = model.Ham_R.copy()
Ham_W_k = data.fft_R_to_k(Ham_W_R, hermitean=True)
ham = Ham_W_k[0,:,:]

I guess, you what to get the Gamma-point only, right? Then, computing a grid of size NK=model.NKFFT_recommended is an overhead. instead you may use NK=[1,1,1], dK=[0,0,0]

Why are you using dK = 1. / grid.div ? Well, in this case grid.div should be [1,1,1], and dK is defined modulo 1, so it is equivalent to [0,0,0], so in the end your implementation should work. but it looks unnecessary sophisticated.

Am I understanding correctly, or do you have smth different in mind?

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.