Read model .pkl and display#
import sympy as sp
from multipie import ModelAnalyzer
to_tuple = lambda x: tuple(map(to_tuple, x)) if isinstance(x, tuple) else x
ma = ModelAnalyzer(topdir=".",verbose=True) # initialize model analyzer.
# control.
from graphene_ctrl import graphene_ctrl
ma.analyze(graphene_ctrl)
mm = ma.model # MaterialModel object.
group = mm.group # Group object.
load binary from './graphene/graphene.pkl'.
"""
Model: graphene
* Group: D6h^1
* SAMB selection: {'X': ['Q', 'G', 'M', 'T'], 'l': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], 'Gamma': ['A1g', 'A1u', 'A2g', 'A2u', 'B1g', 'B1u', 'B2g', 'B2u', 'E1g', 'E1u', 'E2g', 'E2u'], 's': [0, 1]}
* atomic selection: {'X': ['Q', 'G', 'M', 'T'], 'l': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], 'Gamma': ['A1g', 'A1u', 'A2g', 'A2u', 'B1g', 'B1u', 'B2g', 'B2u', 'E1g', 'E1u', 'E2g', 'E2u'], 's': [0, 1]}
* site-cluster selection: {'l': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], 'Gamma': ['A1g', 'A1u', 'A2g', 'A2u', 'B1g', 'B1u', 'B2g', 'B2u', 'E1g', 'E1u', 'E2g', 'E2u'], 'X': ['Q', 'G', 'M', 'T'], 's': [0, 1]}
* bond-cluster selection: {'X': ['Q', 'G', 'M', 'T'], 'l': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], 'Gamma': ['A1g', 'A1u', 'A2g', 'A2u', 'B1g', 'B1u', 'B2g', 'B2u', 'E1g', 'E1u', 'E2g', 'E2u'], 's': [0, 1]}
20 (all 20) basis set
"""
save var to './graphene/info/graphene_var.py'.
save k to './graphene/info/graphene_k.py'.
save SAMB QtDraw files in './graphene/samb/'.
save hr to './graphene/info/graphene_hr.dat'.
save matrix to './graphene/info/graphene_matrix.py'.
save z to './graphene/info/graphene_z.py'.
save dispersion files into './graphene/output'.
save info_samb to './graphene/info/graphene_info_samb.py'.
save info_wannier to './graphene/info/graphene_info_wannier.py'.
save info_output to './graphene/info/graphene_info_output.py'.
save info to './graphene/info/graphene_info.py'.
Site-cluster SAMB#
cluster_samb = mm["cluster_samb"]
for wp, samb in cluster_samb.items():
if "@" in wp:
continue
print(f"== {wp} ==")
for idx, (mat, ex) in samb.items():
tag = group.tag_multipole(idx,latex=True,superscript="s")
for e, m in zip(tag,mat):
d = sp.Eq(sp.Symbol(e),sp.Matrix(m).T, evaluate=False)
display(d)
== 2c ==
\[\displaystyle \mathbb{Q}_{0}^{(s)}(A_{1g}) = \left[\begin{matrix}\frac{\sqrt{2}}{2} & \frac{\sqrt{2}}{2}\end{matrix}\right]\]
\[\displaystyle \mathbb{Q}_{3}^{(s)}(B_{1u}) = \left[\begin{matrix}\frac{\sqrt{2}}{2} & - \frac{\sqrt{2}}{2}\end{matrix}\right]\]
Bond-cluster SAMB#
for wp, samb in cluster_samb.items():
if "@" not in wp:
continue
print(f"== {wp} ==")
for idx, (mat, ex) in samb.items():
tag = group.tag_multipole(idx,latex=True,superscript="b")
for e, m in zip(tag,mat):
d = sp.Eq(sp.Symbol(e),sp.Matrix(m).T, evaluate=False)
display(d)
== 3a@3f ==
\[\displaystyle \mathbb{Q}_{0}^{(b)}(A_{1g}) = \left[\begin{matrix}\frac{\sqrt{3}}{3} & \frac{\sqrt{3}}{3} & \frac{\sqrt{3}}{3}\end{matrix}\right]\]
\[\displaystyle \mathbb{T}_{3}^{(b)}(B_{1u}) = \left[\begin{matrix}\frac{\sqrt{3} i}{3} & \frac{\sqrt{3} i}{3} & \frac{\sqrt{3} i}{3}\end{matrix}\right]\]
\[\displaystyle \mathbb{T}_{1,1}^{(b)}(E_{1u}) = \left[\begin{matrix}0 & - \frac{\sqrt{2} i}{2} & \frac{\sqrt{2} i}{2}\end{matrix}\right]\]
\[\displaystyle \mathbb{T}_{1,2}^{(b)}(E_{1u}) = \left[\begin{matrix}\frac{\sqrt{6} i}{3} & - \frac{\sqrt{6} i}{6} & - \frac{\sqrt{6} i}{6}\end{matrix}\right]\]
\[\displaystyle \mathbb{Q}_{2,1}^{(b)}(E_{2g}) = \left[\begin{matrix}\frac{\sqrt{6}}{3} & - \frac{\sqrt{6}}{6} & - \frac{\sqrt{6}}{6}\end{matrix}\right]\]
\[\displaystyle \mathbb{Q}_{2,2}^{(b)}(E_{2g}) = \left[\begin{matrix}0 & \frac{\sqrt{2}}{2} & - \frac{\sqrt{2}}{2}\end{matrix}\right]\]
== 6b@6l ==
\[\displaystyle \mathbb{Q}_{0}^{(b)}(A_{1g}) = \left[\begin{matrix}\frac{\sqrt{6}}{6} & \frac{\sqrt{6}}{6} & \frac{\sqrt{6}}{6} & \frac{\sqrt{6}}{6} & \frac{\sqrt{6}}{6} & \frac{\sqrt{6}}{6}\end{matrix}\right]\]
\[\displaystyle \mathbb{M}_{1}^{(b)}(A_{2g}) = \left[\begin{matrix}\frac{\sqrt{6} i}{6} & \frac{\sqrt{6} i}{6} & \frac{\sqrt{6} i}{6} & \frac{\sqrt{6} i}{6} & \frac{\sqrt{6} i}{6} & \frac{\sqrt{6} i}{6}\end{matrix}\right]\]
\[\displaystyle \mathbb{Q}_{3}^{(b)}(B_{1u}) = \left[\begin{matrix}\frac{\sqrt{6}}{6} & \frac{\sqrt{6}}{6} & \frac{\sqrt{6}}{6} & - \frac{\sqrt{6}}{6} & - \frac{\sqrt{6}}{6} & - \frac{\sqrt{6}}{6}\end{matrix}\right]\]
\[\displaystyle \mathbb{T}_{3}^{(b)}(B_{2u}) = \left[\begin{matrix}\frac{\sqrt{6} i}{6} & \frac{\sqrt{6} i}{6} & \frac{\sqrt{6} i}{6} & - \frac{\sqrt{6} i}{6} & - \frac{\sqrt{6} i}{6} & - \frac{\sqrt{6} i}{6}\end{matrix}\right]\]
\[\displaystyle \mathbb{Q}_{1,1}^{(b)}(E_{1u}) = \left[\begin{matrix}0 & - \frac{1}{2} & \frac{1}{2} & 0 & \frac{1}{2} & - \frac{1}{2}\end{matrix}\right]\]
\[\displaystyle \mathbb{Q}_{1,2}^{(b)}(E_{1u}) = \left[\begin{matrix}\frac{\sqrt{3}}{3} & - \frac{\sqrt{3}}{6} & - \frac{\sqrt{3}}{6} & - \frac{\sqrt{3}}{3} & \frac{\sqrt{3}}{6} & \frac{\sqrt{3}}{6}\end{matrix}\right]\]
\[\displaystyle \mathbb{T}_{1,1}^{(b)}(E_{1u}) = \left[\begin{matrix}\frac{\sqrt{3} i}{3} & - \frac{\sqrt{3} i}{6} & - \frac{\sqrt{3} i}{6} & - \frac{\sqrt{3} i}{3} & \frac{\sqrt{3} i}{6} & \frac{\sqrt{3} i}{6}\end{matrix}\right]\]
\[\displaystyle \mathbb{T}_{1,2}^{(b)}(E_{1u}) = \left[\begin{matrix}0 & \frac{i}{2} & - \frac{i}{2} & 0 & - \frac{i}{2} & \frac{i}{2}\end{matrix}\right]\]
\[\displaystyle \mathbb{Q}_{2,1}^{(b)}(E_{2g}) = \left[\begin{matrix}\frac{\sqrt{3}}{3} & - \frac{\sqrt{3}}{6} & - \frac{\sqrt{3}}{6} & \frac{\sqrt{3}}{3} & - \frac{\sqrt{3}}{6} & - \frac{\sqrt{3}}{6}\end{matrix}\right]\]
\[\displaystyle \mathbb{Q}_{2,2}^{(b)}(E_{2g}) = \left[\begin{matrix}0 & \frac{1}{2} & - \frac{1}{2} & 0 & \frac{1}{2} & - \frac{1}{2}\end{matrix}\right]\]
\[\displaystyle \mathbb{T}_{2,1}^{(b)}(E_{2g}) = \left[\begin{matrix}0 & \frac{i}{2} & - \frac{i}{2} & 0 & \frac{i}{2} & - \frac{i}{2}\end{matrix}\right]\]
\[\displaystyle \mathbb{T}_{2,2}^{(b)}(E_{2g}) = \left[\begin{matrix}- \frac{\sqrt{3} i}{3} & \frac{\sqrt{3} i}{6} & \frac{\sqrt{3} i}{6} & - \frac{\sqrt{3} i}{3} & \frac{\sqrt{3} i}{6} & \frac{\sqrt{3} i}{6}\end{matrix}\right]\]
Atomic SAMB for (bh_rank, bh_idx, kt_rank, kt_idx)#
atomic_samb = mm["atomic_samb"]
for am, samb in atomic_samb.items():
print(f"== {to_tuple(am)} ==")
for idx, (mat,ex) in samb.items():
tag = group.tag_multipole(idx,latex=True,superscript="a")
for e, m in zip(tag,mat):
d = sp.Eq(sp.Symbol(e),sp.Matrix(m), evaluate=False)
display(d)
== (1, (2,), 1, (2,)) ==
\[\displaystyle \mathbb{Q}_{0}^{(a)}(A_{1g}) = \left[\begin{matrix}1\end{matrix}\right]\]
Combined SAMB for (head, tail, wyckoff, (bh_rank, bh_idx, kt_rank, kt_idx))#
combined_samb = mm["combined_samb"]
for comb, samb in combined_samb.items():
print(f"== {to_tuple(comb)} ==")
clustar_str = "b" if comb.wyckoff.count("@")>0 else "s"
for idx, (cl, ex) in samb.items():
tag = group.tag_multipole(idx,latex=True,superscript="c")
for t, m in zip(tag,cl):
ex = 0
for cg, t1, c1, t2, c2 in m:
t1 = group.tag_multipole(t1,c1,latex=True,superscript="a")
t2 = group.tag_multipole(t2,c2,latex=True,superscript=clustar_str)
ex += cg * sp.Symbol(t1, commutative=False) * sp.Symbol(t2, commutative=False)
d = sp.Eq(sp.Symbol(t),ex, evaluate=False)
display(d)
== ('C', 'C', '2c', (1, (2,), 1, (2,))) ==
\[\displaystyle \mathbb{Q}_{0}^{(c)}(A_{1g}) = \mathbb{Q}_{0}^{(a)}(A_{1g}) \mathbb{Q}_{0}^{(s)}(A_{1g})\]
\[\displaystyle \mathbb{Q}_{3}^{(c)}(B_{1u}) = \mathbb{Q}_{0}^{(a)}(A_{1g}) \mathbb{Q}_{3}^{(s)}(B_{1u})\]
== ('C', 'C', '3a@3f', (1, (2,), 1, (2,))) ==
\[\displaystyle \mathbb{Q}_{0}^{(c)}(A_{1g}) = \mathbb{Q}_{0}^{(a)}(A_{1g}) \mathbb{Q}_{0}^{(b)}(A_{1g})\]
\[\displaystyle \mathbb{T}_{3}^{(c)}(B_{1u}) = \mathbb{Q}_{0}^{(a)}(A_{1g}) \mathbb{T}_{3}^{(b)}(B_{1u})\]
\[\displaystyle \mathbb{T}_{1,1}^{(c)}(E_{1u}) = \frac{\sqrt{2} \mathbb{Q}_{0}^{(a)}(A_{1g}) \mathbb{T}_{1,1}^{(b)}(E_{1u})}{2}\]
\[\displaystyle \mathbb{T}_{1,2}^{(c)}(E_{1u}) = \frac{\sqrt{2} \mathbb{Q}_{0}^{(a)}(A_{1g}) \mathbb{T}_{1,2}^{(b)}(E_{1u})}{2}\]
\[\displaystyle \mathbb{Q}_{2,1}^{(c)}(E_{2g}) = \frac{\sqrt{2} \mathbb{Q}_{0}^{(a)}(A_{1g}) \mathbb{Q}_{2,1}^{(b)}(E_{2g})}{2}\]
\[\displaystyle \mathbb{Q}_{2,2}^{(c)}(E_{2g}) = \frac{\sqrt{2} \mathbb{Q}_{0}^{(a)}(A_{1g}) \mathbb{Q}_{2,2}^{(b)}(E_{2g})}{2}\]
== ('C', 'C', '6b@6l', (1, (2,), 1, (2,))) ==
\[\displaystyle \mathbb{Q}_{0}^{(c)}(A_{1g}) = \mathbb{Q}_{0}^{(a)}(A_{1g}) \mathbb{Q}_{0}^{(b)}(A_{1g})\]
\[\displaystyle \mathbb{M}_{1}^{(c)}(A_{2g}) = \mathbb{Q}_{0}^{(a)}(A_{1g}) \mathbb{M}_{1}^{(b)}(A_{2g})\]
\[\displaystyle \mathbb{Q}_{3}^{(c)}(B_{1u}) = \mathbb{Q}_{0}^{(a)}(A_{1g}) \mathbb{Q}_{3}^{(b)}(B_{1u})\]
\[\displaystyle \mathbb{T}_{3}^{(c)}(B_{2u}) = \mathbb{Q}_{0}^{(a)}(A_{1g}) \mathbb{T}_{3}^{(b)}(B_{2u})\]
\[\displaystyle \mathbb{Q}_{1,1}^{(c)}(E_{1u}) = \frac{\sqrt{2} \mathbb{Q}_{0}^{(a)}(A_{1g}) \mathbb{Q}_{1,1}^{(b)}(E_{1u})}{2}\]
\[\displaystyle \mathbb{Q}_{1,2}^{(c)}(E_{1u}) = \frac{\sqrt{2} \mathbb{Q}_{0}^{(a)}(A_{1g}) \mathbb{Q}_{1,2}^{(b)}(E_{1u})}{2}\]
\[\displaystyle \mathbb{T}_{1,1}^{(c)}(E_{1u}) = \frac{\sqrt{2} \mathbb{Q}_{0}^{(a)}(A_{1g}) \mathbb{T}_{1,1}^{(b)}(E_{1u})}{2}\]
\[\displaystyle \mathbb{T}_{1,2}^{(c)}(E_{1u}) = \frac{\sqrt{2} \mathbb{Q}_{0}^{(a)}(A_{1g}) \mathbb{T}_{1,2}^{(b)}(E_{1u})}{2}\]
\[\displaystyle \mathbb{Q}_{2,1}^{(c)}(E_{2g}) = \frac{\sqrt{2} \mathbb{Q}_{0}^{(a)}(A_{1g}) \mathbb{Q}_{2,1}^{(b)}(E_{2g})}{2}\]
\[\displaystyle \mathbb{Q}_{2,2}^{(c)}(E_{2g}) = \frac{\sqrt{2} \mathbb{Q}_{0}^{(a)}(A_{1g}) \mathbb{Q}_{2,2}^{(b)}(E_{2g})}{2}\]
\[\displaystyle \mathbb{T}_{2,1}^{(c)}(E_{2g}) = \frac{\sqrt{2} \mathbb{Q}_{0}^{(a)}(A_{1g}) \mathbb{T}_{2,1}^{(b)}(E_{2g})}{2}\]
\[\displaystyle \mathbb{T}_{2,2}^{(c)}(E_{2g}) = \frac{\sqrt{2} \mathbb{Q}_{0}^{(a)}(A_{1g}) \mathbb{T}_{2,2}^{(b)}(E_{2g})}{2}\]
Symmetry of multipoles#
for idx, ex in mm.get_multipole_expression().items():
X, Gamma, l, n = idx
idx = (X,l,Gamma,n,-1,0,0,"q")
tag = group.tag_multipole(idx, latex=True)
for t, e in zip(tag, ex):
d = sp.Eq(sp.Symbol(t),e,evaluate=False)
display(d)
\[\displaystyle \mathbb{Q}_{0}(A_{1g}) = 1\]
\[\displaystyle \mathbb{G}_{1}(A_{2g}) = z\]
\[\displaystyle \mathbb{Q}_{3}(B_{1u}) = \frac{\sqrt{10} y \left(3 x^{2} - y^{2}\right)}{4}\]
\[\displaystyle \mathbb{Q}_{3}(B_{2u}) = \frac{\sqrt{10} x \left(x^{2} - 3 y^{2}\right)}{4}\]
\[\displaystyle \mathbb{Q}_{1,1}(E_{1u}) = x\]
\[\displaystyle \mathbb{Q}_{1,2}(E_{1u}) = y\]
\[\displaystyle \mathbb{Q}_{2,1}(E_{2g}) = \frac{\sqrt{3} \left(x - y\right) \left(x + y\right)}{2}\]
\[\displaystyle \mathbb{Q}_{2,2}(E_{2g}) = - \sqrt{3} x y\]
Combined ID: (head, tail, wyckoff, (bh_rank, bh_idx, kt_rank, kt_idx), neighbor, n)#
for z, (tag, samb_info, idx, comp) in mm["combined_id"].items():
d = sp.Eq(sp.Symbol("z_{"+z[1:]+"}"),sp.Symbol(tag),evaluate=False)
print("info = ", to_tuple(samb_info), "index =", idx, "comp =", comp)
display(d)
info = (('C', 'C', '2c', (1, (2,), 1, (2,))), 0, -1) index = ('Q', 0, 'A1g', -1, -1, 0, 0, 'q') comp = 0
\[\displaystyle z_{1} = \mathbb{Q}_{0}^{(c)}(A_{1g})\]
info = (('C', 'C', '3a@3f', (1, (2,), 1, (2,))), 1, 1) index = ('Q', 0, 'A1g', -1, -1, 0, 0, 'q') comp = 0
\[\displaystyle z_{2} = \mathbb{Q}_{0}^{(c)}(A_{1g})\]
info = (('C', 'C', '6b@6l', (1, (2,), 1, (2,))), 2, 1) index = ('Q', 0, 'A1g', -1, -1, 0, 0, 'q') comp = 0
\[\displaystyle z_{3} = \mathbb{Q}_{0}^{(c)}(A_{1g})\]
info = (('C', 'C', '6b@6l', (1, (2,), 1, (2,))), 2, 1) index = ('M', 1, 'A2g', -1, -1, 0, 0, 'q') comp = 0
\[\displaystyle z_{4} = \mathbb{M}_{1}^{(c)}(A_{2g})\]
info = (('C', 'C', '2c', (1, (2,), 1, (2,))), 0, -1) index = ('Q', 3, 'B1u', -1, -1, 0, 0, 'q') comp = 0
\[\displaystyle z_{5} = \mathbb{Q}_{3}^{(c)}(B_{1u})\]
info = (('C', 'C', '3a@3f', (1, (2,), 1, (2,))), 1, 1) index = ('T', 3, 'B1u', -1, -1, 0, 0, 'q') comp = 0
\[\displaystyle z_{6} = \mathbb{T}_{3}^{(c)}(B_{1u})\]
info = (('C', 'C', '6b@6l', (1, (2,), 1, (2,))), 2, 1) index = ('Q', 3, 'B1u', -1, -1, 0, 0, 'q') comp = 0
\[\displaystyle z_{7} = \mathbb{Q}_{3}^{(c)}(B_{1u})\]
info = (('C', 'C', '6b@6l', (1, (2,), 1, (2,))), 2, 1) index = ('T', 3, 'B2u', -1, -1, 0, 0, 'q') comp = 0
\[\displaystyle z_{8} = \mathbb{T}_{3}^{(c)}(B_{2u})\]
info = (('C', 'C', '3a@3f', (1, (2,), 1, (2,))), 1, 1) index = ('T', 1, 'E1u', -1, -1, 0, 0, 'q') comp = 0
\[\displaystyle z_{9} = \mathbb{T}_{1,1}^{(c)}(E_{1u})\]
info = (('C', 'C', '3a@3f', (1, (2,), 1, (2,))), 1, 1) index = ('T', 1, 'E1u', -1, -1, 0, 0, 'q') comp = 1
\[\displaystyle z_{10} = \mathbb{T}_{1,2}^{(c)}(E_{1u})\]
info = (('C', 'C', '6b@6l', (1, (2,), 1, (2,))), 2, 1) index = ('Q', 1, 'E1u', -1, -1, 0, 0, 'q') comp = 0
\[\displaystyle z_{11} = \mathbb{Q}_{1,1}^{(c)}(E_{1u})\]
info = (('C', 'C', '6b@6l', (1, (2,), 1, (2,))), 2, 1) index = ('Q', 1, 'E1u', -1, -1, 0, 0, 'q') comp = 1
\[\displaystyle z_{12} = \mathbb{Q}_{1,2}^{(c)}(E_{1u})\]
info = (('C', 'C', '6b@6l', (1, (2,), 1, (2,))), 2, 1) index = ('T', 1, 'E1u', -1, -1, 0, 0, 'q') comp = 0
\[\displaystyle z_{13} = \mathbb{T}_{1,1}^{(c)}(E_{1u})\]
info = (('C', 'C', '6b@6l', (1, (2,), 1, (2,))), 2, 1) index = ('T', 1, 'E1u', -1, -1, 0, 0, 'q') comp = 1
\[\displaystyle z_{14} = \mathbb{T}_{1,2}^{(c)}(E_{1u})\]
info = (('C', 'C', '3a@3f', (1, (2,), 1, (2,))), 1, 1) index = ('Q', 2, 'E2g', -1, -1, 0, 0, 'q') comp = 0
\[\displaystyle z_{15} = \mathbb{Q}_{2,1}^{(c)}(E_{2g})\]
info = (('C', 'C', '3a@3f', (1, (2,), 1, (2,))), 1, 1) index = ('Q', 2, 'E2g', -1, -1, 0, 0, 'q') comp = 1
\[\displaystyle z_{16} = \mathbb{Q}_{2,2}^{(c)}(E_{2g})\]
info = (('C', 'C', '6b@6l', (1, (2,), 1, (2,))), 2, 1) index = ('Q', 2, 'E2g', -1, -1, 0, 0, 'q') comp = 0
\[\displaystyle z_{17} = \mathbb{Q}_{2,1}^{(c)}(E_{2g})\]
info = (('C', 'C', '6b@6l', (1, (2,), 1, (2,))), 2, 1) index = ('Q', 2, 'E2g', -1, -1, 0, 0, 'q') comp = 1
\[\displaystyle z_{18} = \mathbb{Q}_{2,2}^{(c)}(E_{2g})\]
info = (('C', 'C', '6b@6l', (1, (2,), 1, (2,))), 2, 1) index = ('T', 2, 'E2g', -1, -1, 0, 0, 'q') comp = 0
\[\displaystyle z_{19} = \mathbb{T}_{2,1}^{(c)}(E_{2g})\]
info = (('C', 'C', '6b@6l', (1, (2,), 1, (2,))), 2, 1) index = ('T', 2, 'E2g', -1, -1, 0, 0, 'q') comp = 1
\[\displaystyle z_{20} = \mathbb{T}_{2,2}^{(c)}(E_{2g})\]
Common SAMB (head, tail, wyckoff, (bh_rank, bh_idx, kt_rank, kt_idx)): combined_id#
for info, lst in mm["common_id"].items():
print(to_tuple(info), lst)
('C', 'C', '2c', (1, (2,), 1, (2,))) ([['z1', 'z5']], ['C'])
('C', 'C', '3a@3f', (1, (2,), 1, (2,))) ([['z2', 'z6', 'z9', 'z10', 'z15', 'z16']], ['C;C_001_1'])
('C', 'C', '6b@6l', (1, (2,), 1, (2,))) ([['z3', 'z4', 'z7', 'z8', 'z11', 'z12', 'z13', 'z14', 'z17', 'z18', 'z19', 'z20']], ['C;C_002_1'])
Cluster info.#
for site_bond, dic in mm["cluster_info"].items():
print(site_bond)
for bk_block, (wyckoff, z_list) in dic.items():
print(bk_block, wyckoff, z_list)
C
(1, 1) 2c ['z1', 'z5']
C;C_001_1
(1, 1) 3a@3f ['z2', 'z6', 'z9', 'z10', 'z15', 'z16']
C;C_002_1
(1, 1) 6b@6l ['z3', 'z4', 'z7', 'z8', 'z11', 'z12', 'z13', 'z14', 'z17', 'z18', 'z19', 'z20']
Contents in mm[“site”][“representative”] or mm[“site”][“cell”]#
mm._write_site()
--- representative site ---
C: #1, wyckoff = 2c, symmetry = -6m2, 1st = [0.3333333333333333, 0.6666666666666666, 0.0], orbital = [[], ['pz'], [], []]
--- cell site ---
tag = C
#1: position = [0.3333333333333333, 0.6666666666666666, 0.0], mapping = [1, 2, 3, 10, 11, 12, 16, 17, 18, 19, 20, 21], sublattice = 1, plus set = 1
#2: position = [0.6666666666666666, 0.3333333333333333, 0.0], mapping = [4, 5, 6, 7, 8, 9, 13, 14, 15, 22, 23, 24], sublattice = 2, plus set = 1
Contents in mm[“bond”][“representative”] or mm[“bond”][“cell”]#
mm._write_bond()
--- info ---
C-C: neighbor=[1, 2], head rank=[1], tail rank=[1]
--- representative bond ---
C;C_001_1: #1, 1th, directional = False, wyckoff = 3a@3f, 1st = [0.33333333, 0.66666666, 0.0]@[0.5, 0.0, 0.0], distance = 0.5773502595671213
C;C_002_1: #2, 2th, directional = False, wyckoff = 6b@6l, 1st = [1.0, 0.0, 0.0]@[0.83333333, 0.66666666, 0.0], distance = 1.0
--- cell bond ---
tag = C;C_001_1
#1: bond = [0.33333333, 0.66666666, 0.0]@[0.5, 0.0, 0.0], mapping = [1, -4, -8, 11, -13, 16, 20, -23], sublattice = 1, plus set = 1, head(sublattice,plus_set) = (2, 1), tail(sublattice,plus_set) = (1, 1)
#2: bond = [-0.66666666, -0.33333333, 0.0]@[0.0, 0.5, 0.0], mapping = [2, -5, -7, 10, -14, 17, 19, -22], sublattice = 2, plus set = 1, head(sublattice,plus_set) = (2, 1), tail(sublattice,plus_set) = (1, 1)
#3: bond = [0.33333333, -0.33333333, 0.0]@[0.5, 0.5, 0.0], mapping = [3, -6, -9, 12, -15, 18, 21, -24], sublattice = 3, plus set = 1, head(sublattice,plus_set) = (2, 1), tail(sublattice,plus_set) = (1, 1)
tag = C;C_002_1
#1: bond = [1.0, 0.0, 0.0]@[0.83333333, 0.66666666, 0.0], mapping = [1, -11, 16, -20], sublattice = 1, plus set = 1, head(sublattice,plus_set) = (1, 1), tail(sublattice,plus_set) = (1, 1)
#2: bond = [0.0, 1.0, 0.0]@[0.33333334000000003, 0.16666667000000002, 0.0], mapping = [2, -10, 17, -19], sublattice = 2, plus set = 1, head(sublattice,plus_set) = (1, 1), tail(sublattice,plus_set) = (1, 1)
#3: bond = [-1.0, -1.0, 0.0]@[0.83333333, 0.16666667000000002, 0.0], mapping = [3, -12, 18, -21], sublattice = 3, plus set = 1, head(sublattice,plus_set) = (1, 1), tail(sublattice,plus_set) = (1, 1)
#4: bond = [-1.0, 0.0, 0.0]@[0.16666667000000002, 0.33333334000000003, 0.0], mapping = [4, -8, 13, -23], sublattice = 4, plus set = 1, head(sublattice,plus_set) = (2, 1), tail(sublattice,plus_set) = (2, 1)
#5: bond = [0.0, -1.0, 0.0]@[0.66666666, 0.83333333, 0.0], mapping = [5, -7, 14, -22], sublattice = 5, plus set = 1, head(sublattice,plus_set) = (2, 1), tail(sublattice,plus_set) = (2, 1)
#6: bond = [1.0, 1.0, 0.0]@[0.16666667000000002, 0.83333333, 0.0], mapping = [6, -9, 15, -24], sublattice = 6, plus set = 1, head(sublattice,plus_set) = (2, 1), tail(sublattice,plus_set) = (2, 1)