Comments (4)
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:
- There's no need to modify
shape.py
: Theline.run
andsurface.run
functions can take any function that parametrizes the shape on which the WCC should be calculated. Theshape.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.
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.
The values are normalized to the interval [0, 1).
from z2pack.
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)
- Line calculations errors for one-dimensional graphene nanoribbons HOT 18
- Surface Projection HOT 2
- Surface function setting HOT 6
- About the cooperation between Z2Pack and first-principles codes, such as Quantum espresso and SIESTA. HOT 8
- Add skip_B1_tests to VASP example, update installation instructions
- Mirror Chern number and PAW pseudopotentials HOT 2
- question about the surface Parameters HOT 2
- Replace .pytest_cache for test data storage
- Add dependabot
- Simplify installation instructions
- Error when calculating the Chern invariant from Wannier90-output tight-binding model HOT 5
- Does Z2pack enforce any symmetries when calculating Berry phases? HOT 1
- Mirror chern number using quantum espresso and Z2Pack. HOT 3
- Compilation error with qe-7.2 and 6.6 HOT 1
- z2pack for broken time reversal symmetry and SOC calculation HOT 1
- The Chern number of the Haldane model HOT 3
- Computing Z2 number from a completed vasp-wannier90 run HOT 2
- Runtime error diagnostics HOT 6
- WCC are not degenrate Kramers pair at the edges of the surface HOT 2
- Using z2pack for 2D 1T'-MoS2 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from z2pack.