Group binary#

Create group.pkl (symmetry operation, character, Wyckoff site/bond for all PG, SG, MPG and MSG).

python -m multipiegen.create_binary.create_group [–serial]

Based on MultiPie Ver.2 (others/tools/create_binary/create_data_group.py, create_data_group_mapping.py, create_data_group_bond.py), which are merged here. Differences from MultiPie Ver.2:

  • the representative site/vector are those of the new root cluster (info.pkl).

  • “mapping” of symmetry operation is the mapping to the Oh/D6h cluster (util_op_mapping), for PG and SG.

  • Wyckoff bond has “symmetry” (bond symmetry).

  • complex PG (“-c”) has all data, copied from the real PG except for the character.

  • all sympy values are stored in a simple form (simplify_value).

create_symmetry_operation(g_info, tag, pg_tag)[source]#

Symmetry operation of PG or SG.

Parameters:
  • g_info (namedtuple) – PGInfoType or SGInfoType.

  • tag (str) – group tag (SG has “^”).

  • pg_tag (str) – real PG tag (of the SG for SG), key of op_mapping_d6h_oh_cluster.

Returns:

  • (dict) – symmetry operation.

create_m_symmetry_operation(g_info)[source]#

Symmetry operation of MPG or MSG.

Parameters:

g_info (namedtuple) – MPGInfoType or MSGInfoType.

Returns:

  • (dict) – symmetry operation.

character_plus(table, conjugacy, so)[source]#

Polar-axial conversion and symmetric and anti-symmetric products of irreps, from the characters.

Parameters:
  • table (dict) – {irrep: [character of each conjugacy class]} (sympy).

  • conjugacy (list) – [[SO tags of each conjugacy class]].

  • so (dict) – symmetry operation (“tag”, “det”, “product”).

Returns:

{irrep: irrep}, “symmetric_product”: {(irrep1, irrep2): [(n, irrep)]},

”anti_symmetric_product”: {irrep: [(n, irrep)]}}.

Return type:

  • (dict) – {“polar_axial”

Notes

  • polar_axial: the irrep whose characters are det(g) times those of the irrep.

  • symmetric_product: decomposition of irrep1 x irrep2 (for irrep1 = irrep2, the symmetric part with characters (chi(g)^2 + chi(g^2))/2); anti_symmetric_product: the anti-symmetric part, (chi(g)^2 - chi(g^2))/2.

  • n = <chi_irrep, chi> / <chi_irrep, chi_irrep>, so that a real irrep of complex type (e.g. E of C4, a pair of complex 1D irreps) is counted once.

create_character(tag, so)[source]#

Character of PG.

Parameters:
  • tag (str) – PG tag (with “-c” for complex PG).

  • so (dict) – symmetry operation (“tag”, “det”, “product”).

Returns:

  • (dict) – character.

create_wyckoff_site(g_info, wyckoff, sym_op, space_group, plus_set=True)[source]#

Wyckoff site.

Parameters:
  • g_info (namedtuple) – group info.

  • wyckoff (dict) – Wyckoff data of group, {wp: (expression, symmetry)}.

  • sym_op (dict) – symmetry operation.

  • space_group (bool) – space group (translation part) ?

  • plus_set (bool, optional) – add plus set for space group (SG) ?

Returns:

  • (dict) – Wyckoff site.

create_wyckoff_bond(g_info, bond_data, site, sym_op, space_group)[source]#

Wyckoff bond (and bond list of each Wyckoff site, added to site).

Parameters:
  • g_info (namedtuple) – group info.

  • bond_data (dict) – bond data of group, {bw: (vector, center, mapping, bond_symmetry)}.

  • site (dict) – Wyckoff site (bond list is added).

  • sym_op (dict) – symmetry operation.

  • space_group (bool) – space group ?

Returns:

  • (dict) – Wyckoff bond.

create_active_multipole(g_info, sym_op)[source]#

Active multipoles of MPG (invariant under all SOs).

Parameters:
  • g_info (namedtuple) – MPGInfoType.

  • sym_op (dict) – symmetry operation.

Returns:

  • (list) – active multipoles, [“Q…”] + [“G…”] + [“T…”] + [“M…”].

create_pg(pg_id, tag)[source]#

Data of PG.

Parameters:
  • pg_id (str) – PG id.

  • tag (str) – PG tag.

Returns:

  • (dict) – data of PG.

create_sg(sg_id, tag)[source]#

Data of SG.

Parameters:
  • sg_id (str) – SG id.

  • tag (str) – SG tag.

Returns:

  • (dict) – data of SG.

create_mpg(mpg_id, tag)[source]#

Data of MPG.

Parameters:
  • mpg_id (str) – MPG id.

  • tag (str) – MPG tag.

Returns:

  • (dict) – data of MPG.

create_msg(msg_id, tag)[source]#

Data of MSG.

Parameters:
  • msg_id (str) – MSG id.

  • tag (str) – MSG tag.

Returns:

  • (dict) – data of MSG.

create_group_data(group_id, tag=None)[source]#

Data of a group.

Parameters:
  • group_id (str) – group id, “PG:32”, “SG:221”, “MPG:…”, “MSG:…”.

  • tag (str, optional) – group tag (taken from info.pkl if None).

Returns:

  • (dict) – data of the group.

group_ids(info=None)[source]#

All group ids in group.pkl.

Parameters:

info (BinaryManager, optional) – info.

Returns:

  • (list) – [(group id, tag)].

create_group(ids=None, serial=False, verbose=True)[source]#

Create group (BinaryManager).

Parameters:
  • ids (list, optional) – [(group id, tag)], all groups if None.

  • serial (bool, optional) – run in a single process ?

  • verbose (bool, optional) – verbose ?

Returns:

  • (BinaryManager) – group.

save_group(serial=False)[source]#

Create and save group.pkl in multipiegen/binary.

Parameters:

serial (bool, optional) – run in a single process ?