Supergroups#

Supergroups of a group H (PG or SG), not only the direct parents of the group binaries.

  • Direct supergroups: Group.global_info()[“supergroup”] of the binaries (MultiPieGen, supergroup.pkl): the supergroups P in which H is a maximal subgroup (t- or k-subgroup, [T_P : T_H] <= 4, not isomorphic), with an embedding A (x_P = A x_H, conventional coordinates), given up to the normalizers of P and of H.

  • Supergroups (supergroups): the chains of direct supergroups, A = A_k … A_1, the index multiplied, with [T_P : T_H] <= 4 (MAX_LATTICE_INDEX; the lattices of P finer and finer give infinitely many supergroups); one entry for each supergroup up to the normalizer of H, with its chain (“path”).

  • Embeddings (embedding): A n for every element n of the affine normalizer of H (n H n^-1 = H, within the entries searched; translations along a continuous direction of a polar group are not used), two embeddings being the same when they give the same set of the operations of P in the coordinates of H (the parent group seen from H). Different embeddings give different parent structures for the same atoms of H.

  • Index: [P : H] modulo the lattice of H (“index”) and modulo the lattice of P (“index_parent”).

  • Cosets (coset_decomposition): the left cosets g H of P (modulo the lattice of P or of H); the representative is the pure translation or the inversion if the coset has one, else the proper rotation of the highest order, with the smallest translation.

  • Parent structure (parent_limit): the values of the Wyckoff parameters at which the orbit of H is invariant under P: c p(x) lies on the orbit for the representative c of every right coset H c (exact linear equations in x); the orbits whose atoms coincide are excluded.

coset_decomposition(group, parent, embedding=None, modulo='parent')[source]#

Left cosets g H of P.

Parameters:
  • group (Group or str) – group H.

  • parent (Group or str) – supergroup P.

  • embedding (None, int, dict or array, optional) – embedding (resolve_embedding).

  • modulo (str, optional) – “parent” (modulo the lattice of P) or “self” (modulo the lattice of H, the cosets of the translations of P included).

Returns:

  • (list) – [{“rep” (tag), “rep_matrix” (coordinates of H), “ops” (tags), “order” (smallest n with g^n in H), “kind” (“identity”, “rotation”, “improper”, “inversion”, “translation”)}], H first.

  • (dict) – embedding.

embedding(group, parent)[source]#

Embeddings of the group H in a supergroup P.

Parameters:
  • group (Group or str) – group H.

  • parent (Group or str) – supergroup P.

Returns:

  • (list) – [{“parent”, “A” (x_P = A x_H, 4x4), “R”, “shift”, “origin” (the origin of P in the coordinates of H), “index”, “index_parent”, “path”}]; [] if P is not a supergroup.

gid(group)[source]#

id of a PG or SG, e.g. “PG:32”, “SG:152”.

map_site(positions, op, lattice=None)[source]#

Atoms of a structure mapped by an operation.

Parameters:
  • positions (list) – positions of the atoms (coordinates of H).

  • op (ndarray) – operation (4x4, coordinates of H).

  • lattice (ndarray, optional) – primitive vectors of H (columns, conventional), None for PG.

Returns:

(j, n)}: op r_i = r_j + n (n: lattice vector, conventional).

Return type:

  • (dict) – {i

okey(W, L)[source]#

key of an operation (4x4) modulo the lattice L.

op_matrix(group, parent, tag, embedding=None)[source]#

Element of P (coordinates of H) from its tag “point operation of P:[translation in H]” (or a 4x4 matrix).

Returns:

  • (ndarray) – 4x4 matrix.

op_tag(group, parent, e, W)[source]#

tag of an element W (coordinates of H) of P: point operation of P and the translation in H.

parent_elements(group, parent, embedding=None)[source]#

Elements of P modulo the lattice of H, in the coordinates of H.

Returns:

  • (list) – [4x4 matrix].

  • (dict) – embedding.

parent_limit(group, parent, wyckoff=None, embedding=None)[source]#

Parent structures of the Wyckoff sites of H for a supergroup P.

Parameters:
  • group (Group or str) – group H.

  • parent (Group or str) – supergroup P.

  • wyckoff (str or list, optional) – Wyckoff sites (default: all with free parameters).

  • embedding (None, int, dict or array, optional) – embedding (resolve_embedding).

Returns:

  • (dict) – parent structures of each Wyckoff site (as Group.coset[“parent_limit”]), dicts with “param” (the expression of each parameter, modulo 1), “position” of the representative, and “parent_wyckoff”.

  • (dict) – embedding.

resolve_embedding(group, parent, embedding=None)[source]#

The embedding of H in P used by the other functions.

Parameters:
  • group (Group or str) – group H.

  • parent (Group or str) – supergroup P.

  • embedding (None, int, dict or array, optional) – None (the first one), the index in embedding(), a dict of embedding(), or A (4x4, x_P = A x_H).

Returns:

  • (dict) – embedding (see embedding()).

supergroups(group, max_index=None, chain=False)[source]#

Supergroups of a group H (not only the direct parents).

Parameters:
  • group (Group or str) – group H (PG or SG).

  • max_index (int, optional) – upper limit of the index (modulo the lattice of H).

  • chain (bool, optional) – only the chain of the representative parents of the group binaries (Group.global_info()[“parent”]).

Returns:

a chain of

direct supergroups), “direct”}], in order of the index; one entry for each supergroup up to the normalizer of H (embedding() gives all).

Return type:

  • (list) – [{“group”, “A”, “R”, “shift”, “origin”, “index”, “index_parent”, “path” (H, …, P

vec_str(v)[source]#