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

Conserve repeating order of atoms in POSCAR -update #17

Merged
merged 4 commits into from Apr 22, 2020

Conversation

uthpalaherath
Copy link
Collaborator

This update allows the repeating order in atoms in POSCAR to be conserved.

For example:

Sr V O
1.0
3.8465199999999999 0.0000000000000000 0.0000000000000000
0.0000000000000000 3.8465199999999999 0.0000000000000000
0.0000000000000000 0.0000000000000000 3.8465199999999999
Sr V Sr O
1 1 1 3
Direct
0.0000000000000000 0.0000000000000000 0.0000000000000000
0.5000000000000000 0.5000000000000000 0.5000000000000000
0.5000000000000000 0.5000000000000000 0.0000000000000000
0.5000000000000000 0.0000000000000000 0.5000000000000000
0.5000000000000000 0.5000000000000000 0.0000000000000000
0.0000000000000000 0.5000000000000000 0.5000000000000000

Here the order Sr, V, Sr, O will be conserved when using the structure to generate POTCARs and POSCARs for kgrid, encut convergence and relaxation with PyChemia. Otherwise, it reverts to Sr, V, O ignoring the order of the repetition.

This is helpful for performing calculations for heterostructures where atoms in layers are ordered separately. The order of the POTCAR concatenation will follow this too.

-Uthpala

@guilleaf guilleaf merged commit d28355a into MaterialsDiscovery:master Apr 22, 2020
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

Successfully merging this pull request may close these issues.

None yet

2 participants