Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Banduppy for non-orthogonal system #21

Open
SamforD95 opened this issue Aug 29, 2023 · 1 comment
Open

Banduppy for non-orthogonal system #21

SamforD95 opened this issue Aug 29, 2023 · 1 comment

Comments

@SamforD95
Copy link

To whom it may concern

Firstly, thank you for this designed routin in retail.
I am trying to use the program in QE for an hexagonal lattice system,
which features fractional coefficient in the supercell section.

The program complains directly, as follow:

unfolding_path.py", line 129, in init
super(UnfoldingPath,self).init(supercell,kpointsPBZ)

unfolding_path.py", line 23, in init
assert np.linalg.norm(np.array(supercell)-supercell_int)<1e-14 ,
AssertionError: supercell should consist of integers, found [[1, 0, 0], [-0.5, 0.8660254037844386, 0], [0, 0, 1.22924106]]

Have I plugged in smth wrong or is there a work around for this?
Thank you in advance
Samuele

@stepan-tsirkin
Copy link
Member

Hi @SamforD95

The supercell should be composed of an integer number of primitive cells, i.e the lattice vectors of the supercell should be expressed in the basis of the primitive cell with integer coefficients. This is a fundamental condition for unfolding to be mathematically defined.

Those coefficients are those that should be introduced as a supercell parameter of UnfoldingPath .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants