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

Constructing cell from parameters #61

Open
t-reents opened this issue May 1, 2022 · 0 comments
Open

Constructing cell from parameters #61

t-reents opened this issue May 1, 2022 · 0 comments

Comments

@t-reents
Copy link
Collaborator

t-reents commented May 1, 2022

Dear all,

I think I found a small typo/error in the methods related to the ibrav parameters.

In the PW Input documentation one finds that the first lattice vector of the reconstructed cell for an orthorhombic base-centered structure (ibrav=-9) has the following shape:

v1 = (a/2, -b/2, 0)

Therefore, I think the following code needs to be adapted so that the minus is in the second component of the first lattice vector and not in the second lattice vector.

elif ibrav == -9:
# -9 as 9, alternate description
# v1 = (a/2,-b/2,0), v2 = (a/2,-b/2,0), v3 = (0,0,c)
cell = np.array([[0.5 * alat, 0.5 * b, 0.], [0.5 * alat, -0.5 * b, 0.],
[0., 0., c]])

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

1 participant