Git Product home page Git Product logo

Comments (4)

greschd avatar greschd commented on August 24, 2024

Yes, with newer Wannier90 and pw2wannier90 versions that is possible. Two things are needed:

  • The k-points need to be passed to QE in "explicit" mode, and to Wannier90 in "full" mode. To do so, use the kpt_fct as in this example when constructing the system:

kpt_fct=[z2pack.fp.kpoint.qe_explicit, z2pack.fp.kpoint.wannier90_full],

  • There's no need to modify shape.py: The line.run and surface.run functions can take any function that parametrizes the shape on which the WCC should be calculated. The shape.py module simply provides some useful ones for common uses. So, for a circle, you could do e.g.
import numpy as np

system = ...
x0, y0, z0 = ... # center of the circle
r = ... # radius

z2pack.line.run(
    system=system,
    line=lambda t: [x0 + r * np.cos(2 * np.pi * t), y0 + r * np.sin(2 * np.pi * t), z0]
)

Of course you can also modify this to e.g. be oriented in a different way. The only important point is that the line is closed, i.e. t=0 and t=1 describe the same point (up to lattice translations).

from z2pack.

sliutheory avatar sliutheory commented on August 24, 2024

Thank you. Yes, indeed it works.
A minor question. The values of res.wcc (say res=z2pack.line.run) are in the unit of 2pi or pi?

from z2pack.

greschd avatar greschd commented on August 24, 2024

The values are normalized to the interval [0, 1).

from z2pack.

greschd avatar greschd commented on August 24, 2024

I'm closing this since it seems the original question is answered - feel free to open another issue if needed.

from z2pack.

Related Issues (20)

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.