This python code reads data from the file sqscell.out
(generated by mcsqs
code) and writes the first 3 cells with the smallest and equal vector lengths to a new file with the same name. The original data is saved in old-sqscell.out
. The data in sqscell.out
is in a structured format, with each cell represented by 4 lines: the first line indicates the total number of cells, followed by 3 lines of vector data. The code first reads the original file and saves a copy in old-sqscell.out
. Then, it calculates the length of each vector and selects the first 3 cells with the smallest and equal vector lengths. Finally, the code writes the selected cells to a new sqscell.out
file. This code helps to find cubic SQS supercells from all the supercells generated by mcsqs
code under ATAT package.
-
Notifications
You must be signed in to change notification settings - Fork 0
rafshantik/SQS
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A python code to get cubic SQS supercell from "sqscell.out" file generated from "mcsqs" code under ATAT package.
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published