-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
43a1baa
commit b2b3e1f
Showing
4 changed files
with
99 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import pymatgen.io.vasp | ||
import pymatgen.symmetry.analyzer | ||
|
||
file_path = "I.vasp" | ||
R_TOL = 0.5 | ||
A_TOL = 5.0 | ||
|
||
# Calculate and append spacegroup to the start of the file | ||
poscar = pymatgen.io.vasp.inputs.Poscar\ | ||
.from_file(file_path, check_for_POTCAR=False, read_velocities=False) | ||
|
||
# TODO: figure out why this is only returning 1. Ran 40k+ attempts, only | ||
# returned 1 ever. Am I just not scanning enough input or is there actually | ||
# a problem with the system? | ||
spacegroup = pymatgen.symmetry.analyzer.\ | ||
SpacegroupAnalyzer(poscar.structure, symprec=R_TOL,\ | ||
angle_tolerance=A_TOL).get_space_group_number() | ||
|
||
print(spacegroup) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
Iodine lattice | ||
1.0 | ||
12.8247900009 0.0000000000 0.0000000000 | ||
-6.4123950005 11.1065939390 0.0000000000 | ||
0.0000000000 0.0000000000 18.9468288422 | ||
I | ||
54 | ||
Direct | ||
0.222222313 0.111110995 0.081330003 | ||
0.222222309 0.444444322 0.081330003 | ||
0.222222333 0.777777702 0.081330003 | ||
0.555555683 0.111110995 0.081330003 | ||
0.555555680 0.444444322 0.081330003 | ||
0.555555704 0.777777702 0.081330003 | ||
0.888889016 0.111110995 0.081330003 | ||
0.888888976 0.444444322 0.081330003 | ||
0.888889000 0.777777702 0.081330003 | ||
0.111110999 0.222222332 0.918670028 | ||
0.111110993 0.555555692 0.918670028 | ||
0.111111011 0.888888986 0.918670028 | ||
0.444444351 0.222222332 0.918670028 | ||
0.444444345 0.555555692 0.918670028 | ||
0.444444345 0.888888986 0.918670028 | ||
0.777777684 0.222222332 0.918670028 | ||
0.777777660 0.555555692 0.918670028 | ||
0.777777678 0.888888986 0.918670028 | ||
0.111110999 0.222222332 0.414662995 | ||
0.111110993 0.555555692 0.414662995 | ||
0.111111011 0.888888986 0.414662995 | ||
0.444444351 0.222222332 0.414662995 | ||
0.444444345 0.555555692 0.414662995 | ||
0.444444345 0.888888986 0.414662995 | ||
0.777777684 0.222222332 0.414662995 | ||
0.777777660 0.555555692 0.414662995 | ||
0.777777678 0.888888986 0.414662995 | ||
-0.000000000 -0.000000000 0.252003026 | ||
0.000000002 0.333333338 0.252003026 | ||
0.000000004 0.666666675 0.252003026 | ||
0.333333333 -0.000000000 0.252003026 | ||
0.333333336 0.333333338 0.252003026 | ||
0.333333338 0.666666675 0.252003026 | ||
0.666666667 -0.000000000 0.252003026 | ||
0.666666669 0.333333338 0.252003026 | ||
0.666666671 0.666666675 0.252003026 | ||
0.000000000 0.000000000 0.747996974 | ||
0.000000002 0.333333338 0.747996974 | ||
0.000000004 0.666666675 0.747996974 | ||
0.333333333 0.000000000 0.747996974 | ||
0.333333336 0.333333338 0.747996974 | ||
0.333333338 0.666666675 0.747996974 | ||
0.666666667 0.000000000 0.747996974 | ||
0.666666669 0.333333338 0.747996974 | ||
0.666666671 0.666666675 0.747996974 | ||
0.222222313 0.111110995 0.585336980 | ||
0.222222309 0.444444322 0.585336980 | ||
0.222222333 0.777777702 0.585336980 | ||
0.555555683 0.111110995 0.585336980 | ||
0.555555680 0.444444322 0.585336980 | ||
0.555555704 0.777777702 0.585336980 | ||
0.888889016 0.111110995 0.585336980 | ||
0.888888976 0.444444322 0.585336980 | ||
0.888889000 0.777777702 0.585336980 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters