generates all symmetry elements from given space group
Syntax
[symOp, symInfo] = swsym.operator(sym)
[symOp, symInfo] = swsym.operator(sym,fid)
Description
[symOp, symInfo] = swsym.operator(sym) generates all symmetry
elements from a given set of generators. It also accepts space group
labels or space group index or string of symmetry operators.
Input Arguments
sym- Line index in the symmetry.dat file or string of the
symmetry operators or matrix of symmetry generators with dimensions of
. For example:
sym = 'P n m a'. fid- If non-zero, the symmetry operators will be printed to the file
identified by
fid, the following values are valid:0no printed output (default),1standard output (Command Line),fidtext file opened before usingfid = fopen(path).
Output Arguments
symOp- All the symmetry elements in a matrix with dimensions of .
symInfo- Structure that contains additional information about the space
group with the following fields:
nameName of the space group, if theswsym.generatorfunction is called with no input, name stores the name of all space groups from symmetry.dat file in a cell.strThe string of the symmetry operations.numThe line index in the symmetry.dat file.