Cosets#
Cosets of a group in its parents: images of the cosets, the first coset, the parent structures, and the cosets of all parents along the chain of representative parents.
Groups and symmetry operations are taken from the tables of this repository only (util_group_data, util_symmetry_operation.group_symmetry_operation, data_parent_pg/sg, data_wyckoff_site). Numbers are handled as floats and converted to fractions (denominator <= 48) or to exact expressions with sqrt when written.
Direct parent. For an SG H, the parent P of data_parent_sg[H] (the parent that restores the least symmetry); for a PG H, every parent in data_parent_pg[H], and the representative parent data_representative_parent_pg[H] (the “direct parent” used for the first coset). The “-c” point groups share the operations of the real group.
Coset image (coset_image_sg, coset_image_pg). P is split into left cosets g H (modulo the lattice of H for SG), and the image g H g^-1 is looked for among the children of P (the groups that have P in data_parent_pg/sg) with the same axes (for SG, up to an origin shift k). The map M = R’^-1 k^-1 g R (coordinates of H -> those of the image) maps each Wyckoff position of H to one of the image, with a map of the parameters.
First coset (first_coset). The second coset of data_parent_*[H][P] (the first one other than H), with its representative g (first operation), the order n of g modulo H (smallest n with g^n in H), and its image. g is a rotation, or the inversion (with a translation for SG): “kind” = “rotation” or “inversion”.
Parent structure (parent_limit_sg, parent_limit_pg). For each Wyckoff position of H with free parameters, the largest sets of parameter values at which the orbit of H is invariant under P with no coinciding sites, the Wyckoff position of P occupied there, and the cosets that keep it.
Cosets of the parents (parent_chain, coset_list). The chain of representative parents up to the top group (Oh, D6h, SG 221-230 or 191-194), and the left cosets of H in each of them (tags of the operations of the parent; for SG with the translation in the coordinates of H modulo its lattice).
- num_str(v)[source]#
float -> fraction string, or an exact expression with sqrt(2), sqrt(3), sqrt(6) when it is not rational.
- pg_real(tag)[source]#
the “-c” (complex) settings share the operations and the chain of the real group.
- op_key(W, Linv=None)[source]#
canonical key of an operation; translations reduced modulo the lattice with basis Linv^-1.
- wyckoff_positions(group)[source]#
{letter: (list of sympy position vectors, site symmetry)} for a PG tag or SG no.
- affine_parts(p)[source]#
position (sympy 3-vector in x, y, z) -> (A 3x3, b 3) with p = A (x,y,z) + b.
- match_position(q_A, q_b, r_A, r_b, cent, periodic=True)[source]#
Find u = P x + d with r_A u + r_b + c + n = q_A x + q_b (c in cent, n integer if periodic). Returns (P, d) or None.
- param_map_string(P, d, params_out, params_in)[source]#
{‘x’: ‘-x’, …}: parameters of the image representative in terms of the parameters of the source.
- wyckoff_image(M, src, dst, cent_dst, periodic=True)[source]#
Image of every Wyckoff position of src under the coordinate map M (src -> dst coordinates). Returns {letter: (letter’, {param of letter’ rep: expression in params of letter rep})}.
- coset_image_sg(no, P=None)[source]#
Images of the left cosets of SG no. in its direct parent (cached).
- Parameters:
no (int) – SG number.
P (int, optional) – parent SG number (the direct parent if None).
- Returns:
- R, “coset”: [coset]}, coset = {“rep”: (tag, translation), “image”: SG no. or None, “shift”,
”map”, “trivial”, “wyckoff”: {W: (W’, {param: expression})}}.
- Return type:
(dict) – {“R”
- coset_image_pg(tag, P=None)[source]#
Images of the left cosets of a PG in a parent (cached).
- Parameters:
tag (str) – PG tag.
P (str, optional) – parent PG tag (the representative parent if None).
- Returns:
R, “coset”: [coset]}, coset = {“rep”: tag, “image”: PG tag or None, “map”, “wyckoff”}.
- Return type:
(dict) – {“R”
- first_coset_sg(no)[source]#
First coset of SG no. in its direct parent.
- Parameters:
no (int) – SG number.
- Returns:
(dict) – {“parent”, “R”, “index”, “ops”, “ops_child”, “rep”, “rep_child”, “order”, “kind”, “image”, “map”, “shift”, “wyckoff”, “coset_index”} (matrices as float ndarray, “coset_index”: index of the coset in coset_image_sg).
- first_coset_pg(tag)[source]#
First coset of a PG in its representative parent.
- Parameters:
tag (str) – PG tag.
- Returns:
(dict) – as first_coset_sg (no “shift”), matrices 3x3.
- parent_limit_sg(no, P=None)[source]#
Parent structures of SG no. for its direct parent.
- Parameters:
no (int) – SG number.
P (int, optional) – parent (the direct parent if None).
- Returns:
[{“param”, “position”, “parent_wyckoff”, “preserved_by”}]}.
- Return type:
(dict) – {W
- parent_limit_pg(tag, P=None)[source]#
Parent structures of a PG for a parent.
- Parameters:
tag (str) – PG tag.
P (str, optional) – parent (the representative parent if None).
- Returns:
[{“param”, “position”, “parent_wyckoff”, “preserved_by”}]}.
- Return type:
(dict) – {W
- parent_chain(gid)[source]#
Chain of representative parents of a group up to the top group, with the composed transformations.
- Parameters:
gid (str) – group id (“PG:n” of a real PG, or “SG:n”).
- Returns:
(list) – [(parent id, R (float ndarray, x_parent = R x_H))], the direct parent first ([] for a top group).
- coset_list(gid, R, parent)[source]#
Left cosets g H of a group in a parent, without H itself and the cosets of translations only.
- Parameters:
gid (str) – group id (“PG:n” of a real PG, or “SG:n”).
R (ndarray) – x_parent = R x_H (parent_chain).
parent (str) – parent id.
- Returns:
(list) – [[tag]] for each coset, its representative first; tag = SO tag of the parent for PG, and “point part of the SO tag of the parent:[translation in the coordinates of H modulo its lattice]” for SG.
Note
the cosets are ordered as in coset_image_sg (rotation parts of the identity first, then by the length of the translation), and the operations of a coset in the order of the operations of H.