TB2J 0.9.12.22__py3-none-any.whl → 0.9.12.23__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- TB2J/io_exchange/io_exchange.py +6 -1
- TB2J/io_merge.py +1 -1
- TB2J/mycfr.py +7 -7
- {tb2j-0.9.12.22.dist-info → tb2j-0.9.12.23.dist-info}/METADATA +1 -1
- {tb2j-0.9.12.22.dist-info → tb2j-0.9.12.23.dist-info}/RECORD +9 -9
- {tb2j-0.9.12.22.dist-info → tb2j-0.9.12.23.dist-info}/WHEEL +0 -0
- {tb2j-0.9.12.22.dist-info → tb2j-0.9.12.23.dist-info}/entry_points.txt +0 -0
- {tb2j-0.9.12.22.dist-info → tb2j-0.9.12.23.dist-info}/licenses/LICENSE +0 -0
- {tb2j-0.9.12.22.dist-info → tb2j-0.9.12.23.dist-info}/top_level.txt +0 -0
TB2J/io_exchange/io_exchange.py
CHANGED
|
@@ -454,7 +454,12 @@ Generation time: {now.strftime("%y/%m/%d %H:%M:%S")}
|
|
|
454
454
|
return Jmat
|
|
455
455
|
|
|
456
456
|
def get_full_Jtensor_for_one_R_ij(
|
|
457
|
-
self,
|
|
457
|
+
self,
|
|
458
|
+
R,
|
|
459
|
+
Jiso=True,
|
|
460
|
+
Jani=True,
|
|
461
|
+
DMI=True,
|
|
462
|
+
SIA=True,
|
|
458
463
|
):
|
|
459
464
|
"""
|
|
460
465
|
Return the full exchange tensor of all i and j for cell R.
|
TB2J/io_merge.py
CHANGED
|
@@ -147,7 +147,7 @@ class Merger:
|
|
|
147
147
|
i, j, R, Jiso=False, Jani=True, DMI=False
|
|
148
148
|
)
|
|
149
149
|
else:
|
|
150
|
-
#J_scalar = sio.exchange_Jdict.get(key, 0.0)
|
|
150
|
+
# J_scalar = sio.exchange_Jdict.get(key, 0.0)
|
|
151
151
|
Jmat = np.eye(3) * 0.0
|
|
152
152
|
proj = np.einsum("mi,ij,mj->m", u[idx], Jmat, v[idx])
|
|
153
153
|
projections.append(proj)
|
TB2J/mycfr.py
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
Continued fraction representation.
|
|
6
6
|
"""
|
|
7
7
|
|
|
8
|
-
import ase.units.kB as kb
|
|
9
8
|
import numpy as np
|
|
9
|
+
from ase.units import kB
|
|
10
10
|
from scipy.linalg import eig
|
|
11
11
|
|
|
12
12
|
|
|
@@ -16,7 +16,7 @@ class CFR:
|
|
|
16
16
|
def __init__(self, nz: int = 50, T: float = 200.0):
|
|
17
17
|
self.nz = nz
|
|
18
18
|
self.T = float(T)
|
|
19
|
-
self.beta = 1.0 / (
|
|
19
|
+
self.beta = 1.0 / (kB * self.T)
|
|
20
20
|
self.Rinf = 1e10
|
|
21
21
|
if nz <= 0:
|
|
22
22
|
raise ValueError("nz should be larger than 0.")
|
|
@@ -24,7 +24,7 @@ class CFR:
|
|
|
24
24
|
self.prepare_poles()
|
|
25
25
|
|
|
26
26
|
def prepare_poles(self):
|
|
27
|
-
##b_mat = [1 / (2.0 * np.sqrt((2 * (j + 1) - 1) * (2 * (j + 1) + 1)) / (
|
|
27
|
+
##b_mat = [1 / (2.0 * np.sqrt((2 * (j + 1) - 1) * (2 * (j + 1) + 1)) / (kB * self.#T)) for j in range(0, self.nz- 1)]
|
|
28
28
|
jmat = np.arange(0, self.nz - 1)
|
|
29
29
|
b_mat = 1 / (2.0 * np.sqrt((2 * (jmat + 1) - 1) * (2 * (jmat + 1) + 1)))
|
|
30
30
|
b_mat = np.diag(b_mat, -1) + np.diag(b_mat, 1)
|
|
@@ -39,16 +39,16 @@ class CFR:
|
|
|
39
39
|
# np.real(self.poles) > 0, 2.0j / self.beta * residules, 0.0
|
|
40
40
|
# )
|
|
41
41
|
|
|
42
|
-
# self.path = 1j / self.poles *
|
|
42
|
+
# self.path = 1j / self.poles * kB * self.T
|
|
43
43
|
|
|
44
44
|
self.path = []
|
|
45
45
|
self.weights = []
|
|
46
46
|
for p, r in zip(self.poles, residules):
|
|
47
47
|
if p > 0:
|
|
48
|
-
self.path.append(1j / p *
|
|
48
|
+
self.path.append(1j / p * kB * self.T)
|
|
49
49
|
w = 2.0j / self.beta * r
|
|
50
50
|
self.weights.append(w)
|
|
51
|
-
self.path.append(-1j / p *
|
|
51
|
+
self.path.append(-1j / p * kB * self.T)
|
|
52
52
|
self.weights.append(w)
|
|
53
53
|
|
|
54
54
|
self.path = np.array(self.path)
|
|
@@ -58,7 +58,7 @@ class CFR:
|
|
|
58
58
|
# A_mat = -1/2 *np.diag(1, -1) + np.diag(1, 1)
|
|
59
59
|
# B_mat = np.diag([2*i-1 for i in range(1, self.nz)])
|
|
60
60
|
# eigp, eigv = eig(A_mat, B_mat)
|
|
61
|
-
# zp = 1j / eigp *
|
|
61
|
+
# zp = 1j / eigp * kB * self.T
|
|
62
62
|
# Rp = 0.25 * np.diag(eigv)**2 * zp **2
|
|
63
63
|
|
|
64
64
|
# print the poles and the weights
|
|
@@ -19,10 +19,10 @@ TB2J/exchange_qspace.py,sha256=ZL68qBGFUaQ9BsSPsJaaoWOr9RssPiqX34R_9I3nk_8,8436
|
|
|
19
19
|
TB2J/gpaw_wrapper.py,sha256=cnXwDDN-pcfxRI3o5OTNjgql8CkxylltFZy9bDxOffU,6813
|
|
20
20
|
TB2J/green.py,sha256=-YO0oq5hrfDut-7o-U8gRjvdywTDFqkdb2HVPihbez4,18537
|
|
21
21
|
TB2J/greentest.py,sha256=2ISSfhor9ecSEOi_E6b4Cv26wEIQlwlzca0ru8z44_E,1603
|
|
22
|
-
TB2J/io_merge.py,sha256=
|
|
22
|
+
TB2J/io_merge.py,sha256=2ulUxXEKm7L2TvbJEbTc_32u0-Nk45_f6L0rw_gyvAw,8527
|
|
23
23
|
TB2J/kpoints.py,sha256=9L7tBarFBHoIhpuc9zuwA6HdnlgH834SQrPek4yRoWk,3191
|
|
24
24
|
TB2J/myTB.py,sha256=6fP6ZlHxejUzgglr0b_hsxv137sQrltozladTKSczFo,17603
|
|
25
|
-
TB2J/mycfr.py,sha256=
|
|
25
|
+
TB2J/mycfr.py,sha256=9yVD1cslXLQ45eQZ9YV1CpDWS6pvaJ7OYDeb1-s1m2M,4044
|
|
26
26
|
TB2J/orbital_magmom.py,sha256=JTwO9ZDgRRQndqR9aFIua4eTvwLMoGsTiY_HaIPMZ2I,889
|
|
27
27
|
TB2J/orbmap.py,sha256=XLQjKMxCy2eADaM5eb2F_zG08V7lzpXJxp5uEtTeVYI,7194
|
|
28
28
|
TB2J/pauli.py,sha256=XHXFBLiGYl0X67mcIgtwjKXrH0IN16ueoQS392x1AM0,6218
|
|
@@ -56,7 +56,7 @@ TB2J/interfaces/abacus/test_density_matrix.py,sha256=bMWWJYtDS57SpPZ-eZXZ9Hr_UK4
|
|
|
56
56
|
TB2J/io_exchange/__init__.py,sha256=n6ukJTXzAlP1bGk_BRRZHbSdcex-uP4CzRNndS8S080,335
|
|
57
57
|
TB2J/io_exchange/edit.py,sha256=m5Z6JMLSXkXiDH_MlwjrCPQnFsxX5DM9QHdzXwpoMvo,19157
|
|
58
58
|
TB2J/io_exchange/io_espins.py,sha256=M5VP2z6QY88RtzP06ebqHoQy5ywchojz8gr9Uw9rATk,10615
|
|
59
|
-
TB2J/io_exchange/io_exchange.py,sha256=
|
|
59
|
+
TB2J/io_exchange/io_exchange.py,sha256=MxsYxfnBhsOkRraGTUxYI8nLac3p3jsxwbinieJIIJI,31238
|
|
60
60
|
TB2J/io_exchange/io_multibinit.py,sha256=8PDmWxzGuv-GwJosj2ZTmiyNY_duFVWJ4ekCuSqGdd8,6739
|
|
61
61
|
TB2J/io_exchange/io_tomsasd.py,sha256=rGWgO2aUgEIKvWccQjlG1SQx5dk345qHrBXddKx2JYo,4186
|
|
62
62
|
TB2J/io_exchange/io_txt.py,sha256=r7Uh1HGfAfkHppMR6pLsx2kMmMJDOR48hk75_ffBd7o,13136
|
|
@@ -109,9 +109,9 @@ TB2J/tests/test_cli_toggle_exchange.py,sha256=oL9jaYS-Qb2lUgGc5jqk9FmPGofAejiyZ0
|
|
|
109
109
|
TB2J/wannier/__init__.py,sha256=7ojCbM84PYv1X1Tbo4NHI-d3gWmQsZB_xiYqbfxVV1E,80
|
|
110
110
|
TB2J/wannier/w90_parser.py,sha256=dbd63LuKyv2DVUzqRINGsbDzEsOxsQyE8_Ear_LQIRg,4620
|
|
111
111
|
TB2J/wannier/w90_tb_parser.py,sha256=XPh0PNgX_fKYQodDOzZj6DKsvgULMQERU8Kjh4U2xZY,4563
|
|
112
|
-
tb2j-0.9.12.
|
|
113
|
-
tb2j-0.9.12.
|
|
114
|
-
tb2j-0.9.12.
|
|
115
|
-
tb2j-0.9.12.
|
|
116
|
-
tb2j-0.9.12.
|
|
117
|
-
tb2j-0.9.12.
|
|
112
|
+
tb2j-0.9.12.23.dist-info/licenses/LICENSE,sha256=CbZI-jyRTjiqIcWa244cRSHJdjjtUNqGR4HeJkgEwJw,1332
|
|
113
|
+
tb2j-0.9.12.23.dist-info/METADATA,sha256=mMwkbWglMEVBKKcBJBvf63h7U4O-7BQ__x3TAeg8Uys,4338
|
|
114
|
+
tb2j-0.9.12.23.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
115
|
+
tb2j-0.9.12.23.dist-info/entry_points.txt,sha256=MkVo66rLBjbfup6lQoEepI525v50Wojkz2_rMQpUL7Y,874
|
|
116
|
+
tb2j-0.9.12.23.dist-info/top_level.txt,sha256=whYa5ByLYhl5XnTPBHSWr-IGD6VWmr5Ql2bye2qwV_s,5
|
|
117
|
+
tb2j-0.9.12.23.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|