This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
documentation [2015/05/12 10:12] – [Functions for convertcrystal] macke | documentation [2015/05/12 10:14] – macke | ||
---|---|---|---|
Line 254: | Line 254: | ||
1. argument: Number of simplex iterations to perform | 1. argument: Number of simplex iterations to perform | ||
- | ==== Functions for convertcrystal ==== | ||
- | |||
- | |||
- | The tool convertcrystal converts crystal files in the format .xyz to an output that is usable for QUAD. | ||
- | The standard .cif can be usually exported to a .xyz file by using software tools like " | ||
- | convertcrystal executes a script file which can contain following commands line by line. | ||
- | A example should be provided in the Tutorials folder | ||
- | |||
- | '' | ||
- | |||
- | opens a .xyz file | ||
- | |||
- | '' | ||
- | |||
- | saves a .xyz file | ||
- | |||
- | '' | ||
- | |||
- | defines the unit cell structure of the loaded file. | ||
- | The definition can be found here: http:// | ||
- | |||
- | '' | ||
- | |||
- | just prints the atom and tells how many other atoms at the same crystal position could be found | ||
- | |||
- | '' | ||
- | |||
- | Sets the distance limit in which the atoms are treated identical. (default 0.1A) | ||
- | |||
- | '' | ||
- | |||
- | removes atoms that are multiple times in the crystal lattice | ||
- | the function " | ||
- | |||
- | '' | ||
- | |||
- | expands the unit cell around the borders | ||
- | |||
- | '' | ||
- | |||
- | sort the atoms for increasing z-coordinate | ||
- | |||
- | '' | ||
- | |||
- | rotates crystal around x-axis | ||
- | |||
- | '' | ||
- | |||
- | rotates crystal around y-axis | ||
- | |||
- | '' | ||
- | |||
- | rotates crystal around z-axis | ||
- | |||
- | '' | ||
- | |||
- | moves an atom around | ||
- | if atomnr is -1 then the whole crystal is moved | ||
- | |||
- | '' | ||
- | |||
- | trys to find the smallest cubic unitcell of the system. and sets the unit cell accordingly. If this function does not work you have to do it manually by the " | ||
- | |||
- | '' | ||
- | |||
- | prints the atom layers which you can use directly use in the lua script. | ||
- | Note that the layer will be build up along z-axis and not around c-axis. | ||
- | |||
- | '' | ||
- | |||
- | waits for a keypress (enter) | ||
- | |||
- | '' | ||
- | |||
- | checks if there is something outside of the primitive outside of the unit cell and warns | ||
- | In future there will be more checks included | ||
- | |||
- | '' | ||
- | |||
- | remove all atoms outside of the unit cell | ||
- | |||
- | '' | ||
- | |||
- | prints the current unit cell vectors a,b and c | ||