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

Extend VASP parsing of charges and magnetism #206

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

ndaelman-hu
Copy link
Contributor

Fix a bug about capturing the valence electrons ('ZVAL') + add extraction of atomic charges and magentizations.

Closes #174 and Uday's request

@ndaelman-hu ndaelman-hu added bug Something isn't working. It also represents a quick fix in response to a bug. feature / enhancement New feature or request labels Feb 28, 2024
@ndaelman-hu ndaelman-hu self-assigned this Feb 28, 2024
@ondracka
Copy link
Collaborator

Any chance you can also add parsing of n_spin_channels while here (i.e., ISPIN)?

@ndaelman-hu
Copy link
Contributor Author

Any chance you can also add parsing of n_spin_channels while here (i.e., ISPIN)?

Okay, I'll look into it.

- TODO: add tests
@ndaelman-hu
Copy link
Contributor Author

Okay, so the total atomic charges are in. I can also add the projected charges, as well as atomic magnetism, but that'll require extending the schema. @JosePizarro3 We should keep this in mind for when we design data.ModelOutput.

Lastly, VASP only reports atomic charges / magnetizations in the OUTCAR, but not vasprun.xml to my knowledge. Not sure about the new HDF5 format.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working. It also represents a quick fix in response to a bug. feature / enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Magnetic moments in VASP
2 participants