cryst_symm | R Documentation |
This represents a crystallographic space group.
cryst_symm(SG = NULL, set = NULL)
SG |
A character string or an integer identifying the space group. There are 230 used space group in crystallography and each one corresponds to a unique and so-called extended Hermann-Mauguin symbol. An example is space group number 19, identified by the extended Hermann-Mauguin symbol "P 21 21 21". Several formats are possible and some of them are now rarely used. Attempts are made to transform the input into a correct Hermann-Mauguin symbol, but if all fails, a warning is raised and the space group P 1 is assigned. |
set |
An integer defining which setting of many possible for the given space group. Some crystallographic space groups can be implemented with small variants known as "settings". If the input SG is an extended Hermann-Mauguin symbol, set is ignored, as it is already specified by the xHM symbol. |
The constructor can be used with less than the full set of two input parameters, to create an object of class cryst_symm corresponding to space group P 1. If the input string is not recognised, a warning is raised and space group P 1 is assigned.
An object of class "cryst_symm". It is a named list of length 4. The names are, "SG", "PG", "T" and "C".
1) SG. This is a string containing the correct extended Hermann-Mauguin symbol.
2) PG. This is a list whose elements are all the 3\times 3 matrices forming the point-group part of the symmetry transformation.
3) T. This is a list whose elements are all the 3\times 1 vectors forming the translational part of the symmetry transformation.
4) C. This is a list whose elements are all the 3\times 1 vectors forming the centering of the unit cell.
# The symplest symmetry: P 1 crsym <- cryst_symm("P 1") print(crsym) # The second space group: P -1 crsym <- cryst_symm(2) print(crsym) # Something more complicated crsym <- cryst_symm("P 21 21 21") print(crsym)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.