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

2d kmesh in k110-k001 plane with k1-10 perpendicular #157

Open
xbchen1994 opened this issue Jul 28, 2024 · 1 comment
Open

2d kmesh in k110-k001 plane with k1-10 perpendicular #157

xbchen1994 opened this issue Jul 28, 2024 · 1 comment

Comments

@xbchen1994
Copy link

Hello,

I want to obtain the 2D spin-texture from PROCAR for a tetragonal lattice a = b >c.
At the present, the k-mesh is "t t s" for t, s both varied from 0 to 0.5.
How can I obtain the 2d fermi surface using translate and rotation?
Now I don't use the tag "translate" since I cannot figure out it even I come to Part "Translate and Rotate the 2D KPOINT mesh".
And I set the rotation with rotation = [90, 1, 1, 0], but results are weird, maybe the determinant of transform matrix now is not 1?
Can you show me the right setting?

Regards,
Aaron

@lllangWV
Copy link
Member

lllangWV commented Aug 9, 2024

Hey,

The issue is the translate, general rotation, and rot_symmetry_z are not applied in the spin texture case.

So, the relevant code is in scriptFermi2D.py:

if spin_texture is True:
        sx, sy, sz = stData[0], stData[1], stData[2]
        symm = ProcarSymmetry(kpoints, bands, sx=sx, sy=sy, sz=sz, character=character)
else:
        symm = ProcarSymmetry(kpoints, bands, character=character)
        symm.translate(translate)
        symm.general_rotation(rotation[0], rotation[1:])
        # symm.MirrorX()
        symm.rot_symmetry_z(rot_symm)

This should be

if spin_texture is True:
        sx, sy, sz = stData[0], stData[1], stData[2]
        symm = ProcarSymmetry(kpoints, bands, sx=sx, sy=sy, sz=sz, character=character)
else:
        symm = ProcarSymmetry(kpoints, bands, character=character)
symm.translate(translate)
symm.general_rotation(rotation[0], rotation[1:])
        # symm.MirrorX()
symm.rot_symmetry_z(rot_symm)

I made the change and pushed it to github.

To use these changes, do the following.

pip uninstall pyprocar
git clone [email protected]:romerogroup/pyprocar.git
cd pyprocar
pip install -e .

Logan Lang

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