forked from chjost/clebsch_gordan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample_group
executable file
·118 lines (109 loc) · 3.53 KB
/
example_group
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
#!/usr/bin/python
import numpy as np
import group
def main():
np.set_printoptions(suppress=True)
jmax = 2
# print(" CMF ".center(50, "*"))
# #g = group.TOh(irreps=False, debug=1)
# g = group.TOh(irreps=True, debug=1)
# #for gi in g.irreps:
# # print(" %s ".center(20, "*") % (g.name))
# # gi.characters()
# g.print_char_table()
# #g.print_mult_table()
# #g.print_class_members()
# print("SU(2) characters")
# for j in range(1, jmax):
# print("j=%f" % ((j-1)/2.))
# print(g.characters_of_SU2(j))
# print(" MF1 ".center(50, "*"))
# pref = np.asarray([0., 0., 1.])
# #g = group.TOh(pref=pref, irreps=False, debug=1)
# g = group.TOh(pref=pref, irreps=True, debug=0)
# #for gi in g.irreps:
# # print(" %s ".center(20, "*") % (g.name))
# # gi.characters()
# g.print_char_table()
# #g.print_class_members()
# print("SU(2) characters")
# for j in range(1, jmax):
# print("j=%f" % ((j-1)/2.))
# print(g.characters_of_SU2(j))
print(" MF2 ".center(50, "*"))
pref = np.asarray([1., 1., 0.])
#g = group.TOh(pref=pref, irreps=False, debug=0)
g = group.TOh(pref=pref, irreps=True, debug=0)
#for gi in g.irreps:
# print(" %s ".center(20, "*") % (g.name))
# gi.characters()
g.print_char_table()
for ir in g.irreps:
print ir.name, ir.mx
print ' '
#g.print_class_members()
#print("SU(2) characters")
#for j in range(1, jmax):
# print("j=%f" % ((j-1)/2.))
# print(g.characters_of_SU2(j))
# print(" MF3 ".center(50, "*"))
# pref = np.asarray([1., 1., 1.])
# #g = group.TOh(pref=pref, irreps=False, debug=1)
# g = group.TOh(pref=pref, irreps=True, debug=0)
# #for gi in g.irreps:
# # print(" %s ".center(20, "*") % (g.name))
# # gi.characters()
# g.print_char_table()
# #g.print_class_members()
# #print("SU(2) characters")
# #for j in range(1, jmax):
# # print("j=%f" % ((j-1)/2.))
# # print(g.characters_of_SU2(j))
#
# print(" MF4 ".center(50, "*"))
# pref = np.asarray([0., 0., 2.])
# #g = group.TOh(pref=pref, irreps=False, debug=1)
# g = group.TOh(pref=pref, irreps=True, debug=0)
# #for gi in g.irreps:
# # print(" %s ".center(20, "*") % (g.name))
# # gi.characters()
# g.print_char_table()
# #g.print_class_members()
# #print("SU(2) characters")
# #for j in range(1, jmax):
# # print("j=%f" % ((j-1)/2.))
# # print(g.characters_of_SU2(j))
#
# print(" MF5 ".center(50, "*"))
# pref = np.asarray([1., 2., 0.])
# #g = group.TOh(pref=pref, irreps=False, debug=1)
# g = group.TOh(pref=pref, irreps=True, debug=0)
# #g.print_mult_table()
# #for gi in g.irreps:
# # print(" %s ".center(20, "*") % (g.name))
# # gi.characters()
# g.print_char_table()
# #g.print_class_members()
# #print("SU(2) characters")
# #for j in range(1, jmax):
# # print("j=%f" % ((j-1)/2.))
# # print(g.characters_of_SU2(j))
#
# print(" MF6 ".center(50, "*"))
# pref = np.asarray([1., 1., 2.])
# #g = group.TOh(pref=pref, irreps=False, debug=1)
# g = group.TOh(pref=pref, irreps=True, debug=0)
# #for gi in g.irreps:
# # print(" %s ".center(20, "*") % (g.name))
# # gi.characters()
# g.print_char_table()
# #g.print_class_members()
# #print("SU(2) characters")
# #for j in range(1, jmax):
# # print("j=%f" % ((j-1)/2.))
# # print(g.characters_of_SU2(j))
if __name__ == "__main__":
try:
main()
except KeyboardInterrupt:
pass