User Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
convertcrystal [2015/05/12 11:43]
macke
convertcrystal [2015/05/12 11:54] (current)
macke
Line 15: Line 15:
 saves a .xyz file saves a .xyz file
  
-''​unitcell a b c anglea anbleb anglec''​+''​unitcell a b c alpha beta gamma''​
  
 defines the unit cell structure of the loaded file.  defines the unit cell structure of the loaded file. 
-The definition can be found here: http://​en.wikipedia.org/​wiki/​Fractional_coordinates+The definition ​of the 6 parameters ​can be found here: [[http://​en.wikipedia.org/​wiki/​Fractional_coordinates]] 
 + 
 +''​printunitcellvectors''​ 
 + 
 +prints the current unit cell vectors a,b and c 
 + 
 +''​atomdistance d''​ 
 + 
 +Sets the distance limit in which the atoms are treated identical. (default: d=0.1A)
  
 ''​findneighbors''​ ''​findneighbors''​
Line 24: Line 32:
 just prints the atom and tells how many other atoms at the same crystal position could be found just prints the atom and tells how many other atoms at the same crystal position could be found
  
-''​atomdistance d''​+''​removeoutside''​
  
-Sets the distance limit in which the atoms are treated identical. (default 0.1A)+remove all atoms outside of the unit cell 
  
 ''​reduce''​ ''​reduce''​
  
-removes atoms that are multiple times in the crystal lattice ​ (e. g. atoms at the corners)+removes atoms that sit on the same site in the crystal lattice ​ (e. g. atoms at the corners)
 the function "​removeoutside"​ should be executed first. the function "​removeoutside"​ should be executed first.
  
Line 43: Line 51:
 ''​rotatex angle''​ ''​rotatex angle''​
  
-rotates crystal around x-axis+rotates crystal ​and the unit cell coordinates ​around x-axis
  
 ''​rotatey angle''​ ''​rotatey angle''​
  
-rotates crystal around y-axis+rotates crystal ​and the unit cell coordinates  ​around y-axis
  
 ''​rotatez angle''​ ''​rotatez angle''​
  
-rotates crystal around z-axis+rotates crystal ​and the unit cell coordinates  ​around z-axis
  
 ''​moveatom atomnr x y z''​ ''​moveatom atomnr x y z''​
  
-moves an atom around +moves an atom aroundif atomnr is -1 then the whole crystal is moved
-if atomnr is -1 then the whole crystal is moved+
  
 ''​findcubiccell''​ ''​findcubiccell''​
Line 64: Line 71:
 ''​buildlayers nlayers''​ ''​buildlayers nlayers''​
  
-prints the atom layers which you can use directly use in the lua script.+prints ​a script snipplet which contains the coordinates for the atom layers which you can directly use in the lua script.
 Note that the layer will be build up along z-axis and not around c-axis. Note that the layer will be build up along z-axis and not around c-axis.
  
Line 75: Line 82:
 checks if there is something outside of the primitive outside of the unit cell and warns checks if there is something outside of the primitive outside of the unit cell and warns
 In future there will be more checks included In future there will be more checks included
- 
-''​removeoutside''​ 
- 
-remove all atoms outside of the unit cell  
- 
-''​printunitcellvectors''​ 
- 
-prints the current unit cell vectors a,b and c