Koulb commited on
Commit
4d408d6
·
verified ·
1 Parent(s): e9055b4

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +4 -0
  2. 1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/__pycache__/__init__.cpython-312.pyc +0 -0
  3. 1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/__pycache__/data.cpython-312.pyc +0 -0
  4. 1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/__pycache__/graph.cpython-312.pyc +0 -0
  5. 1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/__pycache__/kernel.cpython-312.pyc +0 -0
  6. 1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/__pycache__/model.cpython-312.pyc +0 -0
  7. 1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/__pycache__/rotate.cpython-312.pyc +0 -0
  8. 1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/__pycache__/utils.cpython-312.pyc +0 -0
  9. 1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/from_se3_transformer/__init__.py +1 -0
  10. 1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/from_se3_transformer/__pycache__/__init__.cpython-312.pyc +0 -0
  11. 1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/from_se3_transformer/__pycache__/representations.cpython-312.pyc +0 -0
  12. 1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/from_se3_transformer/license.txt +24 -0
  13. 1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/from_se3_transformer/representations.py +204 -0
  14. 1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/inference/__init__.py +1 -0
  15. 1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/inference/__pycache__/__init__.cpython-312.pyc +0 -0
  16. 1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/inference/__pycache__/pred_ham.cpython-312.pyc +0 -0
  17. 1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/inference/band_config.json +8 -0
  18. 1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/inference/dense_calc.jl +234 -0
  19. 1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/inference/dense_calc.py +277 -0
  20. 1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/inference/inference_default.ini +23 -0
  21. 1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/inference/local_coordinate.jl +79 -0
  22. 1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/inference/pred_ham.py +365 -0
  23. 1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/inference/restore_blocks.jl +115 -0
  24. 1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/inference/sparse_calc.jl +412 -0
  25. 1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/preprocess/__init__.py +4 -0
  26. 1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/preprocess/__pycache__/__init__.cpython-312.pyc +0 -0
  27. 1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/preprocess/__pycache__/abacus_get_data.cpython-312.pyc +0 -0
  28. 1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/preprocess/__pycache__/get_rc.cpython-312.pyc +0 -0
  29. 1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/preprocess/__pycache__/openmx_parse.cpython-312.pyc +0 -0
  30. 1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/preprocess/__pycache__/siesta_get_data.cpython-312.pyc +0 -0
  31. 1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/preprocess/aims_get_data.jl +477 -0
  32. 1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/preprocess/get_rc.py +165 -0
  33. 1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/preprocess/openmx_get_data.jl +471 -0
  34. 1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/preprocess/openmx_parse.py +425 -0
  35. 1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/preprocess/preprocess_default.ini +20 -0
  36. 1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/preprocess/siesta_get_data.py +336 -0
  37. 1_data_prepare/data/bands/uc/scf/_ph0/diamond.phsave/control_ph.xml +27 -0
  38. 1_data_prepare/data/bands/uc/scf/_ph0/diamond.phsave/dynmat.1.0.xml +46 -0
  39. 1_data_prepare/data/bands/uc/scf/_ph0/diamond.phsave/dynmat.1.1.xml +46 -0
  40. 1_data_prepare/data/bands/uc/scf/_ph0/diamond.phsave/dynmat.1.2.xml +46 -0
  41. 1_data_prepare/data/bands/uc/scf/_ph0/diamond.phsave/patterns.1.xml +75 -0
  42. 1_data_prepare/data/bands/uc/scf/_ph0/diamond.phsave/status_run.xml +9 -0
  43. 1_data_prepare/data/bands/uc/scf/aohamiltonian/element.dat +2 -0
  44. 1_data_prepare/data/bands/uc/scf/aohamiltonian/info.json +1 -0
  45. 1_data_prepare/data/bands/uc/scf/aohamiltonian/lat.dat +3 -0
  46. 1_data_prepare/data/bands/uc/scf/aohamiltonian/orbital_types.dat +2 -0
  47. 1_data_prepare/data/bands/uc/scf/aohamiltonian/rlat.dat +3 -0
  48. 1_data_prepare/data/bands/uc/scf/aohamiltonian/site_positions.dat +3 -0
  49. 1_data_prepare/data/bands/uc/scf/bands.dat +994 -0
  50. 1_data_prepare/data/bands/uc/scf/bands.dat.gnu +1216 -0
.gitattributes CHANGED
@@ -202,3 +202,7 @@ aobasis/siesta.DM filter=lfs diff=lfs merge=lfs -text
202
  1_data_prepare/data/disp-06/scf/diamond.save/charge-density.dat filter=lfs diff=lfs merge=lfs -text
203
  1_data_prepare/data/disp-10/scf/VSC filter=lfs diff=lfs merge=lfs -text
204
  1_data_prepare/data/disp-10/scf/diamond.save/charge-density.dat filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
202
  1_data_prepare/data/disp-06/scf/diamond.save/charge-density.dat filter=lfs diff=lfs merge=lfs -text
203
  1_data_prepare/data/disp-10/scf/VSC filter=lfs diff=lfs merge=lfs -text
204
  1_data_prepare/data/disp-10/scf/diamond.save/charge-density.dat filter=lfs diff=lfs merge=lfs -text
205
+ 1_data_prepare/data/disp-12/scf/VSC filter=lfs diff=lfs merge=lfs -text
206
+ 1_data_prepare/data/disp-12/scf/diamond.save/charge-density.dat filter=lfs diff=lfs merge=lfs -text
207
+ 1_data_prepare/data/disp-27/scf/VSC filter=lfs diff=lfs merge=lfs -text
208
+ 1_data_prepare/data/disp-27/scf/diamond.save/charge-density.dat filter=lfs diff=lfs merge=lfs -text
1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/__pycache__/__init__.cpython-312.pyc ADDED
Binary file (925 Bytes). View file
 
1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/__pycache__/data.cpython-312.pyc ADDED
Binary file (12.2 kB). View file
 
1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/__pycache__/graph.cpython-312.pyc ADDED
Binary file (71.1 kB). View file
 
1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/__pycache__/kernel.cpython-312.pyc ADDED
Binary file (61.3 kB). View file
 
1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/__pycache__/model.cpython-312.pyc ADDED
Binary file (38.4 kB). View file
 
1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/__pycache__/rotate.cpython-312.pyc ADDED
Binary file (18.7 kB). View file
 
1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/__pycache__/utils.cpython-312.pyc ADDED
Binary file (13.3 kB). View file
 
1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/from_se3_transformer/__init__.py ADDED
@@ -0,0 +1 @@
 
 
1
+ from .representations import SphericalHarmonics
1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/from_se3_transformer/__pycache__/__init__.cpython-312.pyc ADDED
Binary file (228 Bytes). View file
 
1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/from_se3_transformer/__pycache__/representations.cpython-312.pyc ADDED
Binary file (8.14 kB). View file
 
1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/from_se3_transformer/license.txt ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ The code in this folder was obtained from "https://github.com/mariogeiger/se3cnn/", which has the following license:
2
+
3
+
4
+ MIT License
5
+
6
+ Copyright (c) 2019 Mario Geiger
7
+
8
+ Permission is hereby granted, free of charge, to any person obtaining a copy
9
+ of this software and associated documentation files (the "Software"), to deal
10
+ in the Software without restriction, including without limitation the rights
11
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
+ copies of the Software, and to permit persons to whom the Software is
13
+ furnished to do so, subject to the following conditions:
14
+
15
+ The above copyright notice and this permission notice shall be included in all
16
+ copies or substantial portions of the Software.
17
+
18
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24
+ SOFTWARE.
1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/from_se3_transformer/representations.py ADDED
@@ -0,0 +1,204 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import torch
2
+ import numpy as np
3
+
4
+
5
+ def semifactorial(x):
6
+ """Compute the semifactorial function x!!.
7
+
8
+ x!! = x * (x-2) * (x-4) *...
9
+
10
+ Args:
11
+ x: positive int
12
+ Returns:
13
+ float for x!!
14
+ """
15
+ y = 1.
16
+ for n in range(x, 1, -2):
17
+ y *= n
18
+ return y
19
+
20
+
21
+ def pochhammer(x, k):
22
+ """Compute the pochhammer symbol (x)_k.
23
+
24
+ (x)_k = x * (x+1) * (x+2) *...* (x+k-1)
25
+
26
+ Args:
27
+ x: positive int
28
+ Returns:
29
+ float for (x)_k
30
+ """
31
+ xf = float(x)
32
+ for n in range(x+1, x+k):
33
+ xf *= n
34
+ return xf
35
+
36
+ def lpmv(l, m, x):
37
+ """Associated Legendre function including Condon-Shortley phase.
38
+
39
+ Args:
40
+ m: int order
41
+ l: int degree
42
+ x: float argument tensor
43
+ Returns:
44
+ tensor of x-shape
45
+ """
46
+ m_abs = abs(m)
47
+ if m_abs > l:
48
+ return torch.zeros_like(x)
49
+
50
+ # Compute P_m^m
51
+ yold = ((-1)**m_abs * semifactorial(2*m_abs-1)) * torch.pow(1-x*x, m_abs/2)
52
+
53
+ # Compute P_{m+1}^m
54
+ if m_abs != l:
55
+ y = x * (2*m_abs+1) * yold
56
+ else:
57
+ y = yold
58
+
59
+ # Compute P_{l}^m from recursion in P_{l-1}^m and P_{l-2}^m
60
+ for i in range(m_abs+2, l+1):
61
+ tmp = y
62
+ # Inplace speedup
63
+ y = ((2*i-1) / (i-m_abs)) * x * y
64
+ y -= ((i+m_abs-1)/(i-m_abs)) * yold
65
+ yold = tmp
66
+
67
+ if m < 0:
68
+ y *= ((-1)**m / pochhammer(l+m+1, -2*m))
69
+
70
+ return y
71
+
72
+ def tesseral_harmonics(l, m, theta=0., phi=0.):
73
+ """Tesseral spherical harmonic with Condon-Shortley phase.
74
+
75
+ The Tesseral spherical harmonics are also known as the real spherical
76
+ harmonics.
77
+
78
+ Args:
79
+ l: int for degree
80
+ m: int for order, where -l <= m < l
81
+ theta: collatitude or polar angle
82
+ phi: longitude or azimuth
83
+ Returns:
84
+ tensor of shape theta
85
+ """
86
+ assert abs(m) <= l, "absolute value of order m must be <= degree l"
87
+
88
+ N = np.sqrt((2*l+1) / (4*np.pi))
89
+ leg = lpmv(l, abs(m), torch.cos(theta))
90
+ if m == 0:
91
+ return N*leg
92
+ elif m > 0:
93
+ Y = torch.cos(m*phi) * leg
94
+ else:
95
+ Y = torch.sin(abs(m)*phi) * leg
96
+ N *= np.sqrt(2. / pochhammer(l-abs(m)+1, 2*abs(m)))
97
+ Y *= N
98
+ return Y
99
+
100
+ class SphericalHarmonics(object):
101
+ def __init__(self):
102
+ self.leg = {}
103
+
104
+ def clear(self):
105
+ self.leg = {}
106
+
107
+ def negative_lpmv(self, l, m, y):
108
+ """Compute negative order coefficients"""
109
+ if m < 0:
110
+ y *= ((-1)**m / pochhammer(l+m+1, -2*m))
111
+ return y
112
+
113
+ def lpmv(self, l, m, x):
114
+ """Associated Legendre function including Condon-Shortley phase.
115
+
116
+ Args:
117
+ m: int order
118
+ l: int degree
119
+ x: float argument tensor
120
+ Returns:
121
+ tensor of x-shape
122
+ """
123
+ # Check memoized versions
124
+ m_abs = abs(m)
125
+ if (l,m) in self.leg:
126
+ return self.leg[(l,m)]
127
+ elif m_abs > l:
128
+ return None
129
+ elif l == 0:
130
+ self.leg[(l,m)] = torch.ones_like(x)
131
+ return self.leg[(l,m)]
132
+
133
+ # Check if on boundary else recurse solution down to boundary
134
+ if m_abs == l:
135
+ # Compute P_m^m
136
+ y = (-1)**m_abs * semifactorial(2*m_abs-1)
137
+ y *= torch.pow(1-x*x, m_abs/2)
138
+ self.leg[(l,m)] = self.negative_lpmv(l, m, y)
139
+ return self.leg[(l,m)]
140
+ else:
141
+ # Recursively precompute lower degree harmonics
142
+ self.lpmv(l-1, m, x)
143
+
144
+ # Compute P_{l}^m from recursion in P_{l-1}^m and P_{l-2}^m
145
+ # Inplace speedup
146
+ y = ((2*l-1) / (l-m_abs)) * x * self.lpmv(l-1, m_abs, x)
147
+ if l - m_abs > 1:
148
+ y -= ((l+m_abs-1)/(l-m_abs)) * self.leg[(l-2, m_abs)]
149
+ #self.leg[(l, m_abs)] = y
150
+
151
+ if m < 0:
152
+ y = self.negative_lpmv(l, m, y)
153
+ self.leg[(l,m)] = y
154
+
155
+ return self.leg[(l,m)]
156
+
157
+ def get_element(self, l, m, theta, phi):
158
+ """Tesseral spherical harmonic with Condon-Shortley phase.
159
+
160
+ The Tesseral spherical harmonics are also known as the real spherical
161
+ harmonics.
162
+
163
+ Args:
164
+ l: int for degree
165
+ m: int for order, where -l <= m < l
166
+ theta: collatitude or polar angle
167
+ phi: longitude or azimuth
168
+ Returns:
169
+ tensor of shape theta
170
+ """
171
+ assert abs(m) <= l, "absolute value of order m must be <= degree l"
172
+
173
+ N = np.sqrt((2*l+1) / (4*np.pi))
174
+ leg = self.lpmv(l, abs(m), torch.cos(theta))
175
+ if m == 0:
176
+ return N*leg
177
+ elif m > 0:
178
+ Y = torch.cos(m*phi) * leg
179
+ else:
180
+ Y = torch.sin(abs(m)*phi) * leg
181
+ N *= np.sqrt(2. / pochhammer(l-abs(m)+1, 2*abs(m)))
182
+ Y *= N
183
+ return Y
184
+
185
+ def get(self, l, theta, phi, refresh=True):
186
+ """Tesseral harmonic with Condon-Shortley phase.
187
+
188
+ The Tesseral spherical harmonics are also known as the real spherical
189
+ harmonics.
190
+
191
+ Args:
192
+ l: int for degree
193
+ theta: collatitude or polar angle
194
+ phi: longitude or azimuth
195
+ Returns:
196
+ tensor of shape [*theta.shape, 2*l+1]
197
+ """
198
+ results = []
199
+ if refresh:
200
+ self.clear()
201
+ for m in range(-l, l+1):
202
+ results.append(self.get_element(l, m, theta, phi))
203
+ return torch.stack(results, -1)
204
+
1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/inference/__init__.py ADDED
@@ -0,0 +1 @@
 
 
1
+ from .pred_ham import predict, predict_with_grad
1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/inference/__pycache__/__init__.cpython-312.pyc ADDED
Binary file (230 Bytes). View file
 
1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/inference/__pycache__/pred_ham.cpython-312.pyc ADDED
Binary file (28.8 kB). View file
 
1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/inference/band_config.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "calc_job": "band",
3
+ "which_k": 0,
4
+ "fermi_level": -3.82373,
5
+ "max_iter": 300,
6
+ "num_band": 50,
7
+ "k_data": ["15 0 0 0 0.5 0.5 0 Γ M", "15 0.5 0.5 0 0.3333333333333333 0.6666666666666667 0 M K", "15 0.3333333333333333 0.6666666666666667 0 0 0 0 K Γ"]
8
+ }
1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/inference/dense_calc.jl ADDED
@@ -0,0 +1,234 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ using DelimitedFiles, LinearAlgebra, JSON
2
+ using HDF5
3
+ using ArgParse
4
+ using SparseArrays
5
+ using Arpack
6
+ using JLD
7
+ # BLAS.set_num_threads(1)
8
+
9
+ const ev2Hartree = 0.036749324533634074
10
+ const Bohr2Ang = 0.529177249
11
+ const default_dtype = Complex{Float64}
12
+
13
+
14
+ function parse_commandline()
15
+ s = ArgParseSettings()
16
+ @add_arg_table! s begin
17
+ "--input_dir", "-i"
18
+ help = "path of rlat.dat, orbital_types.dat, site_positions.dat, hamiltonians_pred.h5, and overlaps.h5"
19
+ arg_type = String
20
+ default = "./"
21
+ "--output_dir", "-o"
22
+ help = "path of output openmx.Band"
23
+ arg_type = String
24
+ default = "./"
25
+ "--config"
26
+ help = "config file in the format of JSON"
27
+ arg_type = String
28
+ "--ill_project"
29
+ help = "projects out the eigenvectors of the overlap matrix that correspond to eigenvalues smaller than ill_threshold"
30
+ arg_type = Bool
31
+ default = true
32
+ "--ill_threshold"
33
+ help = "threshold for ill_project"
34
+ arg_type = Float64
35
+ default = 5e-4
36
+ end
37
+ return parse_args(s)
38
+ end
39
+
40
+
41
+ function _create_dict_h5(filename::String)
42
+ fid = h5open(filename, "r")
43
+ T = eltype(fid[keys(fid)[1]])
44
+ d_out = Dict{Array{Int64,1}, Array{T, 2}}()
45
+ for key in keys(fid)
46
+ data = read(fid[key])
47
+ nk = map(x -> parse(Int64, convert(String, x)), split(key[2 : length(key) - 1], ','))
48
+ d_out[nk] = permutedims(data)
49
+ end
50
+ close(fid)
51
+ return d_out
52
+ end
53
+
54
+
55
+ function genlist(x)
56
+ return collect(range(x[1], stop = x[2], length = Int64(x[3])))
57
+ end
58
+
59
+
60
+ function k_data2num_ks(kdata::AbstractString)
61
+ return parse(Int64,split(kdata)[1])
62
+ end
63
+
64
+
65
+ function k_data2kpath(kdata::AbstractString)
66
+ return map(x->parse(Float64,x), split(kdata)[2:7])
67
+ end
68
+
69
+
70
+ function std_out_array(a::AbstractArray)
71
+ return string(map(x->string(x," "),a)...)
72
+ end
73
+
74
+
75
+ function main()
76
+ parsed_args = parse_commandline()
77
+
78
+ println(parsed_args["config"])
79
+ config = JSON.parsefile(parsed_args["config"])
80
+ calc_job = config["calc_job"]
81
+
82
+ if isfile(joinpath(parsed_args["input_dir"],"info.json"))
83
+ spinful = JSON.parsefile(joinpath(parsed_args["input_dir"],"info.json"))["isspinful"]
84
+ else
85
+ spinful = false
86
+ end
87
+
88
+ site_positions = readdlm(joinpath(parsed_args["input_dir"], "site_positions.dat"))
89
+ nsites = size(site_positions, 2)
90
+
91
+ orbital_types_f = open(joinpath(parsed_args["input_dir"], "orbital_types.dat"), "r")
92
+ site_norbits = zeros(nsites)
93
+ orbital_types = Vector{Vector{Int64}}()
94
+ for index_site = 1:nsites
95
+ orbital_type = parse.(Int64, split(readline(orbital_types_f)))
96
+ push!(orbital_types, orbital_type)
97
+ end
98
+ site_norbits = (x->sum(x .* 2 .+ 1)).(orbital_types) * (1 + spinful)
99
+ norbits = sum(site_norbits)
100
+ site_norbits_cumsum = cumsum(site_norbits)
101
+
102
+ rlat = readdlm(joinpath(parsed_args["input_dir"], "rlat.dat"))
103
+
104
+
105
+ @info "read h5"
106
+ begin_time = time()
107
+ hamiltonians_pred = _create_dict_h5(joinpath(parsed_args["input_dir"], "hamiltonians_pred.h5"))
108
+ overlaps = _create_dict_h5(joinpath(parsed_args["input_dir"], "overlaps.h5"))
109
+ println("Time for reading h5: ", time() - begin_time, "s")
110
+
111
+ H_R = Dict{Vector{Int64}, Matrix{default_dtype}}()
112
+ S_R = Dict{Vector{Int64}, Matrix{default_dtype}}()
113
+
114
+ @info "construct Hamiltonian and overlap matrix in the real space"
115
+ begin_time = time()
116
+ for key in collect(keys(hamiltonians_pred))
117
+ hamiltonian_pred = hamiltonians_pred[key]
118
+ if (key ∈ keys(overlaps))
119
+ overlap = overlaps[key]
120
+ else
121
+ # continue
122
+ overlap = zero(hamiltonian_pred)
123
+ end
124
+ if spinful
125
+ overlap = vcat(hcat(overlap,zeros(size(overlap))),hcat(zeros(size(overlap)),overlap)) # the readout overlap matrix only contains the upper-left block # TODO maybe drop the zeros?
126
+ end
127
+ R = key[1:3]; atom_i=key[4]; atom_j=key[5]
128
+
129
+ @assert (site_norbits[atom_i], site_norbits[atom_j]) == size(hamiltonian_pred)
130
+ @assert (site_norbits[atom_i], site_norbits[atom_j]) == size(overlap)
131
+ if !(R ∈ keys(H_R))
132
+ H_R[R] = zeros(default_dtype, norbits, norbits)
133
+ S_R[R] = zeros(default_dtype, norbits, norbits)
134
+ end
135
+ for block_matrix_i in 1:site_norbits[atom_i]
136
+ for block_matrix_j in 1:site_norbits[atom_j]
137
+ index_i = site_norbits_cumsum[atom_i] - site_norbits[atom_i] + block_matrix_i
138
+ index_j = site_norbits_cumsum[atom_j] - site_norbits[atom_j] + block_matrix_j
139
+ H_R[R][index_i, index_j] = hamiltonian_pred[block_matrix_i, block_matrix_j]
140
+ S_R[R][index_i, index_j] = overlap[block_matrix_i, block_matrix_j]
141
+ end
142
+ end
143
+ end
144
+ println("Time for constructing Hamiltonian and overlap matrix in the real space: ", time() - begin_time, " s")
145
+
146
+
147
+ if calc_job == "band"
148
+ fermi_level = config["fermi_level"]
149
+ k_data = config["k_data"]
150
+
151
+ ill_project = parsed_args["ill_project"] || ("ill_project" in keys(config) && config["ill_project"])
152
+ ill_threshold = max(parsed_args["ill_threshold"], get(config, "ill_threshold", 0.))
153
+
154
+ @info "calculate bands"
155
+ num_ks = k_data2num_ks.(k_data)
156
+ kpaths = k_data2kpath.(k_data)
157
+
158
+ egvals = zeros(Float64, norbits, sum(num_ks)[1])
159
+
160
+ begin_time = time()
161
+ idx_k = 1
162
+ for i = 1:size(kpaths, 1)
163
+ kpath = kpaths[i]
164
+ pnkpts = num_ks[i]
165
+ kxs = LinRange(kpath[1], kpath[4], pnkpts)
166
+ kys = LinRange(kpath[2], kpath[5], pnkpts)
167
+ kzs = LinRange(kpath[3], kpath[6], pnkpts)
168
+ for (kx, ky, kz) in zip(kxs, kys, kzs)
169
+ idx_k
170
+ H_k = zeros(default_dtype, norbits, norbits)
171
+ S_k = zeros(default_dtype, norbits, norbits)
172
+ for R in keys(H_R)
173
+ H_k += H_R[R] * exp(im*2π*([kx, ky, kz]⋅R))
174
+ S_k += S_R[R] * exp(im*2π*([kx, ky, kz]⋅R))
175
+ end
176
+ S_k = (S_k + S_k') / 2
177
+ H_k = (H_k + H_k') / 2
178
+ if ill_project
179
+ (egval_S, egvec_S) = eigen(Hermitian(S_k))
180
+ # egvec_S: shape (num_basis, num_bands)
181
+ project_index = abs.(egval_S) .> ill_threshold
182
+ if sum(project_index) != length(project_index)
183
+ # egval_S = egval_S[project_index]
184
+ egvec_S = egvec_S[:, project_index]
185
+ @warn "ill-conditioned eigenvalues detected, projected out $(length(project_index) - sum(project_index)) eigenvalues"
186
+ H_k = egvec_S' * H_k * egvec_S
187
+ S_k = egvec_S' * S_k * egvec_S
188
+ (egval, egvec) = eigen(Hermitian(H_k), Hermitian(S_k))
189
+ egval = vcat(egval, fill(1e4, length(project_index) - sum(project_index)))
190
+ egvec = egvec_S * egvec
191
+ else
192
+ (egval, egvec) = eigen(Hermitian(H_k), Hermitian(S_k))
193
+ end
194
+ else
195
+ (egval, egvec) = eigen(Hermitian(H_k), Hermitian(S_k))
196
+ end
197
+ egvals[:, idx_k] = egval
198
+ println("Time for solving No.$idx_k eigenvalues at k = ", [kx, ky, kz], ": ", time() - begin_time, " s")
199
+ idx_k += 1
200
+ end
201
+ end
202
+
203
+ # output in openmx band format
204
+ f = open(joinpath(parsed_args["output_dir"], "openmx.Band"),"w")
205
+ println(f, norbits, " ", 0, " ", ev2Hartree * fermi_level)
206
+ openmx_rlat = reshape((rlat .* Bohr2Ang), 1, :)
207
+ println(f, std_out_array(openmx_rlat))
208
+ println(f, length(k_data))
209
+ for line in k_data
210
+ println(f,line)
211
+ end
212
+ idx_k = 1
213
+ for i = 1:size(kpaths, 1)
214
+ pnkpts = num_ks[i]
215
+ kstart = kpaths[i][1:3]
216
+ kend = kpaths[i][4:6]
217
+ k_list = zeros(Float64,pnkpts,3)
218
+ for alpha = 1:3
219
+ k_list[:,alpha] = genlist([kstart[alpha],kend[alpha],pnkpts])
220
+ end
221
+ for j = 1:pnkpts
222
+ idx_k
223
+ kvec = k_list[j,:]
224
+ println(f, norbits, " ", std_out_array(kvec))
225
+ println(f, std_out_array(ev2Hartree * egvals[:, idx_k]))
226
+ idx_k += 1
227
+ end
228
+ end
229
+ close(f)
230
+ end
231
+ end
232
+
233
+
234
+ main()
1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/inference/dense_calc.py ADDED
@@ -0,0 +1,277 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import json
2
+ import argparse
3
+ import h5py
4
+ import numpy as np
5
+ import os
6
+ from time import time
7
+ from scipy import linalg
8
+ import tqdm
9
+ from pathos.multiprocessing import ProcessingPool as Pool
10
+
11
+ def parse_commandline():
12
+ parser = argparse.ArgumentParser()
13
+ parser.add_argument(
14
+ "--input_dir", "-i", type=str, default="./",
15
+ help="path of rlat.dat, orbital_types.dat, site_positions.dat, hamiltonians_pred.h5, and overlaps.h5"
16
+ )
17
+ parser.add_argument(
18
+ "--output_dir", "-o", type=str, default="./",
19
+ help="path of output openmx.Band"
20
+ )
21
+ parser.add_argument(
22
+ "--config", type=str,
23
+ help="config file in the format of JSON"
24
+ )
25
+ parser.add_argument(
26
+ "--ill_project", type=bool,
27
+ help="projects out the eigenvectors of the overlap matrix that correspond to eigenvalues smaller than ill_threshold",
28
+ default=True
29
+ )
30
+ parser.add_argument(
31
+ "--ill_threshold", type=float,
32
+ help="threshold for ill_project",
33
+ default=5e-4
34
+ )
35
+ parser.add_argument(
36
+ "--multiprocessing", type=int,
37
+ help="multiprocessing for band calculation",
38
+ default=0
39
+ )
40
+ return parser.parse_args()
41
+
42
+ parsed_args = parse_commandline()
43
+
44
+ def _create_dict_h5(filename):
45
+ fid = h5py.File(filename, "r")
46
+ d_out = {}
47
+ for key in fid.keys():
48
+ data = np.array(fid[key])
49
+ nk = tuple(map(int, key[1:-1].split(',')))
50
+ # BS:
51
+ # the matrix do not need be transposed in Python,
52
+ # But the transpose should be done in Julia.
53
+ d_out[nk] = data # np.transpose(data)
54
+ fid.close()
55
+ return d_out
56
+
57
+
58
+ ev2Hartree = 0.036749324533634074
59
+ Bohr2Ang = 0.529177249
60
+
61
+
62
+ def genlist(x):
63
+ return np.linspace(x[0], x[1], int(x[2]))
64
+
65
+
66
+ def k_data2num_ks(kdata):
67
+ return int(kdata.split()[0])
68
+
69
+
70
+ def k_data2kpath(kdata):
71
+ return [float(x) for x in kdata.split()[1:7]]
72
+
73
+
74
+ def std_out_array(a):
75
+ return ''.join([str(x) + ' ' for x in a])
76
+
77
+
78
+ default_dtype = np.complex128
79
+
80
+ print(parsed_args.config)
81
+ with open(parsed_args.config) as f:
82
+ config = json.load(f)
83
+ calc_job = config["calc_job"]
84
+
85
+ if os.path.isfile(os.path.join(parsed_args.input_dir, "info.json")):
86
+ with open(os.path.join(parsed_args.input_dir, "info.json")) as f:
87
+ spinful = json.load(f)["isspinful"]
88
+ else:
89
+ spinful = False
90
+
91
+ site_positions = np.loadtxt(os.path.join(parsed_args.input_dir, "site_positions.dat"))
92
+
93
+ if len(site_positions.shape) == 2:
94
+ nsites = site_positions.shape[1]
95
+ else:
96
+ nsites = 1
97
+ # in case of single atom
98
+
99
+
100
+ with open(os.path.join(parsed_args.input_dir, "orbital_types.dat")) as f:
101
+ site_norbits = np.zeros(nsites, dtype=int)
102
+ orbital_types = []
103
+ for index_site in range(nsites):
104
+ orbital_type = list(map(int, f.readline().split()))
105
+ orbital_types.append(orbital_type)
106
+ site_norbits[index_site] = np.sum(np.array(orbital_type) * 2 + 1)
107
+ norbits = np.sum(site_norbits)
108
+ site_norbits_cumsum = np.cumsum(site_norbits)
109
+
110
+ rlat = np.loadtxt(os.path.join(parsed_args.input_dir, "rlat.dat")).T
111
+ # require transposition while reading rlat.dat in python
112
+
113
+
114
+ print("read h5")
115
+ begin_time = time()
116
+ hamiltonians_pred = _create_dict_h5(os.path.join(parsed_args.input_dir, "hamiltonians_pred.h5"))
117
+ overlaps = _create_dict_h5(os.path.join(parsed_args.input_dir, "overlaps.h5"))
118
+ print("Time for reading h5: ", time() - begin_time, "s")
119
+
120
+ H_R = {}
121
+ S_R = {}
122
+
123
+ print("construct Hamiltonian and overlap matrix in the real space")
124
+ begin_time = time()
125
+
126
+ # BS:
127
+ # this is for debug python and julia
128
+ # in julia, you can use 'sort(collect(keys(hamiltonians_pred)))'
129
+ # for key in dict(sorted(hamiltonians_pred.items())).keys():
130
+ for key in hamiltonians_pred.keys():
131
+
132
+ hamiltonian_pred = hamiltonians_pred[key]
133
+
134
+ if key in overlaps.keys():
135
+ overlap = overlaps[key]
136
+ else:
137
+ overlap = np.zeros_like(hamiltonian_pred)
138
+ if spinful:
139
+ overlap = np.vstack((np.hstack((overlap, np.zeros_like(overlap))), np.hstack((np.zeros_like(overlap), overlap))))
140
+ R = key[:3]
141
+ atom_i = key[3] - 1
142
+ atom_j = key[4] - 1
143
+
144
+ assert (site_norbits[atom_i], site_norbits[atom_j]) == hamiltonian_pred.shape
145
+ assert (site_norbits[atom_i], site_norbits[atom_j]) == overlap.shape
146
+
147
+ if R not in H_R.keys():
148
+ H_R[R] = np.zeros((norbits, norbits), dtype=default_dtype)
149
+ S_R[R] = np.zeros((norbits, norbits), dtype=default_dtype)
150
+
151
+ for block_matrix_i in range(1, site_norbits[atom_i]+1):
152
+ for block_matrix_j in range(1, site_norbits[atom_j]+1):
153
+ index_i = site_norbits_cumsum[atom_i] - site_norbits[atom_i] + block_matrix_i - 1
154
+ index_j = site_norbits_cumsum[atom_j] - site_norbits[atom_j] + block_matrix_j - 1
155
+ H_R[R][index_i, index_j] = hamiltonian_pred[block_matrix_i-1, block_matrix_j-1]
156
+ S_R[R][index_i, index_j] = overlap[block_matrix_i-1, block_matrix_j-1]
157
+
158
+
159
+ print("Time for constructing Hamiltonian and overlap matrix in the real space: ", time() - begin_time, " s")
160
+
161
+ if calc_job == "band":
162
+ fermi_level = config["fermi_level"]
163
+ k_data = config["k_data"]
164
+ ill_project = parsed_args.ill_project or ("ill_project" in config.keys() and config["ill_project"])
165
+ ill_threshold = max(parsed_args.ill_threshold, config["ill_threshold"] if ("ill_threshold" in config.keys()) else 0.)
166
+ multiprocessing = max(parsed_args.multiprocessing, config["multiprocessing"] if ("multiprocessing" in config.keys()) else 0)
167
+
168
+ print("calculate bands")
169
+ num_ks = [k_data2num_ks(k) for k in k_data]
170
+ kpaths = [k_data2kpath(k) for k in k_data]
171
+
172
+ egvals = np.zeros((norbits, sum(num_ks)))
173
+
174
+ begin_time = time()
175
+ idx_k = 0
176
+ # calculate total k points
177
+ total_num_ks = sum(num_ks)
178
+ list_index_kpath= []
179
+ list_index_kxyz=[]
180
+ for i in range(len(num_ks)):
181
+ list_index_kpath = list_index_kpath + ([i]*num_ks[i])
182
+ list_index_kxyz.extend(range(num_ks[i]))
183
+
184
+ def process_worker(k_point):
185
+ """ calculate band
186
+
187
+ Args:
188
+ k_point (int): the index of k point of all calculated k points
189
+
190
+ Returns:
191
+ json: {
192
+ "k_point":k_point,
193
+ "egval" (np array 1D) : eigen value ,
194
+ "num_projected_out" (int) : ill-conditioned eigenvalues detected。 default is 0
195
+ }
196
+ """
197
+ index_kpath = list_index_kpath[k_point]
198
+ kpath = kpaths[index_kpath]
199
+ pnkpts = num_ks[index_kpath]
200
+ kx = np.linspace(kpath[0], kpath[3], pnkpts)[list_index_kxyz[k_point]]
201
+ ky = np.linspace(kpath[1], kpath[4], pnkpts)[list_index_kxyz[k_point]]
202
+ kz = np.linspace(kpath[2], kpath[5], pnkpts)[list_index_kxyz[k_point]]
203
+
204
+ H_k = np.matrix(np.zeros((norbits, norbits), dtype=default_dtype))
205
+ S_k = np.matrix(np.zeros((norbits, norbits), dtype=default_dtype))
206
+ for R in H_R.keys():
207
+ H_k += H_R[R] * np.exp(1j*2*np.pi*np.dot([kx, ky, kz], R))
208
+ S_k += S_R[R] * np.exp(1j*2*np.pi*np.dot([kx, ky, kz], R))
209
+ # print(H_k)
210
+ H_k = (H_k + H_k.getH())/2.
211
+ S_k = (S_k + S_k.getH())/2.
212
+ num_projected_out = 0
213
+ if ill_project:
214
+ egval_S, egvec_S = linalg.eig(S_k)
215
+ project_index = np.argwhere(abs(egval_S)> ill_threshold)
216
+ if len(project_index) != norbits:
217
+ egvec_S = np.matrix(egvec_S[:, project_index])
218
+ num_projected_out = norbits - len(project_index)
219
+ H_k = egvec_S.H @ H_k @ egvec_S
220
+ S_k = egvec_S.H @ S_k @ egvec_S
221
+ egval = linalg.eigvalsh(H_k, S_k, lower=False)
222
+ egval = np.concatenate([egval, np.full(num_projected_out, 1e4)])
223
+ else:
224
+ egval = linalg.eigvalsh(H_k, S_k, lower=False)
225
+ else:
226
+ #---------------------------------------------
227
+ # BS: only eigenvalues are needed in this part,
228
+ # the upper matrix is used
229
+ egval = linalg.eigvalsh(H_k, S_k, lower=False)
230
+
231
+ return {"k_point":k_point, "egval":egval, "num_projected_out":num_projected_out}
232
+
233
+ # parallizing the band calculation
234
+ if multiprocessing == 0:
235
+ print(f'No use of multiprocessing')
236
+ data_list = [process_worker(k_point) for k_point in tqdm.tqdm(range(sum(num_ks)))]
237
+ else:
238
+ pool_dict = {} if multiprocessing < 0 else {'nodes': multiprocessing}
239
+
240
+ with Pool(**pool_dict) as pool:
241
+ nodes = pool.nodes
242
+ print(f'Use multiprocessing x {multiprocessing})')
243
+ data_list = list(tqdm.tqdm(pool.imap(process_worker, range(sum(num_ks))), total=sum(num_ks)))
244
+
245
+ # post-process returned band data, and store them in egvals with the order k_point
246
+ projected_out = []
247
+ for data in data_list:
248
+ egvals[:, data["k_point"]] = data["egval"]
249
+ if data["num_projected_out"] > 0:
250
+ projected_out.append(data["num_projected_out"])
251
+ if len(projected_out) > 0:
252
+ print(f"There are {len(projected_out)} bands with ill-conditioned eigenvalues detected.")
253
+ print(f"Projected out {int(np.average(projected_out))} eigenvalues on average.")
254
+ print('Finish the calculation of %d k-points, have cost %d seconds' % (sum(num_ks), time() - begin_time))
255
+
256
+
257
+ # output in openmx band format
258
+ with open(os.path.join(parsed_args.output_dir, "openmx.Band"), "w") as f:
259
+ f.write("{} {} {}\n".format(norbits, 0, ev2Hartree * fermi_level))
260
+ openmx_rlat = np.reshape((rlat * Bohr2Ang), (1, -1))[0]
261
+ f.write(std_out_array(openmx_rlat) + "\n")
262
+ f.write(str(len(k_data)) + "\n")
263
+ for line in k_data:
264
+ f.write(line + "\n")
265
+ idx_k = 0
266
+ for i in range(len(kpaths)):
267
+ pnkpts = num_ks[i]
268
+ kstart = kpaths[i][:3]
269
+ kend = kpaths[i][3:]
270
+ k_list = np.zeros((pnkpts, 3))
271
+ for alpha in range(3):
272
+ k_list[:, alpha] = genlist([kstart[alpha], kend[alpha], pnkpts])
273
+ for j in range(pnkpts):
274
+ kvec = k_list[j, :]
275
+ f.write("{} {}\n".format(norbits, std_out_array(kvec)))
276
+ f.write(std_out_array(ev2Hartree * egvals[:, idx_k]) + "\n")
277
+ idx_k += 1
1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/inference/inference_default.ini ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [basic]
2
+ work_dir = /your/own/path
3
+ OLP_dir = /your/own/path
4
+ interface = openmx
5
+ trained_model_dir = ["/your/trained/model1", "/your/trained/model2"]
6
+ task = [1, 2, 3, 4, 5]
7
+ sparse_calc_config = /your/own/path
8
+ eigen_solver = sparse_jl
9
+ disable_cuda = True
10
+ device = cuda:0
11
+ huge_structure = True
12
+ restore_blocks_py = True
13
+ gen_rc_idx = False
14
+ gen_rc_by_idx =
15
+ with_grad = False
16
+
17
+ [interpreter]
18
+ julia_interpreter = julia
19
+ python_interpreter = python
20
+
21
+ [graph]
22
+ radius = -1.0
23
+ create_from_DFT = True
1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/inference/local_coordinate.jl ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ using DelimitedFiles, LinearAlgebra
2
+ using HDF5
3
+ using ArgParse
4
+ using StaticArrays
5
+
6
+
7
+ function parse_commandline()
8
+ s = ArgParseSettings()
9
+ @add_arg_table! s begin
10
+ "--input_dir", "-i"
11
+ help = "path of site_positions.dat, lat.dat, element.dat, and R_list.dat (overlaps.h5)"
12
+ arg_type = String
13
+ default = "./"
14
+ "--output_dir", "-o"
15
+ help = "path of output rc.h5"
16
+ arg_type = String
17
+ default = "./"
18
+ "--radius", "-r"
19
+ help = "cutoff radius"
20
+ arg_type = Float64
21
+ default = 8.0
22
+ "--create_from_DFT"
23
+ help = "retain edges by DFT overlaps neighbour"
24
+ arg_type = Bool
25
+ default = true
26
+ "--output_text"
27
+ help = "an option without argument, i.e. a flag"
28
+ action = :store_true
29
+ "--Hop_dir"
30
+ help = "path of Hop.jl"
31
+ arg_type = String
32
+ default = "/home/lihe/DeepH/process_ham/Hop.jl/"
33
+ end
34
+ return parse_args(s)
35
+ end
36
+ parsed_args = parse_commandline()
37
+
38
+ using Pkg
39
+ Pkg.activate(parsed_args["Hop_dir"])
40
+ using Hop
41
+
42
+
43
+ site_positions = readdlm(joinpath(parsed_args["input_dir"], "site_positions.dat"))
44
+ lat = readdlm(joinpath(parsed_args["input_dir"], "lat.dat"))
45
+ R_list_read = convert(Matrix{Int64}, readdlm(joinpath(parsed_args["input_dir"], "R_list.dat")))
46
+ num_R = size(R_list_read, 1)
47
+ R_list = Vector{SVector{3, Int64}}()
48
+ for index_R in 1:num_R
49
+ push!(R_list, SVector{3, Int64}(R_list_read[index_R, :]))
50
+ end
51
+
52
+ @info "get local coordinate"
53
+ begin_time = time()
54
+ rcoordinate = Hop.Deeph.rotate_system(site_positions, lat, R_list, parsed_args["radius"])
55
+ println("time for calculating local coordinate is: ", time() - begin_time)
56
+
57
+ if parsed_args["output_text"]
58
+ @info "output txt"
59
+ mkpath(joinpath(parsed_args["output_dir"], "rresult"))
60
+ mkpath(joinpath(parsed_args["output_dir"], "rresult/rc"))
61
+ for (R, coord) in rcoordinate
62
+ open(joinpath(parsed_args["output_dir"], "rresult/rc/", R, "_real.dat"), "w") do f
63
+ writedlm(f, coord)
64
+ end
65
+ end
66
+ end
67
+
68
+ @info "output h5"
69
+ h5open(joinpath(parsed_args["input_dir"], "overlaps.h5"), "r") do fid_OLP
70
+ graph_key = Set(keys(fid_OLP))
71
+ h5open(joinpath(parsed_args["output_dir"], "rc.h5"), "w") do fid
72
+ for (key, coord) in rcoordinate
73
+ if (parsed_args["create_from_DFT"] == true) && (!(string(key) in graph_key))
74
+ continue
75
+ end
76
+ write(fid, string(key), permutedims(coord))
77
+ end
78
+ end
79
+ end
1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/inference/pred_ham.py ADDED
@@ -0,0 +1,365 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import json
2
+ import os
3
+ import time
4
+ import warnings
5
+ from typing import Union, List
6
+ import sys
7
+
8
+ import tqdm
9
+ from configparser import ConfigParser
10
+ import numpy as np
11
+ from pymatgen.core.structure import Structure
12
+ import torch
13
+ import torch.autograd.forward_ad as fwAD
14
+ import h5py
15
+
16
+ from deeph import get_graph, DeepHKernel, collate_fn, write_ham_h5, load_orbital_types, Rotate, dtype_dict, get_rc
17
+
18
+
19
+ def predict(input_dir: str, output_dir: str, disable_cuda: bool, device: str,
20
+ huge_structure: bool, restore_blocks_py: bool, trained_model_dirs: Union[str, List[str]]):
21
+ atom_num_orbital = load_orbital_types(os.path.join(input_dir, 'orbital_types.dat'))
22
+ if isinstance(trained_model_dirs, str):
23
+ trained_model_dirs = [trained_model_dirs]
24
+ assert isinstance(trained_model_dirs, list)
25
+ os.makedirs(output_dir, exist_ok=True)
26
+ predict_spinful = None
27
+
28
+ with torch.no_grad():
29
+ read_structure_flag = False
30
+ if restore_blocks_py:
31
+ hoppings_pred = {}
32
+ else:
33
+ index_model = 0
34
+ block_without_restoration = {}
35
+ os.makedirs(os.path.join(output_dir, 'block_without_restoration'), exist_ok=True)
36
+ for trained_model_dir in tqdm.tqdm(trained_model_dirs):
37
+ old_version = False
38
+ assert os.path.exists(os.path.join(trained_model_dir, 'config.ini'))
39
+ if os.path.exists(os.path.join(trained_model_dir, 'best_model.pt')) is False:
40
+ old_version = True
41
+ assert os.path.exists(os.path.join(trained_model_dir, 'best_model.pkl'))
42
+ assert os.path.exists(os.path.join(trained_model_dir, 'src'))
43
+
44
+ config = ConfigParser()
45
+ config.read(os.path.join(os.path.dirname(os.path.dirname(__file__)), 'default.ini'))
46
+ config.read(os.path.join(trained_model_dir, 'config.ini'))
47
+ config.set('basic', 'save_dir', os.path.join(output_dir, 'pred_ham_std'))
48
+ config.set('basic', 'disable_cuda', str(disable_cuda))
49
+ config.set('basic', 'device', str(device))
50
+ config.set('basic', 'save_to_time_folder', 'False')
51
+ config.set('basic', 'tb_writer', 'False')
52
+ config.set('train', 'pretrained', '')
53
+ config.set('train', 'resume', '')
54
+
55
+ kernel = DeepHKernel(config)
56
+ if old_version is False:
57
+ checkpoint = kernel.build_model(trained_model_dir, old_version)
58
+ else:
59
+ warnings.warn('You are using the trained model with an old version')
60
+ checkpoint = torch.load(
61
+ os.path.join(trained_model_dir, 'best_model.pkl'),
62
+ map_location=kernel.device
63
+ )
64
+ for key in ['index_to_Z', 'Z_to_index', 'spinful']:
65
+ if key in checkpoint:
66
+ setattr(kernel, key, checkpoint[key])
67
+ if hasattr(kernel, 'index_to_Z') is False:
68
+ kernel.index_to_Z = torch.arange(config.getint('basic', 'max_element') + 1)
69
+ if hasattr(kernel, 'Z_to_index') is False:
70
+ kernel.Z_to_index = torch.arange(config.getint('basic', 'max_element') + 1)
71
+ if hasattr(kernel, 'spinful') is False:
72
+ kernel.spinful = False
73
+ kernel.num_species = len(kernel.index_to_Z)
74
+ print("=> load best checkpoint (epoch {})".format(checkpoint['epoch']))
75
+ print(f"=> Atomic types: {kernel.index_to_Z.tolist()}, "
76
+ f"spinful: {kernel.spinful}, the number of atomic types: {len(kernel.index_to_Z)}.")
77
+ kernel.build_model(trained_model_dir, old_version)
78
+ kernel.model.load_state_dict(checkpoint['state_dict'])
79
+
80
+ if predict_spinful is None:
81
+ predict_spinful = kernel.spinful
82
+ else:
83
+ assert predict_spinful == kernel.spinful, "Different models' spinful are not compatible"
84
+
85
+ if read_structure_flag is False:
86
+ read_structure_flag = True
87
+ structure = Structure(np.loadtxt(os.path.join(input_dir, 'lat.dat')).T,
88
+ np.loadtxt(os.path.join(input_dir, 'element.dat')),
89
+ np.loadtxt(os.path.join(input_dir, 'site_positions.dat')).T,
90
+ coords_are_cartesian=True,
91
+ to_unit_cell=False)
92
+ cart_coords = torch.tensor(structure.cart_coords, dtype=torch.get_default_dtype())
93
+ frac_coords = torch.tensor(structure.frac_coords, dtype=torch.get_default_dtype())
94
+ numbers = kernel.Z_to_index[torch.tensor(structure.atomic_numbers)]
95
+ structure.lattice.matrix.setflags(write=True)
96
+ lattice = torch.tensor(structure.lattice.matrix, dtype=torch.get_default_dtype())
97
+ inv_lattice = torch.inverse(lattice)
98
+
99
+ if os.path.exists(os.path.join(input_dir, 'graph.pkl')):
100
+ data = torch.load(os.path.join(input_dir, 'graph.pkl'))
101
+ print(f"Load processed graph from {os.path.join(input_dir, 'graph.pkl')}")
102
+ else:
103
+ begin = time.time()
104
+ data = get_graph(cart_coords, frac_coords, numbers, 0,
105
+ r=kernel.config.getfloat('graph', 'radius'),
106
+ max_num_nbr=kernel.config.getint('graph', 'max_num_nbr'),
107
+ numerical_tol=1e-8, lattice=lattice, default_dtype_torch=torch.get_default_dtype(),
108
+ tb_folder=input_dir, interface="h5_rc_only",
109
+ num_l=kernel.config.getint('network', 'num_l'),
110
+ create_from_DFT=kernel.config.getboolean('graph', 'create_from_DFT',
111
+ fallback=True),
112
+ if_lcmp_graph=kernel.config.getboolean('graph', 'if_lcmp_graph', fallback=True),
113
+ separate_onsite=kernel.separate_onsite,
114
+ target=kernel.config.get('basic', 'target'), huge_structure=huge_structure,
115
+ if_new_sp=kernel.config.getboolean('graph', 'new_sp', fallback=False),
116
+ )
117
+ torch.save(data, os.path.join(input_dir, 'graph.pkl'))
118
+ print(
119
+ f"Save processed graph to {os.path.join(input_dir, 'graph.pkl')}, cost {time.time() - begin} seconds")
120
+ batch, subgraph = collate_fn([data])
121
+ sub_atom_idx, sub_edge_idx, sub_edge_ang, sub_index = subgraph
122
+
123
+ output = kernel.model(batch.x.to(kernel.device), batch.edge_index.to(kernel.device),
124
+ batch.edge_attr.to(kernel.device),
125
+ batch.batch.to(kernel.device),
126
+ sub_atom_idx.to(kernel.device), sub_edge_idx.to(kernel.device),
127
+ sub_edge_ang.to(kernel.device), sub_index.to(kernel.device),
128
+ huge_structure=huge_structure)
129
+ output = output.detach().cpu()
130
+ if restore_blocks_py:
131
+ for index in range(batch.edge_attr.shape[0]):
132
+ R = torch.round(batch.edge_attr[index, 4:7] @ inv_lattice - batch.edge_attr[index, 7:10] @ inv_lattice).int().tolist()
133
+ i, j = batch.edge_index[:, index]
134
+ key_term = (*R, i.item() + 1, j.item() + 1)
135
+ key_term = str(list(key_term))
136
+ for index_orbital, orbital_dict in enumerate(kernel.orbital):
137
+ if f'{kernel.index_to_Z[numbers[i]].item()} {kernel.index_to_Z[numbers[j]].item()}' not in orbital_dict:
138
+ continue
139
+ orbital_i, orbital_j = orbital_dict[f'{kernel.index_to_Z[numbers[i]].item()} {kernel.index_to_Z[numbers[j]].item()}']
140
+
141
+ if not key_term in hoppings_pred:
142
+ if kernel.spinful:
143
+ hoppings_pred[key_term] = np.full((2 * atom_num_orbital[i], 2 * atom_num_orbital[j]), np.nan + np.nan * (1j))
144
+ else:
145
+ hoppings_pred[key_term] = np.full((atom_num_orbital[i], atom_num_orbital[j]), np.nan)
146
+ if kernel.spinful:
147
+ hoppings_pred[key_term][orbital_i, orbital_j] = output[index][index_orbital * 8 + 0] + output[index][index_orbital * 8 + 1] * 1j
148
+ hoppings_pred[key_term][atom_num_orbital[i] + orbital_i, atom_num_orbital[j] + orbital_j] = output[index][index_orbital * 8 + 2] + output[index][index_orbital * 8 + 3] * 1j
149
+ hoppings_pred[key_term][orbital_i, atom_num_orbital[j] + orbital_j] = output[index][index_orbital * 8 + 4] + output[index][index_orbital * 8 + 5] * 1j
150
+ hoppings_pred[key_term][atom_num_orbital[i] + orbital_i, orbital_j] = output[index][index_orbital * 8 + 6] + output[index][index_orbital * 8 + 7] * 1j
151
+ else:
152
+ hoppings_pred[key_term][orbital_i, orbital_j] = output[index][index_orbital] # about output shape w/ or w/o soc, see graph.py line 164, and kernel.py line 281.
153
+ else:
154
+ if 'edge_index' not in block_without_restoration:
155
+ assert index_model == 0
156
+ block_without_restoration['edge_index'] = batch.edge_index
157
+ block_without_restoration['edge_attr'] = batch.edge_attr
158
+ block_without_restoration[f'output_{index_model}'] = output.numpy()
159
+ with open(os.path.join(output_dir, 'block_without_restoration', f'orbital_{index_model}.json'), 'w') as orbital_f:
160
+ json.dump(kernel.orbital, orbital_f, indent=4)
161
+ index_model += 1
162
+ sys.stdout = sys.stdout.terminal
163
+ sys.stderr = sys.stderr.terminal
164
+
165
+ if restore_blocks_py:
166
+ for hamiltonian in hoppings_pred.values():
167
+ assert np.all(np.isnan(hamiltonian) == False)
168
+ write_ham_h5(hoppings_pred, path=os.path.join(output_dir, 'rh_pred.h5'))
169
+ else:
170
+ block_without_restoration['num_model'] = index_model
171
+ write_ham_h5(block_without_restoration, path=os.path.join(output_dir, 'block_without_restoration', 'block_without_restoration.h5'))
172
+ with open(os.path.join(output_dir, "info.json"), 'w') as info_f:
173
+ json.dump({
174
+ "isspinful": predict_spinful
175
+ }, info_f)
176
+
177
+
178
+ def predict_with_grad(input_dir: str, output_dir: str, disable_cuda: bool, device: str,
179
+ huge_structure: bool, trained_model_dirs: Union[str, List[str]]):
180
+ atom_num_orbital, orbital_types = load_orbital_types(os.path.join(input_dir, 'orbital_types.dat'), return_orbital_types=True)
181
+
182
+ if isinstance(trained_model_dirs, str):
183
+ trained_model_dirs = [trained_model_dirs]
184
+ assert isinstance(trained_model_dirs, list)
185
+ os.makedirs(output_dir, exist_ok=True)
186
+ predict_spinful = None
187
+
188
+ read_structure_flag = False
189
+ rh_dict = {}
190
+ hamiltonians_pred = {}
191
+ hamiltonians_grad_pred = {}
192
+
193
+ for trained_model_dir in tqdm.tqdm(trained_model_dirs):
194
+ old_version = False
195
+ assert os.path.exists(os.path.join(trained_model_dir, 'config.ini'))
196
+ if os.path.exists(os.path.join(trained_model_dir, 'best_model.pt')) is False:
197
+ old_version = True
198
+ assert os.path.exists(os.path.join(trained_model_dir, 'best_model.pkl'))
199
+ assert os.path.exists(os.path.join(trained_model_dir, 'src'))
200
+
201
+ config = ConfigParser()
202
+ config.read(os.path.join(os.path.dirname(os.path.dirname(__file__)), 'default.ini'))
203
+ config.read(os.path.join(trained_model_dir, 'config.ini'))
204
+ config.set('basic', 'save_dir', os.path.join(output_dir, 'pred_ham_std'))
205
+ config.set('basic', 'disable_cuda', str(disable_cuda))
206
+ config.set('basic', 'device', str(device))
207
+ config.set('basic', 'save_to_time_folder', 'False')
208
+ config.set('basic', 'tb_writer', 'False')
209
+ config.set('train', 'pretrained', '')
210
+ config.set('train', 'resume', '')
211
+
212
+ kernel = DeepHKernel(config)
213
+ if old_version is False:
214
+ checkpoint = kernel.build_model(trained_model_dir, old_version)
215
+ else:
216
+ warnings.warn('You are using the trained model with an old version')
217
+ checkpoint = torch.load(
218
+ os.path.join(trained_model_dir, 'best_model.pkl'),
219
+ map_location=kernel.device
220
+ )
221
+ for key in ['index_to_Z', 'Z_to_index', 'spinful']:
222
+ if key in checkpoint:
223
+ setattr(kernel, key, checkpoint[key])
224
+ if hasattr(kernel, 'index_to_Z') is False:
225
+ kernel.index_to_Z = torch.arange(config.getint('basic', 'max_element') + 1)
226
+ if hasattr(kernel, 'Z_to_index') is False:
227
+ kernel.Z_to_index = torch.arange(config.getint('basic', 'max_element') + 1)
228
+ if hasattr(kernel, 'spinful') is False:
229
+ kernel.spinful = False
230
+ kernel.num_species = len(kernel.index_to_Z)
231
+ print("=> load best checkpoint (epoch {})".format(checkpoint['epoch']))
232
+ print(f"=> Atomic types: {kernel.index_to_Z.tolist()}, "
233
+ f"spinful: {kernel.spinful}, the number of atomic types: {len(kernel.index_to_Z)}.")
234
+ kernel.build_model(trained_model_dir, old_version)
235
+ kernel.model.load_state_dict(checkpoint['state_dict'])
236
+
237
+ if predict_spinful is None:
238
+ predict_spinful = kernel.spinful
239
+ else:
240
+ assert predict_spinful == kernel.spinful, "Different models' spinful are not compatible"
241
+
242
+ if read_structure_flag is False:
243
+ read_structure_flag = True
244
+ structure = Structure(np.loadtxt(os.path.join(input_dir, 'lat.dat')).T,
245
+ np.loadtxt(os.path.join(input_dir, 'element.dat')),
246
+ np.loadtxt(os.path.join(input_dir, 'site_positions.dat')).T,
247
+ coords_are_cartesian=True,
248
+ to_unit_cell=False)
249
+ cart_coords = torch.tensor(structure.cart_coords, dtype=torch.get_default_dtype(), requires_grad=True, device=kernel.device)
250
+ num_atom = cart_coords.shape[0]
251
+ frac_coords = torch.tensor(structure.frac_coords, dtype=torch.get_default_dtype())
252
+ numbers = kernel.Z_to_index[torch.tensor(structure.atomic_numbers)]
253
+ structure.lattice.matrix.setflags(write=True)
254
+ lattice = torch.tensor(structure.lattice.matrix, dtype=torch.get_default_dtype())
255
+ inv_lattice = torch.inverse(lattice)
256
+
257
+ fid_rc = get_rc(input_dir, None, radius=-1, create_from_DFT=True, if_require_grad=True, cart_coords=cart_coords)
258
+
259
+ assert kernel.config.getboolean('graph', 'new_sp', fallback=False)
260
+ data = get_graph(cart_coords.to(kernel.device), frac_coords, numbers, 0,
261
+ r=kernel.config.getfloat('graph', 'radius'),
262
+ max_num_nbr=kernel.config.getint('graph', 'max_num_nbr'),
263
+ numerical_tol=1e-8, lattice=lattice, default_dtype_torch=torch.get_default_dtype(),
264
+ tb_folder=input_dir, interface="h5_rc_only",
265
+ num_l=kernel.config.getint('network', 'num_l'),
266
+ create_from_DFT=kernel.config.getboolean('graph', 'create_from_DFT', fallback=True),
267
+ if_lcmp_graph=kernel.config.getboolean('graph', 'if_lcmp_graph', fallback=True),
268
+ separate_onsite=kernel.separate_onsite,
269
+ target=kernel.config.get('basic', 'target'), huge_structure=huge_structure,
270
+ if_new_sp=True, if_require_grad=True, fid_rc=fid_rc)
271
+ batch, subgraph = collate_fn([data])
272
+ sub_atom_idx, sub_edge_idx, sub_edge_ang, sub_index = subgraph
273
+
274
+ torch_dtype, torch_dtype_real, torch_dtype_complex = dtype_dict[torch.get_default_dtype()]
275
+ rotate_kernel = Rotate(torch_dtype, torch_dtype_real=torch_dtype_real,
276
+ torch_dtype_complex=torch_dtype_complex,
277
+ device=kernel.device, spinful=kernel.spinful)
278
+
279
+ output = kernel.model(batch.x, batch.edge_index.to(kernel.device),
280
+ batch.edge_attr,
281
+ batch.batch.to(kernel.device),
282
+ sub_atom_idx.to(kernel.device), sub_edge_idx.to(kernel.device),
283
+ sub_edge_ang, sub_index.to(kernel.device),
284
+ huge_structure=huge_structure)
285
+
286
+ index_for_matrix_block_real_dict = {} # key is atomic number pair
287
+ if kernel.spinful:
288
+ index_for_matrix_block_imag_dict = {} # key is atomic number pair
289
+
290
+ for index in range(batch.edge_attr.shape[0]):
291
+ R = torch.round(batch.edge_attr[index, 4:7].cpu() @ inv_lattice - batch.edge_attr[index, 7:10].cpu() @ inv_lattice).int().tolist()
292
+ i, j = batch.edge_index[:, index]
293
+ key_tensor = torch.tensor([*R, i, j])
294
+ numbers_pair = (kernel.index_to_Z[numbers[i]].item(), kernel.index_to_Z[numbers[j]].item())
295
+ if numbers_pair not in index_for_matrix_block_real_dict:
296
+ if not kernel.spinful:
297
+ index_for_matrix_block_real = torch.full((atom_num_orbital[i], atom_num_orbital[j]), -1)
298
+ else:
299
+ index_for_matrix_block_real = torch.full((2 * atom_num_orbital[i], 2 * atom_num_orbital[j]), -1)
300
+ index_for_matrix_block_imag = torch.full((2 * atom_num_orbital[i], 2 * atom_num_orbital[j]), -1)
301
+ for index_orbital, orbital_dict in enumerate(kernel.orbital):
302
+ if f'{kernel.index_to_Z[numbers[i]].item()} {kernel.index_to_Z[numbers[j]].item()}' not in orbital_dict:
303
+ continue
304
+ orbital_i, orbital_j = orbital_dict[f'{kernel.index_to_Z[numbers[i]].item()} {kernel.index_to_Z[numbers[j]].item()}']
305
+ if not kernel.spinful:
306
+ index_for_matrix_block_real[orbital_i, orbital_j] = index_orbital
307
+ else:
308
+ index_for_matrix_block_real[orbital_i, orbital_j] = index_orbital * 8 + 0
309
+ index_for_matrix_block_imag[orbital_i, orbital_j] = index_orbital * 8 + 1
310
+ index_for_matrix_block_real[atom_num_orbital[i] + orbital_i, atom_num_orbital[j] + orbital_j] = index_orbital * 8 + 2
311
+ index_for_matrix_block_imag[atom_num_orbital[i] + orbital_i, atom_num_orbital[j] + orbital_j] = index_orbital * 8 + 3
312
+ index_for_matrix_block_real[orbital_i, atom_num_orbital[j] + orbital_j] = index_orbital * 8 + 4
313
+ index_for_matrix_block_imag[orbital_i, atom_num_orbital[j] + orbital_j] = index_orbital * 8 + 5
314
+ index_for_matrix_block_real[atom_num_orbital[i] + orbital_i, orbital_j] = index_orbital * 8 + 6
315
+ index_for_matrix_block_imag[atom_num_orbital[i] + orbital_i, orbital_j] = index_orbital * 8 + 7
316
+ assert torch.all(index_for_matrix_block_real != -1), 'json string "orbital" should be complete for Hamiltonian grad'
317
+ if kernel.spinful:
318
+ assert torch.all(index_for_matrix_block_imag != -1), 'json string "orbital" should be complete for Hamiltonian grad'
319
+
320
+ index_for_matrix_block_real_dict[numbers_pair] = index_for_matrix_block_real
321
+ if kernel.spinful:
322
+ index_for_matrix_block_imag_dict[numbers_pair] = index_for_matrix_block_imag
323
+ else:
324
+ index_for_matrix_block_real = index_for_matrix_block_real_dict[numbers_pair]
325
+ if kernel.spinful:
326
+ index_for_matrix_block_imag = index_for_matrix_block_imag_dict[numbers_pair]
327
+
328
+ if not kernel.spinful:
329
+ rh_dict[key_tensor] = output[index][index_for_matrix_block_real]
330
+ else:
331
+ rh_dict[key_tensor] = output[index][index_for_matrix_block_real] + 1j * output[index][index_for_matrix_block_imag]
332
+
333
+ sys.stdout = sys.stdout.terminal
334
+ sys.stderr = sys.stderr.terminal
335
+
336
+ print("=> Hamiltonian has been predicted, calculate the grad...")
337
+ for key_tensor, rotated_hamiltonian in tqdm.tqdm(rh_dict.items()):
338
+ atom_i = key_tensor[3]
339
+ atom_j = key_tensor[4]
340
+ assert atom_i >= 0
341
+ assert atom_i < num_atom
342
+ assert atom_j >= 0
343
+ assert atom_j < num_atom
344
+ key_str = str(list([key_tensor[0].item(), key_tensor[1].item(), key_tensor[2].item(), atom_i.item() + 1, atom_j.item() + 1]))
345
+ assert key_str in fid_rc, f'Can not found the key "{key_str}" in rc.h5'
346
+ # rotation_matrix = torch.tensor(fid_rc[key_str], dtype=torch_dtype_real, device=kernel.device).T
347
+ rotation_matrix = fid_rc[key_str].T
348
+ hamiltonian = rotate_kernel.rotate_openmx_H(rotated_hamiltonian, rotation_matrix, orbital_types[atom_i], orbital_types[atom_j])
349
+ hamiltonians_pred[key_str] = hamiltonian.detach().cpu()
350
+ assert kernel.spinful is False # 检查soc时是否正确
351
+ assert len(hamiltonian.shape) == 2
352
+ dim_1, dim_2 = hamiltonian.shape[:]
353
+ assert key_str not in hamiltonians_grad_pred
354
+ if not kernel.spinful:
355
+ hamiltonians_grad_pred[key_str] = np.full((dim_1, dim_2, num_atom, 3), np.nan)
356
+ else:
357
+ hamiltonians_grad_pred[key_str] = np.full((2 * dim_1, 2 * dim_2, num_atom, 3), np.nan + 1j * np.nan)
358
+
359
+ write_ham_h5(hamiltonians_pred, path=os.path.join(output_dir, 'hamiltonians_pred.h5'))
360
+ write_ham_h5(hamiltonians_grad_pred, path=os.path.join(output_dir, 'hamiltonians_grad_pred.h5'))
361
+ with open(os.path.join(output_dir, "info.json"), 'w') as info_f:
362
+ json.dump({
363
+ "isspinful": predict_spinful
364
+ }, info_f)
365
+ fid_rc.close()
1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/inference/restore_blocks.jl ADDED
@@ -0,0 +1,115 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ using JSON
2
+ using LinearAlgebra
3
+ using DelimitedFiles
4
+ using HDF5
5
+ using ArgParse
6
+
7
+
8
+ function parse_commandline()
9
+ s = ArgParseSettings()
10
+ @add_arg_table! s begin
11
+ "--input_dir", "-i"
12
+ help = "path of block_without_restoration, element.dat, site_positions.dat, orbital_types.dat, and info.json"
13
+ arg_type = String
14
+ default = "./"
15
+ "--output_dir", "-o"
16
+ help = "path of output rh_pred.h5"
17
+ arg_type = String
18
+ default = "./"
19
+ end
20
+ return parse_args(s)
21
+ end
22
+ parsed_args = parse_commandline()
23
+
24
+
25
+ function _create_dict_h5(filename::String)
26
+ fid = h5open(filename, "r")
27
+ T = eltype(fid[keys(fid)[1]])
28
+ d_out = Dict{Array{Int64,1}, Array{T, 2}}()
29
+ for key in keys(fid)
30
+ data = read(fid[key])
31
+ nk = map(x -> parse(Int64, convert(String, x)), split(key[2 : length(key) - 1], ','))
32
+ d_out[nk] = permutedims(data)
33
+ end
34
+ close(fid)
35
+ return d_out
36
+ end
37
+
38
+
39
+ if isfile(joinpath(parsed_args["input_dir"],"info.json"))
40
+ spinful = JSON.parsefile(joinpath(parsed_args["input_dir"],"info.json"))["isspinful"]
41
+ else
42
+ spinful = false
43
+ end
44
+
45
+ spinful = JSON.parsefile(joinpath(parsed_args["input_dir"],"info.json"))["isspinful"]
46
+ numbers = readdlm(joinpath(parsed_args["input_dir"], "element.dat"), Int64)
47
+ lattice = readdlm(joinpath(parsed_args["input_dir"], "lat.dat"))
48
+ inv_lattice = inv(lattice)
49
+ site_positions = readdlm(joinpath(parsed_args["input_dir"], "site_positions.dat"))
50
+ nsites = size(site_positions, 2)
51
+ orbital_types_f = open(joinpath(parsed_args["input_dir"], "orbital_types.dat"), "r")
52
+ site_norbits = zeros(nsites)
53
+ orbital_types = Vector{Vector{Int64}}()
54
+ for index_site = 1:nsites
55
+ orbital_type = parse.(Int64, split(readline(orbital_types_f)))
56
+ push!(orbital_types, orbital_type)
57
+ end
58
+ site_norbits = (x->sum(x .* 2 .+ 1)).(orbital_types) * (1 + spinful)
59
+ atom_num_orbital = (x->sum(x .* 2 .+ 1)).(orbital_types)
60
+
61
+ fid = h5open(joinpath(parsed_args["input_dir"], "block_without_restoration", "block_without_restoration.h5"), "r")
62
+ num_model = read(fid["num_model"])
63
+ T_pytorch = eltype(fid["output_0"])
64
+ if spinful
65
+ T_Hamiltonian = Complex{T_pytorch}
66
+ else
67
+ T_Hamiltonian = T_pytorch
68
+ end
69
+ hoppings_pred = Dict{Array{Int64,1}, Array{T_Hamiltonian, 2}}()
70
+ println("Found $num_model models, spinful:$spinful")
71
+ edge_attr = read(fid["edge_attr"])
72
+ edge_index = read(fid["edge_index"])
73
+ for index_model in 0:(num_model-1)
74
+ output = read(fid["output_$index_model"])
75
+ orbital = JSON.parsefile(joinpath(parsed_args["input_dir"], "block_without_restoration", "orbital_$index_model.json"))
76
+ orbital = convert(Vector{Dict{String, Vector{Int}}}, orbital)
77
+ for index in 1:size(edge_index, 1)
78
+ R = Int.(round.(inv_lattice * edge_attr[5:7, index] - inv_lattice * edge_attr[8:10, index]))
79
+ i = edge_index[index, 1] + 1
80
+ j = edge_index[index, 2] + 1
81
+ key_term = cat(R, i, j, dims=1)
82
+ for (index_orbital, orbital_dict) in enumerate(orbital)
83
+ atomic_number_pair = "$(numbers[i]) $(numbers[j])"
84
+ if !(atomic_number_pair ∈ keys(orbital_dict))
85
+ continue
86
+ end
87
+ orbital_i, orbital_j = orbital_dict[atomic_number_pair]
88
+ orbital_i += 1
89
+ orbital_j += 1
90
+
91
+ if !(key_term ∈ keys(hoppings_pred))
92
+ if spinful
93
+ hoppings_pred[key_term] = fill(NaN + NaN * im, 2 * atom_num_orbital[i], 2 * atom_num_orbital[j])
94
+ else
95
+ hoppings_pred[key_term] = fill(NaN, atom_num_orbital[i], atom_num_orbital[j])
96
+ end
97
+ end
98
+ if spinful
99
+ hoppings_pred[key_term][orbital_i, orbital_j] = output[index_orbital * 8 - 7, index] + output[index_orbital * 8 - 6, index] * im
100
+ hoppings_pred[key_term][atom_num_orbital[i] + orbital_i, atom_num_orbital[j] + orbital_j] = output[index_orbital * 8 - 5, index] + output[index_orbital * 8 - 4, index] * im
101
+ hoppings_pred[key_term][orbital_i, atom_num_orbital[j] + orbital_j] = output[index_orbital * 8 - 3, index] + output[index_orbital * 8 - 2, index] * im
102
+ hoppings_pred[key_term][atom_num_orbital[i] + orbital_i, orbital_j] = output[index_orbital * 8 - 1, index] + output[index_orbital * 8, index] * im
103
+ else
104
+ hoppings_pred[key_term][orbital_i, orbital_j] = output[index_orbital, index]
105
+ end
106
+ end
107
+ end
108
+ end
109
+ close(fid)
110
+
111
+ h5open(joinpath(parsed_args["output_dir"], "rh_pred.h5"), "w") do fid
112
+ for (key, rh_pred) in hoppings_pred
113
+ write(fid, string(key), permutedims(rh_pred))
114
+ end
115
+ end
1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/inference/sparse_calc.jl ADDED
@@ -0,0 +1,412 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ using DelimitedFiles, LinearAlgebra, JSON
2
+ using HDF5
3
+ using ArgParse
4
+ using SparseArrays
5
+ using Pardiso, Arpack, LinearMaps
6
+ using JLD
7
+ # BLAS.set_num_threads(1)
8
+
9
+ const ev2Hartree = 0.036749324533634074
10
+ const Bohr2Ang = 0.529177249
11
+ const default_dtype = Complex{Float64}
12
+
13
+
14
+ function parse_commandline()
15
+ s = ArgParseSettings()
16
+ @add_arg_table! s begin
17
+ "--input_dir", "-i"
18
+ help = "path of rlat.dat, orbital_types.dat, site_positions.dat, hamiltonians_pred.h5, and overlaps.h5"
19
+ arg_type = String
20
+ default = "./"
21
+ "--output_dir", "-o"
22
+ help = "path of output openmx.Band"
23
+ arg_type = String
24
+ default = "./"
25
+ "--config"
26
+ help = "config file in the format of JSON"
27
+ arg_type = String
28
+ "--ill_project"
29
+ help = "projects out the eigenvectors of the overlap matrix that correspond to eigenvalues smaller than ill_threshold"
30
+ arg_type = Bool
31
+ default = true
32
+ "--ill_threshold"
33
+ help = "threshold for ill_project"
34
+ arg_type = Float64
35
+ default = 5e-4
36
+ end
37
+ return parse_args(s)
38
+ end
39
+
40
+
41
+ function _create_dict_h5(filename::String)
42
+ fid = h5open(filename, "r")
43
+ T = eltype(fid[keys(fid)[1]])
44
+ d_out = Dict{Array{Int64,1}, Array{T, 2}}()
45
+ for key in keys(fid)
46
+ data = read(fid[key])
47
+ nk = map(x -> parse(Int64, convert(String, x)), split(key[2 : length(key) - 1], ','))
48
+ d_out[nk] = permutedims(data)
49
+ end
50
+ close(fid)
51
+ return d_out
52
+ end
53
+
54
+
55
+ # The function construct_linear_map below is come from https://discourse.julialang.org/t/smallest-magnitude-eigenvalues-of-the-generalized-eigenvalue-equation-for-a-large-sparse-matrix/75485/11
56
+ function construct_linear_map(H, S)
57
+ ps = MKLPardisoSolver()
58
+ set_matrixtype!(ps, Pardiso.COMPLEX_HERM_INDEF)
59
+ pardisoinit(ps)
60
+ fix_iparm!(ps, :N)
61
+ H_pardiso = get_matrix(ps, H, :N)
62
+ b = rand(ComplexF64, size(H, 1))
63
+ set_phase!(ps, Pardiso.ANALYSIS)
64
+ pardiso(ps, H_pardiso, b)
65
+ set_phase!(ps, Pardiso.NUM_FACT)
66
+ pardiso(ps, H_pardiso, b)
67
+ return (
68
+ LinearMap{ComplexF64}(
69
+ (y, x) -> begin
70
+ set_phase!(ps, Pardiso.SOLVE_ITERATIVE_REFINE)
71
+ pardiso(ps, y, H_pardiso, S * x)
72
+ end,
73
+ size(H, 1);
74
+ ismutating=true
75
+ ),
76
+ ps
77
+ )
78
+ end
79
+
80
+
81
+ function genlist(x)
82
+ return collect(range(x[1], stop = x[2], length = Int64(x[3])))
83
+ end
84
+
85
+
86
+ function k_data2num_ks(kdata::AbstractString)
87
+ return parse(Int64,split(kdata)[1])
88
+ end
89
+
90
+
91
+ function k_data2kpath(kdata::AbstractString)
92
+ return map(x->parse(Float64,x), split(kdata)[2:7])
93
+ end
94
+
95
+
96
+ function std_out_array(a::AbstractArray)
97
+ return string(map(x->string(x," "),a)...)
98
+ end
99
+
100
+
101
+ function constructmeshkpts(nkmesh::Vector{Int64}; offset::Vector{Float64}=[0.0, 0.0, 0.0],
102
+ k1::Vector{Float64}=[0.0, 0.0, 0.0], k2::Vector{Float64}=[1.0, 1.0, 1.0])
103
+ length(nkmesh) == 3 || throw(ArgumentError("nkmesh in wrong size."))
104
+ nkpts = prod(nkmesh)
105
+ kpts = zeros(3, nkpts)
106
+ ik = 1
107
+ for ikx in 1:nkmesh[1], iky in 1:nkmesh[2], ikz in 1:nkmesh[3]
108
+ kpts[:, ik] = [
109
+ (ikx-1)/nkmesh[1]*(k2[1]-k1[1])+k1[1],
110
+ (iky-1)/nkmesh[2]*(k2[2]-k1[2])+k1[2],
111
+ (ikz-1)/nkmesh[3]*(k2[3]-k1[3])+k1[3]
112
+ ]
113
+ ik += 1
114
+ end
115
+ return kpts.+offset
116
+ end
117
+
118
+
119
+ function main()
120
+ parsed_args = parse_commandline()
121
+
122
+ println(parsed_args["config"])
123
+ config = JSON.parsefile(parsed_args["config"])
124
+ calc_job = config["calc_job"]
125
+ ill_project = parsed_args["ill_project"]
126
+ ill_threshold = parsed_args["ill_threshold"]
127
+
128
+ if isfile(joinpath(parsed_args["input_dir"],"info.json"))
129
+ spinful = JSON.parsefile(joinpath(parsed_args["input_dir"],"info.json"))["isspinful"]
130
+ else
131
+ spinful = false
132
+ end
133
+
134
+ site_positions = readdlm(joinpath(parsed_args["input_dir"], "site_positions.dat"))
135
+ nsites = size(site_positions, 2)
136
+
137
+ orbital_types_f = open(joinpath(parsed_args["input_dir"], "orbital_types.dat"), "r")
138
+ site_norbits = zeros(nsites)
139
+ orbital_types = Vector{Vector{Int64}}()
140
+ for index_site = 1:nsites
141
+ orbital_type = parse.(Int64, split(readline(orbital_types_f)))
142
+ push!(orbital_types, orbital_type)
143
+ end
144
+ site_norbits = (x->sum(x .* 2 .+ 1)).(orbital_types) * (1 + spinful)
145
+ norbits = sum(site_norbits)
146
+ site_norbits_cumsum = cumsum(site_norbits)
147
+
148
+ rlat = readdlm(joinpath(parsed_args["input_dir"], "rlat.dat"))
149
+
150
+
151
+ if isfile(joinpath(parsed_args["input_dir"], "sparse_matrix.jld"))
152
+ @info string("read sparse matrix from ", parsed_args["input_dir"], "/sparse_matrix.jld")
153
+ H_R = load(joinpath(parsed_args["input_dir"], "sparse_matrix.jld"), "H_R")
154
+ S_R = load(joinpath(parsed_args["input_dir"], "sparse_matrix.jld"), "S_R")
155
+ else
156
+ @info "read h5"
157
+ begin_time = time()
158
+ hamiltonians_pred = _create_dict_h5(joinpath(parsed_args["input_dir"], "hamiltonians_pred.h5"))
159
+ overlaps = _create_dict_h5(joinpath(parsed_args["input_dir"], "overlaps.h5"))
160
+ println("Time for reading h5: ", time() - begin_time, "s")
161
+
162
+ I_R = Dict{Vector{Int64}, Vector{Int64}}()
163
+ J_R = Dict{Vector{Int64}, Vector{Int64}}()
164
+ H_V_R = Dict{Vector{Int64}, Vector{default_dtype}}()
165
+ S_V_R = Dict{Vector{Int64}, Vector{default_dtype}}()
166
+
167
+ @info "construct sparse matrix in the format of COO"
168
+ begin_time = time()
169
+ for key in collect(keys(hamiltonians_pred))
170
+ hamiltonian_pred = hamiltonians_pred[key]
171
+ if (key ∈ keys(overlaps))
172
+ overlap = overlaps[key]
173
+ if spinful
174
+ overlap = vcat(hcat(overlap,zeros(size(overlap))),hcat(zeros(size(overlap)),overlap)) # the readout overlap matrix only contains the upper-left block # TODO maybe drop the zeros?
175
+ end
176
+ else
177
+ # continue
178
+ overlap = zero(hamiltonian_pred)
179
+ end
180
+ R = key[1:3]; atom_i=key[4]; atom_j=key[5]
181
+
182
+ @assert (site_norbits[atom_i], site_norbits[atom_j]) == size(hamiltonian_pred)
183
+ @assert (site_norbits[atom_i], site_norbits[atom_j]) == size(overlap)
184
+ if !(R ∈ keys(I_R))
185
+ I_R[R] = Vector{Int64}()
186
+ J_R[R] = Vector{Int64}()
187
+ H_V_R[R] = Vector{default_dtype}()
188
+ S_V_R[R] = Vector{default_dtype}()
189
+ end
190
+ for block_matrix_i in 1:site_norbits[atom_i]
191
+ for block_matrix_j in 1:site_norbits[atom_j]
192
+ coo_i = site_norbits_cumsum[atom_i] - site_norbits[atom_i] + block_matrix_i
193
+ coo_j = site_norbits_cumsum[atom_j] - site_norbits[atom_j] + block_matrix_j
194
+ push!(I_R[R], coo_i)
195
+ push!(J_R[R], coo_j)
196
+ push!(H_V_R[R], hamiltonian_pred[block_matrix_i, block_matrix_j])
197
+ push!(S_V_R[R], overlap[block_matrix_i, block_matrix_j])
198
+ end
199
+ end
200
+ end
201
+ println("Time for constructing sparse matrix in the format of COO: ", time() - begin_time, "s")
202
+
203
+ @info "convert sparse matrix to the format of CSC"
204
+ begin_time = time()
205
+ H_R = Dict{Vector{Int64}, SparseMatrixCSC{default_dtype, Int64}}()
206
+ S_R = Dict{Vector{Int64}, SparseMatrixCSC{default_dtype, Int64}}()
207
+
208
+ for R in keys(I_R)
209
+ H_R[R] = sparse(I_R[R], J_R[R], H_V_R[R], norbits, norbits)
210
+ S_R[R] = sparse(I_R[R], J_R[R], S_V_R[R], norbits, norbits)
211
+ end
212
+ println("Time for converting to the format of CSC: ", time() - begin_time, "s")
213
+
214
+ save(joinpath(parsed_args["input_dir"], "sparse_matrix.jld"), "H_R", H_R, "S_R", S_R)
215
+ end
216
+
217
+ if calc_job == "band"
218
+ which_k = config["which_k"] # which k point to calculate, start counting from 1, 0 for all k points
219
+ fermi_level = config["fermi_level"]
220
+ max_iter = config["max_iter"]
221
+ num_band = config["num_band"]
222
+ k_data = config["k_data"]
223
+
224
+ @info "calculate bands"
225
+ num_ks = k_data2num_ks.(k_data)
226
+ kpaths = k_data2kpath.(k_data)
227
+
228
+ egvals = zeros(Float64, num_band, sum(num_ks)[1])
229
+
230
+ begin_time = time()
231
+ idx_k = 1
232
+ for i = 1:size(kpaths, 1)
233
+ kpath = kpaths[i]
234
+ pnkpts = num_ks[i]
235
+ kxs = LinRange(kpath[1], kpath[4], pnkpts)
236
+ kys = LinRange(kpath[2], kpath[5], pnkpts)
237
+ kzs = LinRange(kpath[3], kpath[6], pnkpts)
238
+ for (kx, ky, kz) in zip(kxs, kys, kzs)
239
+ if which_k == 0 || which_k == idx_k
240
+ H_k = spzeros(default_dtype, norbits, norbits)
241
+ S_k = spzeros(default_dtype, norbits, norbits)
242
+ for R in keys(H_R)
243
+ H_k += H_R[R] * exp(im*2π*([kx, ky, kz]⋅R))
244
+ S_k += S_R[R] * exp(im*2π*([kx, ky, kz]⋅R))
245
+ end
246
+ S_k = (S_k + S_k') / 2
247
+ H_k = (H_k + H_k') / 2
248
+ if ill_project
249
+ lm, ps = construct_linear_map(Hermitian(H_k) - (fermi_level) * Hermitian(S_k), Hermitian(S_k))
250
+ println("Time for No.$idx_k matrix factorization: ", time() - begin_time, "s")
251
+ egval_sub_inv, egvec_sub = eigs(lm, nev=num_band, which=:LM, ritzvec=true, maxiter=max_iter)
252
+ set_phase!(ps, Pardiso.RELEASE_ALL)
253
+ pardiso(ps)
254
+ egval_sub = real(1 ./ egval_sub_inv) .+ (fermi_level)
255
+
256
+ # orthogonalize the eigenvectors
257
+ egvec_sub_qr = qr(egvec_sub)
258
+ egvec_sub = convert(Matrix{default_dtype}, egvec_sub_qr.Q)
259
+
260
+ S_k_sub = egvec_sub' * S_k * egvec_sub
261
+ (egval_S, egvec_S) = eigen(Hermitian(S_k_sub))
262
+ # egvec_S: shape (num_basis, num_bands)
263
+ project_index = abs.(egval_S) .> ill_threshold
264
+ if sum(project_index) != length(project_index)
265
+ H_k_sub = egvec_sub' * H_k * egvec_sub
266
+ egvec_S = egvec_S[:, project_index]
267
+ @warn "ill-conditioned eigenvalues detected, projected out $(length(project_index) - sum(project_index)) eigenvalues"
268
+ H_k_sub = egvec_S' * H_k_sub * egvec_S
269
+ S_k_sub = egvec_S' * S_k_sub * egvec_S
270
+ (egval, egvec) = eigen(Hermitian(H_k_sub), Hermitian(S_k_sub))
271
+ egval = vcat(egval, fill(1e4, length(project_index) - sum(project_index)))
272
+ egvec = egvec_S * egvec
273
+ egvec = egvec_sub * egvec
274
+ else
275
+ egval = egval_sub
276
+ end
277
+ else
278
+ lm, ps = construct_linear_map(Hermitian(H_k) - (fermi_level) * Hermitian(S_k), Hermitian(S_k))
279
+ println("Time for No.$idx_k matrix factorization: ", time() - begin_time, "s")
280
+ egval_inv, egvec = eigs(lm, nev=num_band, which=:LM, ritzvec=false, maxiter=max_iter)
281
+ set_phase!(ps, Pardiso.RELEASE_ALL)
282
+ pardiso(ps)
283
+ egval = real(1 ./ egval_inv) .+ (fermi_level)
284
+ # egval = real(eigs(H_k, S_k, nev=num_band, sigma=(fermi_level + lowest_band), which=:LR, ritzvec=false, maxiter=max_iter)[1])
285
+ end
286
+ egvals[:, idx_k] = egval
287
+ if which_k == 0
288
+ # println(egval .- fermi_level)
289
+ else
290
+ open(joinpath(parsed_args["output_dir"], "kpoint.dat"), "w") do f
291
+ writedlm(f, [kx, ky, kz])
292
+ end
293
+ open(joinpath(parsed_args["output_dir"], "egval.dat"), "w") do f
294
+ writedlm(f, egval)
295
+ end
296
+ end
297
+ egvals[:, idx_k] = egval
298
+ println("Time for solving No.$idx_k eigenvalues at k = ", [kx, ky, kz], ": ", time() - begin_time, "s")
299
+ end
300
+ idx_k += 1
301
+ end
302
+ end
303
+
304
+ # output in openmx band format
305
+ f = open(joinpath(parsed_args["output_dir"], "openmx.Band"),"w")
306
+ println(f, num_band, " ", 0, " ", ev2Hartree * fermi_level)
307
+ openmx_rlat = reshape((rlat .* Bohr2Ang), 1, :)
308
+ println(f, std_out_array(openmx_rlat))
309
+ println(f, length(k_data))
310
+ for line in k_data
311
+ println(f,line)
312
+ end
313
+ idx_k = 1
314
+ for i = 1:size(kpaths, 1)
315
+ pnkpts = num_ks[i]
316
+ kstart = kpaths[i][1:3]
317
+ kend = kpaths[i][4:6]
318
+ k_list = zeros(Float64,pnkpts,3)
319
+ for alpha = 1:3
320
+ k_list[:,alpha] = genlist([kstart[alpha],kend[alpha],pnkpts])
321
+ end
322
+ for j = 1:pnkpts
323
+ kvec = k_list[j,:]
324
+ println(f, num_band, " ", std_out_array(kvec))
325
+ println(f, std_out_array(ev2Hartree * egvals[:, idx_k]))
326
+ idx_k += 1
327
+ end
328
+ end
329
+ close(f)
330
+ elseif calc_job == "dos"
331
+ fermi_level = config["fermi_level"]
332
+ max_iter = config["max_iter"]
333
+ num_band = config["num_band"]
334
+ nkmesh = convert(Array{Int64,1}, config["kmesh"])
335
+ ks = constructmeshkpts(nkmesh)
336
+ nks = size(ks, 2)
337
+
338
+ egvals = zeros(Float64, num_band, nks)
339
+ begin_time = time()
340
+ for idx_k in 1:nks
341
+ kx, ky, kz = ks[:, idx_k]
342
+
343
+ H_k = spzeros(default_dtype, norbits, norbits)
344
+ S_k = spzeros(default_dtype, norbits, norbits)
345
+ for R in keys(H_R)
346
+ H_k += H_R[R] * exp(im*2π*([kx, ky, kz]⋅R))
347
+ S_k += S_R[R] * exp(im*2π*([kx, ky, kz]⋅R))
348
+ end
349
+ S_k = (S_k + S_k') / 2
350
+ H_k = (H_k + H_k') / 2
351
+ if ill_project
352
+ lm, ps = construct_linear_map(Hermitian(H_k) - (fermi_level) * Hermitian(S_k), Hermitian(S_k))
353
+ println("Time for No.$idx_k matrix factorization: ", time() - begin_time, "s")
354
+ egval_sub_inv, egvec_sub = eigs(lm, nev=num_band, which=:LM, ritzvec=true, maxiter=max_iter)
355
+ set_phase!(ps, Pardiso.RELEASE_ALL)
356
+ pardiso(ps)
357
+ egval_sub = real(1 ./ egval_sub_inv) .+ (fermi_level)
358
+
359
+ # orthogonalize the eigenvectors
360
+ egvec_sub_qr = qr(egvec_sub)
361
+ egvec_sub = convert(Matrix{default_dtype}, egvec_sub_qr.Q)
362
+
363
+ S_k_sub = egvec_sub' * S_k * egvec_sub
364
+ (egval_S, egvec_S) = eigen(Hermitian(S_k_sub))
365
+ # egvec_S: shape (num_basis, num_bands)
366
+ project_index = abs.(egval_S) .> ill_threshold
367
+ if sum(project_index) != length(project_index)
368
+ H_k_sub = egvec_sub' * H_k * egvec_sub
369
+ egvec_S = egvec_S[:, project_index]
370
+ @warn "ill-conditioned eigenvalues detected, projected out $(length(project_index) - sum(project_index)) eigenvalues"
371
+ H_k_sub = egvec_S' * H_k_sub * egvec_S
372
+ S_k_sub = egvec_S' * S_k_sub * egvec_S
373
+ (egval, egvec) = eigen(Hermitian(H_k_sub), Hermitian(S_k_sub))
374
+ egval = vcat(egval, fill(1e4, length(project_index) - sum(project_index)))
375
+ egvec = egvec_S * egvec
376
+ egvec = egvec_sub * egvec
377
+ else
378
+ egval = egval_sub
379
+ end
380
+ else
381
+ lm, ps = construct_linear_map(Hermitian(H_k) - (fermi_level) * Hermitian(S_k), Hermitian(S_k))
382
+ println("Time for No.$idx_k matrix factorization: ", time() - begin_time, "s")
383
+ egval_inv, egvec = eigs(lm, nev=num_band, which=:LM, ritzvec=false, maxiter=max_iter)
384
+ set_phase!(ps, Pardiso.RELEASE_ALL)
385
+ pardiso(ps)
386
+ egval = real(1 ./ egval_inv) .+ (fermi_level)
387
+ # egval = real(eigs(H_k, S_k, nev=num_band, sigma=(fermi_level + lowest_band), which=:LR, ritzvec=false, maxiter=max_iter)[1])
388
+ end
389
+ egvals[:, idx_k] = egval
390
+ println("Time for solving No.$idx_k eigenvalues at k = ", [kx, ky, kz], ": ", time() - begin_time, "s")
391
+ end
392
+
393
+ open(joinpath(parsed_args["output_dir"], "egvals.dat"), "w") do f
394
+ writedlm(f, egvals)
395
+ end
396
+
397
+ ϵ = config["epsilon"]
398
+ ωs = genlist(config["omegas"])
399
+ nωs = length(ωs)
400
+ dos = zeros(nωs)
401
+ factor = 1/((2π)^3*ϵ*√π)
402
+ for idx_k in 1:nks, idx_band in 1:num_band, (idx_ω, ω) in enumerate(ωs)
403
+ dos[idx_ω] += exp(-(egvals[idx_band, idx_k] - ω - fermi_level) ^ 2 / ϵ ^ 2) * factor
404
+ end
405
+ open(joinpath(parsed_args["output_dir"], "dos.dat"), "w") do f
406
+ writedlm(f, [ωs dos])
407
+ end
408
+ end
409
+ end
410
+
411
+
412
+ main()
1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/preprocess/__init__.py ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ from .openmx_parse import OijLoad, GetEEiEij, openmx_parse_overlap
2
+ from .get_rc import get_rc
3
+ from .abacus_get_data import abacus_parse
4
+ from .siesta_get_data import siesta_parse
1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/preprocess/__pycache__/__init__.cpython-312.pyc ADDED
Binary file (394 Bytes). View file
 
1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/preprocess/__pycache__/abacus_get_data.cpython-312.pyc ADDED
Binary file (23 kB). View file
 
1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/preprocess/__pycache__/get_rc.cpython-312.pyc ADDED
Binary file (11.2 kB). View file
 
1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/preprocess/__pycache__/openmx_parse.cpython-312.pyc ADDED
Binary file (31.5 kB). View file
 
1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/preprocess/__pycache__/siesta_get_data.cpython-312.pyc ADDED
Binary file (18.7 kB). View file
 
1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/preprocess/aims_get_data.jl ADDED
@@ -0,0 +1,477 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ using JSON
2
+ using HDF5
3
+ using LinearAlgebra
4
+ using DelimitedFiles
5
+ using StaticArrays
6
+ using ArgParse
7
+
8
+ function parse_commandline()
9
+ s = ArgParseSettings()
10
+ @add_arg_table! s begin
11
+ "--input_dir", "-i"
12
+ help = "NoTB.dat, basis-indices.out, geometry.in"
13
+ arg_type = String
14
+ default = "./"
15
+ "--output_dir", "-o"
16
+ help = ""
17
+ arg_type = String
18
+ default = "./output"
19
+ "--save_overlap", "-s"
20
+ help = ""
21
+ arg_type = Bool
22
+ default = false
23
+ "--save_position", "-p"
24
+ help = ""
25
+ arg_type = Bool
26
+ default = false
27
+ end
28
+ return parse_args(s)
29
+ end
30
+ parsed_args = parse_commandline()
31
+
32
+ input_dir = abspath(parsed_args["input_dir"])
33
+ output_dir = abspath(parsed_args["output_dir"])
34
+
35
+ @assert isfile(joinpath(input_dir, "NoTB.dat"))
36
+ @assert isfile(joinpath(input_dir, "basis-indices.out"))
37
+ @assert isfile(joinpath(input_dir, "geometry.in"))
38
+
39
+ # @info string("get data from: ", input_dir)
40
+ periodic_table = JSON.parsefile(joinpath(@__DIR__, "periodic_table.json"))
41
+ mkpath(output_dir)
42
+
43
+ # The function parse_openmx below is come from "https://github.com/HopTB/HopTB.jl"
44
+ f = open(joinpath(input_dir, "NoTB.dat"))
45
+ # number of basis
46
+ @assert occursin("n_basis", readline(f)) # start
47
+ norbits = parse(Int64, readline(f))
48
+ @assert occursin("end", readline(f)) # end
49
+ @assert occursin("n_ham", readline(f)) # start
50
+ nhams = parse(Int64, readline(f))
51
+ @assert occursin("end", readline(f)) # end
52
+ @assert occursin("n_cell", readline(f)) # start
53
+ ncells = parse(Int64, readline(f))
54
+ @assert occursin("end", readline(f)) # end
55
+ # lattice vector
56
+ @assert occursin("lattice_vector", readline(f)) # start
57
+ lat = Matrix{Float64}(I, 3, 3)
58
+ for i in 1:3
59
+ lat[:, i] = map(x->parse(Float64, x), split(readline(f)))
60
+ end
61
+ @assert occursin("end", readline(f)) # end
62
+ # hamiltonian
63
+ @assert occursin("hamiltonian", readline(f)) # start
64
+ hamiltonian = zeros(nhams)
65
+ i = 1
66
+ while true
67
+ global i
68
+ @assert !eof(f)
69
+ ln = split(readline(f))
70
+ if occursin("end", ln[1]) break end
71
+ hamiltonian[i:i + length(ln) - 1] = map(x->parse(Float64, x), ln)
72
+ i += length(ln)
73
+ end
74
+ # overlaps
75
+ @assert occursin("overlap", readline(f)) # start
76
+ overlaps = zeros(nhams)
77
+ i = 1
78
+ while true
79
+ global i
80
+ @assert !eof(f)
81
+ ln = split(readline(f))
82
+ if occursin("end", ln[1]) break end
83
+ overlaps[i:i + length(ln) - 1] = map(x->parse(Float64, x), ln)
84
+ i += length(ln)
85
+ end
86
+ # index hamiltonian
87
+ @assert occursin("index_hamiltonian", readline(f)) # start
88
+ indexhamiltonian = zeros(Int64, ncells * norbits, 4)
89
+ i = 1
90
+ while true
91
+ global i
92
+ @assert !eof(f)
93
+ ln = split(readline(f))
94
+ if occursin("end", ln[1]) break end
95
+ indexhamiltonian[i, :] = map(x->parse(Int64, x), ln)
96
+ i += 1
97
+ end
98
+ # cell index
99
+ @assert occursin("cell_index", readline(f)) # start
100
+ cellindex = zeros(Int64, ncells, 3)
101
+ i = 1
102
+ while true
103
+ global i
104
+ @assert !eof(f)
105
+ ln = split(readline(f))
106
+ if occursin("end", ln[1]) break end
107
+ if i <= ncells
108
+ cellindex[i, :] = map(x->parse(Int64, x), ln)
109
+ end
110
+ i += 1
111
+ end
112
+ # column index hamiltonian
113
+ @assert occursin("column_index_hamiltonian", readline(f)) # start
114
+ columnindexhamiltonian = zeros(Int64, nhams)
115
+ i = 1
116
+ while true
117
+ global i
118
+ @assert !eof(f)
119
+ ln = split(readline(f))
120
+ if occursin("end", ln[1]) break end
121
+ columnindexhamiltonian[i:i + length(ln) - 1] = map(x->parse(Int64, x), ln)
122
+ i += length(ln)
123
+ end
124
+ # positions
125
+ positions = zeros(nhams, 3)
126
+ for dir in 1:3
127
+ positionsdir = zeros(nhams)
128
+ @assert occursin("position", readline(f)) # start
129
+ readline(f) # skip direction
130
+ i = 1
131
+ while true
132
+ @assert !eof(f)
133
+ ln = split(readline(f))
134
+ if occursin("end", ln[1]) break end
135
+ positionsdir[i:i + length(ln) - 1] = map(x->parse(Float64, x), ln)
136
+ i += length(ln)
137
+ end
138
+ positions[:, dir] = positionsdir
139
+ end
140
+ if !eof(f)
141
+ spinful = true
142
+ soc_matrix = zeros(nhams, 3)
143
+ for dir in 1:3
144
+ socdir = zeros(nhams)
145
+ @assert occursin("soc_matrix", readline(f)) # start
146
+ readline(f) # skip direction
147
+ i = 1
148
+ while true
149
+ @assert !eof(f)
150
+ ln = split(readline(f))
151
+ if occursin("end", ln[1]) break end
152
+ socdir[i:i + length(ln) - 1] = map(x->parse(Float64, x), ln)
153
+ i += length(ln)
154
+ end
155
+ soc_matrix[:, dir] = socdir
156
+ end
157
+ else
158
+ spinful = false
159
+ end
160
+ close(f)
161
+
162
+ orbital_types = Array{Array{Int64,1},1}(undef, 0)
163
+ basis_dir = joinpath(input_dir, "basis-indices.out")
164
+ @assert ispath(basis_dir)
165
+ f = open(basis_dir)
166
+ readline(f)
167
+ @assert split(readline(f))[1] == "fn."
168
+ basis_indices = zeros(Int64, norbits, 4)
169
+ for index_orbit in 1:norbits
170
+ line = map(x->parse(Int64, x), split(readline(f))[[1, 3, 4, 5, 6]])
171
+ @assert line[1] == index_orbit
172
+ basis_indices[index_orbit, :] = line[2:5]
173
+ # basis_indices: 1 ia, 2 n, 3 l, 4 m
174
+ if size(orbital_types, 1) < line[2]
175
+ orbital_type = Array{Int64,1}(undef, 0)
176
+ push!(orbital_types, orbital_type)
177
+ end
178
+ if line[4] == line[5]
179
+ push!(orbital_types[line[2]], line[4])
180
+ end
181
+ end
182
+ nsites = size(orbital_types, 1)
183
+ site_norbits = (x->sum(x .* 2 .+ 1)).(orbital_types) * (1 + spinful)
184
+ @assert norbits == sum(site_norbits)
185
+ site_norbits_cumsum = cumsum(site_norbits)
186
+ site_indices = zeros(Int64, norbits)
187
+ for index_site in 1:nsites
188
+ if index_site == 1
189
+ site_indices[1:site_norbits_cumsum[index_site]] .= index_site
190
+ else
191
+ site_indices[site_norbits_cumsum[index_site - 1] + 1:site_norbits_cumsum[index_site]] .= index_site
192
+ end
193
+ end
194
+ close(f)
195
+
196
+ f = open(joinpath(input_dir, "geometry.in"))
197
+ # atom_frac_pos = zeros(Float64, 3, nsites)
198
+ element = Array{Int64,1}(undef, 0)
199
+ index_atom = 0
200
+ while !eof(f)
201
+ line = split(readline(f))
202
+ if size(line, 1) > 0 && line[1] == "atom_frac"
203
+ global index_atom
204
+ index_atom += 1
205
+ # atom_frac_pos[:, index_atom] = map(x->parse(Float64, x), line[[2, 3, 4]])
206
+ push!(element, periodic_table[line[5]]["Atomic no"])
207
+ end
208
+ end
209
+ @assert index_atom == nsites
210
+ # site_positions = lat * atom_frac_pos
211
+ close(f)
212
+
213
+ @info string("spinful: ", spinful)
214
+ # write to file
215
+ site_positions = fill(NaN, (3, nsites))
216
+ overlaps_dict = Dict{Array{Int64, 1}, Array{Float64, 2}}()
217
+ positions_dict = Dict{Array{Int64, 1}, Array{Float64, 2}}()
218
+ R_list = Set{Vector{Int64}}()
219
+ if spinful
220
+ hamiltonians_dict = Dict{Array{Int64, 1}, Array{Complex{Float64}, 2}}()
221
+ @error "spinful not implemented yet"
222
+ σx = [0 1; 1 0]
223
+ σy = [0 -im; im 0]
224
+ σz = [1 0; 0 -1]
225
+ σ0 = [1 0; 0 1]
226
+ nm = TBModel{ComplexF64}(2*norbits, lat, isorthogonal=false)
227
+ # convention here is first half up (spin=0); second half down (spin=1).
228
+ for i in 1:size(indexhamiltonian, 1)
229
+ for j in indexhamiltonian[i, 3]:indexhamiltonian[i, 4]
230
+ for nspin in 0:1
231
+ for mspin in 0:1
232
+ sethopping!(nm,
233
+ cellindex[indexhamiltonian[i, 1], :],
234
+ columnindexhamiltonian[j] + norbits * nspin,
235
+ indexhamiltonian[i, 2] + norbits * mspin,
236
+ σ0[nspin + 1, mspin + 1] * hamiltonian[j] -
237
+ (σx[nspin + 1, mspin + 1] * soc_matrix[j, 1] +
238
+ σy[nspin + 1, mspin + 1] * soc_matrix[j, 2] +
239
+ σz[nspin + 1, mspin + 1] * soc_matrix[j, 3]) * im)
240
+ setoverlap!(nm,
241
+ cellindex[indexhamiltonian[i, 1], :],
242
+ columnindexhamiltonian[j] + norbits * nspin,
243
+ indexhamiltonian[i, 2] + norbits * mspin,
244
+ σ0[nspin + 1, mspin + 1] * overlaps[j])
245
+ end
246
+ end
247
+ end
248
+ end
249
+ for i in 1:size(indexhamiltonian, 1)
250
+ for j in indexhamiltonian[i, 3]:indexhamiltonian[i, 4]
251
+ for nspin in 0:1
252
+ for mspin in 0:1
253
+ for dir in 1:3
254
+ setposition!(nm,
255
+ cellindex[indexhamiltonian[i, 1], :],
256
+ columnindexhamiltonian[j] + norbits * nspin,
257
+ indexhamiltonian[i, 2] + norbits * mspin,
258
+ dir,
259
+ σ0[nspin + 1, mspin + 1] * positions[j, dir])
260
+ end
261
+ end
262
+ end
263
+ end
264
+ end
265
+ return nm
266
+ else
267
+ hamiltonians_dict = Dict{Array{Int64, 1}, Array{Float64, 2}}()
268
+
269
+ for i in 1:size(indexhamiltonian, 1)
270
+ for j in indexhamiltonian[i, 3]:indexhamiltonian[i, 4]
271
+ R = cellindex[indexhamiltonian[i, 1], :]
272
+ push!(R_list, SVector{3, Int64}(R))
273
+ orbital_i_whole = columnindexhamiltonian[j]
274
+ orbital_j_whole = indexhamiltonian[i, 2]
275
+ site_i = site_indices[orbital_i_whole]
276
+ site_j = site_indices[orbital_j_whole]
277
+ block_matrix_i = orbital_i_whole - site_norbits_cumsum[site_i] + site_norbits[site_i]
278
+ block_matrix_j = orbital_j_whole - site_norbits_cumsum[site_j] + site_norbits[site_j]
279
+ key = cat(dims=1, R, site_i, site_j)
280
+ key_inv = cat(dims=1, -R, site_j, site_i)
281
+
282
+ mi = 0
283
+ mj = 0
284
+ # p-orbital
285
+ if basis_indices[orbital_i_whole, 3] == 1
286
+ if basis_indices[orbital_i_whole, 4] == -1
287
+ block_matrix_i += 1
288
+ mi = 0
289
+ elseif basis_indices[orbital_i_whole, 4] == 0
290
+ block_matrix_i += 1
291
+ mi = 0
292
+ elseif basis_indices[orbital_i_whole, 4] == 1
293
+ block_matrix_i += -2
294
+ mi = 1
295
+ end
296
+ end
297
+ if basis_indices[orbital_j_whole, 3] == 1
298
+ if basis_indices[orbital_j_whole, 4] == -1
299
+ block_matrix_j += 1
300
+ mj = 0
301
+ elseif basis_indices[orbital_j_whole, 4] == 0
302
+ block_matrix_j += 1
303
+ mj = 0
304
+ elseif basis_indices[orbital_j_whole, 4] == 1
305
+ block_matrix_j += -2
306
+ mj = 1
307
+ end
308
+ end
309
+ # d-orbital
310
+ if basis_indices[orbital_i_whole, 3] == 2
311
+ if basis_indices[orbital_i_whole, 4] == -2
312
+ block_matrix_i += 2
313
+ mi = 0
314
+ elseif basis_indices[orbital_i_whole, 4] == -1
315
+ block_matrix_i += 3
316
+ mi = 0
317
+ elseif basis_indices[orbital_i_whole, 4] == 0
318
+ block_matrix_i += -2
319
+ mi = 0
320
+ elseif basis_indices[orbital_i_whole, 4] == 1
321
+ block_matrix_i += 0
322
+ mi = 1
323
+ elseif basis_indices[orbital_i_whole, 4] == 2
324
+ block_matrix_i += -3
325
+ mi = 0
326
+ end
327
+ end
328
+ if basis_indices[orbital_j_whole, 3] == 2
329
+ if basis_indices[orbital_j_whole, 4] == -2
330
+ block_matrix_j += 2
331
+ mj = 0
332
+ elseif basis_indices[orbital_j_whole, 4] == -1
333
+ block_matrix_j += 3
334
+ mj = 0
335
+ elseif basis_indices[orbital_j_whole, 4] == 0
336
+ block_matrix_j += -2
337
+ mj = 0
338
+ elseif basis_indices[orbital_j_whole, 4] == 1
339
+ block_matrix_j += 0
340
+ mj = 1
341
+ elseif basis_indices[orbital_j_whole, 4] == 2
342
+ block_matrix_j += -3
343
+ mj = 0
344
+ end
345
+ end
346
+ # f-orbital
347
+ if basis_indices[orbital_i_whole, 3] == 3
348
+ if basis_indices[orbital_i_whole, 4] == -3
349
+ block_matrix_i += 6
350
+ mi = 0
351
+ elseif basis_indices[orbital_i_whole, 4] == -2
352
+ block_matrix_i += 3
353
+ mi = 0
354
+ elseif basis_indices[orbital_i_whole, 4] == -1
355
+ block_matrix_i += 0
356
+ mi = 0
357
+ elseif basis_indices[orbital_i_whole, 4] == 0
358
+ block_matrix_i += -3
359
+ mi = 0
360
+ elseif basis_indices[orbital_i_whole, 4] == 1
361
+ block_matrix_i += -3
362
+ mi = 1
363
+ elseif basis_indices[orbital_i_whole, 4] == 2
364
+ block_matrix_i += -2
365
+ mi = 0
366
+ elseif basis_indices[orbital_i_whole, 4] == 3
367
+ block_matrix_i += -1
368
+ mi = 1
369
+ end
370
+ end
371
+ if basis_indices[orbital_j_whole, 3] == 3
372
+ if basis_indices[orbital_j_whole, 4] == -3
373
+ block_matrix_j += 6
374
+ mj = 0
375
+ elseif basis_indices[orbital_j_whole, 4] == -2
376
+ block_matrix_j += 3
377
+ mj = 0
378
+ elseif basis_indices[orbital_j_whole, 4] == -1
379
+ block_matrix_j += 0
380
+ mj = 0
381
+ elseif basis_indices[orbital_j_whole, 4] == 0
382
+ block_matrix_j += -3
383
+ mj = 0
384
+ elseif basis_indices[orbital_j_whole, 4] == 1
385
+ block_matrix_j += -3
386
+ mj = 1
387
+ elseif basis_indices[orbital_j_whole, 4] == 2
388
+ block_matrix_j += -2
389
+ mj = 0
390
+ elseif basis_indices[orbital_j_whole, 4] == 3
391
+ block_matrix_j += -1
392
+ mj = 1
393
+ end
394
+ end
395
+ if (basis_indices[orbital_i_whole, 3] > 3) || (basis_indices[orbital_j_whole, 3] > 3)
396
+ @error("The case of l>3 is not implemented")
397
+ end
398
+
399
+ if !(key ∈ keys(hamiltonians_dict))
400
+ # overlaps_dict[key] = fill(convert(Float64, NaN), (site_norbits[site_i], site_norbits[site_j]))
401
+ overlaps_dict[key] = zeros(Float64, site_norbits[site_i], site_norbits[site_j])
402
+ hamiltonians_dict[key] = zeros(Float64, site_norbits[site_i], site_norbits[site_j])
403
+ for direction in 1:3
404
+ positions_dict[cat(dims=1, key, direction)] = zeros(Float64, site_norbits[site_i], site_norbits[site_j])
405
+ end
406
+ end
407
+ if !(key_inv ∈ keys(hamiltonians_dict))
408
+ overlaps_dict[key_inv] = zeros(Float64, site_norbits[site_j], site_norbits[site_i])
409
+ hamiltonians_dict[key_inv] = zeros(Float64, site_norbits[site_j], site_norbits[site_i])
410
+ for direction in 1:3
411
+ positions_dict[cat(dims=1, key_inv, direction)] = zeros(Float64, site_norbits[site_j], site_norbits[site_i])
412
+ end
413
+ end
414
+ overlaps_dict[key][block_matrix_i, block_matrix_j] = overlaps[j] * (-1) ^ (mi + mj)
415
+ hamiltonians_dict[key][block_matrix_i, block_matrix_j] = hamiltonian[j] * (-1) ^ (mi + mj)
416
+ for direction in 1:3
417
+ positions_dict[cat(dims=1, key, direction)][block_matrix_i, block_matrix_j] = positions[j, direction] * (-1) ^ (mi + mj)
418
+ end
419
+
420
+ overlaps_dict[key_inv][block_matrix_j, block_matrix_i] = overlaps[j] * (-1) ^ (mi + mj)
421
+ hamiltonians_dict[key_inv][block_matrix_j, block_matrix_i] = hamiltonian[j] * (-1) ^ (mi + mj)
422
+ for direction in 1:3
423
+ positions_dict[cat(dims=1, key_inv, direction)][block_matrix_j, block_matrix_i] = positions[j, direction] * (-1) ^ (mi + mj)
424
+ if (R == [0, 0, 0]) && (block_matrix_i == block_matrix_j) && isnan(site_positions[direction, site_i])
425
+ site_positions[direction, site_i] = positions[j, direction]
426
+ end
427
+ end
428
+ end
429
+ end
430
+ end
431
+
432
+ if parsed_args["save_overlap"]
433
+ h5open(joinpath(output_dir, "overlaps.h5"), "w") do fid
434
+ for (key, overlap) in overlaps_dict
435
+ write(fid, string(key), permutedims(overlap))
436
+ end
437
+ end
438
+ end
439
+ h5open(joinpath(output_dir, "hamiltonians.h5"), "w") do fid
440
+ for (key, hamiltonian) in hamiltonians_dict
441
+ write(fid, string(key), permutedims(hamiltonian)) # npz似乎为julia专门做了个转置而h5没有做
442
+ end
443
+ end
444
+ if parsed_args["save_position"]
445
+ h5open(joinpath(output_dir, "positions.h5"), "w") do fid
446
+ for (key, position) in positions_dict
447
+ write(fid, string(key), permutedims(position)) # npz似乎为julia专门做了个转置而h5没有做
448
+ end
449
+ end
450
+ end
451
+
452
+ open(joinpath(output_dir, "orbital_types.dat"), "w") do f
453
+ writedlm(f, orbital_types)
454
+ end
455
+ open(joinpath(output_dir, "lat.dat"), "w") do f
456
+ writedlm(f, lat)
457
+ end
458
+ rlat = 2pi * inv(lat)'
459
+ open(joinpath(output_dir, "rlat.dat"), "w") do f
460
+ writedlm(f, rlat)
461
+ end
462
+ open(joinpath(output_dir, "site_positions.dat"), "w") do f
463
+ writedlm(f, site_positions)
464
+ end
465
+ R_list = collect(R_list)
466
+ open(joinpath(output_dir, "R_list.dat"), "w") do f
467
+ writedlm(f, R_list)
468
+ end
469
+ info_dict = Dict(
470
+ "isspinful" => spinful
471
+ )
472
+ open(joinpath(output_dir, "info.json"), "w") do f
473
+ write(f, json(info_dict, 4))
474
+ end
475
+ open(joinpath(output_dir, "element.dat"), "w") do f
476
+ writedlm(f, element)
477
+ end
1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/preprocess/get_rc.py ADDED
@@ -0,0 +1,165 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ import json
3
+
4
+ import h5py
5
+ import numpy as np
6
+ import torch
7
+
8
+
9
+ class Neighbours:
10
+ def __init__(self):
11
+ self.Rs = []
12
+ self.dists = []
13
+ self.eijs = []
14
+ self.indices = []
15
+
16
+ def __str__(self):
17
+ return 'Rs: {}\ndists: {}\neijs: {}\nindices: {}'.format(
18
+ self.Rs, self.dists, self.indices, self.eijs)
19
+
20
+
21
+ def _get_local_coordinate(eij, neighbours_i, gen_rc_idx=False, atom_j=None, atom_j_R=None, r2_rand=False):
22
+ if gen_rc_idx:
23
+ rc_idx = np.full(8, np.nan, dtype=np.int32)
24
+ assert r2_rand is False
25
+ assert atom_j is not None, 'atom_j must be specified when gen_rc_idx is True'
26
+ assert atom_j_R is not None, 'atom_j_R must be specified when gen_rc_idx is True'
27
+ else:
28
+ rc_idx = None
29
+ if r2_rand:
30
+ r2_list = []
31
+
32
+ if not np.allclose(eij.detach(), torch.zeros_like(eij)):
33
+ r1 = eij
34
+ if gen_rc_idx:
35
+ rc_idx[0] = atom_j
36
+ rc_idx[1:4] = atom_j_R
37
+ else:
38
+ r1 = neighbours_i.eijs[1]
39
+ if gen_rc_idx:
40
+ rc_idx[0] = neighbours_i.indices[1]
41
+ rc_idx[1:4] = neighbours_i.Rs[1]
42
+ r2_flag = None
43
+ for r2, r2_index, r2_R in zip(neighbours_i.eijs[1:], neighbours_i.indices[1:], neighbours_i.Rs[1:]):
44
+ if torch.norm(torch.cross(r1, r2)) > 1e-6:
45
+ if gen_rc_idx:
46
+ rc_idx[4] = r2_index
47
+ rc_idx[5:8] = r2_R
48
+ r2_flag = True
49
+ if r2_rand:
50
+ if (len(r2_list) == 0) or (torch.norm(r2_list[0]) + 0.5 > torch.norm(r2)):
51
+ r2_list.append(r2)
52
+ else:
53
+ break
54
+ else:
55
+ break
56
+ assert r2_flag is not None, "There is no linear independent chemical bond in the Rcut range, this may be caused by a too small Rcut or the structure is 1D"
57
+ if r2_rand:
58
+ # print(f"r2 is randomly chosen from {len(r2_list)} candidates")
59
+ r2 = r2_list[np.random.randint(len(r2_list))]
60
+ local_coordinate_1 = r1 / torch.norm(r1)
61
+ local_coordinate_2 = torch.cross(r1, r2) / torch.norm(torch.cross(r1, r2))
62
+ local_coordinate_3 = torch.cross(local_coordinate_1, local_coordinate_2)
63
+ return torch.stack([local_coordinate_1, local_coordinate_2, local_coordinate_3], dim=-1), rc_idx
64
+
65
+
66
+ def get_rc(input_dir, output_dir, radius, r2_rand=False, gen_rc_idx=False, gen_rc_by_idx="", create_from_DFT=True, neighbour_file='overlaps.h5', if_require_grad=False, cart_coords=None):
67
+ if not if_require_grad:
68
+ assert os.path.exists(os.path.join(input_dir, 'site_positions.dat')), 'No site_positions.dat found in {}'.format(input_dir)
69
+ cart_coords = torch.tensor(np.loadtxt(os.path.join(input_dir, 'site_positions.dat')).T)
70
+ else:
71
+ assert cart_coords is not None, 'cart_coords must be provided if "if_require_grad" is True'
72
+ assert os.path.exists(os.path.join(input_dir, 'lat.dat')), 'No lat.dat found in {}'.format(input_dir)
73
+ lattice = torch.tensor(np.loadtxt(os.path.join(input_dir, 'lat.dat')).T, dtype=cart_coords.dtype)
74
+
75
+ rc_dict = {}
76
+ if gen_rc_idx:
77
+ assert r2_rand is False, 'r2_rand must be False when gen_rc_idx is True'
78
+ assert gen_rc_by_idx == "", 'gen_rc_by_idx must be "" when gen_rc_idx is True'
79
+ rc_idx_dict = {}
80
+ neighbours_dict = {}
81
+ if gen_rc_by_idx != "":
82
+ # print(f'get local coordinate using {os.path.join(gen_rc_by_idx, "rc_idx.h5")} from: {input_dir}')
83
+ assert os.path.exists(os.path.join(gen_rc_by_idx, "rc_idx.h5")), 'Atomic indices for constructing rc rc_idx.h5 is not found in {}'.format(gen_rc_by_idx)
84
+ fid_rc_idx = h5py.File(os.path.join(gen_rc_by_idx, "rc_idx.h5"), 'r')
85
+ for key_str, rc_idx in fid_rc_idx.items():
86
+ key = json.loads(key_str)
87
+ # R = torch.tensor([key[0], key[1], key[2]])
88
+ atom_i = key[3] - 1
89
+ cart_coords_i = cart_coords[atom_i]
90
+
91
+ r1 = cart_coords[rc_idx[0]] + torch.tensor(rc_idx[1:4]).type(cart_coords.dtype) @ lattice - cart_coords_i
92
+ r2 = cart_coords[rc_idx[4]] + torch.tensor(rc_idx[5:8]).type(cart_coords.dtype) @ lattice - cart_coords_i
93
+ local_coordinate_1 = r1 / torch.norm(r1)
94
+ local_coordinate_2 = torch.cross(r1, r2) / torch.norm(torch.cross(r1, r2))
95
+ local_coordinate_3 = torch.cross(local_coordinate_1, local_coordinate_2)
96
+
97
+ rc_dict[key_str] = torch.stack([local_coordinate_1, local_coordinate_2, local_coordinate_3], dim=-1)
98
+ fid_rc_idx.close()
99
+ else:
100
+ # print("get local coordinate from:", input_dir)
101
+ if create_from_DFT:
102
+ assert os.path.exists(os.path.join(input_dir, neighbour_file)), 'No {} found in {}'.format(neighbour_file, input_dir)
103
+ fid_OLP = h5py.File(os.path.join(input_dir, neighbour_file), 'r')
104
+ for key_str in fid_OLP.keys():
105
+ key = json.loads(key_str)
106
+ R = torch.tensor([key[0], key[1], key[2]])
107
+ atom_i = key[3] - 1
108
+ atom_j = key[4] - 1
109
+ cart_coords_i = cart_coords[atom_i]
110
+ cart_coords_j = cart_coords[atom_j] + R.type(cart_coords.dtype) @ lattice
111
+ eij = cart_coords_j - cart_coords_i
112
+ dist = torch.norm(eij)
113
+ if radius > 0 and dist > radius:
114
+ continue
115
+ if atom_i not in neighbours_dict:
116
+ neighbours_dict[atom_i] = Neighbours()
117
+ neighbours_dict[atom_i].Rs.append(R)
118
+ neighbours_dict[atom_i].dists.append(dist)
119
+ neighbours_dict[atom_i].eijs.append(eij)
120
+ neighbours_dict[atom_i].indices.append(atom_j)
121
+
122
+ for atom_i, neighbours_i in neighbours_dict.items():
123
+ neighbours_i.Rs = torch.stack(neighbours_i.Rs)
124
+ neighbours_i.dists = torch.tensor(neighbours_i.dists, dtype=cart_coords.dtype)
125
+ neighbours_i.eijs = torch.stack(neighbours_i.eijs)
126
+ neighbours_i.indices = torch.tensor(neighbours_i.indices)
127
+
128
+ neighbours_i.dists, sorted_index = torch.sort(neighbours_i.dists)
129
+ neighbours_i.Rs = neighbours_i.Rs[sorted_index]
130
+ neighbours_i.eijs = neighbours_i.eijs[sorted_index]
131
+ neighbours_i.indices = neighbours_i.indices[sorted_index]
132
+
133
+ assert np.allclose(neighbours_i.eijs[0].detach(), torch.zeros_like(neighbours_i.eijs[0])), 'eijs[0] should be zero'
134
+
135
+ for R, eij, atom_j, atom_j_R in zip(neighbours_i.Rs, neighbours_i.eijs, neighbours_i.indices, neighbours_i.Rs):
136
+ key_str = str(list([*R.tolist(), atom_i + 1, atom_j.item() + 1]))
137
+ if gen_rc_idx:
138
+ rc_dict[key_str], rc_idx_dict[key_str] = _get_local_coordinate(eij, neighbours_i, gen_rc_idx, atom_j, atom_j_R)
139
+ else:
140
+ rc_dict[key_str] = _get_local_coordinate(eij, neighbours_i, r2_rand=r2_rand)[0]
141
+ else:
142
+ raise NotImplementedError
143
+
144
+ if create_from_DFT:
145
+ fid_OLP.close()
146
+
147
+ if if_require_grad:
148
+ return rc_dict
149
+ else:
150
+ if os.path.exists(os.path.join(output_dir, 'rc_julia.h5')):
151
+ rc_old_flag = True
152
+ fid_rc_old = h5py.File(os.path.join(output_dir, 'rc_julia.h5'), 'r')
153
+ else:
154
+ rc_old_flag = False
155
+ fid_rc = h5py.File(os.path.join(output_dir, 'rc.h5'), 'w')
156
+ for k, v in rc_dict.items():
157
+ if rc_old_flag:
158
+ assert np.allclose(v, fid_rc_old[k][...], atol=1e-4), f"{k}, {v}, {fid_rc_old[k][...]}"
159
+ fid_rc[k] = v
160
+ fid_rc.close()
161
+ if gen_rc_idx:
162
+ fid_rc_idx = h5py.File(os.path.join(output_dir, 'rc_idx.h5'), 'w')
163
+ for k, v in rc_idx_dict.items():
164
+ fid_rc_idx[k] = v
165
+ fid_rc_idx.close()
1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/preprocess/openmx_get_data.jl ADDED
@@ -0,0 +1,471 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ using StaticArrays
2
+ using LinearAlgebra
3
+ using HDF5
4
+ using JSON
5
+ using DelimitedFiles
6
+ using Statistics
7
+ using ArgParse
8
+
9
+ function parse_commandline()
10
+ s = ArgParseSettings()
11
+ @add_arg_table! s begin
12
+ "--input_dir", "-i"
13
+ help = ""
14
+ arg_type = String
15
+ default = "./"
16
+ "--output_dir", "-o"
17
+ help = ""
18
+ arg_type = String
19
+ default = "./output"
20
+ "--if_DM", "-d"
21
+ help = ""
22
+ arg_type = Bool
23
+ default = false
24
+ "--save_overlap", "-s"
25
+ help = ""
26
+ arg_type = Bool
27
+ default = false
28
+ end
29
+ return parse_args(s)
30
+ end
31
+ parsed_args = parse_commandline()
32
+
33
+ # @info string("get data from: ", parsed_args["input_dir"])
34
+ periodic_table = JSON.parsefile(joinpath(@__DIR__, "periodic_table.json"))
35
+
36
+ #=
37
+ struct Site_list
38
+ R::Array{StaticArrays.SArray{Tuple{3},Int16,1,3},1}
39
+ site::Array{Int64,1}
40
+ pos::Array{Float64,2}
41
+ end
42
+
43
+ function _cal_neighbour_site(e_ij::Array{Float64,2},Rcut::Float64)
44
+ r_ij = sum(dims=1,e_ij.^2)[1,:]
45
+ p = sortperm(r_ij)
46
+ j_cut = searchsorted(r_ij[p],Rcut^2).stop
47
+ return p[1:j_cut]
48
+ end
49
+
50
+ function cal_neighbour_site(site_positions::Matrix{<:Real}, lat::Matrix{<:Real}, R_list::Union{Vector{SVector{3, Int64}}, Vector{Vector{Int64}}}, nsites::Int64, Rcut::Float64)
51
+ # writed by lihe
52
+ neighbour_site = Array{Site_list,1}([])
53
+ # R_list = collect(keys(tm.hoppings))
54
+ pos_R_list = map(R -> collect(lat * R), R_list)
55
+ pos_j_list = cat(dims=2, map(pos_R -> pos_R .+ site_positions, pos_R_list)...)
56
+ for site_i in 1:nsites
57
+ pos_i = site_positions[:, site_i]
58
+ e_ij = pos_j_list .- pos_i
59
+ p = _cal_neighbour_site(e_ij, Rcut)
60
+ R_ordered = R_list[map(x -> div(x + (nsites - 1), nsites),p)]
61
+ site_ordered = map(x -> mod(x - 1, nsites) + 1,p)
62
+ pos_ordered = e_ij[:,p]
63
+ @assert pos_ordered[:,1] ≈ [0,0,0]
64
+ push!(neighbour_site, Site_list(R_ordered, site_ordered, pos_ordered))
65
+ end
66
+ return neighbour_site
67
+ end
68
+
69
+ function _get_local_coordinate(e_ij::Array{Float64,1},site_list_i::Site_list)
70
+ if e_ij != [0,0,0]
71
+ r1 = e_ij
72
+ else
73
+ r1 = site_list_i.pos[:,2]
74
+ end
75
+ nsites_i = length(site_list_i.R)
76
+ r2 = [0,0,0]
77
+ for j in 1:nsites_i
78
+ r2 = site_list_i.pos[:,j]
79
+ if norm(cross(r1,r2)) != 0
80
+ break
81
+ end
82
+ if j == nsites_i
83
+ for k in 1:3
84
+ r2 = [[1,0,0],[0,1,0],[0,0,1]][k]
85
+ if norm(cross(r1,r2)) != 0
86
+ break
87
+ end
88
+ end
89
+ end
90
+ end
91
+ if r2 == [0,0,0]
92
+ error("there is no linear independent chemical bond in the Rcut range, this may be caused by a too small Rcut or the structure is1D")
93
+ end
94
+ local_coordinate = zeros(Float64,(3,3))
95
+ local_coordinate[:,1] = r1/norm(r1)
96
+
97
+ local_coordinate[:,2] = cross(r1,r2)/norm(cross(r1,r2))
98
+ local_coordinate[:,3] = cross(local_coordinate[:,1],local_coordinate[:,2])
99
+ return local_coordinate
100
+ end
101
+
102
+ function get_local_coordinates(site_positions::Matrix{<:Real}, lat::Matrix{<:Real}, R_list::Vector{SVector{3, Int64}}, Rcut::Float64)::Dict{Array{Int64,1},Array{Float64,2}}
103
+ nsites = size(site_positions, 2)
104
+ neighbour_site = cal_neighbour_site(site_positions, lat, R_list, nsites, Rcut)
105
+ local_coordinates = Dict{Array{Int64,1},Array{Float64,2}}()
106
+ for site_i = 1:nsites
107
+ site_list_i = neighbour_site[site_i]
108
+ nsites_i = length(site_list_i.R)
109
+ for j = 1:nsites_i
110
+ R = site_list_i.R[j]; site_j = site_list_i.site[j]; e_ij = site_list_i.pos[:,j]
111
+ local_coordinate = _get_local_coordinate(e_ij, site_list_i)
112
+ local_coordinates[cat(dims=1, R, site_i, site_j)] = local_coordinate
113
+ end
114
+ end
115
+ return local_coordinates
116
+ end
117
+ =#
118
+
119
+ # The function parse_openmx below is come from "https://github.com/HopTB/HopTB.jl"
120
+ function parse_openmx(filepath::String; return_DM::Bool = false)
121
+ # define some helper functions for mixed structure of OpenMX binary data file.
122
+ function multiread(::Type{T}, f, size)::Vector{T} where T
123
+ ret = Vector{T}(undef, size)
124
+ read!(f, ret);ret
125
+ end
126
+ multiread(f, size) = multiread(Int32, f, size)
127
+
128
+ function read_mixed_matrix(::Type{T}, f, dims::Vector{<:Integer}) where T
129
+ ret::Vector{Vector{T}} = []
130
+ for i = dims; t = Vector{T}(undef, i);read!(f, t);push!(ret, t); end; ret
131
+ end
132
+
133
+ function read_matrix_in_mixed_matrix(::Type{T}, f, spins, atomnum, FNAN, natn, Total_NumOrbs) where T
134
+ ret = Vector{Vector{Vector{Matrix{T}}}}(undef, spins)
135
+ for spin = 1:spins;t_spin = Vector{Vector{Matrix{T}}}(undef, atomnum)
136
+ for ai = 1:atomnum;t_ai = Vector{Matrix{T}}(undef, FNAN[ai])
137
+ for aj_inner = 1:FNAN[ai]
138
+ t = Matrix{T}(undef, Total_NumOrbs[natn[ai][aj_inner]], Total_NumOrbs[ai])
139
+ read!(f, t);t_ai[aj_inner] = t
140
+ end;t_spin[ai] = t_ai
141
+ end;ret[spin] = t_spin
142
+ end;return ret
143
+ end
144
+ read_matrix_in_mixed_matrix(f, spins, atomnum, FNAN, natn, Total_NumOrbs) = read_matrix_in_mixed_matrix(Float64, f, spins, atomnum, FNAN, natn, Total_NumOrbs)
145
+
146
+ read_3d_vecs(::Type{T}, f, num) where T = reshape(multiread(T, f, 4 * num), 4, Int(num))[2:4,:]
147
+ read_3d_vecs(f, num) = read_3d_vecs(Float64, f, num)
148
+ # End of helper functions
149
+
150
+ bound_multiread(T, size) = multiread(T, f, size)
151
+ bound_multiread(size) = multiread(f, size)
152
+ bound_read_mixed_matrix() = read_mixed_matrix(Int32, f, FNAN)
153
+ bound_read_matrix_in_mixed_matrix(spins) = read_matrix_in_mixed_matrix(f, spins, atomnum, FNAN, natn, Total_NumOrbs)
154
+ bound_read_3d_vecs(num) = read_3d_vecs(f, num)
155
+ bound_read_3d_vecs(::Type{T}, num) where T = read_3d_vecs(T, f, num)
156
+ # End of bound helper functions
157
+
158
+ f = open(filepath)
159
+ atomnum, SpinP_switch, Catomnum, Latomnum, Ratomnum, TCpyCell, order_max = bound_multiread(7)
160
+ @assert (SpinP_switch >> 2) == 3 "DeepH-pack only supports OpenMX v3.9. Please check your OpenMX version"
161
+ SpinP_switch &= 0x03
162
+
163
+ atv, atv_ijk = bound_read_3d_vecs.([Float64,Int32], TCpyCell + 1)
164
+
165
+ Total_NumOrbs, FNAN = bound_multiread.([atomnum,atomnum])
166
+ FNAN .+= 1
167
+ natn = bound_read_mixed_matrix()
168
+ ncn = ((x)->x .+ 1).(bound_read_mixed_matrix()) # These is to fix that atv and atv_ijk starts from 0 in original C code.
169
+
170
+ tv, rtv, Gxyz = bound_read_3d_vecs.([3,3,atomnum])
171
+
172
+ Hk = bound_read_matrix_in_mixed_matrix(SpinP_switch + 1)
173
+ iHk = SpinP_switch == 3 ? bound_read_matrix_in_mixed_matrix(3) : nothing
174
+ OLP = bound_read_matrix_in_mixed_matrix(1)[1]
175
+ OLP_r = []
176
+ for dir in 1:3, order in 1:order_max
177
+ t = bound_read_matrix_in_mixed_matrix(1)[1]
178
+ if order == 1 push!(OLP_r, t) end
179
+ end
180
+ OLP_p = bound_read_matrix_in_mixed_matrix(3)
181
+ DM = bound_read_matrix_in_mixed_matrix(SpinP_switch + 1)
182
+ iDM = bound_read_matrix_in_mixed_matrix(2)
183
+ solver = bound_multiread(1)[1]
184
+ chem_p, E_temp = bound_multiread(Float64, 2)
185
+ dipole_moment_core, dipole_moment_background = bound_multiread.(Float64, [3,3])
186
+ Valence_Electrons, Total_SpinS = bound_multiread(Float64, 2)
187
+ dummy_blocks = bound_multiread(1)[1]
188
+ for i in 1:dummy_blocks
189
+ bound_multiread(UInt8, 256)
190
+ end
191
+
192
+ # we suppose that the original output file(.out) was appended to the end of the scfout file.
193
+ function strip1(s::Vector{UInt8})
194
+ startpos = 0
195
+ for i = 1:length(s) + 1
196
+ if i > length(s) || s[i] & 0x80 != 0 || !isspace(Char(s[i] & 0x7f))
197
+ startpos = i
198
+ break
199
+ end
200
+ end
201
+ return s[startpos:end]
202
+ end
203
+ function startswith1(s::Vector{UInt8}, prefix::Vector{UInt8})
204
+ return length(s) >= length(prefix) && s[1:length(prefix)] == prefix
205
+ end
206
+ function isnum(s::Char)
207
+ if s >= '1' && s <= '9'
208
+ return true
209
+ else
210
+ return false
211
+ end
212
+ end
213
+
214
+ function isorb(s::Char)
215
+ if s in ['s','p','d','f']
216
+ return true
217
+ else
218
+ return false
219
+ end
220
+ end
221
+
222
+ function orbital_types_str2num(str::AbstractString)
223
+ orbs = split(str, isnum, keepempty = false)
224
+ nums = map(x->parse(Int, x), split(str, isorb, keepempty = false))
225
+ orb2l = Dict("s" => 0, "p" => 1, "d" => 2, "f" => 3)
226
+ @assert length(orbs) == length(nums)
227
+ orbital_types = Array{Int64,1}(undef, 0)
228
+ for (orb, num) in zip(orbs, nums)
229
+ for i = 1:num
230
+ push!(orbital_types, orb2l[orb])
231
+ end
232
+ end
233
+ return orbital_types
234
+ end
235
+
236
+ function find_target_line(target_line::String)
237
+ target_line_UInt8 = Vector{UInt8}(target_line)
238
+ while !startswith1(strip1(Vector{UInt8}(readline(f))), target_line_UInt8)
239
+ if eof(f)
240
+ error(string(target_line, "not found. Please check if the .out file was appended to the end of .scfout file!"))
241
+ end
242
+ end
243
+ end
244
+
245
+ # @info """get orbital setting of element:orbital_types_element::Dict{String,Array{Int64,1}} "element" => orbital_types"""
246
+ find_target_line("<Definition.of.Atomic.Species")
247
+ orbital_types_element = Dict{String,Array{Int64,1}}([])
248
+ while true
249
+ str = readline(f)
250
+ if str == "Definition.of.Atomic.Species>"
251
+ break
252
+ end
253
+ element = split(str)[1]
254
+ orbital_types_str = split(split(str)[2], "-")[2]
255
+ orbital_types_element[element] = orbital_types_str2num(orbital_types_str)
256
+ end
257
+
258
+
259
+ # @info "get Chemical potential (Hartree)"
260
+ find_target_line("(see also PRB 72, 045121(2005) for the energy contributions)")
261
+ readline(f)
262
+ readline(f)
263
+ readline(f)
264
+ str = split(readline(f))
265
+ @assert "Chemical" == str[1]
266
+ @assert "potential" == str[2]
267
+ @assert "(Hartree)" == str[3]
268
+ ev2Hartree = 0.036749324533634074
269
+ fermi_level = parse(Float64, str[length(str)])/ev2Hartree
270
+
271
+ # @info "get Chemical potential (Hartree)"
272
+ # find_target_line("Eigenvalues (Hartree)")
273
+ # for i = 1:2;@assert readline(f) == "***********************************************************";end
274
+ # readline(f)
275
+ # str = split(readline(f))
276
+ # ev2Hartree = 0.036749324533634074
277
+ # fermi_level = parse(Float64, str[length(str)])/ev2Hartree
278
+
279
+
280
+ # @info "get Fractional coordinates & orbital types:"
281
+ find_target_line("Fractional coordinates of the final structure")
282
+ target_line = Vector{UInt8}("Fractional coordinates of the final structure")
283
+ for i = 1:2;@assert readline(f) == "***********************************************************";end
284
+ @assert readline(f) == ""
285
+ orbital_types = Array{Array{Int64,1},1}(undef, 0) #orbital_types
286
+ element = Array{Int64,1}(undef, 0) #orbital_types
287
+ atom_frac_pos = zeros(3, atomnum) #Fractional coordinates
288
+ for i = 1:atomnum
289
+ str = readline(f)
290
+ element_str = split(str)[2]
291
+ push!(orbital_types, orbital_types_element[element_str])
292
+ m = match(r"^\s*\d+\s+\w+\s+([0-9+-.Ee]+)\s+([0-9+-.Ee]+)\s+([0-9+-.Ee]+)", str)
293
+ push!(element, periodic_table[element_str]["Atomic no"])
294
+ atom_frac_pos[:,i] = ((x)->parse(Float64, x)).(m.captures)
295
+ end
296
+ atom_pos = tv * atom_frac_pos
297
+ close(f)
298
+
299
+ # use the atom_pos to fix
300
+ # TODO: Persuade wangc to accept the following code, which seems hopeless and meaningless.
301
+ """
302
+ for axis = 1:3
303
+ ((x2, y2, z)->((x, y)->x .+= z * y).(x2, y2)).(OLP_r[axis], OLP, atom_pos[axis,:])
304
+ end
305
+ """
306
+ for axis in 1:3,i in 1:atomnum, j in 1:FNAN[i]
307
+ OLP_r[axis][i][j] .+= atom_pos[axis,i] * OLP[i][j]
308
+ end
309
+
310
+ # fix type mismatch
311
+ atv_ijk = Matrix{Int64}(atv_ijk)
312
+
313
+ if return_DM
314
+ return element, atomnum, SpinP_switch, atv, atv_ijk, Total_NumOrbs, FNAN, natn, ncn, tv, Hk, iHk, OLP, OLP_r, orbital_types, fermi_level, atom_pos, DM
315
+ else
316
+ return element, atomnum, SpinP_switch, atv, atv_ijk, Total_NumOrbs, FNAN, natn, ncn, tv, Hk, iHk, OLP, OLP_r, orbital_types, fermi_level, atom_pos, nothing
317
+ end
318
+ end
319
+
320
+ function get_data(filepath_scfout::String, Rcut::Float64; if_DM::Bool = false)
321
+ element, nsites, SpinP_switch, atv, atv_ijk, Total_NumOrbs, FNAN, natn, ncn, lat, Hk, iHk, OLP, OLP_r, orbital_types, fermi_level, site_positions, DM = parse_openmx(filepath_scfout; return_DM=if_DM)
322
+
323
+ for t in [Hk, iHk]
324
+ if t != nothing
325
+ ((x)->((y)->((z)->z .*= 27.2113845).(y)).(x)).(t) # Hartree to eV
326
+ end
327
+ end
328
+ site_positions .*= 0.529177249 # Bohr to Ang
329
+ lat .*= 0.529177249 # Bohr to Ang
330
+
331
+ # get R_list
332
+ R_list = Set{Vector{Int64}}()
333
+ for atom_i in 1:nsites, index_nn_i in 1:FNAN[atom_i]
334
+ atom_j = natn[atom_i][index_nn_i]
335
+ R = atv_ijk[:, ncn[atom_i][index_nn_i]]
336
+ push!(R_list, SVector{3, Int64}(R))
337
+ end
338
+ R_list = collect(R_list)
339
+
340
+ # get neighbour_site
341
+ nsites = size(site_positions, 2)
342
+ # neighbour_site = cal_neighbour_site(site_positions, lat, R_list, nsites, Rcut)
343
+ # local_coordinates = Dict{Array{Int64, 1}, Array{Float64, 2}}()
344
+
345
+ # process hamiltonian
346
+ norbits = sum(Total_NumOrbs)
347
+ overlaps = Dict{Array{Int64, 1}, Array{Float64, 2}}()
348
+ if SpinP_switch == 0
349
+ spinful = false
350
+ hamiltonians = Dict{Array{Int64, 1}, Array{Float64, 2}}()
351
+ if if_DM
352
+ density_matrixs = Dict{Array{Int64, 1}, Array{Float64, 2}}()
353
+ else
354
+ density_matrixs = nothing
355
+ end
356
+ elseif SpinP_switch == 1
357
+ error("Collinear spin is not supported currently")
358
+ elseif SpinP_switch == 3
359
+ @assert if_DM == false
360
+ density_matrixs = nothing
361
+ spinful = true
362
+ for i in 1:length(Hk[4]),j in 1:length(Hk[4][i])
363
+ Hk[4][i][j] += iHk[3][i][j]
364
+ iHk[3][i][j] = -Hk[4][i][j]
365
+ end
366
+ hamiltonians = Dict{Array{Int64, 1}, Array{Complex{Float64}, 2}}()
367
+ else
368
+ error("SpinP_switch is $SpinP_switch, rather than valid values 0, 1 or 3")
369
+ end
370
+
371
+ for site_i in 1:nsites, index_nn_i in 1:FNAN[site_i]
372
+ site_j = natn[site_i][index_nn_i]
373
+ R = atv_ijk[:, ncn[site_i][index_nn_i]]
374
+ e_ij = lat * R + site_positions[:, site_j] - site_positions[:, site_i]
375
+ # if norm(e_ij) > Rcut
376
+ # continue
377
+ # end
378
+ key = cat(dims=1, R, site_i, site_j)
379
+ # site_list_i = neighbour_site[site_i]
380
+ # local_coordinate = _get_local_coordinate(e_ij, site_list_i)
381
+ # local_coordinates[key] = local_coordinate
382
+
383
+ overlap = permutedims(OLP[site_i][index_nn_i])
384
+ overlaps[key] = overlap
385
+ if SpinP_switch == 0
386
+ hamiltonian = permutedims(Hk[1][site_i][index_nn_i])
387
+ hamiltonians[key] = hamiltonian
388
+ if if_DM
389
+ density_matrix = permutedims(DM[1][site_i][index_nn_i])
390
+ density_matrixs[key] = density_matrix
391
+ end
392
+ elseif SpinP_switch == 1
393
+ error("Collinear spin is not supported currently")
394
+ elseif SpinP_switch == 3
395
+ key_inv = cat(dims=1, -R, site_j, site_i)
396
+
397
+ len_i_wo_spin = Total_NumOrbs[site_i]
398
+ len_j_wo_spin = Total_NumOrbs[site_j]
399
+
400
+ if !(key in keys(hamiltonians))
401
+ @assert !(key_inv in keys(hamiltonians))
402
+ hamiltonians[key] = zeros(Complex{Float64}, len_i_wo_spin * 2, len_j_wo_spin * 2)
403
+ hamiltonians[key_inv] = zeros(Complex{Float64}, len_j_wo_spin * 2, len_i_wo_spin * 2)
404
+ end
405
+ for spini in 0:1,spinj in spini:1
406
+ Hk_real, Hk_imag = spini == 0 ? spinj == 0 ? (Hk[1][site_i][index_nn_i], iHk[1][site_i][index_nn_i]) : (Hk[3][site_i][index_nn_i], Hk[4][site_i][index_nn_i]) : spinj == 0 ? (Hk[3][site_i][index_nn_i], iHk[3][site_i][index_nn_i]) : (Hk[2][site_i][index_nn_i], iHk[2][site_i][index_nn_i])
407
+ hamiltonians[key][spini * len_i_wo_spin + 1 : (spini + 1) * len_i_wo_spin, spinj * len_j_wo_spin + 1 : (spinj + 1) * len_j_wo_spin] = permutedims(Hk_real) + im * permutedims(Hk_imag)
408
+ if spini == 0 && spinj == 1
409
+ hamiltonians[key_inv][1 * len_j_wo_spin + 1 : (1 + 1) * len_j_wo_spin, 0 * len_i_wo_spin + 1 : (0 + 1) * len_i_wo_spin] = (permutedims(Hk_real) + im * permutedims(Hk_imag))'
410
+ end
411
+ end
412
+ else
413
+ error("SpinP_switch is $SpinP_switch, rather than valid values 0, 1 or 3")
414
+ end
415
+ end
416
+
417
+ return element, overlaps, density_matrixs, hamiltonians, fermi_level, orbital_types, lat, site_positions, spinful, R_list
418
+ end
419
+
420
+ parsed_args["input_dir"] = abspath(parsed_args["input_dir"])
421
+ mkpath(parsed_args["output_dir"])
422
+ cd(parsed_args["output_dir"])
423
+
424
+ element, overlaps, density_matrixs, hamiltonians, fermi_level, orbital_types, lat, site_positions, spinful, R_list = get_data(joinpath(parsed_args["input_dir"], "openmx.scfout"), -1.0; if_DM=parsed_args["if_DM"])
425
+
426
+ if parsed_args["if_DM"]
427
+ h5open("density_matrixs.h5", "w") do fid
428
+ for (key, density_matrix) in density_matrixs
429
+ write(fid, string(key), permutedims(density_matrix))
430
+ end
431
+ end
432
+ end
433
+ if parsed_args["save_overlap"]
434
+ h5open("overlaps.h5", "w") do fid
435
+ for (key, overlap) in overlaps
436
+ write(fid, string(key), permutedims(overlap))
437
+ end
438
+ end
439
+ end
440
+ h5open("hamiltonians.h5", "w") do fid
441
+ for (key, hamiltonian) in hamiltonians
442
+ write(fid, string(key), permutedims(hamiltonian))
443
+ end
444
+ end
445
+
446
+ info_dict = Dict(
447
+ "fermi_level" => fermi_level,
448
+ "isspinful" => spinful
449
+ )
450
+ open("info.json", "w") do f
451
+ write(f, json(info_dict, 4))
452
+ end
453
+ open("site_positions.dat", "w") do f
454
+ writedlm(f, site_positions)
455
+ end
456
+ open("R_list.dat", "w") do f
457
+ writedlm(f, R_list)
458
+ end
459
+ open("lat.dat", "w") do f
460
+ writedlm(f, lat)
461
+ end
462
+ rlat = 2pi * inv(lat)'
463
+ open("rlat.dat", "w") do f
464
+ writedlm(f, rlat)
465
+ end
466
+ open("orbital_types.dat", "w") do f
467
+ writedlm(f, orbital_types)
468
+ end
469
+ open("element.dat", "w") do f
470
+ writedlm(f, element)
471
+ end
1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/preprocess/openmx_parse.py ADDED
@@ -0,0 +1,425 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ import json
3
+ from math import pi
4
+
5
+ import tqdm
6
+ import argparse
7
+ import h5py
8
+ import numpy as np
9
+ from pymatgen.core.structure import Structure
10
+
11
+ from .abacus_get_data import periodic_table
12
+
13
+ Hartree2Ev = 27.2113845
14
+ Ev2Kcalmol = 23.061
15
+ Bohr2R = 0.529177249
16
+
17
+
18
+ def openmx_force_intferface(out_file_dir, save_dir=None, return_Etot=False, return_force=False):
19
+ with open(out_file_dir, 'r') as out_file:
20
+ lines = out_file.readlines()
21
+ for index_line, line in enumerate(lines):
22
+ if line.find('Total energy (Hartree) at MD = 1') != -1:
23
+ assert lines[index_line + 3].find("Uele.") != -1
24
+ assert lines[index_line + 5].find("Ukin.") != -1
25
+ assert lines[index_line + 7].find("UH1.") != -1
26
+ assert lines[index_line + 8].find("Una.") != -1
27
+ assert lines[index_line + 9].find("Unl.") != -1
28
+ assert lines[index_line + 10].find("Uxc0.") != -1
29
+ assert lines[index_line + 20].find("Utot.") != -1
30
+ parse_E = lambda x: float(x.split()[-1])
31
+ E_tot = parse_E(lines[index_line + 20]) * Hartree2Ev
32
+ E_kin = parse_E(lines[index_line + 5]) * Hartree2Ev
33
+ E_delta_ee = parse_E(lines[index_line + 7]) * Hartree2Ev
34
+ E_NA = parse_E(lines[index_line + 8]) * Hartree2Ev
35
+ E_NL = parse_E(lines[index_line + 9]) * Hartree2Ev
36
+ E_xc = parse_E(lines[index_line + 10]) * 2 * Hartree2Ev
37
+ if save_dir is not None:
38
+ with open(os.path.join(save_dir, "openmx_E.json"), 'w') as E_file:
39
+ json.dump({
40
+ "Total energy": E_tot,
41
+ "E_kin": E_kin,
42
+ "E_delta_ee": E_delta_ee,
43
+ "E_NA": E_NA,
44
+ "E_NL": E_NL,
45
+ "E_xc": E_xc
46
+ }, E_file)
47
+ if line.find('xyz-coordinates (Ang) and forces (Hartree/Bohr)') != -1:
48
+ assert lines[index_line + 4].find("<coordinates.forces") != -1
49
+ num_atom = int(lines[index_line + 5])
50
+ forces = np.zeros((num_atom, 3))
51
+ for index_atom in range(num_atom):
52
+ forces[index_atom] = list(
53
+ map(lambda x: float(x) * Hartree2Ev / Bohr2R, lines[index_line + 6 + index_atom].split()[-3:]))
54
+ break
55
+ if save_dir is not None:
56
+ np.savetxt(os.path.join(save_dir, "openmx_forces.dat"), forces)
57
+ ret = (E_kin, E_delta_ee, E_NA, E_NL, E_xc)
58
+ if return_Etot is True:
59
+ ret = ret + (E_tot,)
60
+ if return_force is True:
61
+ ret = ret + (forces,)
62
+ return ret
63
+
64
+
65
+ def openmx_parse_overlap(OLP_dir, output_dir):
66
+ assert os.path.exists(os.path.join(OLP_dir, "output", "overlaps_0.h5")), "No overlap files found"
67
+ assert os.path.exists(os.path.join(OLP_dir, "openmx.out")), "openmx.out not found"
68
+
69
+ overlaps = read_non_parallel_hdf5('overlaps', os.path.join(OLP_dir, 'output'))
70
+ assert len(overlaps.keys()) != 0, 'Can not found any overlap file'
71
+ fid = h5py.File(os.path.join(output_dir, 'overlaps.h5'), 'w')
72
+ for key_str, v in overlaps.items():
73
+ fid[key_str] = v
74
+ fid.close()
75
+
76
+ orbital2l = {"s": 0, "p": 1, "d": 2, "f": 3}
77
+ # parse openmx.out
78
+ with open(os.path.join(OLP_dir, "openmx.out"), "r") as f:
79
+ lines = f.readlines()
80
+ orbital_dict = {}
81
+ lattice = np.zeros((3, 3))
82
+ frac_coords = []
83
+ atomic_elements_str = []
84
+ flag_read_orbital = False
85
+ flag_read_lattice = False
86
+ for index_line, line in enumerate(lines):
87
+ if line.find('Definition.of.Atomic.Species>') != -1:
88
+ flag_read_orbital = False
89
+ if flag_read_orbital:
90
+ element = line.split()[0]
91
+ orbital_str = (line.split()[1]).split('-')[-1]
92
+ l_list = []
93
+ assert len(orbital_str) % 2 == 0
94
+ for index_str in range(len(orbital_str) // 2):
95
+ l_list.extend([orbital2l[orbital_str[index_str * 2]]] * int(orbital_str[index_str * 2 + 1]))
96
+ orbital_dict[element] = l_list
97
+ if line.find('<Definition.of.Atomic.Species') != -1:
98
+ flag_read_orbital = True
99
+
100
+ if line.find('Atoms.UnitVectors.Unit') != -1:
101
+ assert line.split()[1] == "Ang", "Unit of lattice vector is not Angstrom"
102
+ assert lines[index_line + 1].find("<Atoms.UnitVectors") != -1
103
+ lattice[0, :] = np.array(list(map(float, lines[index_line + 2].split())))
104
+ lattice[1, :] = np.array(list(map(float, lines[index_line + 3].split())))
105
+ lattice[2, :] = np.array(list(map(float, lines[index_line + 4].split())))
106
+ flag_read_lattice = True
107
+
108
+ if line.find('Fractional coordinates of the final structure') != -1:
109
+ index_atom = 0
110
+ while (index_line + index_atom + 4) < len(lines):
111
+ index_atom += 1
112
+ line_split = lines[index_line + index_atom + 3].split()
113
+ if len(line_split) == 0:
114
+ break
115
+ assert len(line_split) == 5
116
+ assert line_split[0] == str(index_atom)
117
+ atomic_elements_str.append(line_split[1])
118
+ frac_coords.append(np.array(list(map(float, line_split[2:]))))
119
+ print("Found", len(frac_coords), "atoms")
120
+ if flag_read_lattice is False:
121
+ raise RuntimeError("Could not find lattice vector in openmx.out")
122
+ if len(orbital_dict) == 0:
123
+ raise RuntimeError("Could not find orbital information in openmx.out")
124
+ frac_coords = np.array(frac_coords)
125
+ cart_coords = frac_coords @ lattice
126
+
127
+ np.savetxt(os.path.join(output_dir, "site_positions.dat"), cart_coords.T)
128
+ np.savetxt(os.path.join(output_dir, "lat.dat"), lattice.T)
129
+ np.savetxt(os.path.join(output_dir, "rlat.dat"), np.linalg.inv(lattice) * 2 * pi)
130
+ np.savetxt(os.path.join(output_dir, "element.dat"),
131
+ np.array(list(map(lambda x: periodic_table[x], atomic_elements_str))), fmt='%d')
132
+ with open(os.path.join(output_dir, 'orbital_types.dat'), 'w') as orbital_types_f:
133
+ for element_str in atomic_elements_str:
134
+ for index_l, l in enumerate(orbital_dict[element_str]):
135
+ if index_l == 0:
136
+ orbital_types_f.write(str(l))
137
+ else:
138
+ orbital_types_f.write(f" {l}")
139
+ orbital_types_f.write('\n')
140
+
141
+
142
+ def read_non_parallel_hdf5(name, file_dir, num_p=256):
143
+ Os = {}
144
+ for index_p in range(num_p):
145
+ if os.path.exists(os.path.join(file_dir, f"{name}_{index_p}.h5")):
146
+ fid = h5py.File(os.path.join(file_dir, f"{name}_{index_p}.h5"), 'r')
147
+ for key_str, O_nm in fid.items():
148
+ Os[key_str] = O_nm[...]
149
+ assert not os.path.exists(os.path.join(file_dir, f"{name}_{num_p}.h5")), "Increase num_p because some overlap files are missing"
150
+ return Os
151
+
152
+
153
+ def read_hdf5(name, file_dir):
154
+ Os = {}
155
+ fid = h5py.File(os.path.join(file_dir, f"{name}.h5"), 'r')
156
+ for key_str, O_nm in fid.items():
157
+ Os[key_str] = O_nm[...]
158
+ return Os
159
+
160
+
161
+ class OijLoad:
162
+ def __init__(self, output_dir):
163
+ print("get data from:", output_dir)
164
+ self.if_load_scfout = False
165
+ self.output_dir = output_dir
166
+ term_non_parallel_list = ['H', 'T', 'V_xc', 'O_xc', 'O_dVHart', 'O_NA', 'O_NL', 'Rho']
167
+ self.term_h5_dict = {}
168
+ for term in term_non_parallel_list:
169
+ self.term_h5_dict[term] = read_non_parallel_hdf5(term, output_dir)
170
+
171
+ self.term_h5_dict['H_add'] = {}
172
+ for key_str in self.term_h5_dict['T'].keys():
173
+ tmp = np.zeros_like(self.term_h5_dict['T'][key_str])
174
+ for term in ['T', 'V_xc', 'O_dVHart', 'O_NA', 'O_NL']:
175
+ tmp += self.term_h5_dict[term][key_str]
176
+ self.term_h5_dict['H_add'][key_str] = tmp
177
+
178
+ self.dig_term = {}
179
+ for term in ['E_dVHart_a', 'E_xc_pcc']:
180
+ self.dig_term[term] = np.loadtxt(os.path.join(output_dir, f'{term}.dat'))
181
+
182
+ def cal_Eij(self):
183
+ term_list = ["E_kin", "E_NA", "E_NL", "E_delta_ee", "E_xc"]
184
+ self.Eij = {term: {} for term in term_list}
185
+ self.R_list = []
186
+ for key_str in self.term_h5_dict['T'].keys():
187
+ key = json.loads(key_str)
188
+ R = (key[0], key[1], key[2])
189
+ if R not in self.R_list:
190
+ self.R_list.append(R)
191
+ atom_i = key[3] - 1
192
+ atom_j = key[4] - 1
193
+
194
+ self.Eij["E_NA"][key_str] = (self.term_h5_dict["O_NA"][key_str] * self.term_h5_dict["Rho"][key_str]).sum() * 2
195
+ self.Eij["E_NL"][key_str] = (self.term_h5_dict["O_NL"][key_str] * self.term_h5_dict["Rho"][key_str]).sum() * 2
196
+ self.Eij["E_kin"][key_str] = (self.term_h5_dict["T"][key_str] * self.term_h5_dict["Rho"][key_str]).sum() * 2
197
+ self.Eij["E_delta_ee"][key_str] = (self.term_h5_dict["O_dVHart"][key_str] * self.term_h5_dict["Rho"][key_str]).sum()
198
+ self.Eij["E_xc"][key_str] = (self.term_h5_dict["O_xc"][key_str] * self.term_h5_dict["Rho"][key_str]).sum() * 2
199
+ if (atom_i == atom_j) and (R == (0, 0, 0)):
200
+ self.Eij["E_delta_ee"][key_str] -= self.dig_term['E_dVHart_a'][atom_i]
201
+ self.Eij["E_xc"][key_str] += self.dig_term['E_xc_pcc'][atom_i] * 2
202
+
203
+ def load_scfout(self):
204
+ self.if_load_scfout = True
205
+ term_list = ["hamiltonians", "overlaps", "density_matrixs"]
206
+ default_dtype = np.complex128
207
+
208
+ for term in term_list:
209
+ self.term_h5_dict[term] = read_hdf5(term, self.output_dir)
210
+
211
+ site_positions = np.loadtxt(os.path.join(self.output_dir, 'site_positions.dat')).T
212
+ self.lat = np.loadtxt(os.path.join(self.output_dir, 'lat.dat')).T
213
+ self.rlat = np.loadtxt(os.path.join(self.output_dir, 'rlat.dat')).T
214
+ nsites = site_positions.shape[0]
215
+
216
+ self.orbital_types = []
217
+ with open(os.path.join(self.output_dir, 'orbital_types.dat'), 'r') as orbital_types_f:
218
+ for index_site in range(nsites):
219
+ self.orbital_types.append(np.array(list(map(int, orbital_types_f.readline().split()))))
220
+ site_norbits = list(map(lambda x: (2 * x + 1).sum(), self.orbital_types))
221
+ site_norbits_cumsum = np.cumsum(site_norbits)
222
+ norbits = sum(site_norbits)
223
+
224
+ self.term_R_dict = {term: {} for term in self.term_h5_dict.keys()}
225
+ for key_str in tqdm.tqdm(self.term_h5_dict['overlaps'].keys()):
226
+ key = json.loads(key_str)
227
+ R = (key[0], key[1], key[2])
228
+ atom_i = key[3] - 1
229
+ atom_j = key[4] - 1
230
+ if R not in self.term_R_dict['overlaps']:
231
+ for term_R in self.term_R_dict.values():
232
+ term_R[R] = np.zeros((norbits, norbits), dtype=default_dtype)
233
+ matrix_slice_i = slice(site_norbits_cumsum[atom_i] - site_norbits[atom_i], site_norbits_cumsum[atom_i])
234
+ matrix_slice_j = slice(site_norbits_cumsum[atom_j] - site_norbits[atom_j], site_norbits_cumsum[atom_j])
235
+ for term, term_R in self.term_R_dict.items():
236
+ term_R[R][matrix_slice_i, matrix_slice_j] = np.array(self.term_h5_dict[term][key_str]).astype(
237
+ dtype=default_dtype)
238
+
239
+ def get_E_band(self):
240
+ E_band = 0.0
241
+ for R in self.term_R_dict['T'].keys():
242
+ E_band += (self.term_R_dict['density_matrixs'][R] * self.term_R_dict['H_add'][R]).sum()
243
+ return E_band
244
+
245
+ def get_E_band2(self):
246
+ E_band = 0.0
247
+ for R in self.term_R_dict['T'].keys():
248
+ E_band += (self.term_R_dict['density_matrixs'][R] * self.term_R_dict['hamiltonians'][R]).sum()
249
+ return E_band
250
+
251
+ def get_E_band3(self):
252
+ E_band = 0.0
253
+ for R in self.term_R_dict['T'].keys():
254
+ E_band += (self.term_R_dict['density_matrixs'][R] * self.term_R_dict['H'][R]).sum()
255
+ return E_band
256
+
257
+ def sum_Eij(self, term):
258
+ ret = 0.0
259
+ for value in self.Eij[term].values():
260
+ ret += value
261
+ return ret
262
+
263
+ def get_E_NL(self):
264
+ assert self.if_load_scfout == True
265
+ E_NL = 0.0
266
+ for R in self.term_R_dict['T'].keys():
267
+ E_NL += (self.term_R_dict['density_matrixs'][R] * self.term_R_dict['O_NL'][R]).sum()
268
+ return E_NL
269
+
270
+ def save_Vij(self, save_dir):
271
+ for term, h5_file_name in zip(["O_NA", "O_dVHart", "V_xc", "H_add", "Rho"],
272
+ ["V_nas", "V_delta_ees", "V_xcs", "hamiltonians", "density_matrixs"]):
273
+ fid = h5py.File(os.path.join(save_dir, f'{h5_file_name}.h5'), "w")
274
+ for k, v in self.term_h5_dict[term].items():
275
+ fid[k] = v
276
+ fid.close()
277
+
278
+ def get_E5ij(self):
279
+ term_list = ["E_kin", "E_NA", "E_NL", "E_delta_ee", "E_xc"]
280
+ E_dict = {term: 0 for term in term_list}
281
+ E5ij = {}
282
+ for key_str in self.Eij[term_list[0]].keys():
283
+ tmp = 0.0
284
+ for term in term_list:
285
+ v = self.Eij[term][key_str]
286
+ E_dict[term] += v
287
+ tmp += v
288
+ if key_str in E5ij:
289
+ E5ij[key_str] += tmp
290
+ else:
291
+ E5ij[key_str] = tmp
292
+ return E5ij, E_dict
293
+
294
+ def save_Eij(self, save_dir):
295
+ fid_tmp, E_dict = self.get_E5ij()
296
+
297
+ fid = h5py.File(os.path.join(save_dir, f'E_ij.h5'), "w")
298
+ for k, v in fid_tmp.items():
299
+ fid[k] = v
300
+ fid.close()
301
+
302
+ with open(os.path.join(save_dir, "openmx_E_ij_E.json"), 'w') as E_file:
303
+ json.dump({
304
+ "E_kin": E_dict["E_kin"],
305
+ "E_delta_ee": E_dict["E_delta_ee"],
306
+ "E_NA": E_dict["E_NA"],
307
+ "E_NL": E_dict["E_NL"],
308
+ "E_xc": E_dict["E_xc"]
309
+ }, E_file)
310
+
311
+ # return E_dict["E_delta_ee"], E_dict["E_xc"]
312
+ return E_dict["E_kin"], E_dict["E_delta_ee"], E_dict["E_NA"], E_dict["E_NL"], E_dict["E_xc"]
313
+
314
+ def get_E5i(self):
315
+ term_list = ["E_kin", "E_NA", "E_NL", "E_delta_ee", "E_xc"]
316
+ E_dict = {term: 0 for term in term_list}
317
+ E5i = {}
318
+ for key_str in self.Eij[term_list[0]].keys():
319
+ key = json.loads(key_str)
320
+ atom_i_str = str(key[3] - 1)
321
+ tmp = 0.0
322
+ for term in term_list:
323
+ v = self.Eij[term][key_str]
324
+ E_dict[term] += v
325
+ tmp += v
326
+ if atom_i_str in E5i:
327
+ E5i[atom_i_str] += tmp
328
+ else:
329
+ E5i[atom_i_str] = tmp
330
+ return E5i, E_dict
331
+
332
+ def save_Ei(self, save_dir):
333
+ fid_tmp, E_dict = self.get_E5i()
334
+
335
+ fid = h5py.File(os.path.join(save_dir, f'E_i.h5'), "w")
336
+ for k, v in fid_tmp.items():
337
+ fid[k] = v
338
+ fid.close()
339
+ with open(os.path.join(save_dir, "openmx_E_i_E.json"), 'w') as E_file:
340
+ json.dump({
341
+ "E_kin": E_dict["E_kin"],
342
+ "E_delta_ee": E_dict["E_delta_ee"],
343
+ "E_NA": E_dict["E_NA"],
344
+ "E_NL": E_dict["E_NL"],
345
+ "E_xc": E_dict["E_xc"]
346
+ }, E_file)
347
+ return E_dict["E_kin"], E_dict["E_delta_ee"], E_dict["E_NA"], E_dict["E_NL"], E_dict["E_xc"]
348
+
349
+ def get_R_list(self):
350
+ return self.R_list
351
+
352
+
353
+ class GetEEiEij:
354
+ def __init__(self, input_dir):
355
+ self.load_kernel = OijLoad(os.path.join(input_dir, "output"))
356
+ self.E_kin, self.E_delta_ee, self.E_NA, self.E_NL, self.E_xc, self.Etot, self.force = openmx_force_intferface(
357
+ os.path.join(input_dir, "openmx.out"), save_dir=None, return_Etot=True, return_force=True)
358
+ self.load_kernel.cal_Eij()
359
+
360
+ def get_Etot(self):
361
+ # unit: kcal mol^-1
362
+ return self.Etot * Ev2Kcalmol
363
+
364
+ def get_force(self):
365
+ # unit: kcal mol^-1 Angstrom^-1
366
+ return self.force * Ev2Kcalmol
367
+
368
+ def get_E5(self):
369
+ # unit: kcal mol^-1
370
+ return (self.E_kin + self.E_delta_ee + self.E_NA + self.E_NL + self.E_xc) * Ev2Kcalmol
371
+
372
+ def get_E5i(self):
373
+ # unit: kcal mol^-1
374
+ E5i, E_from_i_dict = self.load_kernel.get_E5i()
375
+ assert np.allclose(self.E_kin, E_from_i_dict["E_kin"])
376
+ assert np.allclose(self.E_delta_ee, E_from_i_dict["E_delta_ee"])
377
+ assert np.allclose(self.E_NA, E_from_i_dict["E_NA"])
378
+ assert np.allclose(self.E_NL, E_from_i_dict["E_NL"])
379
+ assert np.allclose(self.E_xc, E_from_i_dict["E_xc"], rtol=1.e-3)
380
+ return {k: v * Ev2Kcalmol for k, v in E5i.items()}
381
+
382
+ def get_E5ij(self):
383
+ # unit: kcal mol^-1
384
+ E5ij, E_from_ij_dict = self.load_kernel.get_E5ij()
385
+ assert np.allclose(self.E_kin, E_from_ij_dict["E_kin"])
386
+ assert np.allclose(self.E_delta_ee, E_from_ij_dict["E_delta_ee"])
387
+ assert np.allclose(self.E_NA, E_from_ij_dict["E_NA"])
388
+ assert np.allclose(self.E_NL, E_from_ij_dict["E_NL"])
389
+ assert np.allclose(self.E_xc, E_from_ij_dict["E_xc"], rtol=1.e-3)
390
+ return {k: v * Ev2Kcalmol for k, v in E5ij.items()}
391
+
392
+
393
+ if __name__ == '__main__':
394
+ parser = argparse.ArgumentParser(description='Predict Hamiltonian')
395
+ parser.add_argument(
396
+ '--input_dir', type=str, default='./',
397
+ help='path of openmx.out, and output'
398
+ )
399
+ parser.add_argument(
400
+ '--output_dir', type=str, default='./',
401
+ help='path of output E_xc_ij.h5, E_delta_ee_ij.h5, site_positions.dat, lat.dat, element.dat, and R_list.dat'
402
+ )
403
+ parser.add_argument('--Ei', action='store_true')
404
+ parser.add_argument('--stru_dir', type=str, default='POSCAR', help='path of structure file')
405
+ args = parser.parse_args()
406
+
407
+ os.makedirs(args.output_dir, exist_ok=True)
408
+ load_kernel = OijLoad(os.path.join(args.input_dir, "output"))
409
+ E_kin, E_delta_ee, E_NA, E_NL, E_xc = openmx_force_intferface(os.path.join(args.input_dir, "openmx.out"), args.output_dir)
410
+ load_kernel.cal_Eij()
411
+ if args.Ei:
412
+ E_kin_from_ij, E_delta_ee_from_ij, E_NA_from_ij, E_NL_from_ij, E_xc_from_ij = load_kernel.save_Ei(args.output_dir)
413
+ else:
414
+ E_kin_from_ij, E_delta_ee_from_ij, E_NA_from_ij, E_NL_from_ij, E_xc_from_ij = load_kernel.save_Eij(args.output_dir)
415
+ assert np.allclose(E_kin, E_kin_from_ij)
416
+ assert np.allclose(E_delta_ee, E_delta_ee_from_ij)
417
+ assert np.allclose(E_NA, E_NA_from_ij)
418
+ assert np.allclose(E_NL, E_NL_from_ij)
419
+ assert np.allclose(E_xc, E_xc_from_ij, rtol=1.e-3)
420
+
421
+ structure = Structure.from_file(args.stru_dir)
422
+ np.savetxt(os.path.join(args.output_dir, "site_positions.dat"), structure.cart_coords.T)
423
+ np.savetxt(os.path.join(args.output_dir, "lat.dat"), structure.lattice.matrix.T)
424
+ np.savetxt(os.path.join(args.output_dir, "element.dat"), structure.atomic_numbers, fmt='%d')
425
+ np.savetxt(os.path.join(args.output_dir, "R_list.dat"), load_kernel.get_R_list(), fmt='%d')
1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/preprocess/preprocess_default.ini ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [basic]
2
+ raw_dir = /your/own/path
3
+ processed_dir = /your/own/path
4
+ target = hamiltonian
5
+ interface = openmx
6
+ multiprocessing = 0
7
+ local_coordinate = True
8
+ get_S = False
9
+
10
+ [interpreter]
11
+ julia_interpreter = julia
12
+
13
+ [graph]
14
+ radius = -1.0
15
+ create_from_DFT = True
16
+ r2_rand = False
17
+
18
+ [magnetic_moment]
19
+ parse_magnetic_moment = False
20
+ magnetic_element = ["Cr", "Mn", "Fe", "Co", "Ni"]
1_data_prepare/data/bands/uc/reconstruction/aohamiltonian/pred_ham_std/src/deeph/preprocess/siesta_get_data.py ADDED
@@ -0,0 +1,336 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ import numpy as np
3
+ from numpy.core.fromnumeric import sort
4
+ import scipy as sp
5
+ import h5py
6
+ import json
7
+ from scipy.io import FortranFile
8
+
9
+ # Transfer SIESTA output to DeepH format
10
+ # DeepH-pack: https://deeph-pack.readthedocs.io/en/latest/index.html
11
+ # Coded by ZC Tang @ Tsinghua Univ. e-mail: az_txycha@126.com
12
+
13
+ def siesta_parse(input_path, output_path):
14
+ input_path = os.path.abspath(input_path)
15
+ output_path = os.path.abspath(output_path)
16
+ os.makedirs(output_path, exist_ok=True)
17
+
18
+ # finds system name
19
+ f_list = os.listdir(input_path)
20
+ for f_name in f_list:
21
+ if f_name[::-1][0:9] == 'XDNI_BRO.':
22
+ system_name = f_name[:-9]
23
+
24
+ with open('{}/{}.STRUCT_OUT'.format(input_path,system_name), 'r') as struct: # structure info from standard output
25
+ lattice = np.empty((3,3))
26
+ for i in range(3):
27
+ line = struct.readline()
28
+ linesplit = line.split()
29
+ lattice[i,:] = linesplit[:]
30
+ np.savetxt('{}/lat.dat'.format(output_path), np.transpose(lattice), fmt='%.18e')
31
+ line = struct.readline()
32
+ linesplit = line.split()
33
+ num_atoms = int(linesplit[0])
34
+ atom_coord = np.empty((num_atoms, 4))
35
+ for i in range(num_atoms):
36
+ line = struct.readline()
37
+ linesplit = line.split()
38
+ atom_coord[i, :] = linesplit[1:]
39
+ np.savetxt('{}/element.dat'.format(output_path), atom_coord[:,0], fmt='%d')
40
+
41
+ atom_coord_cart = np.genfromtxt('{}/{}.XV'.format(input_path,system_name),skip_header = 4)
42
+ atom_coord_cart = atom_coord_cart[:,2:5] * 0.529177249
43
+ np.savetxt('{}/site_positions.dat'.format(output_path), np.transpose(atom_coord_cart))
44
+
45
+ orb_indx = np.genfromtxt('{}/{}.ORB_INDX'.format(input_path,system_name), skip_header=3, skip_footer=17)
46
+ # orb_indx rows: 0 orbital id 1 atom id 2 atom type 3 element symbol
47
+ # 4 orbital id within atom 5 n 6 l
48
+ # 7 m 8 zeta 9 Polarized? 10 orbital symmetry
49
+ # 11 rc(a.u.) 12-14 R 15 equivalent orbital index in uc
50
+
51
+ orb_indx[:,12:15]=orb_indx[:,12:15]
52
+
53
+ with open('{}/R_list.dat'.format(output_path),'w') as R_list_f:
54
+ R_prev = np.empty(3)
55
+ for i in range(len(orb_indx)):
56
+ R = orb_indx[i, 12:15]
57
+ if (R != R_prev).any():
58
+ R_prev = R
59
+ R_list_f.write('{} {} {}\n'.format(int(R[0]), int(R[1]), int(R[2])))
60
+
61
+ ia2Riua = np.empty((0,4)) #DeepH key
62
+ ia = 0
63
+ for i in range(len(orb_indx)):
64
+ if orb_indx[i][1] != ia:
65
+ ia = orb_indx[i][1]
66
+ Riua = np.empty((1,4))
67
+ Riua[0,0:3] = orb_indx[i][12:15]
68
+ iuo = int(orb_indx[i][15])
69
+ iua = int(orb_indx[iuo-1,1])
70
+ Riua[0,3] = int(iua)
71
+ ia2Riua = np.append(ia2Riua, Riua)
72
+ ia2Riua = ia2Riua.reshape(int(len(ia2Riua)/4),4)
73
+
74
+
75
+ #hamiltonians.h5, density_matrixs.h5, overlap.h5
76
+ info = {'nsites' : num_atoms, 'isorthogonal': False, 'isspinful': False, 'norbits': len(orb_indx)}
77
+ with open('{}/info.json'.format(output_path), 'w') as info_f:
78
+ json.dump(info, info_f)
79
+
80
+ a1 = lattice[0, :]
81
+ a2 = lattice[1, :]
82
+ a3 = lattice[2, :]
83
+ b1 = 2 * np.pi * np.cross(a2, a3) / (np.dot(a1, np.cross(a2, a3)))
84
+ b2 = 2 * np.pi * np.cross(a3, a1) / (np.dot(a2, np.cross(a3, a1)))
85
+ b3 = 2 * np.pi * np.cross(a1, a2) / (np.dot(a3, np.cross(a1, a2)))
86
+ rlattice = np.array([b1, b2, b3])
87
+ np.savetxt('{}/rlat.dat'.format(output_path), np.transpose(rlattice), fmt='%.18e')
88
+
89
+ # Cope with orbital type information
90
+ i = 0
91
+ with open('{}/orbital_types.dat'.format(output_path), 'w') as orb_type_f:
92
+ atom_current = 0
93
+ while True: # Loop over atoms in unitcell
94
+ if atom_current != orb_indx[i, 1]:
95
+ if atom_current != 0:
96
+ for j in range(4):
97
+ for _ in range(int(atom_orb_cnt[j]/(2*j+1))):
98
+ orb_type_f.write('{} '.format(j))
99
+ orb_type_f.write('\n')
100
+
101
+ atom_current = int(orb_indx[i, 1])
102
+ atom_orb_cnt = np.array([0,0,0,0]) # number of s, p, d, f orbitals in specific atom
103
+ l = int(orb_indx[i, 6])
104
+ atom_orb_cnt[l] += 1
105
+ i += 1
106
+ if i > len(orb_indx)-1:
107
+ for j in range(4):
108
+ for _ in range(int(atom_orb_cnt[j]/(2*j+1))):
109
+ orb_type_f.write('{} '.format(j))
110
+ orb_type_f.write('\n')
111
+ break
112
+ if orb_indx[i, 0] != orb_indx[i, 15]:
113
+ for j in range(4):
114
+ for _ in range(int(atom_orb_cnt[j]/(2*j+1))):
115
+ orb_type_f.write('{} '.format(j))
116
+ orb_type_f.write('\n')
117
+ break
118
+
119
+ # yields key for *.h5 file
120
+ orb2deephorb = np.zeros((len(orb_indx), 5))
121
+ atom_current = 1
122
+ orb_atom_current = np.empty((0)) # stores orbitals' id in siesta, n, l, m and z, will be reshaped into orb*5
123
+ t = 0
124
+ for i in range(len(orb_indx)):
125
+ orb_atom_current = np.append(orb_atom_current, i)
126
+ orb_atom_current = np.append(orb_atom_current, orb_indx[i,5:9])
127
+ if i != len(orb_indx)-1 :
128
+ if orb_indx[i+1,1] != atom_current:
129
+ orb_atom_current = np.reshape(orb_atom_current,((int(len(orb_atom_current)/5),5)))
130
+ for j in range(len(orb_atom_current)):
131
+ if orb_atom_current[j,2] == 1: #p
132
+ if orb_atom_current[j,3] == -1:
133
+ orb_atom_current[j,3] = 0
134
+ elif orb_atom_current[j,3] == 0:
135
+ orb_atom_current[j,3] = 1
136
+ elif orb_atom_current[j,3] == 1:
137
+ orb_atom_current[j,3] = -1
138
+ if orb_atom_current[j,2] == 2: #d
139
+ if orb_atom_current[j,3] == -2:
140
+ orb_atom_current[j,3] = 0
141
+ elif orb_atom_current[j,3] == -1:
142
+ orb_atom_current[j,3] = 2
143
+ elif orb_atom_current[j,3] == 0:
144
+ orb_atom_current[j,3] = -2
145
+ elif orb_atom_current[j,3] == 1:
146
+ orb_atom_current[j,3] = 1
147
+ elif orb_atom_current[j,3] == 2:
148
+ orb_atom_current[j,3] = -1
149
+ if orb_atom_current[j,2] == 3: #f
150
+ if orb_atom_current[j,3] == -3:
151
+ orb_atom_current[j,3] = 0
152
+ elif orb_atom_current[j,3] == -2:
153
+ orb_atom_current[j,3] = 1
154
+ elif orb_atom_current[j,3] == -1:
155
+ orb_atom_current[j,3] = -1
156
+ elif orb_atom_current[j,3] == 0:
157
+ orb_atom_current[j,3] = 2
158
+ elif orb_atom_current[j,3] == 1:
159
+ orb_atom_current[j,3] = -2
160
+ elif orb_atom_current[j,3] == 2:
161
+ orb_atom_current[j,3] = 3
162
+ elif orb_atom_current[j,3] == 3:
163
+ orb_atom_current[j,3] = -3
164
+ sort_index = np.zeros(len(orb_atom_current))
165
+ for j in range(len(orb_atom_current)):
166
+ sort_index[j] = orb_atom_current[j,3] + 10 * orb_atom_current[j,4] + 100 * orb_atom_current[j,1] + 1000 * orb_atom_current[j,2]
167
+ orb_order = np.argsort(sort_index)
168
+ tmpt = np.empty(len(orb_order))
169
+ for j in range(len(orb_order)):
170
+ tmpt[orb_order[j]] = j
171
+ orb_order = tmpt
172
+ for j in range(len(orb_atom_current)):
173
+ orb2deephorb[t,0:3] = np.round(orb_indx[t,12:15])
174
+ orb2deephorb[t,3] = ia2Riua[int(orb_indx[t,1])-1,3]
175
+ orb2deephorb[t,4] = int(orb_order[j])
176
+ t += 1
177
+ atom_current += 1
178
+ orb_atom_current = np.empty((0))
179
+
180
+ orb_atom_current = np.reshape(orb_atom_current,((int(len(orb_atom_current)/5),5)))
181
+ for j in range(len(orb_atom_current)):
182
+ if orb_atom_current[j,2] == 1:
183
+ if orb_atom_current[j,3] == -1:
184
+ orb_atom_current[j,3] = 0
185
+ elif orb_atom_current[j,3] == 0:
186
+ orb_atom_current[j,3] = 1
187
+ elif orb_atom_current[j,3] == 1:
188
+ orb_atom_current[j,3] = -1
189
+ if orb_atom_current[j,2] == 2:
190
+ if orb_atom_current[j,3] == -2:
191
+ orb_atom_current[j,3] = 0
192
+ elif orb_atom_current[j,3] == -1:
193
+ orb_atom_current[j,3] = 2
194
+ elif orb_atom_current[j,3] == 0:
195
+ orb_atom_current[j,3] = -2
196
+ elif orb_atom_current[j,3] == 1:
197
+ orb_atom_current[j,3] = 1
198
+ elif orb_atom_current[j,3] == 2:
199
+ orb_atom_current[j,3] = -1
200
+ if orb_atom_current[j,2] == 3: #f
201
+ if orb_atom_current[j,3] == -3:
202
+ orb_atom_current[j,3] = 0
203
+ elif orb_atom_current[j,3] == -2:
204
+ orb_atom_current[j,3] = 1
205
+ elif orb_atom_current[j,3] == -1:
206
+ orb_atom_current[j,3] = -1
207
+ elif orb_atom_current[j,3] == 0:
208
+ orb_atom_current[j,3] = 2
209
+ elif orb_atom_current[j,3] == 1:
210
+ orb_atom_current[j,3] = -2
211
+ elif orb_atom_current[j,3] == 2:
212
+ orb_atom_current[j,3] = 3
213
+ elif orb_atom_current[j,3] == 3:
214
+ orb_atom_current[j,3] = -3
215
+ sort_index = np.zeros(len(orb_atom_current))
216
+ for j in range(len(orb_atom_current)):
217
+ sort_index[j] = orb_atom_current[j,3] + 10 * orb_atom_current[j,4] + 100 * orb_atom_current[j,1] + 1000 * orb_atom_current[j,2]
218
+ orb_order = np.argsort(sort_index)
219
+ tmpt = np.empty(len(orb_order))
220
+ for j in range(len(orb_order)):
221
+ tmpt[orb_order[j]] = j
222
+ orb_order = tmpt
223
+ for j in range(len(orb_atom_current)):
224
+ orb2deephorb[t,0:3] = np.round(orb_indx[t,12:15])
225
+ orb2deephorb[t,3] = ia2Riua[int(orb_indx[t,1])-1,3]
226
+ orb2deephorb[t,4] = int(orb_order[j])
227
+ t += 1
228
+
229
+ # Read Useful info of HSX, We only need H and S from this file, but due to structure of fortran unformatted, extra information must be read
230
+ f = FortranFile('{}/{}.HSX'.format(input_path,system_name), 'r')
231
+ tmpt = f.read_ints() # no_u, no_s, nspin, nh
232
+ no_u = tmpt[0]
233
+ no_s = tmpt[1]
234
+ nspin = tmpt[2]
235
+ nh = tmpt[3]
236
+ tmpt = f.read_ints() # gamma
237
+ tmpt = f.read_ints() # indxuo
238
+ tmpt = f.read_ints() # numh
239
+ maxnumh = max(tmpt)
240
+ listh = np.zeros((no_u, maxnumh),dtype=int)
241
+ for i in range(no_u):
242
+ tmpt=f.read_ints() # listh
243
+ for j in range(len(tmpt)):
244
+ listh[i,j] = tmpt[j]
245
+
246
+ # finds set of connected atoms
247
+ connected_atoms = set()
248
+ for i in range(no_u):
249
+ for j in range(maxnumh):
250
+ if listh[i,j] == 0:
251
+ #print(j)
252
+ break
253
+ else:
254
+ atom_1 = int(orb2deephorb[i,3])#orbit i belongs to atom_1
255
+ atom_2 = int(orb2deephorb[listh[i,j]-1,3])# orbit j belongs to atom_2
256
+ Rijk = orb2deephorb[listh[i,j]-1,0:3]
257
+ Rijk = Rijk.astype(int)
258
+ connected_atoms = connected_atoms | set(['[{}, {}, {}, {}, {}]'.format(Rijk[0],Rijk[1],Rijk[2],atom_1,atom_2)])
259
+
260
+
261
+ H_block_sparse = dict()
262
+ for atom_pair in connected_atoms:
263
+ H_block_sparse[atom_pair] = []
264
+ # converts csr-like matrix into coo form in atomic pairs
265
+ for i in range(nspin):
266
+ for j in range(no_u):
267
+ tmpt=f.read_reals(dtype='<f4') # Hamiltonian
268
+ for k in range(len(tmpt)):
269
+ m = 0 # several orbits in siesta differs with DeepH in a (-1) factor
270
+ i2 = j
271
+ j2 = k
272
+ atom_1 = int(orb2deephorb[i2,3])
273
+ m += orb_indx[i2,7]
274
+ atom_2 = int(orb2deephorb[listh[i2,j2]-1,3])
275
+ m += orb_indx[listh[i2,j2]-1,7]
276
+ Rijk = orb2deephorb[listh[i2,j2]-1,0:3]
277
+ Rijk = Rijk.astype(int)
278
+ H_block_sparse['[{}, {}, {}, {}, {}]'.format(Rijk[0],Rijk[1],Rijk[2],atom_1,atom_2)].append([int(orb2deephorb[i2,4]),int(orb2deephorb[listh[i2,j2]-1,4]),tmpt[k]*((-1)**m)])
279
+ pass
280
+
281
+ S_block_sparse = dict()
282
+ for atom_pair in connected_atoms:
283
+ S_block_sparse[atom_pair] = []
284
+
285
+ for j in range(no_u):
286
+ tmpt=f.read_reals(dtype='<f4') # Overlap
287
+ for k in range(len(tmpt)):
288
+ m = 0
289
+ i2 = j
290
+ j2 = k
291
+ atom_1 = int(orb2deephorb[i2,3])
292
+ m += orb_indx[i2,7]
293
+ atom_2 = int(orb2deephorb[listh[i2,j2]-1,3])
294
+ m += orb_indx[listh[i2,j2]-1,7]
295
+ Rijk = orb2deephorb[listh[i2,j2]-1,0:3]
296
+ Rijk = Rijk.astype(int)
297
+ S_block_sparse['[{}, {}, {}, {}, {}]'.format(Rijk[0],Rijk[1],Rijk[2],atom_1,atom_2)].append([int(orb2deephorb[i2,4]),int(orb2deephorb[listh[i2,j2]-1,4]),tmpt[k]*((-1)**m)])
298
+ pass
299
+ pass
300
+
301
+ # finds number of orbitals of each atoms
302
+ nua = int(max(orb2deephorb[:,3]))
303
+ atom2nu = np.zeros(nua)
304
+ for i in range(len(orb_indx)):
305
+ if orb_indx[i,12]==0 and orb_indx[i,13]==0 and orb_indx[i,14]==0:
306
+ if orb_indx[i,4] > atom2nu[int(orb_indx[i,1])-1]:
307
+ atom2nu[int(orb_indx[i,1]-1)] = int(orb_indx[i,4])
308
+
309
+ # converts coo sparse matrix into full matrix
310
+ for Rijkab in H_block_sparse.keys():
311
+ sparse_form = H_block_sparse[Rijkab]
312
+ ia1 = int(Rijkab[1:-1].split(',')[3])
313
+ ia2 = int(Rijkab[1:-1].split(',')[4])
314
+ tmpt = np.zeros((int(atom2nu[ia1-1]),int(atom2nu[ia2-1])))
315
+ for i in range(len(sparse_form)):
316
+ tmpt[int(sparse_form[i][0]),int(sparse_form[i][1])]=sparse_form[i][2]/0.036749324533634074/2
317
+ H_block_sparse[Rijkab]=tmpt
318
+ f.close()
319
+ f = h5py.File('{}/hamiltonians.h5'.format(output_path),'w')
320
+ for Rijkab in H_block_sparse.keys():
321
+ f[Rijkab] = H_block_sparse[Rijkab]
322
+
323
+ for Rijkab in S_block_sparse.keys():
324
+ sparse_form = S_block_sparse[Rijkab]
325
+ ia1 = int(Rijkab[1:-1].split(',')[3])
326
+ ia2 = int(Rijkab[1:-1].split(',')[4])
327
+ tmpt = np.zeros((int(atom2nu[ia1-1]),int(atom2nu[ia2-1])))
328
+ for i in range(len(sparse_form)):
329
+ tmpt[int(sparse_form[i][0]),int(sparse_form[i][1])]=sparse_form[i][2]
330
+ S_block_sparse[Rijkab]=tmpt
331
+
332
+ f.close()
333
+ f = h5py.File('{}/overlaps.h5'.format(output_path),'w')
334
+ for Rijkab in S_block_sparse.keys():
335
+ f[Rijkab] = S_block_sparse[Rijkab]
336
+ f.close()
1_data_prepare/data/bands/uc/scf/_ph0/diamond.phsave/control_ph.xml ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Root>
3
+ <HEADER>
4
+ <FORMAT NAME="QEXML" VERSION="1.4.0"/>
5
+ <CREATOR NAME="PH" VERSION="7.2"/>
6
+ </HEADER>
7
+ <CONTROL>
8
+ <DISPERSION_RUN>false</DISPERSION_RUN>
9
+ <ELECTRIC_FIELD>false</ELECTRIC_FIELD>
10
+ <PHONON_RUN>true</PHONON_RUN>
11
+ <ELECTRON_PHONON>false</ELECTRON_PHONON>
12
+ <EFFECTIVE_CHARGE_EU>false</EFFECTIVE_CHARGE_EU>
13
+ <EFFECTIVE_CHARGE_PH>false</EFFECTIVE_CHARGE_PH>
14
+ <RAMAN_TENSOR>false</RAMAN_TENSOR>
15
+ <ELECTRO_OPTIC>false</ELECTRO_OPTIC>
16
+ <FREQUENCY_DEP_POL>false</FREQUENCY_DEP_POL>
17
+ </CONTROL>
18
+ <Q_POINTS>
19
+ <NUMBER_OF_Q_POINTS>
20
+ 1
21
+ </NUMBER_OF_Q_POINTS>
22
+ <UNITS_FOR_Q-POINT UNITS="2 pi / a"/>
23
+ <Q-POINT_COORDINATES>
24
+ 0.000000000000000E+00 0.000000000000000E+00 0.000000000000000E+00
25
+ </Q-POINT_COORDINATES>
26
+ </Q_POINTS>
27
+ </Root>
1_data_prepare/data/bands/uc/scf/_ph0/diamond.phsave/dynmat.1.0.xml ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Root>
3
+ <PM_HEADER>
4
+ <DONE_IRR>true</DONE_IRR>
5
+ </PM_HEADER>
6
+ <PARTIAL_MATRIX>
7
+ <PARTIAL_DYN>
8
+ 3.484598408489698E+01 -6.312196590787640E-18
9
+ 8.690241036524503E-01 1.237663837087336E-17
10
+ -5.385920672984279E-01 6.576775186042414E-18
11
+ 1.645097960512737E-07 -5.203867086925237E-15
12
+ -5.762795053931846E-07 -7.551703331487875E-16
13
+ 3.263126217567525E-07 -2.035118353263037E-15
14
+ 8.690241036524511E-01 1.237663837086976E-17
15
+ 3.305386352685629E+01 -2.813197574806354E-17
16
+ 2.463623983376761E+00 6.849623145749403E-18
17
+ -2.218325921036698E-07 -2.290442746813690E-15
18
+ 2.613749412461175E-07 -1.616755177784139E-15
19
+ -2.976016570677142E-07 -3.921335226450931E-16
20
+ -5.385920672984271E-01 6.576775186046179E-18
21
+ 2.463623983376761E+00 6.849623145749601E-18
22
+ 3.603973651404256E+01 -1.692131618321098E-17
23
+ 3.740880009017386E-08 5.839528743185681E-15
24
+ -1.120524914799415E-07 2.433841965816495E-15
25
+ -1.038040902262560E-07 -4.688344083003438E-15
26
+ 1.645097958936039E-07 4.759059852946046E-15
27
+ -2.218325937345014E-07 2.556875221841142E-15
28
+ 3.740879958350874E-08 -5.669694756094177E-15
29
+ 2.958252466795426E+01 -2.591634630866419E-17
30
+ 2.612829994789184E+00 7.516959013986452E-18
31
+ 3.819367529809595E-01 3.218506276749747E-18
32
+ -5.762795122540761E-07 1.440365864553108E-15
33
+ 2.613749429551507E-07 2.151239792358933E-15
34
+ -1.120524902698576E-07 -2.632619517081344E-15
35
+ 2.612829994789187E+00 7.516959013983181E-18
36
+ 3.184683488448889E+01 -2.797341935844423E-17
37
+ 7.500919201974021E-01 2.238271310689798E-18
38
+ 3.263126231132398E-07 2.347703528650676E-15
39
+ -2.976016542943300E-07 -2.326270571138094E-16
40
+ -1.038040897713584E-07 4.613877320823429E-15
41
+ 3.819367529809614E-01 3.218506276756663E-18
42
+ 7.500919201974042E-01 2.238271310689797E-18
43
+ 3.200648607555012E+01 2.524277145046247E-18
44
+ </PARTIAL_DYN>
45
+ </PARTIAL_MATRIX>
46
+ </Root>
1_data_prepare/data/bands/uc/scf/_ph0/diamond.phsave/dynmat.1.1.xml ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Root>
3
+ <PM_HEADER>
4
+ <DONE_IRR>true</DONE_IRR>
5
+ </PM_HEADER>
6
+ <PARTIAL_MATRIX>
7
+ <PARTIAL_DYN>
8
+ -3.306486919995417E+01 -1.042601950876543E-09
9
+ -6.725039802939238E-01 -3.597035750345589E-08
10
+ 4.921295639517659E-01 5.694226470855279E-08
11
+ 0.000000000000000E+00 0.000000000000000E+00
12
+ 0.000000000000000E+00 0.000000000000000E+00
13
+ 0.000000000000000E+00 0.000000000000000E+00
14
+ -6.722632765120149E-01 6.651886373546226E-08
15
+ -3.219606484374033E+01 -3.548476827872810E-09
16
+ -1.528301059085400E+00 1.061047381245662E-07
17
+ 0.000000000000000E+00 0.000000000000000E+00
18
+ 0.000000000000000E+00 0.000000000000000E+00
19
+ 0.000000000000000E+00 0.000000000000000E+00
20
+ 4.923909303130659E-01 -7.222033228776863E-08
21
+ -1.528984481778737E+00 -1.123971047650092E-07
22
+ -3.358477149299882E+01 1.543423634857984E-08
23
+ 0.000000000000000E+00 0.000000000000000E+00
24
+ 0.000000000000000E+00 0.000000000000000E+00
25
+ 0.000000000000000E+00 0.000000000000000E+00
26
+ -1.150299478933081E-07 -6.267280812380251E-01
27
+ 1.454730519101499E-07 1.974358540447818E-01
28
+ 2.271660257124886E-08 1.225472121031028E-01
29
+ 0.000000000000000E+00 0.000000000000000E+00
30
+ 0.000000000000000E+00 0.000000000000000E+00
31
+ 0.000000000000000E+00 0.000000000000000E+00
32
+ 4.550082372961617E-07 6.303626698451245E-01
33
+ -2.152013225398264E-07 4.997972445232625E-01
34
+ 8.669489925949847E-08 -2.790580480328600E-01
35
+ 0.000000000000000E+00 0.000000000000000E+00
36
+ 0.000000000000000E+00 0.000000000000000E+00
37
+ 0.000000000000000E+00 0.000000000000000E+00
38
+ -1.944220450467160E-07 2.787254236595550E-01
39
+ 2.183414124501404E-07 -7.151376098431174E-01
40
+ 1.040674222803351E-07 2.425830690440389E-02
41
+ 0.000000000000000E+00 0.000000000000000E+00
42
+ 0.000000000000000E+00 0.000000000000000E+00
43
+ 0.000000000000000E+00 0.000000000000000E+00
44
+ </PARTIAL_DYN>
45
+ </PARTIAL_MATRIX>
46
+ </Root>
1_data_prepare/data/bands/uc/scf/_ph0/diamond.phsave/dynmat.1.2.xml ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Root>
3
+ <PM_HEADER>
4
+ <DONE_IRR>true</DONE_IRR>
5
+ </PM_HEADER>
6
+ <PARTIAL_MATRIX>
7
+ <PARTIAL_DYN>
8
+ 0.000000000000000E+00 0.000000000000000E+00
9
+ 0.000000000000000E+00 0.000000000000000E+00
10
+ 0.000000000000000E+00 0.000000000000000E+00
11
+ -9.415583422482665E-08 6.298774015069858E-01
12
+ 4.610722772191433E-07 -6.217279782417344E-01
13
+ -2.002179043669727E-07 -2.810022781298951E-01
14
+ 0.000000000000000E+00 0.000000000000000E+00
15
+ 0.000000000000000E+00 0.000000000000000E+00
16
+ 0.000000000000000E+00 0.000000000000000E+00
17
+ 1.304664546120105E-07 -1.937638788646358E-01
18
+ -1.867054728738049E-07 -4.889481345626043E-01
19
+ 2.253321559203547E-07 6.945487410994460E-01
20
+ 0.000000000000000E+00 0.000000000000000E+00
21
+ 0.000000000000000E+00 0.000000000000000E+00
22
+ 0.000000000000000E+00 0.000000000000000E+00
23
+ -1.926063114554566E-09 -1.209608496302796E-01
24
+ 1.355494632995780E-07 2.751624153391077E-01
25
+ 8.763397301575493E-08 -3.439717567817600E-02
26
+ 0.000000000000000E+00 0.000000000000000E+00
27
+ 0.000000000000000E+00 0.000000000000000E+00
28
+ 0.000000000000000E+00 0.000000000000000E+00
29
+ -2.968497440699806E+01 -5.554126422795463E-09
30
+ -2.310368801976090E+00 -2.371297053882148E-08
31
+ -2.850726562192887E-01 -1.242148251421532E-07
32
+ 0.000000000000000E+00 0.000000000000000E+00
33
+ 0.000000000000000E+00 0.000000000000000E+00
34
+ 0.000000000000000E+00 0.000000000000000E+00
35
+ -2.310372026282785E+00 1.481331674333662E-08
36
+ -3.172979080950947E+01 -5.556302032920791E-09
37
+ -6.752217519310538E-01 1.119612119611418E-07
38
+ 0.000000000000000E+00 0.000000000000000E+00
39
+ 0.000000000000000E+00 0.000000000000000E+00
40
+ 0.000000000000000E+00 0.000000000000000E+00
41
+ -2.850740374574177E-01 1.373887226060796E-07
42
+ -6.752197834214591E-01 -9.516342673711952E-08
43
+ -3.187559449718772E+01 -3.681011800046182E-09
44
+ </PARTIAL_DYN>
45
+ </PARTIAL_MATRIX>
46
+ </Root>
1_data_prepare/data/bands/uc/scf/_ph0/diamond.phsave/patterns.1.xml ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Root>
3
+ <IRREPS_INFO>
4
+ <QPOINT_NUMBER>1</QPOINT_NUMBER>
5
+ <QPOINT_GROUP_RANK>48</QPOINT_GROUP_RANK>
6
+ <MINUS_Q_SYM>true</MINUS_Q_SYM>
7
+ <NUMBER_IRR_REP>2</NUMBER_IRR_REP>
8
+ <REPRESENTION.1>
9
+ <NUMBER_OF_PERTURBATIONS>3</NUMBER_OF_PERTURBATIONS>
10
+ <PERTURBATION.1>
11
+ <DISPLACEMENT_PATTERN>
12
+ -0.231855586862688 0.000000000000000E+000
13
+ 0.281831072066113 0.000000000000000E+000
14
+ -0.605651907995529 0.000000000000000E+000
15
+ 0.231855586862687 0.000000000000000E+000
16
+ -0.281831072066113 0.000000000000000E+000
17
+ 0.605651907995529 0.000000000000000E+000
18
+ </DISPLACEMENT_PATTERN>
19
+ </PERTURBATION.1>
20
+ <PERTURBATION.2>
21
+ <DISPLACEMENT_PATTERN>
22
+ -9.881167931337864E-003 0.000000000000000E+000
23
+ 0.639577945071490 0.000000000000000E+000
24
+ 0.301400754309679 0.000000000000000E+000
25
+ 9.881167931337864E-003 0.000000000000000E+000
26
+ -0.639577945071490 0.000000000000000E+000
27
+ -0.301400754309679 0.000000000000000E+000
28
+ </DISPLACEMENT_PATTERN>
29
+ </PERTURBATION.2>
30
+ <PERTURBATION.3>
31
+ <DISPLACEMENT_PATTERN>
32
+ -0.667941127166812 0.000000000000000E+000
33
+ -0.107290721855136 0.000000000000000E+000
34
+ 0.205775002473411 0.000000000000000E+000
35
+ 0.667941127166812 0.000000000000000E+000
36
+ 0.107290721855136 0.000000000000000E+000
37
+ -0.205775002473411 0.000000000000000E+000
38
+ </DISPLACEMENT_PATTERN>
39
+ </PERTURBATION.3>
40
+ </REPRESENTION.1>
41
+ <REPRESENTION.2>
42
+ <NUMBER_OF_PERTURBATIONS>3</NUMBER_OF_PERTURBATIONS>
43
+ <PERTURBATION.1>
44
+ <DISPLACEMENT_PATTERN>
45
+ -0.567393140911867 0.000000000000000E+000
46
+ -0.421344493890803 0.000000000000000E+000
47
+ 2.310500192748906E-002 0.000000000000000E+000
48
+ -0.567393140911866 0.000000000000000E+000
49
+ -0.421344493890803 0.000000000000000E+000
50
+ 2.310500192748907E-002 0.000000000000000E+000
51
+ </DISPLACEMENT_PATTERN>
52
+ </PERTURBATION.1>
53
+ <PERTURBATION.2>
54
+ <DISPLACEMENT_PATTERN>
55
+ -0.197534969092956 0.000000000000000E+000
56
+ 0.299421002187529 0.000000000000000E+000
57
+ 0.609366063573006 0.000000000000000E+000
58
+ -0.197534969092956 0.000000000000000E+000
59
+ 0.299421002187529 0.000000000000000E+000
60
+ 0.609366063573006 0.000000000000000E+000
61
+ </DISPLACEMENT_PATTERN>
62
+ </PERTURBATION.2>
63
+ <PERTURBATION.3>
64
+ <DISPLACEMENT_PATTERN>
65
+ -0.372887328333387 0.000000000000000E+000
66
+ 0.482509980121571 0.000000000000000E+000
67
+ -0.357965304815244 0.000000000000000E+000
68
+ -0.372887328333387 0.000000000000000E+000
69
+ 0.482509980121571 0.000000000000000E+000
70
+ -0.357965304815244 0.000000000000000E+000
71
+ </DISPLACEMENT_PATTERN>
72
+ </PERTURBATION.3>
73
+ </REPRESENTION.2>
74
+ </IRREPS_INFO>
75
+ </Root>
1_data_prepare/data/bands/uc/scf/_ph0/diamond.phsave/status_run.xml ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Root>
3
+ <STATUS_PH>
4
+ <STOPPED_IN>dynmatrix.</STOPPED_IN>
5
+ <RECOVER_CODE>30</RECOVER_CODE>
6
+ <CURRENT_Q>1</CURRENT_Q>
7
+ <CURRENT_IU>1</CURRENT_IU>
8
+ </STATUS_PH>
9
+ </Root>
1_data_prepare/data/bands/uc/scf/aohamiltonian/element.dat ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ 6
2
+ 6
1_data_prepare/data/bands/uc/scf/aohamiltonian/info.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"isspinful": false, "fermi_level": 0.0}
1_data_prepare/data/bands/uc/scf/aohamiltonian/lat.dat ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ 0.000000000000000000e+00 1.783499998856923785e+00 1.783499998856923785e+00
2
+ 1.783499998856923785e+00 0.000000000000000000e+00 1.783499998856923785e+00
3
+ 1.783499998856923785e+00 1.783499998856923785e+00 0.000000000000000000e+00
1_data_prepare/data/bands/uc/scf/aohamiltonian/orbital_types.dat ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ 0 0 1 1 2
2
+ 0 0 1 1 2
1_data_prepare/data/bands/uc/scf/aohamiltonian/rlat.dat ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ -1.761476117523574025e+00 1.761476117523574025e+00 1.761476117523574025e+00
2
+ 1.761476117523574025e+00 -1.761476117523574025e+00 1.761476117523574025e+00
3
+ 1.761476117523574025e+00 1.761476117523574025e+00 -1.761476117523574025e+00
1_data_prepare/data/bands/uc/scf/aohamiltonian/site_positions.dat ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ 0.000000000000000000e+00 8.917499994284623366e-01
2
+ 0.000000000000000000e+00 8.917499994284623366e-01
3
+ 0.000000000000000000e+00 8.917499994284623366e-01
1_data_prepare/data/bands/uc/scf/bands.dat ADDED
@@ -0,0 +1,994 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ &plot nbnd= 20, nks= 331 /
2
+ 0.000000 0.000000 0.000000
3
+ -8.131 13.365 13.365 13.365 18.998 18.998 18.998 26.673 32.650 40.213
4
+ 40.213 40.988 40.988 40.988 48.164 60.690 60.690 60.690 81.531 81.531
5
+ 0.000000 0.033333 0.000000
6
+ -8.121 13.321 13.321 13.339 18.990 19.051 19.051 26.682 32.668 39.552
7
+ 40.226 41.012 41.012 41.621 48.255 60.656 60.656 60.675 81.428 81.428
8
+ 0.000000 0.066667 0.000000
9
+ -8.090 13.193 13.193 13.268 18.965 19.205 19.205 26.707 32.724 38.615
10
+ 40.265 41.084 41.084 42.473 48.532 60.552 60.552 60.630 81.149 81.149
11
+ 0.000000 0.100000 0.000000
12
+ -8.039 12.997 12.997 13.146 18.925 19.447 19.447 26.741 32.815 37.678
13
+ 40.330 41.205 41.205 43.256 49.011 60.381 60.381 60.557 80.759 80.759
14
+ 0.000000 0.133333 0.000000
15
+ -7.967 12.749 12.749 12.976 18.870 19.761 19.761 26.777 32.940 36.777
16
+ 40.421 41.374 41.374 43.934 49.695 60.142 60.142 60.459 80.322 80.322
17
+ 0.000000 0.166667 0.000000
18
+ -7.875 12.458 12.458 12.761 18.804 20.130 20.130 26.800 33.096 35.937
19
+ 40.538 41.590 41.590 44.506 50.575 59.841 59.841 60.348 79.357 79.880
20
+ 0.000000 0.200000 0.000000
21
+ -7.763 12.142 12.142 12.502 18.721 20.542 20.542 26.792 33.279 35.177
22
+ 40.681 41.853 41.853 44.995 51.618 59.476 59.476 60.199 77.966 79.462
23
+ 0.000000 0.233333 0.000000
24
+ -7.630 11.810 11.810 12.207 18.633 20.986 20.986 26.734 33.488 34.521
25
+ 40.851 42.163 42.163 45.430 52.791 59.055 59.055 60.055 76.595 79.088
26
+ 0.000000 0.266667 0.000000
27
+ -7.477 11.473 11.473 11.877 18.536 21.453 21.453 26.606 33.717 33.986
28
+ 41.046 42.518 42.518 45.838 54.062 58.578 58.578 59.902 75.247 78.767
29
+ 0.000000 0.300000 0.000000
30
+ -7.303 11.132 11.132 11.516 18.436 21.939 21.939 26.392 33.588 33.964
31
+ 41.267 42.917 42.917 46.242 55.406 58.062 58.062 59.757 73.923 78.503
32
+ 0.000000 0.333333 0.000000
33
+ -7.110 10.796 10.796 11.128 18.336 22.438 22.438 26.087 33.329 34.226
34
+ 41.514 43.360 43.360 46.655 56.806 57.513 57.513 59.629 72.623 78.301
35
+ 0.000000 0.366667 0.000000
36
+ -6.897 10.464 10.464 10.714 18.232 22.945 22.945 25.698 33.200 34.495
37
+ 41.787 43.842 43.842 47.087 56.931 56.931 58.248 59.508 71.347 78.152
38
+ 0.000000 0.400000 0.000000
39
+ -6.664 10.140 10.140 10.276 18.130 23.458 23.458 25.242 33.180 34.768
40
+ 42.087 44.360 44.360 47.548 56.330 56.330 59.409 59.721 70.096 78.056
41
+ 0.000000 0.433333 0.000000
42
+ -6.411 9.817 9.827 9.827 18.032 23.974 23.974 24.741 33.247 35.041
43
+ 42.412 44.910 44.910 48.041 55.722 55.722 59.338 61.213 68.870 78.009
44
+ 0.000000 0.466667 0.000000
45
+ -6.139 9.338 9.526 9.526 17.937 24.211 24.488 24.488 33.375 35.303
46
+ 42.763 45.483 45.483 48.571 55.119 55.119 59.295 62.710 67.668 78.000
47
+ 0.000000 0.500000 0.000000
48
+ -5.848 8.842 9.239 9.239 17.850 23.674 25.002 25.002 33.552 35.561
49
+ 43.140 46.069 46.069 49.142 54.542 54.542 59.295 64.204 66.492 78.019
50
+ 0.000000 0.533333 0.000000
51
+ -5.537 8.332 8.968 8.968 17.771 23.139 25.512 25.512 33.760 35.805
52
+ 43.543 46.649 46.649 49.754 54.015 54.015 59.338 65.342 65.672 78.035
53
+ 0.000000 0.566667 0.000000
54
+ -5.208 7.808 8.712 8.712 17.702 22.616 26.015 26.015 33.987 36.032
55
+ 43.973 47.191 47.191 50.410 53.572 53.572 59.428 64.216 67.086 77.969
56
+ 0.000000 0.600000 0.000000
57
+ -4.861 7.272 8.472 8.472 17.644 22.112 26.510 26.510 34.226 36.238
58
+ 44.428 47.648 47.648 51.110 53.267 53.267 59.569 63.116 68.402 77.613
59
+ 0.000000 0.633333 0.000000
60
+ -4.495 6.726 8.249 8.249 17.598 21.629 26.989 26.989 34.461 36.420
61
+ 44.909 47.957 47.957 51.854 53.167 53.167 59.763 62.041 69.550 76.791
62
+ 0.000000 0.666667 0.000000
63
+ -4.112 6.172 8.042 8.042 17.564 21.173 27.451 27.451 34.700 36.572
64
+ 45.416 48.063 48.063 52.643 53.327 53.327 60.011 60.992 70.448 75.681
65
+ 0.000000 0.700000 0.000000
66
+ -3.711 5.614 7.856 7.856 17.548 20.747 27.900 27.900 34.944 36.710
67
+ 45.949 47.978 47.978 53.476 53.752 53.752 59.969 60.317 71.009 74.461
68
+ 0.000000 0.733333 0.000000
69
+ -3.294 5.050 7.688 7.688 17.544 20.348 28.323 28.323 35.178 36.801
70
+ 46.508 47.750 47.750 54.351 54.390 54.390 58.971 60.673 71.168 73.186
71
+ 0.000000 0.766667 0.000000
72
+ -2.860 4.482 7.540 7.540 17.556 19.980 28.719 28.719 35.404 36.871
73
+ 47.093 47.444 47.444 55.185 55.185 55.266 57.999 61.080 70.976 71.885
74
+ 0.000000 0.800000 0.000000
75
+ -2.410 3.914 7.410 7.410 17.586 19.640 29.081 29.081 35.620 36.913
76
+ 47.111 47.111 47.704 56.089 56.089 56.221 57.052 61.530 70.531 70.573
77
+ 0.000000 0.833333 0.000000
78
+ -1.945 3.346 7.301 7.301 17.634 19.329 29.403 29.403 35.819 36.920
79
+ 46.786 46.786 48.341 56.131 57.075 57.075 57.212 62.013 69.260 69.260
80
+ 0.000000 0.866667 0.000000
81
+ -1.466 2.781 7.211 7.211 17.701 19.047 29.679 29.679 36.011 36.906
82
+ 46.492 46.492 49.003 55.236 58.122 58.122 58.234 62.504 67.953 67.953
83
+ 0.000000 0.900000 0.000000
84
+ -0.972 2.221 7.141 7.141 17.789 18.792 29.902 29.902 36.189 36.866
85
+ 46.246 46.246 49.692 54.366 59.216 59.216 59.280 62.949 66.661 66.661
86
+ 0.000000 0.933333 0.000000
87
+ -0.466 1.668 7.092 7.092 17.898 18.564 30.067 30.067 36.356 36.808
88
+ 46.064 46.064 50.406 53.523 60.339 60.343 60.343 63.208 65.395 65.395
89
+ 0.000000 0.966667 0.000000
90
+ 0.052 1.120 7.062 7.062 18.029 18.362 30.168 30.168 36.503 36.721
91
+ 45.950 45.950 51.147 52.705 61.379 61.468 61.468 63.025 64.188 64.188
92
+ 0.000000 1.000000 0.000000
93
+ 0.581 0.581 7.050 7.050 18.182 18.182 30.194 30.194 36.613 36.613
94
+ 45.908 45.908 51.913 51.913 62.234 62.234 62.332 62.332 63.391 63.391
95
+ 0.016667 1.000000 0.000000
96
+ 0.583 0.583 7.046 7.046 18.194 18.194 30.197 30.197 36.616 36.616
97
+ 45.898 45.898 51.936 51.936 62.019 62.019 62.506 62.506 63.437 63.437
98
+ 0.033333 1.000000 0.000000
99
+ 0.588 0.588 7.029 7.029 18.226 18.226 30.182 30.182 36.596 36.596
100
+ 45.861 45.861 52.004 52.004 61.739 61.739 62.657 62.657 63.568 63.568
101
+ 0.050000 1.000000 0.000000
102
+ 0.596 0.596 7.000 7.000 18.279 18.279 30.158 30.158 36.564 36.564
103
+ 45.801 45.801 52.115 52.115 61.448 61.448 62.747 62.747 63.768 63.768
104
+ 0.066667 1.000000 0.000000
105
+ 0.608 0.608 6.961 6.961 18.353 18.353 30.123 30.123 36.520 36.520
106
+ 45.723 45.723 52.266 52.266 61.155 61.155 62.797 62.797 64.006 64.006
107
+ 0.083333 1.000000 0.000000
108
+ 0.622 0.622 6.911 6.911 18.447 18.447 30.077 30.077 36.465 36.465
109
+ 45.629 45.629 52.451 52.451 60.865 60.865 62.824 62.824 64.254 64.254
110
+ 0.100000 1.000000 0.000000
111
+ 0.640 0.640 6.851 6.851 18.559 18.559 30.021 30.021 36.396 36.396
112
+ 45.523 45.523 52.666 52.666 60.580 60.580 62.837 62.837 64.494 64.494
113
+ 0.116667 1.000000 0.000000
114
+ 0.660 0.660 6.783 6.783 18.691 18.691 29.954 29.954 36.321 36.321
115
+ 45.410 45.410 52.906 52.906 60.304 60.304 62.842 62.842 64.719 64.719
116
+ 0.133333 1.000000 0.000000
117
+ 0.684 0.684 6.707 6.707 18.840 18.840 29.875 29.875 36.238 36.238
118
+ 45.293 45.293 53.168 53.168 60.037 60.037 62.841 62.841 64.924 64.924
119
+ 0.150000 1.000000 0.000000
120
+ 0.711 0.711 6.624 6.624 19.006 19.006 29.784 29.784 36.148 36.148
121
+ 45.175 45.175 53.446 53.446 59.779 59.779 62.834 62.834 65.111 65.111
122
+ 0.166667 1.000000 0.000000
123
+ 0.739 0.739 6.535 6.535 19.187 19.187 29.680 29.680 36.049 36.049
124
+ 45.057 45.057 53.737 53.737 59.533 59.533 62.821 62.821 65.282 65.282
125
+ 0.183333 1.000000 0.000000
126
+ 0.771 0.771 6.441 6.441 19.383 19.383 29.563 29.563 35.950 35.950
127
+ 44.943 44.943 54.038 54.038 59.299 59.299 62.802 62.802 65.445 65.445
128
+ 0.200000 1.000000 0.000000
129
+ 0.805 0.805 6.344 6.344 19.593 19.593 29.433 29.433 35.848 35.848
130
+ 44.833 44.833 54.345 54.345 59.077 59.077 62.776 62.776 65.602 65.602
131
+ 0.216667 1.000000 0.000000
132
+ 0.841 0.841 6.244 6.244 19.816 19.816 29.293 29.293 35.747 35.747
133
+ 44.729 44.729 54.656 54.656 58.869 58.869 62.743 62.743 65.759 65.759
134
+ 0.233333 1.000000 0.000000
135
+ 0.879 0.879 6.142 6.142 20.050 20.050 29.136 29.136 35.644 35.644
136
+ 44.630 44.630 54.966 54.966 58.676 58.676 62.703 62.703 65.918 65.918
137
+ 0.250000 1.000000 0.000000
138
+ 0.918 0.918 6.039 6.039 20.296 20.296 28.966 28.966 35.544 35.544
139
+ 44.538 44.538 55.273 55.273 58.498 58.498 62.655 62.655 66.084 66.084
140
+ 0.266667 1.000000 0.000000
141
+ 0.959 0.959 5.936 5.936 20.550 20.550 28.780 28.780 35.447 35.447
142
+ 44.453 44.453 55.572 55.572 58.338 58.338 62.600 62.600 66.254 66.254
143
+ 0.283333 1.000000 0.000000
144
+ 1.000 1.000 5.834 5.834 20.813 20.813 28.582 28.582 35.355 35.355
145
+ 44.374 44.374 55.859 55.859 58.199 58.199 62.537 62.537 66.435 66.435
146
+ 0.300000 1.000000 0.000000
147
+ 1.042 1.042 5.735 5.735 21.085 21.085 28.371 28.371 35.268 35.268
148
+ 44.304 44.304 56.127 56.127 58.087 58.087 62.467 62.467 66.629 66.629
149
+ 0.316667 1.000000 0.000000
150
+ 1.083 1.083 5.638 5.638 21.363 21.363 28.148 28.148 35.187 35.187
151
+ 44.239 44.239 56.366 56.366 58.008 58.008 62.390 62.390 66.831 66.831
152
+ 0.333333 1.000000 0.000000
153
+ 1.124 1.124 5.546 5.546 21.646 21.646 27.917 27.917 35.112 35.112
154
+ 44.180 44.180 56.563 56.563 57.974 57.974 62.307 62.307 67.049 67.049
155
+ 0.350000 1.000000 0.000000
156
+ 1.164 1.164 5.457 5.457 21.932 21.932 27.671 27.671 35.042 35.042
157
+ 44.127 44.127 56.703 56.703 57.997 57.997 62.218 62.218 67.273 67.273
158
+ 0.366667 1.000000 0.000000
159
+ 1.202 1.202 5.375 5.375 22.220 22.220 27.418 27.418 34.979 34.979
160
+ 44.081 44.081 56.782 56.782 58.080 58.080 62.123 62.123 67.506 67.506
161
+ 0.383333 1.000000 0.000000
162
+ 1.238 1.238 5.299 5.299 22.511 22.511 27.160 27.160 34.925 34.925
163
+ 44.040 44.040 56.812 56.812 58.209 58.209 62.028 62.028 67.752 67.752
164
+ 0.400000 1.000000 0.000000
165
+ 1.270 1.270 5.232 5.232 22.800 22.800 26.898 26.898 34.878 34.878
166
+ 44.006 44.006 56.811 56.811 58.363 58.363 61.932 61.932 68.006 68.006
167
+ 0.416667 1.000000 0.000000
168
+ 1.299 1.299 5.173 5.173 23.085 23.085 26.637 26.637 34.838 34.838
169
+ 43.978 43.978 56.793 56.793 58.524 58.524 61.838 61.838 68.265 68.265
170
+ 0.433333 1.000000 0.000000
171
+ 1.324 1.324 5.124 5.124 23.359 23.359 26.380 26.380 34.806 34.806
172
+ 43.954 43.954 56.770 56.770 58.675 58.675 61.751 61.751 68.524 68.524
173
+ 0.450000 1.000000 0.000000
174
+ 1.344 1.344 5.084 5.084 23.615 23.615 26.139 26.139 34.781 34.781
175
+ 43.936 43.936 56.747 56.747 58.806 58.806 61.674 61.674 68.774 68.774
176
+ 0.466667 1.000000 0.000000
177
+ 1.359 1.359 5.056 5.056 23.835 23.835 25.928 25.928 34.763 34.763
178
+ 43.924 43.924 56.729 56.729 58.908 58.908 61.614 61.614 68.999 68.999
179
+ 0.483333 1.000000 0.000000
180
+ 1.368 1.368 5.038 5.038 23.994 23.994 25.776 25.776 34.754 34.754
181
+ 43.917 43.917 56.718 56.718 58.973 58.973 61.575 61.575 69.167 69.167
182
+ 0.500000 1.000000 0.000000
183
+ 1.371 1.371 5.033 5.033 24.055 24.055 25.720 25.720 34.753 34.753
184
+ 43.914 43.914 56.715 56.715 58.995 58.995 61.564 61.564 69.234 69.234
185
+ 0.508333 0.991667 0.000000
186
+ 1.305 1.433 4.970 5.102 23.969 24.106 25.725 25.750 34.650 34.855
187
+ 43.795 44.033 56.543 56.890 58.848 59.118 61.535 61.617 69.203 69.211
188
+ 0.516667 0.983333 0.000000
189
+ 1.242 1.488 4.909 5.180 23.828 24.148 25.786 25.788 34.542 34.959
190
+ 43.669 44.156 56.381 57.061 58.658 59.244 61.506 61.703 69.096 69.170
191
+ 0.525000 0.975000 0.000000
192
+ 1.180 1.534 4.850 5.268 23.645 24.185 25.835 25.884 34.433 35.061
193
+ 43.536 44.283 56.229 57.228 58.439 59.373 61.473 61.815 68.913 69.136
194
+ 0.533333 0.966667 0.000000
195
+ 1.121 1.573 4.793 5.366 23.437 24.214 25.891 26.011 34.324 35.167
196
+ 43.398 44.414 56.088 57.389 58.202 59.504 61.443 61.944 68.695 69.101
197
+ 0.541667 0.958333 0.000000
198
+ 1.064 1.605 4.738 5.471 23.213 24.238 25.955 26.153 34.214 35.272
199
+ 43.254 44.549 55.960 57.536 57.961 59.637 61.412 62.082 68.458 69.065
200
+ 0.550000 0.950000 0.000000
201
+ 1.010 1.630 4.684 5.584 22.980 24.255 26.027 26.307 34.103 35.380
202
+ 43.104 44.687 55.843 57.587 57.802 59.772 61.379 62.227 68.212 69.028
203
+ 0.558333 0.941667 0.000000
204
+ 0.957 1.650 4.633 5.703 22.742 24.267 26.104 26.467 33.990 35.488
205
+ 42.948 44.829 55.738 57.380 57.890 59.908 61.346 62.375 67.964 68.992
206
+ 0.566667 0.933333 0.000000
207
+ 0.907 1.665 4.583 5.828 22.501 24.275 26.187 26.631 33.878 35.596
208
+ 42.787 44.973 55.645 57.120 58.021 60.046 61.310 62.527 67.716 68.956
209
+ 0.575000 0.925000 0.000000
210
+ 0.859 1.676 4.536 5.956 22.260 24.278 26.275 26.796 33.765 35.705
211
+ 42.621 45.120 55.563 56.853 58.152 60.183 61.274 62.682 67.472 68.920
212
+ 0.583333 0.916667 0.000000
213
+ 0.814 1.683 4.490 6.089 22.021 24.279 26.367 26.962 33.654 35.814
214
+ 42.452 45.270 55.492 56.586 58.277 60.321 61.236 62.841 67.233 68.886
215
+ 0.591667 0.908333 0.000000
216
+ 0.770 1.687 4.447 6.224 21.785 24.277 26.462 27.126 33.542 35.923
217
+ 42.277 45.421 55.432 56.319 58.393 60.458 61.197 63.001 66.999 68.852
218
+ 0.600000 0.900000 0.000000
219
+ 0.729 1.688 4.406 6.361 21.553 24.273 26.559 27.289 33.431 36.033
220
+ 42.100 45.575 55.382 56.054 58.502 60.593 61.158 63.166 66.774 68.821
221
+ 0.608333 0.891667 0.000000
222
+ 0.690 1.687 4.367 6.496 21.326 24.267 26.654 27.448 33.319 36.143
223
+ 41.918 45.727 55.342 55.793 58.602 60.723 61.121 63.333 66.554 68.790
224
+ 0.616667 0.883333 0.000000
225
+ 0.653 1.684 4.329 6.632 21.104 24.260 26.752 27.603 33.209 36.253
226
+ 41.735 45.882 55.310 55.537 58.693 60.838 61.096 63.505 66.343 68.761
227
+ 0.625000 0.875000 0.000000
228
+ 0.618 1.680 4.295 6.768 20.890 24.252 26.850 27.754 33.104 36.364
229
+ 41.551 46.037 55.286 55.287 58.775 60.905 61.117 63.680 66.142 68.736
230
+ 0.633333 0.866667 0.000000
231
+ 0.586 1.675 4.262 6.899 20.683 24.244 26.944 27.899 32.999 36.474
232
+ 41.365 46.190 55.040 55.271 58.850 60.900 61.206 63.857 65.947 68.711
233
+ 0.641667 0.858333 0.000000
234
+ 0.556 1.670 4.231 7.028 20.486 24.235 27.039 28.039 32.897 36.586
235
+ 41.180 46.343 54.802 55.262 58.916 60.863 61.324 64.038 65.764 68.690
236
+ 0.650000 0.850000 0.000000
237
+ 0.528 1.663 4.203 7.153 20.297 24.226 27.131 28.171 32.799 36.697
238
+ 40.995 46.493 54.572 55.259 58.975 60.817 61.448 64.219 65.591 68.672
239
+ 0.658333 0.841667 0.000000
240
+ 0.502 1.657 4.177 7.273 20.120 24.218 27.220 28.297 32.704 36.809
241
+ 40.812 46.640 54.352 55.261 59.026 60.768 61.572 64.401 65.428 68.657
242
+ 0.666667 0.833333 0.000000
243
+ 0.479 1.651 4.153 7.386 19.954 24.210 27.306 28.418 32.617 36.924
244
+ 40.633 46.784 54.142 55.268 59.071 60.718 61.694 64.581 65.275 68.647
245
+ 0.675000 0.825000 0.000000
246
+ 0.457 1.644 4.131 7.492 19.800 24.202 27.385 28.526 32.532 37.034
247
+ 40.456 46.920 53.943 55.277 59.110 60.669 61.811 64.757 65.131 68.639
248
+ 0.683333 0.816667 0.000000
249
+ 0.438 1.638 4.112 7.590 19.659 24.195 27.460 28.625 32.454 37.144
250
+ 40.285 47.051 53.758 55.288 59.143 60.621 61.923 64.928 65.000 68.635
251
+ 0.691667 0.808333 0.000000
252
+ 0.422 1.633 4.095 7.680 19.532 24.188 27.529 28.715 32.382 37.254
253
+ 40.120 47.173 53.587 55.301 59.171 60.576 62.027 64.880 65.090 68.636
254
+ 0.700000 0.800000 0.000000
255
+ 0.407 1.628 4.080 7.759 19.420 24.183 27.591 28.793 32.318 37.360
256
+ 39.965 47.285 53.433 55.314 59.195 60.534 62.124 64.772 65.241 68.640
257
+ 0.708333 0.791667 0.000000
258
+ 0.395 1.624 4.067 7.828 19.324 24.178 27.645 28.861 32.263 37.461
259
+ 39.821 47.384 53.298 55.327 59.214 60.498 62.210 64.677 65.377 68.647
260
+ 0.716667 0.783333 0.000000
261
+ 0.385 1.620 4.057 7.885 19.244 24.174 27.690 28.917 32.216 37.554
262
+ 39.692 47.469 53.184 55.339 59.229 60.466 62.285 64.597 65.495 68.657
263
+ 0.725000 0.775000 0.000000
264
+ 0.377 1.617 4.049 7.930 19.181 24.170 27.726 28.961 32.179 37.635
265
+ 39.583 47.538 53.093 55.349 59.240 60.441 62.346 64.532 65.592 68.668
266
+ 0.733333 0.766667 0.000000
267
+ 0.371 1.615 4.043 7.963 19.136 24.168 27.753 28.992 32.152 37.699
268
+ 39.498 47.589 53.026 55.356 59.248 60.422 62.392 64.484 65.663 68.678
269
+ 0.741667 0.758333 0.000000
270
+ 0.368 1.614 4.041 7.983 19.109 24.168 27.769 29.014 32.137 37.741
271
+ 39.444 47.620 52.985 55.361 59.254 60.411 62.421 64.454 65.709 68.685
272
+ 0.750000 0.750000 0.000000
273
+ 0.367 1.614 4.041 7.991 19.100 24.169 27.779 29.023 32.133 37.757
274
+ 39.426 47.633 52.974 55.363 59.256 60.408 62.432 64.447 65.726 68.687
275
+ 0.725000 0.725000 0.000000
276
+ 0.122 1.829 3.911 8.177 19.286 25.049 27.355 28.829 31.545 37.907
277
+ 38.740 47.552 53.188 54.727 59.364 61.312 61.744 65.070 65.714 69.708
278
+ 0.700000 0.700000 0.000000
279
+ -0.197 2.064 3.883 8.379 19.486 25.911 26.921 28.636 30.997 38.045
280
+ 38.088 47.428 53.421 54.118 59.392 60.986 62.112 65.820 65.824 70.797
281
+ 0.675000 0.675000 0.000000
282
+ -0.575 2.320 3.943 8.594 19.699 26.479 26.706 28.444 30.525 37.470
283
+ 38.165 47.275 53.531 53.672 59.275 60.191 62.807 66.081 66.682 71.925
284
+ 0.650000 0.650000 0.000000
285
+ -0.992 2.596 4.073 8.822 19.924 26.032 27.337 28.260 30.216 36.890
286
+ 38.266 47.114 52.961 53.938 58.982 59.393 63.415 66.507 67.588 71.920
287
+ 0.625000 0.625000 0.000000
288
+ -1.434 2.891 4.261 9.060 20.158 25.584 27.629 28.074 30.236 36.349
289
+ 38.334 46.959 52.398 54.220 58.522 58.620 63.959 67.071 68.441 71.900
290
+ 0.600000 0.600000 0.000000
291
+ -1.886 3.205 4.493 9.306 20.398 25.137 27.515 27.898 30.637 35.850
292
+ 38.370 46.828 51.833 54.515 57.909 57.924 64.450 67.714 69.087 71.870
293
+ 0.575000 0.575000 0.000000
294
+ -2.341 3.538 4.762 9.560 20.641 24.694 27.165 27.725 31.236 35.394
295
+ 38.366 46.731 51.255 54.822 57.236 57.278 64.876 68.355 69.310 71.442
296
+ 0.550000 0.550000 0.000000
297
+ -2.792 3.890 5.064 9.819 20.884 24.259 26.724 27.567 31.885 34.983
298
+ 38.327 46.677 50.658 55.142 56.504 56.756 65.185 68.912 69.047 70.748
299
+ 0.525000 0.525000 0.000000
300
+ -3.235 4.261 5.394 10.084 21.123 23.835 26.253 27.426 32.508 34.621
301
+ 38.253 46.669 50.041 55.475 55.765 56.358 65.227 68.592 69.338 69.810
302
+ 0.500000 0.500000 0.000000
303
+ -3.665 4.650 5.748 10.348 21.349 23.420 25.770 27.301 33.064 34.308
304
+ 38.136 46.696 49.405 55.059 55.813 56.078 64.775 68.386 68.688 69.643
305
+ 0.475000 0.475000 0.000000
306
+ -4.082 5.055 6.122 10.612 21.556 23.017 25.288 27.195 33.530 34.047
307
+ 37.979 46.738 48.762 54.433 55.916 56.156 63.834 67.443 68.565 69.875
308
+ 0.450000 0.450000 0.000000
309
+ -4.482 5.479 6.518 10.874 21.738 22.629 24.818 27.119 33.840 33.908
310
+ 37.797 46.757 48.123 53.945 55.862 56.505 62.624 66.135 68.980 70.087
311
+ 0.425000 0.425000 0.000000
312
+ -4.865 5.919 6.929 11.130 21.886 22.256 24.356 27.067 33.689 34.186
313
+ 37.589 46.701 47.501 53.648 55.903 56.856 61.294 64.789 69.517 70.304
314
+ 0.400000 0.400000 0.000000
315
+ -5.229 6.375 7.356 11.378 21.899 21.995 23.905 27.043 33.597 34.370
316
+ 37.371 46.528 46.905 53.586 56.031 57.206 59.915 63.430 70.123 70.546
317
+ 0.375000 0.375000 0.000000
318
+ -5.574 6.846 7.796 11.618 21.561 22.055 23.469 27.044 33.565 34.471
319
+ 37.154 46.221 46.343 53.764 56.227 57.555 58.521 62.074 70.779 70.830
320
+ 0.350000 0.350000 0.000000
321
+ -5.898 7.331 8.247 11.846 21.240 22.064 23.044 27.065 33.595 34.495
322
+ 36.949 45.799 45.818 54.152 56.481 57.128 57.897 60.732 71.164 71.472
323
+ 0.325000 0.325000 0.000000
324
+ -6.202 7.828 8.707 12.061 20.939 22.019 22.632 27.097 33.687 34.456
325
+ 36.778 45.302 45.333 54.695 55.748 56.783 58.231 59.411 71.561 72.197
326
+ 0.300000 0.300000 0.000000
327
+ -6.484 8.337 9.174 12.261 20.656 21.922 22.232 27.130 33.844 34.366
328
+ 36.657 44.767 44.888 54.387 55.338 57.124 58.120 58.550 72.029 72.951
329
+ 0.275000 0.275000 0.000000
330
+ -6.745 8.855 9.644 12.445 20.395 21.776 21.845 27.155 34.066 34.236
331
+ 36.603 44.224 44.481 53.050 56.035 56.856 57.501 58.859 72.581 73.729
332
+ 0.250000 0.250000 0.000000
333
+ -6.984 9.381 10.115 12.613 20.162 21.472 21.586 27.161 34.080 34.352
334
+ 36.628 43.697 44.108 51.741 55.643 56.752 57.898 59.169 73.229 74.531
335
+ 0.225000 0.225000 0.000000
336
+ -7.201 9.908 10.578 12.758 19.941 21.105 21.349 27.142 33.896 34.703
337
+ 36.738 43.198 43.764 50.459 54.472 57.447 58.297 59.435 73.973 75.350
338
+ 0.200000 0.200000 0.000000
339
+ -7.395 10.436 11.037 12.891 19.745 20.756 21.076 27.100 33.700 35.118
340
+ 36.938 42.741 43.446 49.212 53.356 58.102 58.699 59.685 74.820 76.186
341
+ 0.175000 0.175000 0.000000
342
+ -7.567 10.958 11.481 13.007 19.571 20.422 20.773 27.040 33.501 35.596
343
+ 37.222 42.332 43.144 48.000 52.305 58.699 59.092 59.912 75.770 77.033
344
+ 0.150000 0.150000 0.000000
345
+ -7.717 11.465 11.902 13.106 19.419 20.106 20.446 26.968 33.306 36.136
346
+ 37.583 41.975 42.852 46.824 51.330 59.224 59.462 60.113 76.814 77.882
347
+ 0.125000 0.125000 0.000000
348
+ -7.843 11.951 12.296 13.188 19.292 19.815 20.110 26.893 33.126 36.735
349
+ 38.007 41.673 42.560 45.687 50.448 59.682 59.805 60.290 77.931 78.721
350
+ 0.100000 0.100000 0.000000
351
+ -7.947 12.397 12.646 13.255 19.186 19.550 19.780 26.822 32.965 37.391
352
+ 38.480 41.425 42.255 44.591 49.677 60.046 60.104 60.432 79.072 79.533
353
+ 0.075000 0.075000 0.000000
354
+ -8.027 12.789 12.944 13.304 19.104 19.324 19.476 26.760 32.832 38.101
355
+ 38.982 41.233 41.928 43.539 49.040 60.329 60.352 60.544 80.142 80.283
356
+ 0.050000 0.050000 0.000000
357
+ -8.085 13.091 13.170 13.336 19.045 19.148 19.224 26.713 32.732 38.859
358
+ 39.489 41.096 41.571 42.536 48.562 60.530 60.537 60.625 80.920 80.962
359
+ 0.025000 0.025000 0.000000
360
+ -8.120 13.294 13.315 13.358 19.010 19.037 19.057 26.683 32.671 39.645
361
+ 39.958 41.015 41.206 41.604 48.265 60.650 60.652 60.674 81.367 81.405
362
+ 0.000000 0.000000 0.000000
363
+ -8.131 13.365 13.365 13.365 18.998 18.998 18.998 26.673 32.650 40.213
364
+ 40.213 40.988 40.988 40.988 48.164 60.690 60.690 60.690 81.531 81.531
365
+ 0.016667 0.016667 0.016667
366
+ -8.124 13.308 13.350 13.350 19.016 19.016 19.034 26.680 32.664 39.901
367
+ 39.901 40.952 41.330 41.330 48.231 60.659 60.674 60.674 81.428 81.428
368
+ 0.033333 0.033333 0.033333
369
+ -8.101 13.142 13.309 13.309 19.071 19.071 19.138 26.700 32.705 39.401
370
+ 39.401 40.849 41.923 41.923 48.428 60.566 60.626 60.626 81.112 81.112
371
+ 0.050000 0.050000 0.050000
372
+ -8.062 12.884 13.241 13.241 19.160 19.160 19.296 26.734 32.772 38.902
373
+ 38.902 40.693 42.578 42.578 48.744 60.415 60.545 60.545 80.582 80.582
374
+ 0.066667 0.066667 0.066667
375
+ -8.008 12.547 13.153 13.153 19.278 19.278 19.494 26.781 32.863 38.428
376
+ 38.428 40.497 43.271 43.271 49.163 60.215 60.428 60.428 79.883 79.883
377
+ 0.083333 0.083333 0.083333
378
+ -7.939 12.147 13.044 13.044 19.422 19.422 19.713 26.841 32.973 37.986
379
+ 37.986 40.278 43.994 43.994 49.672 59.977 60.274 60.274 79.085 79.085
380
+ 0.100000 0.100000 0.100000
381
+ -7.854 11.699 12.926 12.926 19.586 19.586 19.943 26.914 33.100 37.582
382
+ 37.582 40.050 44.746 44.746 50.255 59.700 60.080 60.080 78.253 78.253
383
+ 0.116667 0.116667 0.116667
384
+ -7.755 11.212 12.790 12.790 19.765 19.765 20.173 27.000 33.237 37.216
385
+ 37.216 39.825 45.524 45.524 50.903 59.401 59.841 59.841 77.426 77.426
386
+ 0.133333 0.133333 0.133333
387
+ -7.640 10.696 12.646 12.646 19.953 19.953 20.392 27.098 33.376 36.892
388
+ 36.892 39.613 46.326 46.326 51.606 59.077 59.552 59.552 76.630 76.630
389
+ 0.150000 0.150000 0.150000
390
+ -7.510 10.161 12.499 12.499 20.148 20.148 20.606 27.208 33.516 36.612
391
+ 36.612 39.423 47.153 47.153 52.359 58.768 59.222 59.222 75.885 75.885
392
+ 0.166667 0.166667 0.166667
393
+ -7.365 9.610 12.348 12.348 20.343 20.343 20.803 27.327 33.649 36.378
394
+ 36.378 39.259 48.003 48.003 53.155 58.465 58.837 58.837 75.198 75.198
395
+ 0.183333 0.183333 0.183333
396
+ -7.205 9.050 12.196 12.196 20.535 20.535 20.984 27.454 33.770 36.192
397
+ 36.192 39.126 48.876 48.876 53.988 58.181 58.400 58.400 74.576 74.576
398
+ 0.200000 0.200000 0.200000
399
+ -7.030 8.482 12.046 12.046 20.717 20.717 21.148 27.589 33.872 36.055
400
+ 36.055 39.022 49.769 49.769 54.851 57.904 57.904 57.928 74.019 74.019
401
+ 0.216667 0.216667 0.216667
402
+ -6.840 7.910 11.899 11.899 20.892 20.892 21.296 27.728 33.959 35.969
403
+ 35.969 38.947 50.683 50.683 55.724 57.369 57.369 57.735 73.533 73.533
404
+ 0.233333 0.233333 0.233333
405
+ -6.636 7.338 11.759 11.759 21.055 21.055 21.430 27.869 34.029 35.934
406
+ 35.934 38.895 51.616 51.616 56.536 56.792 56.792 57.680 73.115 73.115
407
+ 0.250000 0.250000 0.250000
408
+ -6.417 6.766 11.621 11.621 21.203 21.203 21.547 28.006 34.082 35.952
409
+ 35.952 38.856 52.562 52.562 56.178 56.178 56.973 58.073 72.759 72.759
410
+ 0.266667 0.266667 0.266667
411
+ -6.184 6.197 11.490 11.490 21.334 21.334 21.654 28.140 34.129 36.021
412
+ 36.021 38.829 53.507 53.507 55.553 55.553 57.028 58.934 72.462 72.462
413
+ 0.283333 0.283333 0.283333
414
+ -5.938 5.632 11.366 11.366 21.447 21.447 21.748 28.273 34.169 36.139
415
+ 36.139 38.802 54.289 54.289 55.079 55.079 57.030 59.928 72.216 72.216
416
+ 0.300000 0.300000 0.300000
417
+ -5.677 5.074 11.250 11.250 21.547 21.547 21.832 28.401 34.213 36.306
418
+ 36.306 38.769 54.000 54.000 55.679 55.679 57.068 60.975 72.020 72.020
419
+ 0.316667 0.316667 0.316667
420
+ -5.403 4.523 11.142 11.142 21.629 21.629 21.905 28.520 34.264 36.516
421
+ 36.516 38.721 53.331 53.331 56.660 56.660 57.151 62.053 71.861 71.861
422
+ 0.333333 0.333333 0.333333
423
+ -5.117 3.981 11.043 11.043 21.696 21.696 21.969 28.629 34.325 36.768
424
+ 36.768 38.655 52.626 52.626 57.286 57.688 57.688 63.153 71.735 71.735
425
+ 0.350000 0.350000 0.350000
426
+ -4.819 3.449 10.952 10.952 21.750 21.750 22.025 28.726 34.401 37.054
427
+ 37.054 38.568 51.919 51.919 57.470 58.735 58.735 64.267 71.636 71.636
428
+ 0.366667 0.366667 0.366667
429
+ -4.510 2.930 10.870 10.870 21.792 21.792 22.074 28.811 34.491 37.368
430
+ 37.368 38.461 51.222 51.222 57.697 59.795 59.795 65.381 71.557 71.557
431
+ 0.383333 0.383333 0.383333
432
+ -4.192 2.427 10.797 10.797 21.823 21.823 22.115 28.882 34.598 37.703
433
+ 37.703 38.335 50.547 50.547 57.959 60.861 60.861 66.480 71.491 71.491
434
+ 0.400000 0.400000 0.400000
435
+ -3.867 1.939 10.734 10.734 21.846 21.846 22.151 28.941 34.717 38.047
436
+ 38.047 38.195 49.906 49.906 58.242 61.928 61.928 67.527 71.429 71.429
437
+ 0.416667 0.416667 0.416667
438
+ -3.539 1.473 10.680 10.680 21.862 21.862 22.180 28.989 34.843 38.047
439
+ 38.388 38.388 49.312 49.312 58.532 62.986 62.986 68.464 71.362 71.362
440
+ 0.433333 0.433333 0.433333
441
+ -3.214 1.034 10.637 10.637 21.873 21.873 22.205 29.032 34.972 37.907
442
+ 38.712 38.712 48.782 48.782 58.812 64.022 64.022 69.197 71.275 71.275
443
+ 0.450000 0.450000 0.450000
444
+ -2.905 0.636 10.602 10.602 21.879 21.879 22.223 29.060 35.093 37.769
445
+ 38.996 38.996 48.335 48.335 59.061 65.004 65.004 69.641 71.139 71.139
446
+ 0.466667 0.466667 0.466667
447
+ -2.632 0.300 10.578 10.578 21.883 21.883 22.236 29.079 35.195 37.655
448
+ 39.223 39.223 47.993 47.993 59.260 65.881 65.881 69.820 70.947 70.947
449
+ 0.483333 0.483333 0.483333
450
+ -2.432 0.063 10.563 10.563 21.885 21.885 22.244 29.090 35.264 37.579
451
+ 39.370 39.370 47.776 47.776 59.388 66.542 66.542 69.857 70.723 70.723
452
+ 0.500000 0.500000 0.500000
453
+ -2.358 -0.028 10.558 10.558 21.884 21.884 22.245 29.091 35.272 37.549
454
+ 39.419 39.419 47.702 47.702 59.432 66.802 66.802 69.857 70.606 70.606
455
+ 0.491667 0.516667 0.491667
456
+ -2.354 -0.025 10.540 10.551 21.881 21.897 22.258 29.091 35.256 37.552
457
+ 39.412 39.428 47.717 47.737 59.419 66.773 66.783 69.853 70.622 70.637
458
+ 0.483333 0.533333 0.483333
459
+ -2.344 -0.013 10.487 10.532 21.868 21.937 22.299 29.092 35.210 37.560
460
+ 39.393 39.453 47.762 47.842 59.382 66.691 66.728 69.840 70.672 70.723
461
+ 0.475000 0.550000 0.475000
462
+ -2.327 0.005 10.399 10.499 21.837 22.000 22.372 29.093 35.127 37.571
463
+ 39.357 39.495 47.835 48.014 59.319 66.564 66.639 69.818 70.737 70.845
464
+ 0.466667 0.566667 0.466667
465
+ -2.303 0.030 10.278 10.454 21.789 22.087 22.479 29.093 35.018 37.587
466
+ 39.309 39.562 47.936 48.247 59.231 66.404 66.525 69.787 70.808 70.988
467
+ 0.458333 0.583333 0.458333
468
+ -2.272 0.062 10.126 10.397 21.725 22.197 22.617 29.088 34.872 37.604
469
+ 39.250 39.657 48.064 48.536 59.118 66.221 66.390 69.743 70.866 71.126
470
+ 0.450000 0.600000 0.450000
471
+ -2.235 0.101 9.945 10.330 21.645 22.329 22.784 29.077 34.698 37.622
472
+ 39.181 39.786 48.216 48.874 58.980 66.024 66.241 69.686 70.890 71.225
473
+ 0.441667 0.616667 0.441667
474
+ -2.191 0.146 9.741 10.253 21.553 22.482 22.978 29.059 34.499 37.642
475
+ 39.105 39.952 48.390 49.256 58.819 65.824 66.083 69.614 70.858 71.248
476
+ 0.433333 0.633333 0.433333
477
+ -2.140 0.199 9.512 10.168 21.450 22.655 23.194 29.031 34.280 37.663
478
+ 39.023 40.155 48.585 49.675 58.635 65.618 65.920 69.526 70.756 71.177
479
+ 0.425000 0.650000 0.425000
480
+ -2.082 0.258 9.264 10.075 21.339 22.845 23.431 28.991 34.047 37.686
481
+ 38.937 40.394 48.797 50.126 58.431 65.412 65.756 69.420 70.578 71.038
482
+ 0.416667 0.666667 0.416667
483
+ -2.018 0.324 8.998 9.976 21.222 23.052 23.686 28.935 33.804 37.709
484
+ 38.850 40.669 49.026 50.604 58.208 65.203 65.594 69.295 70.329 70.867
485
+ 0.408333 0.683333 0.408333
486
+ -1.947 0.396 8.716 9.870 21.099 23.273 23.955 28.859 33.557 37.730
487
+ 38.763 40.978 49.268 51.104 57.968 64.991 65.433 69.153 70.014 70.690
488
+ 0.400000 0.700000 0.400000
489
+ -1.869 0.474 8.422 9.761 20.973 23.507 24.238 28.766 33.312 37.756
490
+ 38.679 41.318 49.521 51.622 57.718 64.773 65.281 68.999 69.644 70.521
491
+ 0.391667 0.716667 0.391667
492
+ -1.785 0.558 8.117 9.649 20.843 23.750 24.531 28.651 33.072 37.778
493
+ 38.597 41.686 49.784 52.152 57.458 64.546 65.135 68.837 69.224 70.364
494
+ 0.383333 0.733333 0.383333
495
+ -1.695 0.648 7.805 9.537 20.715 24.005 24.833 28.514 32.843 37.802
496
+ 38.523 42.081 50.053 52.690 57.198 64.309 65.000 68.673 68.767 70.225
497
+ 0.375000 0.750000 0.375000
498
+ -1.597 0.743 7.486 9.422 20.586 24.266 25.142 28.354 32.628 37.825
499
+ 38.456 42.497 50.328 53.230 56.945 64.060 64.873 68.277 68.510 70.101
500
+ 0.366667 0.766667 0.366667
501
+ -1.494 0.843 7.162 9.307 20.459 24.534 25.456 28.173 32.431 37.852
502
+ 38.399 42.934 50.605 53.759 56.711 63.799 64.755 67.763 68.349 69.996
503
+ 0.358333 0.783333 0.358333
504
+ -1.384 0.948 6.837 9.193 20.333 24.804 25.772 27.971 32.253 37.875
505
+ 38.352 43.385 50.881 54.254 56.521 63.525 64.647 67.231 68.188 69.910
506
+ 0.350000 0.800000 0.350000
507
+ -1.268 1.056 6.510 9.079 20.211 25.077 26.084 27.754 32.094 37.896
508
+ 38.319 43.846 51.155 54.672 56.424 63.244 64.545 66.692 68.019 69.849
509
+ 0.341667 0.816667 0.341667
510
+ -1.145 1.166 6.185 8.967 20.092 25.350 26.388 27.524 31.955 37.913
511
+ 38.299 44.314 51.424 54.919 56.508 62.953 64.442 66.157 67.844 69.815
512
+ 0.333333 0.833333 0.333333
513
+ -1.018 1.277 5.863 8.858 19.976 25.619 26.650 27.311 31.836 37.927
514
+ 38.295 44.780 51.684 54.964 56.808 62.659 64.324 65.648 67.651 69.811
515
+ 0.325000 0.850000 0.325000
516
+ -0.884 1.388 5.550 8.751 19.865 25.885 26.739 27.262 31.740 37.937
517
+ 38.309 45.241 51.932 54.893 57.244 62.372 64.151 65.210 67.451 69.840
518
+ 0.316667 0.866667 0.316667
519
+ -0.745 1.495 5.246 8.648 19.758 26.144 26.554 27.464 31.664 37.943
520
+ 38.342 45.685 52.166 54.786 57.732 62.094 63.861 64.909 67.232 69.900
521
+ 0.308333 0.883333 0.308333
522
+ -0.601 1.595 4.956 8.548 19.656 26.284 26.394 27.725 31.611 37.941
523
+ 38.395 46.105 52.379 54.690 58.221 61.839 63.449 64.755 66.997 69.991
524
+ 0.300000 0.900000 0.300000
525
+ -0.454 1.683 4.689 8.453 19.559 25.990 26.635 27.992 31.584 37.931
526
+ 38.470 46.490 52.570 54.625 58.679 61.629 62.975 64.690 66.756 70.109
527
+ 0.291667 0.916667 0.291667
528
+ -0.303 1.751 4.451 8.363 19.468 25.688 26.864 28.242 31.588 37.920
529
+ 38.568 46.829 52.734 54.614 59.061 61.500 62.488 64.671 66.514 70.254
530
+ 0.283333 0.933333 0.283333
531
+ -0.150 1.791 4.254 8.277 19.383 25.381 27.078 28.468 31.621 37.900
532
+ 38.690 47.113 52.864 54.660 59.316 61.496 62.010 64.669 66.278 70.419
533
+ 0.275000 0.950000 0.275000
534
+ 0.001 1.794 4.109 8.197 19.303 25.073 27.278 28.662 31.691 37.875
535
+ 38.836 47.335 52.958 54.769 59.414 61.555 61.641 64.669 66.061 70.178
536
+ 0.266667 0.966667 0.266667
537
+ 0.145 1.759 4.026 8.122 19.230 24.769 27.465 28.822 31.802 37.845
538
+ 39.008 47.495 53.012 54.935 59.395 61.132 61.896 64.650 65.881 69.590
539
+ 0.258333 0.983333 0.258333
540
+ 0.273 1.690 4.005 8.053 19.162 24.465 27.630 28.941 31.949 37.804
541
+ 39.204 47.591 53.017 55.142 59.320 60.747 62.182 64.586 65.759 69.082
542
+ 0.250000 1.000000 0.250000
543
+ 0.367 1.614 4.041 7.991 19.100 24.169 27.779 29.023 32.133 37.757
544
+ 39.426 47.633 52.974 55.363 59.256 60.408 62.432 64.447 65.726 68.687
545
+ 0.258333 1.000000 0.241667
546
+ 0.368 1.614 4.041 7.983 19.109 24.168 27.769 29.014 32.137 37.741
547
+ 39.444 47.620 52.985 55.361 59.254 60.411 62.421 64.454 65.709 68.685
548
+ 0.266667 1.000000 0.233333
549
+ 0.371 1.615 4.043 7.963 19.136 24.168 27.753 28.992 32.152 37.699
550
+ 39.498 47.589 53.026 55.356 59.248 60.422 62.392 64.484 65.663 68.678
551
+ 0.275000 1.000000 0.225000
552
+ 0.377 1.617 4.049 7.930 19.181 24.170 27.726 28.961 32.179 37.635
553
+ 39.583 47.538 53.093 55.349 59.240 60.441 62.346 64.532 65.592 68.668
554
+ 0.283333 1.000000 0.216667
555
+ 0.385 1.620 4.057 7.885 19.244 24.174 27.690 28.917 32.216 37.554
556
+ 39.692 47.469 53.184 55.339 59.229 60.466 62.285 64.597 65.495 68.657
557
+ 0.291667 1.000000 0.208333
558
+ 0.395 1.624 4.067 7.828 19.324 24.178 27.645 28.861 32.263 37.461
559
+ 39.821 47.384 53.298 55.327 59.214 60.498 62.210 64.677 65.377 68.647
560
+ 0.300000 1.000000 0.200000
561
+ 0.407 1.628 4.080 7.759 19.420 24.183 27.591 28.793 32.318 37.360
562
+ 39.965 47.285 53.433 55.314 59.195 60.534 62.124 64.772 65.241 68.640
563
+ 0.308333 1.000000 0.191667
564
+ 0.422 1.633 4.095 7.680 19.532 24.188 27.529 28.715 32.382 37.254
565
+ 40.120 47.173 53.587 55.301 59.171 60.576 62.027 64.880 65.090 68.636
566
+ 0.316667 1.000000 0.183333
567
+ 0.438 1.638 4.112 7.590 19.659 24.195 27.460 28.625 32.454 37.144
568
+ 40.285 47.051 53.758 55.288 59.143 60.621 61.923 64.928 65.000 68.635
569
+ 0.325000 1.000000 0.175000
570
+ 0.457 1.644 4.131 7.492 19.800 24.202 27.385 28.526 32.532 37.034
571
+ 40.456 46.920 53.943 55.277 59.110 60.669 61.811 64.757 65.131 68.639
572
+ 0.333333 1.000000 0.166667
573
+ 0.479 1.651 4.153 7.386 19.954 24.210 27.306 28.418 32.617 36.924
574
+ 40.633 46.784 54.142 55.268 59.071 60.718 61.694 64.581 65.275 68.647
575
+ 0.341667 1.000000 0.158333
576
+ 0.502 1.657 4.177 7.273 20.120 24.218 27.220 28.297 32.704 36.809
577
+ 40.812 46.640 54.352 55.261 59.026 60.768 61.572 64.401 65.428 68.657
578
+ 0.350000 1.000000 0.150000
579
+ 0.528 1.663 4.203 7.153 20.297 24.226 27.131 28.171 32.799 36.697
580
+ 40.995 46.493 54.572 55.259 58.975 60.817 61.448 64.219 65.591 68.672
581
+ 0.358333 1.000000 0.141667
582
+ 0.556 1.670 4.231 7.028 20.486 24.235 27.039 28.039 32.897 36.586
583
+ 41.180 46.343 54.802 55.262 58.916 60.863 61.324 64.038 65.764 68.690
584
+ 0.366667 1.000000 0.133333
585
+ 0.586 1.675 4.262 6.899 20.683 24.244 26.944 27.899 32.999 36.474
586
+ 41.365 46.190 55.040 55.271 58.850 60.900 61.206 63.857 65.947 68.711
587
+ 0.375000 1.000000 0.125000
588
+ 0.618 1.680 4.295 6.768 20.890 24.252 26.850 27.754 33.104 36.364
589
+ 41.551 46.037 55.286 55.287 58.775 60.905 61.117 63.680 66.142 68.736
590
+ 0.383333 1.000000 0.116667
591
+ 0.653 1.684 4.329 6.632 21.104 24.260 26.752 27.603 33.209 36.253
592
+ 41.735 45.882 55.310 55.537 58.693 60.838 61.096 63.505 66.343 68.761
593
+ 0.391667 1.000000 0.108333
594
+ 0.690 1.687 4.367 6.496 21.326 24.267 26.654 27.448 33.319 36.143
595
+ 41.918 45.727 55.342 55.793 58.602 60.723 61.121 63.333 66.554 68.790
596
+ 0.400000 1.000000 0.100000
597
+ 0.729 1.688 4.406 6.361 21.553 24.273 26.559 27.289 33.431 36.033
598
+ 42.100 45.575 55.382 56.054 58.502 60.593 61.158 63.166 66.774 68.821
599
+ 0.408333 1.000000 0.091667
600
+ 0.770 1.687 4.447 6.224 21.785 24.277 26.462 27.126 33.542 35.923
601
+ 42.277 45.421 55.432 56.319 58.393 60.458 61.197 63.001 66.999 68.852
602
+ 0.416667 1.000000 0.083333
603
+ 0.814 1.683 4.490 6.089 22.021 24.279 26.367 26.962 33.654 35.814
604
+ 42.452 45.270 55.492 56.586 58.277 60.321 61.236 62.841 67.233 68.886
605
+ 0.425000 1.000000 0.075000
606
+ 0.859 1.676 4.536 5.956 22.260 24.278 26.275 26.796 33.765 35.705
607
+ 42.621 45.120 55.563 56.853 58.152 60.183 61.274 62.682 67.472 68.920
608
+ 0.433333 1.000000 0.066667
609
+ 0.907 1.665 4.583 5.828 22.501 24.275 26.187 26.631 33.878 35.596
610
+ 42.787 44.973 55.645 57.120 58.021 60.046 61.310 62.527 67.716 68.956
611
+ 0.441667 1.000000 0.058333
612
+ 0.957 1.650 4.633 5.703 22.742 24.267 26.104 26.467 33.990 35.488
613
+ 42.948 44.829 55.738 57.380 57.890 59.908 61.346 62.375 67.964 68.992
614
+ 0.450000 1.000000 0.050000
615
+ 1.010 1.630 4.684 5.584 22.980 24.255 26.027 26.307 34.103 35.380
616
+ 43.104 44.687 55.843 57.587 57.802 59.772 61.379 62.227 68.212 69.028
617
+ 0.458333 1.000000 0.041667
618
+ 1.064 1.605 4.738 5.471 23.213 24.238 25.955 26.153 34.214 35.272
619
+ 43.254 44.549 55.960 57.536 57.961 59.637 61.412 62.082 68.458 69.065
620
+ 0.466667 1.000000 0.033333
621
+ 1.121 1.573 4.793 5.366 23.437 24.214 25.891 26.011 34.324 35.167
622
+ 43.398 44.414 56.088 57.389 58.202 59.504 61.443 61.944 68.695 69.101
623
+ 0.475000 1.000000 0.025000
624
+ 1.180 1.534 4.850 5.268 23.645 24.185 25.835 25.884 34.433 35.061
625
+ 43.536 44.283 56.229 57.228 58.439 59.373 61.473 61.815 68.913 69.136
626
+ 0.483333 1.000000 0.016667
627
+ 1.242 1.488 4.909 5.180 23.828 24.148 25.786 25.788 34.542 34.959
628
+ 43.669 44.156 56.381 57.061 58.658 59.244 61.506 61.703 69.096 69.170
629
+ 0.491667 1.000000 0.008333
630
+ 1.305 1.433 4.970 5.102 23.969 24.106 25.725 25.750 34.650 34.855
631
+ 43.795 44.033 56.543 56.890 58.848 59.118 61.535 61.617 69.203 69.211
632
+ 0.500000 1.000000 0.000000
633
+ 1.371 1.371 5.033 5.033 24.055 24.055 25.720 25.720 34.753 34.753
634
+ 43.914 43.914 56.715 56.715 58.995 58.995 61.564 61.564 69.234 69.234
635
+ 0.500000 0.983333 0.016667
636
+ 1.177 1.552 4.867 5.224 23.883 24.184 25.677 25.817 34.456 35.029
637
+ 43.577 44.234 56.222 57.217 58.601 59.269 61.546 61.727 69.078 69.252
638
+ 0.500000 0.966667 0.033333
639
+ 0.975 1.712 4.735 5.435 23.687 24.247 25.708 25.949 34.142 35.290
640
+ 43.234 44.527 55.748 57.715 58.137 59.395 61.631 62.055 68.801 69.180
641
+ 0.500000 0.950000 0.050000
642
+ 0.770 1.843 4.647 5.661 23.482 24.242 25.817 26.105 33.815 35.534
643
+ 42.890 44.782 55.308 57.644 58.199 59.397 61.783 62.522 68.470 69.059
644
+ 0.500000 0.933333 0.066667
645
+ 0.565 1.934 4.611 5.898 23.276 24.182 25.987 26.275 33.476 35.761
646
+ 42.551 44.984 54.912 57.145 58.632 59.338 61.984 63.075 68.142 68.916
647
+ 0.500000 0.916667 0.083333
648
+ 0.362 1.979 4.636 6.144 23.075 24.087 26.198 26.455 33.133 35.972
649
+ 42.223 45.120 54.571 56.656 58.844 59.413 62.221 63.672 67.857 68.763
650
+ 0.500000 0.900000 0.100000
651
+ 0.163 1.977 4.722 6.396 22.881 23.972 26.423 26.642 32.787 36.169
652
+ 41.908 45.179 54.290 56.193 58.701 59.762 62.489 64.275 67.642 68.607
653
+ 0.500000 0.883333 0.116667
654
+ -0.032 1.932 4.863 6.652 22.696 23.844 26.647 26.829 32.446 36.346
655
+ 41.605 45.150 54.060 55.774 58.418 60.170 62.783 64.851 67.522 68.451
656
+ 0.500000 0.866667 0.133333
657
+ -0.221 1.853 5.051 6.912 22.525 23.714 26.856 27.020 32.127 36.512
658
+ 41.319 45.035 53.856 55.432 58.065 60.574 63.100 65.366 67.526 68.305
659
+ 0.500000 0.850000 0.150000
660
+ -0.404 1.751 5.277 7.172 22.365 23.582 27.029 27.211 31.842 36.662
661
+ 41.051 44.838 53.628 55.211 57.654 60.962 63.435 65.792 67.667 68.172
662
+ 0.500000 0.833333 0.166667
663
+ -0.580 1.633 5.531 7.431 22.220 23.451 27.147 27.399 31.613 36.799
664
+ 40.799 44.568 53.337 55.140 57.191 61.331 63.780 66.127 67.927 68.058
665
+ 0.500000 0.816667 0.183333
666
+ -0.748 1.506 5.808 7.689 22.090 23.327 27.190 27.586 31.463 36.928
667
+ 40.570 44.242 52.987 55.208 56.688 61.683 64.130 66.409 67.975 68.263
668
+ 0.500000 0.800000 0.200000
669
+ -0.910 1.374 6.099 7.943 21.975 23.203 27.138 27.766 31.405 37.042
670
+ 40.356 43.871 52.597 55.376 56.146 62.018 64.471 66.670 67.930 68.607
671
+ 0.500000 0.783333 0.216667
672
+ -1.063 1.242 6.405 8.192 21.876 23.085 26.993 27.943 31.448 37.148
673
+ 40.161 43.472 52.191 55.577 55.614 62.342 64.792 66.946 67.939 68.933
674
+ 0.500000 0.766667 0.233333
675
+ -1.209 1.112 6.720 8.435 21.793 22.972 26.759 28.111 31.581 37.241
676
+ 39.983 43.057 51.779 54.985 55.895 62.657 65.074 67.232 68.016 69.224
677
+ 0.500000 0.750000 0.250000
678
+ -1.346 0.985 7.041 8.670 21.726 22.864 26.456 28.266 31.784 37.323
679
+ 39.824 42.637 51.369 54.377 56.203 62.967 65.304 67.532 68.173 69.477
680
+ 0.500000 0.733333 0.266667
681
+ -1.475 0.863 7.366 8.896 21.676 22.762 26.107 28.413 32.043 37.399
682
+ 39.684 42.222 50.968 53.763 56.528 63.275 65.479 67.841 68.412 69.701
683
+ 0.500000 0.716667 0.283333
684
+ -1.596 0.746 7.693 9.112 21.641 22.666 25.725 28.549 32.337 37.465
685
+ 39.561 41.821 50.578 53.145 56.859 63.582 65.606 68.147 68.723 69.899
686
+ 0.500000 0.700000 0.300000
687
+ -1.708 0.636 8.018 9.316 21.619 22.576 25.326 28.668 32.653 37.516
688
+ 39.457 41.439 50.202 52.529 57.187 63.890 65.699 68.444 69.087 70.079
689
+ 0.500000 0.683333 0.316667
690
+ -1.811 0.534 8.339 9.507 21.613 22.492 24.922 28.773 32.982 37.560
691
+ 39.371 41.083 49.844 51.922 57.509 64.200 65.774 68.721 69.486 70.247
692
+ 0.500000 0.666667 0.333333
693
+ -1.905 0.439 8.654 9.685 21.620 22.415 24.521 28.862 33.313 37.592
694
+ 39.305 40.759 49.505 51.329 57.817 64.511 65.845 68.971 69.898 70.408
695
+ 0.500000 0.650000 0.350000
696
+ -1.991 0.352 8.958 9.848 21.639 22.344 24.131 28.936 33.638 37.617
697
+ 39.259 40.470 49.189 50.756 58.108 64.822 65.920 69.185 70.309 70.559
698
+ 0.500000 0.633333 0.366667
699
+ -2.067 0.274 9.249 9.994 21.666 22.278 23.759 28.993 33.951 37.631
700
+ 39.233 40.218 48.896 50.208 58.375 65.130 66.006 69.363 70.691 70.693
701
+ 0.500000 0.616667 0.383333
702
+ -2.135 0.204 9.522 10.125 21.699 22.218 23.412 29.035 34.243 37.633
703
+ 39.227 40.005 48.630 49.692 58.617 65.434 66.107 69.504 70.798 71.008
704
+ 0.500000 0.600000 0.400000
705
+ -2.194 0.144 9.772 10.239 21.736 22.163 23.097 29.064 34.508 37.626
706
+ 39.239 39.831 48.393 49.215 58.831 65.726 66.221 69.614 70.859 71.200
707
+ 0.500000 0.583333 0.416667
708
+ -2.244 0.092 9.998 10.337 21.774 22.110 22.822 29.082 34.740 37.613
709
+ 39.267 39.693 48.188 48.787 59.014 66.007 66.348 69.698 70.870 71.213
710
+ 0.500000 0.566667 0.433333
711
+ -2.285 0.049 10.191 10.416 21.811 22.057 22.596 29.090 34.928 37.595
712
+ 39.305 39.588 48.016 48.416 59.164 66.261 66.478 69.760 70.831 71.088
713
+ 0.500000 0.550000 0.450000
714
+ -2.316 0.016 10.348 10.478 21.842 22.001 22.428 29.093 35.082 37.578
715
+ 39.347 39.513 47.880 48.114 59.281 66.481 66.601 69.805 70.763 70.917
716
+ 0.500000 0.533333 0.466667
717
+ -2.339 -0.009 10.464 10.522 21.866 21.944 22.319 29.092 35.186 37.563
718
+ 39.384 39.461 47.781 47.888 59.365 66.653 66.706 69.834 70.685 70.758
719
+ 0.500000 0.516667 0.483333
720
+ -2.353 -0.023 10.534 10.549 21.880 21.901 22.262 29.091 35.250 37.553
721
+ 39.410 39.431 47.722 47.749 59.415 66.764 66.777 69.852 70.629 70.648
722
+ 0.500000 0.500000 0.500000
723
+ -2.358 -0.028 10.558 10.558 21.884 21.884 22.245 29.091 35.272 37.549
724
+ 39.419 39.419 47.702 47.702 59.432 66.802 66.802 69.857 70.606 70.606
725
+ 0.508333 0.508333 0.483333
726
+ -2.354 -0.025 10.540 10.551 21.881 21.897 22.258 29.091 35.256 37.552
727
+ 39.412 39.428 47.717 47.737 59.419 66.773 66.783 69.853 70.622 70.637
728
+ 0.516667 0.516667 0.466667
729
+ -2.344 -0.013 10.487 10.532 21.868 21.937 22.299 29.092 35.210 37.560
730
+ 39.393 39.453 47.762 47.842 59.382 66.691 66.728 69.840 70.672 70.723
731
+ 0.525000 0.525000 0.450000
732
+ -2.327 0.005 10.399 10.499 21.837 22.000 22.372 29.093 35.127 37.571
733
+ 39.357 39.495 47.835 48.014 59.319 66.564 66.639 69.818 70.737 70.845
734
+ 0.533333 0.533333 0.433333
735
+ -2.303 0.030 10.278 10.454 21.789 22.087 22.479 29.093 35.018 37.587
736
+ 39.309 39.562 47.936 48.247 59.231 66.404 66.525 69.787 70.808 70.988
737
+ 0.541667 0.541667 0.416667
738
+ -2.272 0.062 10.126 10.397 21.725 22.197 22.617 29.088 34.872 37.604
739
+ 39.250 39.657 48.064 48.536 59.118 66.221 66.390 69.743 70.866 71.126
740
+ 0.550000 0.550000 0.400000
741
+ -2.235 0.101 9.945 10.330 21.645 22.329 22.784 29.077 34.698 37.622
742
+ 39.181 39.786 48.216 48.874 58.980 66.024 66.241 69.686 70.890 71.225
743
+ 0.558333 0.558333 0.383333
744
+ -2.191 0.146 9.741 10.253 21.553 22.482 22.978 29.059 34.499 37.642
745
+ 39.105 39.952 48.390 49.256 58.819 65.824 66.083 69.614 70.858 71.248
746
+ 0.566667 0.566667 0.366667
747
+ -2.140 0.199 9.512 10.168 21.450 22.655 23.194 29.031 34.280 37.663
748
+ 39.023 40.155 48.585 49.675 58.635 65.618 65.920 69.526 70.756 71.177
749
+ 0.575000 0.575000 0.350000
750
+ -2.082 0.258 9.264 10.075 21.339 22.845 23.431 28.991 34.047 37.686
751
+ 38.937 40.394 48.797 50.126 58.431 65.412 65.756 69.420 70.578 71.038
752
+ 0.583333 0.583333 0.333333
753
+ -2.018 0.324 8.998 9.976 21.222 23.052 23.686 28.935 33.804 37.709
754
+ 38.850 40.669 49.026 50.604 58.208 65.203 65.594 69.295 70.329 70.867
755
+ 0.591667 0.591667 0.316667
756
+ -1.947 0.396 8.716 9.870 21.099 23.273 23.955 28.859 33.557 37.730
757
+ 38.763 40.978 49.268 51.104 57.968 64.991 65.433 69.153 70.014 70.690
758
+ 0.600000 0.600000 0.300000
759
+ -1.869 0.474 8.422 9.761 20.973 23.507 24.238 28.766 33.312 37.756
760
+ 38.679 41.318 49.521 51.622 57.718 64.773 65.281 68.999 69.644 70.521
761
+ 0.608333 0.608333 0.283333
762
+ -1.785 0.558 8.117 9.649 20.843 23.750 24.531 28.651 33.072 37.778
763
+ 38.597 41.686 49.784 52.152 57.458 64.546 65.135 68.837 69.224 70.364
764
+ 0.616667 0.616667 0.266667
765
+ -1.695 0.648 7.805 9.537 20.715 24.005 24.833 28.514 32.843 37.802
766
+ 38.523 42.081 50.053 52.690 57.198 64.309 65.000 68.673 68.767 70.225
767
+ 0.625000 0.625000 0.250000
768
+ -1.597 0.743 7.486 9.422 20.586 24.266 25.142 28.354 32.628 37.825
769
+ 38.456 42.497 50.328 53.230 56.945 64.060 64.873 68.277 68.510 70.101
770
+ 0.633333 0.633333 0.233333
771
+ -1.494 0.843 7.162 9.307 20.459 24.534 25.456 28.173 32.431 37.852
772
+ 38.399 42.934 50.605 53.759 56.711 63.799 64.755 67.763 68.349 69.996
773
+ 0.641667 0.641667 0.216667
774
+ -1.384 0.948 6.837 9.193 20.333 24.804 25.772 27.971 32.253 37.875
775
+ 38.352 43.385 50.881 54.254 56.521 63.525 64.647 67.231 68.188 69.910
776
+ 0.650000 0.650000 0.200000
777
+ -1.268 1.056 6.510 9.079 20.211 25.077 26.084 27.754 32.094 37.896
778
+ 38.319 43.846 51.155 54.672 56.424 63.244 64.545 66.692 68.019 69.849
779
+ 0.658333 0.658333 0.183333
780
+ -1.145 1.166 6.185 8.967 20.092 25.350 26.388 27.524 31.955 37.913
781
+ 38.299 44.314 51.424 54.919 56.508 62.953 64.442 66.157 67.844 69.815
782
+ 0.666667 0.666667 0.166667
783
+ -1.018 1.277 5.863 8.858 19.976 25.619 26.650 27.311 31.836 37.927
784
+ 38.295 44.780 51.684 54.964 56.808 62.659 64.324 65.648 67.651 69.811
785
+ 0.675000 0.675000 0.150000
786
+ -0.884 1.388 5.550 8.751 19.865 25.885 26.739 27.262 31.740 37.937
787
+ 38.309 45.241 51.932 54.893 57.244 62.372 64.151 65.210 67.451 69.840
788
+ 0.683333 0.683333 0.133333
789
+ -0.745 1.495 5.246 8.648 19.758 26.144 26.554 27.464 31.664 37.943
790
+ 38.342 45.685 52.166 54.786 57.732 62.094 63.861 64.909 67.232 69.900
791
+ 0.691667 0.691667 0.116667
792
+ -0.601 1.595 4.956 8.548 19.656 26.284 26.394 27.725 31.611 37.941
793
+ 38.395 46.105 52.379 54.690 58.221 61.839 63.449 64.755 66.997 69.991
794
+ 0.700000 0.700000 0.100000
795
+ -0.454 1.683 4.689 8.453 19.559 25.990 26.635 27.992 31.584 37.931
796
+ 38.470 46.490 52.570 54.625 58.679 61.629 62.975 64.690 66.756 70.109
797
+ 0.708333 0.708333 0.083333
798
+ -0.303 1.751 4.451 8.363 19.468 25.688 26.864 28.242 31.588 37.920
799
+ 38.568 46.829 52.734 54.614 59.061 61.500 62.488 64.671 66.514 70.254
800
+ 0.716667 0.716667 0.066667
801
+ -0.150 1.791 4.254 8.277 19.383 25.381 27.078 28.468 31.621 37.900
802
+ 38.690 47.113 52.864 54.660 59.316 61.496 62.010 64.669 66.278 70.419
803
+ 0.725000 0.725000 0.050000
804
+ 0.001 1.794 4.109 8.197 19.303 25.073 27.278 28.662 31.691 37.875
805
+ 38.836 47.335 52.958 54.769 59.414 61.555 61.641 64.669 66.061 70.178
806
+ 0.733333 0.733333 0.033333
807
+ 0.145 1.759 4.026 8.122 19.230 24.769 27.465 28.822 31.802 37.845
808
+ 39.008 47.495 53.012 54.935 59.395 61.132 61.896 64.650 65.881 69.590
809
+ 0.741667 0.741667 0.016667
810
+ 0.273 1.690 4.005 8.053 19.162 24.465 27.630 28.941 31.949 37.804
811
+ 39.204 47.591 53.017 55.142 59.320 60.747 62.182 64.586 65.759 69.082
812
+ 0.750000 0.750000 0.000000
813
+ 0.367 1.614 4.041 7.991 19.100 24.169 27.779 29.023 32.133 37.757
814
+ 39.426 47.633 52.974 55.363 59.256 60.408 62.432 64.447 65.726 68.687
815
+ 0.733333 0.758333 0.008333
816
+ 0.328 1.651 4.018 8.006 19.151 24.316 27.690 28.969 32.048 37.746
817
+ 39.355 47.593 53.029 55.249 59.279 60.578 62.297 64.545 65.696 68.860
818
+ 0.716667 0.766667 0.016667
819
+ 0.283 1.694 4.014 7.994 19.243 24.468 27.576 28.883 31.997 37.670
820
+ 39.377 47.503 53.130 55.130 59.307 60.765 62.132 64.648 65.640 69.036
821
+ 0.700000 0.775000 0.025000
822
+ 0.234 1.736 4.029 7.956 19.376 24.623 27.429 28.766 31.977 37.547
823
+ 39.471 47.366 53.265 55.011 59.335 60.939 61.977 64.748 65.567 69.198
824
+ 0.683333 0.783333 0.033333
825
+ 0.184 1.775 4.064 7.894 19.547 24.779 27.249 28.629 31.981 37.402
826
+ 39.616 47.191 53.424 54.899 59.357 61.037 61.901 64.842 65.487 69.334
827
+ 0.666667 0.791667 0.041667
828
+ 0.136 1.809 4.117 7.810 19.753 24.933 27.034 28.478 32.001 37.248
829
+ 39.793 46.987 53.596 54.801 59.366 60.995 61.972 64.938 65.409 69.440
830
+ 0.650000 0.800000 0.050000
831
+ 0.089 1.836 4.188 7.708 19.992 25.082 26.791 28.321 32.034 37.100
832
+ 39.990 46.761 53.767 54.727 59.353 60.856 62.149 65.046 65.341 69.518
833
+ 0.633333 0.808333 0.058333
834
+ 0.046 1.857 4.273 7.592 20.259 25.217 26.532 28.162 32.073 36.963
835
+ 40.200 46.521 53.916 54.695 59.306 60.697 62.354 65.180 65.283 69.563
836
+ 0.616667 0.816667 0.066667
837
+ 0.007 1.872 4.371 7.464 20.552 25.312 26.285 28.000 32.114 36.838
838
+ 40.417 46.274 54.014 54.728 59.216 60.560 62.543 65.236 65.359 69.572
839
+ 0.600000 0.825000 0.075000
840
+ -0.028 1.883 4.478 7.331 20.865 25.303 26.122 27.840 32.154 36.730
841
+ 40.633 46.028 54.050 54.834 59.080 60.465 62.694 65.200 65.592 69.536
842
+ 0.583333 0.833333 0.083333
843
+ -0.058 1.889 4.588 7.199 21.195 25.129 26.111 27.678 32.191 36.638
844
+ 40.842 45.791 54.045 54.989 58.909 60.410 62.802 65.173 65.885 69.447
845
+ 0.566667 0.841667 0.091667
846
+ -0.082 1.893 4.697 7.071 21.537 24.841 26.205 27.515 32.223 36.562
847
+ 41.037 45.572 54.022 55.161 58.723 60.383 62.870 65.152 66.227 69.293
848
+ 0.550000 0.850000 0.100000
849
+ -0.102 1.895 4.796 6.956 21.880 24.511 26.342 27.350 32.249 36.503
850
+ 41.207 45.382 53.997 55.325 58.541 60.373 62.908 65.137 66.602 69.074
851
+ 0.533333 0.858333 0.108333
852
+ -0.116 1.896 4.878 6.864 22.211 24.183 26.496 27.189 32.269 36.465
853
+ 41.344 45.233 53.976 55.464 58.391 60.372 62.929 65.127 66.988 68.806
854
+ 0.516667 0.866667 0.116667
855
+ -0.124 1.896 4.933 6.803 22.487 23.903 26.651 27.029 32.280 36.439
856
+ 41.430 45.137 53.962 55.557 58.287 60.373 62.937 65.120 67.335 68.526
857
+ 0.500000 0.875000 0.125000
858
+ -0.127 1.896 4.951 6.781 22.608 23.779 26.753 26.923 32.280 36.430
859
+ 41.460 45.102 53.957 55.590 58.249 60.373 62.938 65.116 67.507 68.374
860
+ 0.483333 0.883333 0.133333
861
+ -0.124 1.896 4.933 6.803 22.487 23.903 26.651 27.029 32.280 36.439
862
+ 41.430 45.137 53.962 55.557 58.287 60.373 62.937 65.120 67.335 68.526
863
+ 0.466667 0.891667 0.141667
864
+ -0.116 1.896 4.878 6.864 22.211 24.183 26.496 27.189 32.269 36.465
865
+ 41.344 45.233 53.976 55.464 58.391 60.372 62.929 65.127 66.988 68.806
866
+ 0.450000 0.900000 0.150000
867
+ -0.102 1.895 4.796 6.956 21.880 24.511 26.342 27.350 32.249 36.503
868
+ 41.207 45.382 53.997 55.325 58.541 60.373 62.908 65.137 66.602 69.074
869
+ 0.433333 0.908333 0.158333
870
+ -0.082 1.893 4.697 7.071 21.537 24.841 26.205 27.515 32.223 36.562
871
+ 41.037 45.572 54.022 55.161 58.723 60.383 62.870 65.152 66.227 69.293
872
+ 0.416667 0.916667 0.166667
873
+ -0.058 1.889 4.588 7.199 21.195 25.129 26.111 27.678 32.191 36.638
874
+ 40.842 45.791 54.045 54.989 58.909 60.410 62.802 65.173 65.885 69.447
875
+ 0.400000 0.925000 0.175000
876
+ -0.028 1.883 4.478 7.331 20.865 25.303 26.122 27.840 32.154 36.730
877
+ 40.633 46.028 54.050 54.834 59.080 60.465 62.694 65.200 65.592 69.536
878
+ 0.383333 0.933333 0.183333
879
+ 0.007 1.872 4.371 7.464 20.552 25.312 26.285 28.000 32.114 36.838
880
+ 40.417 46.274 54.014 54.728 59.216 60.560 62.543 65.236 65.359 69.572
881
+ 0.366667 0.941667 0.191667
882
+ 0.046 1.857 4.273 7.592 20.259 25.217 26.532 28.162 32.073 36.963
883
+ 40.200 46.521 53.916 54.695 59.306 60.697 62.354 65.180 65.283 69.563
884
+ 0.350000 0.950000 0.200000
885
+ 0.089 1.836 4.188 7.708 19.992 25.082 26.791 28.321 32.034 37.100
886
+ 39.990 46.761 53.767 54.727 59.353 60.856 62.149 65.046 65.341 69.518
887
+ 0.333333 0.958333 0.208333
888
+ 0.136 1.809 4.117 7.810 19.753 24.933 27.034 28.478 32.001 37.248
889
+ 39.793 46.987 53.596 54.801 59.366 60.995 61.972 64.938 65.409 69.440
890
+ 0.316667 0.966667 0.216667
891
+ 0.184 1.775 4.064 7.894 19.547 24.779 27.249 28.629 31.981 37.402
892
+ 39.616 47.191 53.424 54.899 59.357 61.037 61.901 64.842 65.487 69.334
893
+ 0.300000 0.975000 0.225000
894
+ 0.234 1.736 4.029 7.956 19.376 24.623 27.429 28.766 31.977 37.547
895
+ 39.471 47.366 53.265 55.011 59.335 60.939 61.977 64.748 65.567 69.198
896
+ 0.283333 0.983333 0.233333
897
+ 0.283 1.694 4.014 7.994 19.243 24.468 27.576 28.883 31.997 37.670
898
+ 39.377 47.503 53.130 55.130 59.307 60.765 62.132 64.648 65.640 69.036
899
+ 0.266667 0.991667 0.241667
900
+ 0.328 1.651 4.018 8.006 19.151 24.316 27.690 28.969 32.048 37.746
901
+ 39.355 47.593 53.029 55.249 59.279 60.578 62.297 64.545 65.696 68.860
902
+ 0.250000 1.000000 0.250000
903
+ 0.367 1.614 4.041 7.991 19.100 24.169 27.779 29.023 32.133 37.757
904
+ 39.426 47.633 52.974 55.363 59.256 60.408 62.432 64.447 65.726 68.687
905
+ 0.241667 1.000000 0.241667
906
+ 0.431 1.546 4.104 7.931 19.041 23.872 27.908 29.078 32.330 37.702
907
+ 39.661 47.643 52.902 55.580 59.213 60.086 62.638 64.263 65.742 68.363
908
+ 0.233333 1.000000 0.233333
909
+ 0.486 1.481 4.180 7.873 18.985 23.578 28.043 29.140 32.531 37.648
910
+ 39.899 47.647 52.836 55.801 59.172 59.757 62.834 64.094 65.766 68.047
911
+ 0.225000 1.000000 0.225000
912
+ 0.533 1.418 4.266 7.817 18.930 23.284 28.175 29.201 32.733 37.594
913
+ 40.140 47.644 52.773 56.025 59.135 59.420 63.018 63.936 65.795 67.740
914
+ 0.216667 1.000000 0.216667
915
+ 0.572 1.357 4.363 7.763 18.876 22.994 28.304 29.262 32.935 37.540
916
+ 40.384 47.631 52.712 56.253 59.078 59.104 63.189 63.790 65.826 67.442
917
+ 0.208333 1.000000 0.208333
918
+ 0.604 1.299 4.468 7.711 18.825 22.705 28.431 29.326 33.138 37.488
919
+ 40.630 47.610 52.652 56.484 58.732 59.081 63.349 63.653 65.859 67.153
920
+ 0.200000 1.000000 0.200000
921
+ 0.629 1.243 4.581 7.661 18.776 22.420 28.556 29.385 33.340 37.433
922
+ 40.879 47.580 52.595 56.718 58.382 59.066 63.493 63.525 65.892 66.873
923
+ 0.191667 1.000000 0.191667
924
+ 0.647 1.189 4.701 7.612 18.728 22.139 28.677 29.443 33.542 37.379
925
+ 41.131 47.541 52.540 56.955 58.030 59.063 63.407 63.624 65.924 66.602
926
+ 0.183333 1.000000 0.183333
927
+ 0.661 1.137 4.827 7.564 18.682 21.862 28.795 29.493 33.740 37.325
928
+ 41.384 47.492 52.488 57.194 57.677 59.071 63.295 63.740 65.954 66.340
929
+ 0.175000 1.000000 0.175000
930
+ 0.670 1.088 4.958 7.520 18.638 21.590 28.909 29.548 33.939 37.272
931
+ 41.639 47.435 52.437 57.323 57.437 59.091 63.191 63.844 65.982 66.089
932
+ 0.166667 1.000000 0.166667
933
+ 0.675 1.041 5.093 7.477 18.597 21.323 29.020 29.604 34.136 37.221
934
+ 41.896 47.372 52.389 56.970 57.683 59.124 63.095 63.936 65.847 66.007
935
+ 0.158333 1.000000 0.158333
936
+ 0.677 0.996 5.231 7.436 18.557 21.062 29.127 29.656 34.330 37.169
937
+ 42.154 47.300 52.343 56.618 57.932 59.171 63.005 64.014 65.616 66.025
938
+ 0.150000 1.000000 0.150000
939
+ 0.677 0.954 5.369 7.397 18.519 20.808 29.230 29.707 34.522 37.118
940
+ 42.413 47.219 52.299 56.268 58.183 59.230 62.921 64.080 65.395 66.033
941
+ 0.141667 1.000000 0.141667
942
+ 0.674 0.913 5.509 7.360 18.483 20.560 29.329 29.756 34.710 37.070
943
+ 42.672 47.134 52.258 55.921 58.436 59.304 62.843 64.135 65.185 66.028
944
+ 0.133333 1.000000 0.133333
945
+ 0.669 0.875 5.649 7.325 18.449 20.321 29.424 29.803 34.893 37.023
946
+ 42.931 47.043 52.219 55.578 58.692 59.391 62.770 64.178 64.985 66.002
947
+ 0.125000 1.000000 0.125000
948
+ 0.663 0.840 5.787 7.292 18.417 20.090 29.513 29.848 35.072 36.978
949
+ 43.190 46.949 52.182 55.240 58.950 59.491 62.703 64.210 64.796 65.942
950
+ 0.116667 1.000000 0.116667
951
+ 0.657 0.806 5.923 7.262 18.387 19.868 29.598 29.891 35.245 36.935
952
+ 43.447 46.852 52.148 54.908 59.209 59.604 62.641 64.232 64.619 65.833
953
+ 0.108333 1.000000 0.108333
954
+ 0.649 0.775 6.056 7.233 18.359 19.656 29.679 29.931 35.413 36.893
955
+ 43.701 46.753 52.115 54.582 59.470 59.729 62.583 64.242 64.453 65.667
956
+ 0.100000 1.000000 0.100000
957
+ 0.641 0.747 6.185 7.206 18.333 19.455 29.754 29.970 35.573 36.855
958
+ 43.952 46.654 52.086 54.264 59.732 59.867 62.531 64.241 64.298 65.455
959
+ 0.091667 1.000000 0.091667
960
+ 0.633 0.720 6.308 7.182 18.309 19.266 29.823 30.005 35.725 36.818
961
+ 44.199 46.556 52.058 53.956 59.994 60.016 62.483 64.155 64.229 65.211
962
+ 0.083333 1.000000 0.083333
963
+ 0.626 0.696 6.425 7.159 18.287 19.089 29.887 30.038 35.868 36.784
964
+ 44.439 46.460 52.033 53.659 60.176 60.256 62.439 64.024 64.204 64.951
965
+ 0.075000 1.000000 0.075000
966
+ 0.618 0.674 6.535 7.139 18.267 18.925 29.946 30.069 36.002 36.753
967
+ 44.672 46.368 52.010 53.375 60.347 60.517 62.400 63.905 64.165 64.681
968
+ 0.066667 1.000000 0.066667
969
+ 0.611 0.654 6.637 7.121 18.250 18.776 29.999 30.096 36.125 36.725
970
+ 44.894 46.281 51.990 53.107 60.528 60.776 62.365 63.798 64.113 64.407
971
+ 0.058333 1.000000 0.058333
972
+ 0.604 0.638 6.730 7.105 18.235 18.642 30.046 30.121 36.237 36.706
973
+ 45.103 46.202 51.972 52.856 60.719 61.032 62.335 63.703 64.046 64.134
974
+ 0.050000 1.000000 0.050000
975
+ 0.599 0.623 6.813 7.091 18.221 18.523 30.087 30.142 36.336 36.684
976
+ 45.296 46.129 51.956 52.627 60.919 61.282 62.308 63.621 63.860 63.963
977
+ 0.041667 1.000000 0.041667
978
+ 0.593 0.610 6.884 7.079 18.210 18.421 30.122 30.160 36.421 36.665
979
+ 45.470 46.065 51.943 52.423 61.127 61.525 62.286 63.551 63.588 63.864
980
+ 0.033333 1.000000 0.033333
981
+ 0.589 0.600 6.944 7.069 18.200 18.336 30.151 30.175 36.492 36.649
982
+ 45.621 46.011 51.932 52.247 61.344 61.757 62.268 63.319 63.494 63.753
983
+ 0.025000 1.000000 0.025000
984
+ 0.586 0.592 6.991 7.062 18.193 18.270 30.173 30.187 36.549 36.637
985
+ 45.744 45.968 51.924 52.105 61.568 61.970 62.254 63.054 63.450 63.634
986
+ 0.016667 1.000000 0.016667
987
+ 0.583 0.586 7.025 7.056 18.188 18.222 30.189 30.195 36.589 36.629
988
+ 45.835 45.936 51.918 52.000 61.799 62.152 62.244 62.794 63.418 63.519
989
+ 0.008333 1.000000 0.008333
990
+ 0.582 0.582 7.045 7.053 18.184 18.193 30.197 30.200 36.609 36.619
991
+ 45.891 45.917 51.914 51.935 62.035 62.237 62.283 62.540 63.398 63.428
992
+ 0.000000 1.000000 0.000000
993
+ 0.581 0.581 7.050 7.050 18.182 18.182 30.194 30.194 36.613 36.613
994
+ 45.908 45.908 51.913 51.913 62.234 62.234 62.332 62.332 63.391 63.391
1_data_prepare/data/bands/uc/scf/bands.dat.gnu ADDED
@@ -0,0 +1,1216 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 0.0000 -8.1313
2
+ 0.0333 -8.1211
3
+ 0.0667 -8.0903
4
+ 0.1000 -8.0389
5
+ 0.1333 -7.9671
6
+ 0.1667 -7.8749
7
+ 0.2000 -7.7626
8
+ 0.2333 -7.6296
9
+ 0.2667 -7.4768
10
+ 0.3000 -7.3035
11
+ 0.3333 -7.1100
12
+ 0.3667 -6.8967
13
+ 0.4000 -6.6636
14
+ 0.4333 -6.4109
15
+ 0.4667 -6.1393
16
+ 0.5000 -5.8479
17
+ 0.5333 -5.5375
18
+ 0.5667 -5.2083
19
+ 0.6000 -4.8606
20
+ 0.6333 -4.4948
21
+ 0.6667 -4.1120
22
+ 0.7000 -3.7110
23
+ 0.7333 -3.2941
24
+ 0.7667 -2.8600
25
+ 0.8000 -2.4100
26
+ 0.8333 -1.9454
27
+ 0.8667 -1.4658
28
+ 0.9000 -0.9724
29
+ 0.9333 -0.4660
30
+ 0.9667 0.0522
31
+ 1.0000 0.5808
32
+ 1.0167 0.5829
33
+ 1.0333 0.5878
34
+ 1.0500 0.5960
35
+ 1.0667 0.6075
36
+ 1.0833 0.6221
37
+ 1.1000 0.6396
38
+ 1.1167 0.6604
39
+ 1.1333 0.6841
40
+ 1.1500 0.7106
41
+ 1.1667 0.7395
42
+ 1.1833 0.7711
43
+ 1.2000 0.8051
44
+ 1.2167 0.8412
45
+ 1.2333 0.8790
46
+ 1.2500 0.9183
47
+ 1.2667 0.9586
48
+ 1.2833 0.9999
49
+ 1.3000 1.0417
50
+ 1.3167 1.0833
51
+ 1.3333 1.1243
52
+ 1.3500 1.1640
53
+ 1.3667 1.2018
54
+ 1.3833 1.2375
55
+ 1.4000 1.2702
56
+ 1.4167 1.2993
57
+ 1.4333 1.3241
58
+ 1.4500 1.3440
59
+ 1.4667 1.3587
60
+ 1.4833 1.3678
61
+ 1.5000 1.3709
62
+ 1.5118 1.3052
63
+ 1.5236 1.2417
64
+ 1.5354 1.1802
65
+ 1.5471 1.1212
66
+ 1.5589 1.0643
67
+ 1.5707 1.0097
68
+ 1.5825 0.9573
69
+ 1.5943 0.9071
70
+ 1.6061 0.8591
71
+ 1.6179 0.8135
72
+ 1.6296 0.7700
73
+ 1.6414 0.7290
74
+ 1.6532 0.6898
75
+ 1.6650 0.6529
76
+ 1.6768 0.6184
77
+ 1.6886 0.5860
78
+ 1.7003 0.5558
79
+ 1.7121 0.5278
80
+ 1.7239 0.5021
81
+ 1.7357 0.4787
82
+ 1.7475 0.4574
83
+ 1.7593 0.4384
84
+ 1.7711 0.4216
85
+ 1.7828 0.4071
86
+ 1.7946 0.3948
87
+ 1.8064 0.3847
88
+ 1.8182 0.3769
89
+ 1.8300 0.3713
90
+ 1.8418 0.3680
91
+ 1.8536 0.3675
92
+ 1.8889 0.1219
93
+ 1.9243 -0.1972
94
+ 1.9596 -0.5747
95
+ 1.9950 -0.9922
96
+ 2.0303 -1.4336
97
+ 2.0657 -1.8859
98
+ 2.1010 -2.3411
99
+ 2.1364 -2.7924
100
+ 2.1718 -3.2346
101
+ 2.2071 -3.6655
102
+ 2.2425 -4.0821
103
+ 2.2778 -4.4821
104
+ 2.3132 -4.8650
105
+ 2.3485 -5.2291
106
+ 2.3839 -5.5736
107
+ 2.4192 -5.8982
108
+ 2.4546 -6.2019
109
+ 2.4899 -6.4844
110
+ 2.5253 -6.7454
111
+ 2.5607 -6.9836
112
+ 2.5960 -7.2006
113
+ 2.6314 -7.3952
114
+ 2.6667 -7.5673
115
+ 2.7021 -7.7167
116
+ 2.7374 -7.8430
117
+ 2.7728 -7.9467
118
+ 2.8081 -8.0274
119
+ 2.8435 -8.0851
120
+ 2.8789 -8.1198
121
+ 2.9142 -8.1313
122
+ 2.9431 -8.1236
123
+ 2.9719 -8.1005
124
+ 3.0008 -8.0620
125
+ 3.0297 -8.0082
126
+ 3.0586 -7.9389
127
+ 3.0874 -7.8544
128
+ 3.1163 -7.7547
129
+ 3.1452 -7.6401
130
+ 3.1740 -7.5100
131
+ 3.2029 -7.3648
132
+ 3.2318 -7.2046
133
+ 3.2606 -7.0300
134
+ 3.2895 -6.8403
135
+ 3.3184 -6.6359
136
+ 3.3472 -6.4174
137
+ 3.3761 -6.1844
138
+ 3.4050 -5.9377
139
+ 3.4338 -5.6771
140
+ 3.4627 -5.4034
141
+ 3.4916 -5.1170
142
+ 3.5204 -4.8188
143
+ 3.5493 -4.5098
144
+ 3.5782 -4.1916
145
+ 3.6070 -3.8666
146
+ 3.6359 -3.5387
147
+ 3.6648 -3.2142
148
+ 3.6936 -2.9050
149
+ 3.7225 -2.6318
150
+ 3.7514 -2.4324
151
+ 3.7802 -2.3576
152
+
153
+ 0.0000 13.3647
154
+ 0.0333 13.3206
155
+ 0.0667 13.1934
156
+ 0.1000 12.9970
157
+ 0.1333 12.7487
158
+ 0.1667 12.4585
159
+ 0.2000 12.1421
160
+ 0.2333 11.8105
161
+ 0.2667 11.4727
162
+ 0.3000 11.1316
163
+ 0.3333 10.7963
164
+ 0.3667 10.4638
165
+ 0.4000 10.1401
166
+ 0.4333 9.8167
167
+ 0.4667 9.3375
168
+ 0.5000 8.8425
169
+ 0.5333 8.3321
170
+ 0.5667 7.8081
171
+ 0.6000 7.2724
172
+ 0.6333 6.7259
173
+ 0.6667 6.1719
174
+ 0.7000 5.6144
175
+ 0.7333 5.0495
176
+ 0.7667 4.4820
177
+ 0.8000 3.9138
178
+ 0.8333 3.3461
179
+ 0.8667 2.7814
180
+ 0.9000 2.2210
181
+ 0.9333 1.6677
182
+ 0.9667 1.1201
183
+ 1.0000 0.5808
184
+ 1.0167 0.5829
185
+ 1.0333 0.5878
186
+ 1.0500 0.5960
187
+ 1.0667 0.6075
188
+ 1.0833 0.6221
189
+ 1.1000 0.6396
190
+ 1.1167 0.6604
191
+ 1.1333 0.6841
192
+ 1.1500 0.7106
193
+ 1.1667 0.7395
194
+ 1.1833 0.7711
195
+ 1.2000 0.8051
196
+ 1.2167 0.8412
197
+ 1.2333 0.8790
198
+ 1.2500 0.9183
199
+ 1.2667 0.9586
200
+ 1.2833 0.9999
201
+ 1.3000 1.0417
202
+ 1.3167 1.0833
203
+ 1.3333 1.1243
204
+ 1.3500 1.1640
205
+ 1.3667 1.2018
206
+ 1.3833 1.2375
207
+ 1.4000 1.2702
208
+ 1.4167 1.2993
209
+ 1.4333 1.3241
210
+ 1.4500 1.3440
211
+ 1.4667 1.3587
212
+ 1.4833 1.3678
213
+ 1.5000 1.3709
214
+ 1.5118 1.4335
215
+ 1.5236 1.4878
216
+ 1.5354 1.5339
217
+ 1.5471 1.5728
218
+ 1.5589 1.6046
219
+ 1.5707 1.6303
220
+ 1.5825 1.6504
221
+ 1.5943 1.6655
222
+ 1.6061 1.6762
223
+ 1.6179 1.6832
224
+ 1.6296 1.6870
225
+ 1.6414 1.6883
226
+ 1.6532 1.6871
227
+ 1.6650 1.6844
228
+ 1.6768 1.6804
229
+ 1.6886 1.6753
230
+ 1.7003 1.6696
231
+ 1.7121 1.6634
232
+ 1.7239 1.6570
233
+ 1.7357 1.6507
234
+ 1.7475 1.6444
235
+ 1.7593 1.6384
236
+ 1.7711 1.6329
237
+ 1.7828 1.6279
238
+ 1.7946 1.6235
239
+ 1.8064 1.6198
240
+ 1.8182 1.6169
241
+ 1.8300 1.6148
242
+ 1.8418 1.6137
243
+ 1.8536 1.6138
244
+ 1.8889 1.8286
245
+ 1.9243 2.0644
246
+ 1.9596 2.3201
247
+ 1.9950 2.5956
248
+ 2.0303 2.8908
249
+ 2.0657 3.2054
250
+ 2.1010 3.5376
251
+ 2.1364 3.8899
252
+ 2.1718 4.2611
253
+ 2.2071 4.6500
254
+ 2.2425 5.0552
255
+ 2.2778 5.4788
256
+ 2.3132 5.9188
257
+ 2.3485 6.3751
258
+ 2.3839 6.8459
259
+ 2.4192 7.3306
260
+ 2.4546 7.8279
261
+ 2.4899 8.3369
262
+ 2.5253 8.8552
263
+ 2.5607 9.3809
264
+ 2.5960 9.9081
265
+ 2.6314 10.4357
266
+ 2.6667 10.9575
267
+ 2.7021 11.4653
268
+ 2.7374 11.9509
269
+ 2.7728 12.3971
270
+ 2.8081 12.7888
271
+ 2.8435 13.0905
272
+ 2.8789 13.2937
273
+ 2.9142 13.3647
274
+ 2.9431 13.3076
275
+ 2.9719 13.1417
276
+ 3.0008 12.8839
277
+ 3.0297 12.5472
278
+ 3.0586 12.1470
279
+ 3.0874 11.6990
280
+ 3.1163 11.2115
281
+ 3.1452 10.6959
282
+ 3.1740 10.1607
283
+ 3.2029 9.6105
284
+ 3.2318 9.0499
285
+ 3.2606 8.4822
286
+ 3.2895 7.9104
287
+ 3.3184 7.3381
288
+ 3.3472 6.7664
289
+ 3.3761 6.1969
290
+ 3.4050 5.6315
291
+ 3.4338 5.0736
292
+ 3.4627 4.5227
293
+ 3.4916 3.9808
294
+ 3.5204 3.4493
295
+ 3.5493 2.9300
296
+ 3.5782 2.4268
297
+ 3.6070 1.9389
298
+ 3.6359 1.4726
299
+ 3.6648 1.0344
300
+ 3.6936 0.6364
301
+ 3.7225 0.2999
302
+ 3.7514 0.0625
303
+ 3.7802 -0.0282
304
+
305
+ 0.0000 13.3647
306
+ 0.0333 13.3206
307
+ 0.0667 13.1934
308
+ 0.1000 12.9970
309
+ 0.1333 12.7487
310
+ 0.1667 12.4585
311
+ 0.2000 12.1421
312
+ 0.2333 11.8105
313
+ 0.2667 11.4727
314
+ 0.3000 11.1316
315
+ 0.3333 10.7963
316
+ 0.3667 10.4638
317
+ 0.4000 10.1401
318
+ 0.4333 9.8272
319
+ 0.4667 9.5261
320
+ 0.5000 9.2394
321
+ 0.5333 8.9676
322
+ 0.5667 8.7116
323
+ 0.6000 8.4723
324
+ 0.6333 8.2487
325
+ 0.6667 8.0419
326
+ 0.7000 7.8558
327
+ 0.7333 7.6882
328
+ 0.7667 7.5397
329
+ 0.8000 7.4104
330
+ 0.8333 7.3007
331
+ 0.8667 7.2107
332
+ 0.9000 7.1406
333
+ 0.9333 7.0922
334
+ 0.9667 7.0620
335
+ 1.0000 7.0497
336
+ 1.0167 7.0462
337
+ 1.0333 7.0289
338
+ 1.0500 7.0003
339
+ 1.0667 6.9608
340
+ 1.0833 6.9111
341
+ 1.1000 6.8511
342
+ 1.1167 6.7831
343
+ 1.1333 6.7072
344
+ 1.1500 6.6244
345
+ 1.1667 6.5350
346
+ 1.1833 6.4414
347
+ 1.2000 6.3439
348
+ 1.2167 6.2440
349
+ 1.2333 6.1418
350
+ 1.2500 6.0390
351
+ 1.2667 5.9356
352
+ 1.2833 5.8337
353
+ 1.3000 5.7350
354
+ 1.3167 5.6381
355
+ 1.3333 5.5460
356
+ 1.3500 5.4575
357
+ 1.3667 5.3746
358
+ 1.3833 5.2994
359
+ 1.4000 5.2319
360
+ 1.4167 5.1730
361
+ 1.4333 5.1235
362
+ 1.4500 5.0843
363
+ 1.4667 5.0558
364
+ 1.4833 5.0385
365
+ 1.5000 5.0329
366
+ 1.5118 4.9703
367
+ 1.5236 4.9093
368
+ 1.5354 4.8502
369
+ 1.5471 4.7930
370
+ 1.5589 4.7377
371
+ 1.5707 4.6843
372
+ 1.5825 4.6329
373
+ 1.5943 4.5834
374
+ 1.6061 4.5359
375
+ 1.6179 4.4905
376
+ 1.6296 4.4471
377
+ 1.6414 4.4060
378
+ 1.6532 4.3666
379
+ 1.6650 4.3295
380
+ 1.6768 4.2948
381
+ 1.6886 4.2617
382
+ 1.7003 4.2312
383
+ 1.7121 4.2028
384
+ 1.7239 4.1767
385
+ 1.7357 4.1531
386
+ 1.7475 4.1313
387
+ 1.7593 4.1119
388
+ 1.7711 4.0948
389
+ 1.7828 4.0799
390
+ 1.7946 4.0673
391
+ 1.8064 4.0570
392
+ 1.8182 4.0490
393
+ 1.8300 4.0432
394
+ 1.8418 4.0410
395
+ 1.8536 4.0409
396
+ 1.8889 3.9111
397
+ 1.9243 3.8832
398
+ 1.9596 3.9426
399
+ 1.9950 4.0733
400
+ 2.0303 4.2607
401
+ 2.0657 4.4931
402
+ 2.1010 4.7620
403
+ 2.1364 5.0641
404
+ 2.1718 5.3944
405
+ 2.2071 5.7480
406
+ 2.2425 6.1220
407
+ 2.2778 6.5175
408
+ 2.3132 6.9290
409
+ 2.3485 7.3557
410
+ 2.3839 7.7957
411
+ 2.4192 8.2469
412
+ 2.4546 8.7070
413
+ 2.4899 9.1739
414
+ 2.5253 9.6441
415
+ 2.5607 10.1152
416
+ 2.5960 10.5784
417
+ 2.6314 11.0366
418
+ 2.6667 11.4807
419
+ 2.7021 11.9023
420
+ 2.7374 12.2955
421
+ 2.7728 12.6464
422
+ 2.8081 12.9442
423
+ 2.8435 13.1701
424
+ 2.8789 13.3149
425
+ 2.9142 13.3647
426
+ 2.9431 13.3504
427
+ 2.9719 13.3085
428
+ 3.0008 13.2410
429
+ 3.0297 13.1528
430
+ 3.0586 13.0437
431
+ 3.0874 12.9255
432
+ 3.1163 12.7896
433
+ 3.1452 12.6456
434
+ 3.1740 12.4989
435
+ 3.2029 12.3476
436
+ 3.2318 12.1962
437
+ 3.2606 12.0461
438
+ 3.2895 11.8994
439
+ 3.3184 11.7587
440
+ 3.3472 11.6209
441
+ 3.3761 11.4901
442
+ 3.4050 11.3662
443
+ 3.4338 11.2504
444
+ 3.4627 11.1424
445
+ 3.4916 11.0429
446
+ 3.5204 10.9521
447
+ 3.5493 10.8704
448
+ 3.5782 10.7970
449
+ 3.6070 10.7338
450
+ 3.6359 10.6802
451
+ 3.6648 10.6370
452
+ 3.6936 10.6025
453
+ 3.7225 10.5779
454
+ 3.7514 10.5632
455
+ 3.7802 10.5580
456
+
457
+ 0.0000 13.3647
458
+ 0.0333 13.3391
459
+ 0.0667 13.2682
460
+ 0.1000 13.1455
461
+ 0.1333 12.9757
462
+ 0.1667 12.7606
463
+ 0.2000 12.5024
464
+ 0.2333 12.2067
465
+ 0.2667 11.8774
466
+ 0.3000 11.5165
467
+ 0.3333 11.1284
468
+ 0.3667 10.7136
469
+ 0.4000 10.2757
470
+ 0.4333 9.8272
471
+ 0.4667 9.5261
472
+ 0.5000 9.2394
473
+ 0.5333 8.9676
474
+ 0.5667 8.7116
475
+ 0.6000 8.4723
476
+ 0.6333 8.2487
477
+ 0.6667 8.0419
478
+ 0.7000 7.8558
479
+ 0.7333 7.6882
480
+ 0.7667 7.5397
481
+ 0.8000 7.4104
482
+ 0.8333 7.3007
483
+ 0.8667 7.2107
484
+ 0.9000 7.1406
485
+ 0.9333 7.0922
486
+ 0.9667 7.0620
487
+ 1.0000 7.0497
488
+ 1.0167 7.0462
489
+ 1.0333 7.0289
490
+ 1.0500 7.0003
491
+ 1.0667 6.9608
492
+ 1.0833 6.9111
493
+ 1.1000 6.8511
494
+ 1.1167 6.7831
495
+ 1.1333 6.7072
496
+ 1.1500 6.6244
497
+ 1.1667 6.5350
498
+ 1.1833 6.4414
499
+ 1.2000 6.3439
500
+ 1.2167 6.2440
501
+ 1.2333 6.1418
502
+ 1.2500 6.0390
503
+ 1.2667 5.9356
504
+ 1.2833 5.8337
505
+ 1.3000 5.7350
506
+ 1.3167 5.6381
507
+ 1.3333 5.5460
508
+ 1.3500 5.4575
509
+ 1.3667 5.3746
510
+ 1.3833 5.2994
511
+ 1.4000 5.2319
512
+ 1.4167 5.1730
513
+ 1.4333 5.1235
514
+ 1.4500 5.0843
515
+ 1.4667 5.0558
516
+ 1.4833 5.0385
517
+ 1.5000 5.0329
518
+ 1.5118 5.1015
519
+ 1.5236 5.1803
520
+ 1.5354 5.2684
521
+ 1.5471 5.3657
522
+ 1.5589 5.4712
523
+ 1.5707 5.5840
524
+ 1.5825 5.7031
525
+ 1.5943 5.8275
526
+ 1.6061 5.9564
527
+ 1.6179 6.0892
528
+ 1.6296 6.2239
529
+ 1.6414 6.3614
530
+ 1.6532 6.4962
531
+ 1.6650 6.6323
532
+ 1.6768 6.7676
533
+ 1.6886 6.8993
534
+ 1.7003 7.0283
535
+ 1.7121 7.1531
536
+ 1.7239 7.2726
537
+ 1.7357 7.3864
538
+ 1.7475 7.4923
539
+ 1.7593 7.5904
540
+ 1.7711 7.6797
541
+ 1.7828 7.7590
542
+ 1.7946 7.8277
543
+ 1.8064 7.8851
544
+ 1.8182 7.9304
545
+ 1.8300 7.9631
546
+ 1.8418 7.9830
547
+ 1.8536 7.9914
548
+ 1.8889 8.1767
549
+ 1.9243 8.3789
550
+ 1.9596 8.5942
551
+ 1.9950 8.8219
552
+ 2.0303 9.0597
553
+ 2.0657 9.3064
554
+ 2.1010 9.5599
555
+ 2.1364 9.8194
556
+ 2.1718 10.0837
557
+ 2.2071 10.3484
558
+ 2.2425 10.6121
559
+ 2.2778 10.8737
560
+ 2.3132 11.1297
561
+ 2.3485 11.3784
562
+ 2.3839 11.6183
563
+ 2.4192 11.8462
564
+ 2.4546 12.0610
565
+ 2.4899 12.2611
566
+ 2.5253 12.4455
567
+ 2.5607 12.6133
568
+ 2.5960 12.7579
569
+ 2.6314 12.8910
570
+ 2.6667 13.0069
571
+ 2.7021 13.1059
572
+ 2.7374 13.1884
573
+ 2.7728 13.2546
574
+ 2.8081 13.3037
575
+ 2.8435 13.3362
576
+ 2.8789 13.3576
577
+ 2.9142 13.3647
578
+ 2.9431 13.3504
579
+ 2.9719 13.3085
580
+ 3.0008 13.2410
581
+ 3.0297 13.1528
582
+ 3.0586 13.0437
583
+ 3.0874 12.9255
584
+ 3.1163 12.7896
585
+ 3.1452 12.6456
586
+ 3.1740 12.4989
587
+ 3.2029 12.3476
588
+ 3.2318 12.1962
589
+ 3.2606 12.0461
590
+ 3.2895 11.8994
591
+ 3.3184 11.7587
592
+ 3.3472 11.6209
593
+ 3.3761 11.4901
594
+ 3.4050 11.3662
595
+ 3.4338 11.2504
596
+ 3.4627 11.1424
597
+ 3.4916 11.0429
598
+ 3.5204 10.9521
599
+ 3.5493 10.8704
600
+ 3.5782 10.7970
601
+ 3.6070 10.7338
602
+ 3.6359 10.6802
603
+ 3.6648 10.6370
604
+ 3.6936 10.6025
605
+ 3.7225 10.5779
606
+ 3.7514 10.5632
607
+ 3.7802 10.5580
608
+
609
+ 0.0000 18.9980
610
+ 0.0333 18.9897
611
+ 0.0667 18.9649
612
+ 0.1000 18.9245
613
+ 0.1333 18.8696
614
+ 0.1667 18.8038
615
+ 0.2000 18.7208
616
+ 0.2333 18.6326
617
+ 0.2667 18.5358
618
+ 0.3000 18.4359
619
+ 0.3333 18.3356
620
+ 0.3667 18.2323
621
+ 0.4000 18.1305
622
+ 0.4333 18.0319
623
+ 0.4667 17.9370
624
+ 0.5000 17.8501
625
+ 0.5333 17.7714
626
+ 0.5667 17.7022
627
+ 0.6000 17.6439
628
+ 0.6333 17.5976
629
+ 0.6667 17.5642
630
+ 0.7000 17.5479
631
+ 0.7333 17.5435
632
+ 0.7667 17.5561
633
+ 0.8000 17.5860
634
+ 0.8333 17.6339
635
+ 0.8667 17.7012
636
+ 0.9000 17.7887
637
+ 0.9333 17.8984
638
+ 0.9667 18.0289
639
+ 1.0000 18.1822
640
+ 1.0167 18.1943
641
+ 1.0333 18.2263
642
+ 1.0500 18.2793
643
+ 1.0667 18.3529
644
+ 1.0833 18.4466
645
+ 1.1000 18.5592
646
+ 1.1167 18.6908
647
+ 1.1333 18.8400
648
+ 1.1500 19.0059
649
+ 1.1667 19.1869
650
+ 1.1833 19.3832
651
+ 1.2000 19.5932
652
+ 1.2167 19.8161
653
+ 1.2333 20.0504
654
+ 1.2500 20.2956
655
+ 1.2667 20.5501
656
+ 1.2833 20.8135
657
+ 1.3000 21.0849
658
+ 1.3167 21.3626
659
+ 1.3333 21.6457
660
+ 1.3500 21.9320
661
+ 1.3667 22.2203
662
+ 1.3833 22.5111
663
+ 1.4000 22.8005
664
+ 1.4167 23.0850
665
+ 1.4333 23.3594
666
+ 1.4500 23.6148
667
+ 1.4667 23.8353
668
+ 1.4833 23.9941
669
+ 1.5000 24.0554
670
+ 1.5118 23.9693
671
+ 1.5236 23.8279
672
+ 1.5354 23.6445
673
+ 1.5471 23.4372
674
+ 1.5589 23.2134
675
+ 1.5707 22.9802
676
+ 1.5825 22.7417
677
+ 1.5943 22.5009
678
+ 1.6061 22.2599
679
+ 1.6179 22.0212
680
+ 1.6296 21.7847
681
+ 1.6414 21.5534
682
+ 1.6532 21.3255
683
+ 1.6650 21.1041
684
+ 1.6768 20.8900
685
+ 1.6886 20.6834
686
+ 1.7003 20.4855
687
+ 1.7121 20.2973
688
+ 1.7239 20.1195
689
+ 1.7357 19.9538
690
+ 1.7475 19.7995
691
+ 1.7593 19.6587
692
+ 1.7711 19.5319
693
+ 1.7828 19.4200
694
+ 1.7946 19.3239
695
+ 1.8064 19.2441
696
+ 1.8182 19.1815
697
+ 1.8300 19.1363
698
+ 1.8418 19.1093
699
+ 1.8536 19.1005
700
+ 1.8889 19.2858
701
+ 1.9243 19.4859
702
+ 1.9596 19.6991
703
+ 1.9950 19.9239
704
+ 2.0303 20.1578
705
+ 2.0657 20.3982
706
+ 2.1010 20.6410
707
+ 2.1364 20.8842
708
+ 2.1718 21.1231
709
+ 2.2071 21.3494
710
+ 2.2425 21.5562
711
+ 2.2778 21.7382
712
+ 2.3132 21.8863
713
+ 2.3485 21.8989
714
+ 2.3839 21.5608
715
+ 2.4192 21.2402
716
+ 2.4546 20.9389
717
+ 2.4899 20.6561
718
+ 2.5253 20.3953
719
+ 2.5607 20.1615
720
+ 2.5960 19.9410
721
+ 2.6314 19.7446
722
+ 2.6667 19.5705
723
+ 2.7021 19.4191
724
+ 2.7374 19.2920
725
+ 2.7728 19.1862
726
+ 2.8081 19.1039
727
+ 2.8435 19.0451
728
+ 2.8789 19.0098
729
+ 2.9142 18.9980
730
+ 2.9431 19.0165
731
+ 2.9719 19.0712
732
+ 3.0008 19.1595
733
+ 3.0297 19.2778
734
+ 3.0586 19.4217
735
+ 3.0874 19.5861
736
+ 3.1163 19.7652
737
+ 3.1452 19.9530
738
+ 3.1740 20.1480
739
+ 3.2029 20.3432
740
+ 3.2318 20.5351
741
+ 3.2606 20.7174
742
+ 3.2895 20.8923
743
+ 3.3184 21.0552
744
+ 3.3472 21.2028
745
+ 3.3761 21.3345
746
+ 3.4050 21.4475
747
+ 3.4338 21.5470
748
+ 3.4627 21.6293
749
+ 3.4916 21.6965
750
+ 3.5204 21.7500
751
+ 3.5493 21.7916
752
+ 3.5782 21.8228
753
+ 3.6070 21.8457
754
+ 3.6359 21.8619
755
+ 3.6648 21.8731
756
+ 3.6936 21.8786
757
+ 3.7225 21.8829
758
+ 3.7514 21.8853
759
+ 3.7802 21.8839
760
+
761
+ 0.0000 18.9980
762
+ 0.0333 19.0509
763
+ 0.0667 19.2048
764
+ 0.1000 19.4466
765
+ 0.1333 19.7606
766
+ 0.1667 20.1301
767
+ 0.2000 20.5417
768
+ 0.2333 20.9855
769
+ 0.2667 21.4531
770
+ 0.3000 21.9387
771
+ 0.3333 22.4379
772
+ 0.3667 22.9450
773
+ 0.4000 23.4579
774
+ 0.4333 23.9736
775
+ 0.4667 24.2110
776
+ 0.5000 23.6735
777
+ 0.5333 23.1389
778
+ 0.5667 22.6162
779
+ 0.6000 22.1122
780
+ 0.6333 21.6294
781
+ 0.6667 21.1734
782
+ 0.7000 20.7466
783
+ 0.7333 20.3485
784
+ 0.7667 19.9797
785
+ 0.8000 19.6402
786
+ 0.8333 19.3288
787
+ 0.8667 19.0466
788
+ 0.9000 18.7919
789
+ 0.9333 18.5642
790
+ 0.9667 18.3622
791
+ 1.0000 18.1822
792
+ 1.0167 18.1943
793
+ 1.0333 18.2263
794
+ 1.0500 18.2793
795
+ 1.0667 18.3529
796
+ 1.0833 18.4466
797
+ 1.1000 18.5592
798
+ 1.1167 18.6908
799
+ 1.1333 18.8400
800
+ 1.1500 19.0059
801
+ 1.1667 19.1869
802
+ 1.1833 19.3832
803
+ 1.2000 19.5932
804
+ 1.2167 19.8161
805
+ 1.2333 20.0504
806
+ 1.2500 20.2956
807
+ 1.2667 20.5501
808
+ 1.2833 20.8135
809
+ 1.3000 21.0849
810
+ 1.3167 21.3626
811
+ 1.3333 21.6457
812
+ 1.3500 21.9320
813
+ 1.3667 22.2203
814
+ 1.3833 22.5111
815
+ 1.4000 22.8005
816
+ 1.4167 23.0850
817
+ 1.4333 23.3594
818
+ 1.4500 23.6148
819
+ 1.4667 23.8353
820
+ 1.4833 23.9941
821
+ 1.5000 24.0554
822
+ 1.5118 24.1063
823
+ 1.5236 24.1483
824
+ 1.5354 24.1845
825
+ 1.5471 24.2144
826
+ 1.5589 24.2378
827
+ 1.5707 24.2551
828
+ 1.5825 24.2672
829
+ 1.5943 24.2746
830
+ 1.6061 24.2781
831
+ 1.6179 24.2794
832
+ 1.6296 24.2770
833
+ 1.6414 24.2727
834
+ 1.6532 24.2666
835
+ 1.6650 24.2595
836
+ 1.6768 24.2519
837
+ 1.6886 24.2435
838
+ 1.7003 24.2349
839
+ 1.7121 24.2263
840
+ 1.7239 24.2179
841
+ 1.7357 24.2102
842
+ 1.7475 24.2021
843
+ 1.7593 24.1950
844
+ 1.7711 24.1885
845
+ 1.7828 24.1827
846
+ 1.7946 24.1777
847
+ 1.8064 24.1736
848
+ 1.8182 24.1703
849
+ 1.8300 24.1680
850
+ 1.8418 24.1680
851
+ 1.8536 24.1685
852
+ 1.8889 25.0494
853
+ 1.9243 25.9115
854
+ 1.9596 26.4789
855
+ 1.9950 26.0321
856
+ 2.0303 25.5839
857
+ 2.0657 25.1374
858
+ 2.1010 24.6942
859
+ 2.1364 24.2591
860
+ 2.1718 23.8352
861
+ 2.2071 23.4199
862
+ 2.2425 23.0169
863
+ 2.2778 22.6287
864
+ 2.3132 22.2555
865
+ 2.3485 21.9946
866
+ 2.3839 22.0553
867
+ 2.4192 22.0635
868
+ 2.4546 22.0190
869
+ 2.4899 21.9224
870
+ 2.5253 21.7762
871
+ 2.5607 21.4719
872
+ 2.5960 21.1051
873
+ 2.6314 20.7563
874
+ 2.6667 20.4224
875
+ 2.7021 20.1061
876
+ 2.7374 19.8145
877
+ 2.7728 19.5497
878
+ 2.8081 19.3237
879
+ 2.8435 19.1483
880
+ 2.8789 19.0365
881
+ 2.9142 18.9980
882
+ 2.9431 19.0165
883
+ 2.9719 19.0712
884
+ 3.0008 19.1595
885
+ 3.0297 19.2778
886
+ 3.0586 19.4217
887
+ 3.0874 19.5861
888
+ 3.1163 19.7652
889
+ 3.1452 19.9530
890
+ 3.1740 20.1480
891
+ 3.2029 20.3432
892
+ 3.2318 20.5351
893
+ 3.2606 20.7174
894
+ 3.2895 20.8923
895
+ 3.3184 21.0552
896
+ 3.3472 21.2028
897
+ 3.3761 21.3345
898
+ 3.4050 21.4475
899
+ 3.4338 21.5470
900
+ 3.4627 21.6293
901
+ 3.4916 21.6965
902
+ 3.5204 21.7500
903
+ 3.5493 21.7916
904
+ 3.5782 21.8228
905
+ 3.6070 21.8457
906
+ 3.6359 21.8619
907
+ 3.6648 21.8731
908
+ 3.6936 21.8786
909
+ 3.7225 21.8829
910
+ 3.7514 21.8853
911
+ 3.7802 21.8839
912
+
913
+ 0.0000 18.9980
914
+ 0.0333 19.0509
915
+ 0.0667 19.2048
916
+ 0.1000 19.4466
917
+ 0.1333 19.7606
918
+ 0.1667 20.1301
919
+ 0.2000 20.5417
920
+ 0.2333 20.9855
921
+ 0.2667 21.4531
922
+ 0.3000 21.9387
923
+ 0.3333 22.4379
924
+ 0.3667 22.9450
925
+ 0.4000 23.4579
926
+ 0.4333 23.9736
927
+ 0.4667 24.4876
928
+ 0.5000 25.0018
929
+ 0.5333 25.5118
930
+ 0.5667 26.0152
931
+ 0.6000 26.5095
932
+ 0.6333 26.9889
933
+ 0.6667 27.4508
934
+ 0.7000 27.8995
935
+ 0.7333 28.3231
936
+ 0.7667 28.7189
937
+ 0.8000 29.0810
938
+ 0.8333 29.4032
939
+ 0.8667 29.6790
940
+ 0.9000 29.9021
941
+ 0.9333 30.0669
942
+ 0.9667 30.1678
943
+ 1.0000 30.1935
944
+ 1.0167 30.1970
945
+ 1.0333 30.1823
946
+ 1.0500 30.1575
947
+ 1.0667 30.1226
948
+ 1.0833 30.0773
949
+ 1.1000 30.0210
950
+ 1.1167 29.9537
951
+ 1.1333 29.8747
952
+ 1.1500 29.7837
953
+ 1.1667 29.6798
954
+ 1.1833 29.5633
955
+ 1.2000 29.4334
956
+ 1.2167 29.2930
957
+ 1.2333 29.1356
958
+ 1.2500 28.9659
959
+ 1.2667 28.7798
960
+ 1.2833 28.5816
961
+ 1.3000 28.3708
962
+ 1.3167 28.1478
963
+ 1.3333 27.9166
964
+ 1.3500 27.6714
965
+ 1.3667 27.4179
966
+ 1.3833 27.1599
967
+ 1.4000 26.8982
968
+ 1.4167 26.6365
969
+ 1.4333 26.3804
970
+ 1.4500 26.1391
971
+ 1.4667 25.9284
972
+ 1.4833 25.7763
973
+ 1.5000 25.7198
974
+ 1.5118 25.7253
975
+ 1.5236 25.7856
976
+ 1.5354 25.8355
977
+ 1.5471 25.8915
978
+ 1.5589 25.9554
979
+ 1.5707 26.0265
980
+ 1.5825 26.1040
981
+ 1.5943 26.1870
982
+ 1.6061 26.2746
983
+ 1.6179 26.3674
984
+ 1.6296 26.4615
985
+ 1.6414 26.5589
986
+ 1.6532 26.6544
987
+ 1.6650 26.7521
988
+ 1.6768 26.8498
989
+ 1.6886 26.9444
990
+ 1.7003 27.0391
991
+ 1.7121 27.1313
992
+ 1.7239 27.2204
993
+ 1.7357 27.3058
994
+ 1.7475 27.3850
995
+ 1.7593 27.4602
996
+ 1.7711 27.5291
997
+ 1.7828 27.5909
998
+ 1.7946 27.6449
999
+ 1.8064 27.6903
1000
+ 1.8182 27.7263
1001
+ 1.8300 27.7525
1002
+ 1.8418 27.7693
1003
+ 1.8536 27.7794
1004
+ 1.8889 27.3547
1005
+ 1.9243 26.9211
1006
+ 1.9596 26.7062
1007
+ 1.9950 27.3367
1008
+ 2.0303 27.6286
1009
+ 2.0657 27.5146
1010
+ 2.1010 27.1651
1011
+ 2.1364 26.7241
1012
+ 2.1718 26.2531
1013
+ 2.2071 25.7701
1014
+ 2.2425 25.2883
1015
+ 2.2778 24.8183
1016
+ 2.3132 24.3557
1017
+ 2.3485 23.9053
1018
+ 2.3839 23.4690
1019
+ 2.4192 23.0441
1020
+ 2.4546 22.6321
1021
+ 2.4899 22.2319
1022
+ 2.5253 21.8449
1023
+ 2.5607 21.5862
1024
+ 2.5960 21.3492
1025
+ 2.6314 21.0763
1026
+ 2.6667 20.7725
1027
+ 2.7021 20.4463
1028
+ 2.7374 20.1103
1029
+ 2.7728 19.7796
1030
+ 2.8081 19.4756
1031
+ 2.8435 19.2243
1032
+ 2.8789 19.0571
1033
+ 2.9142 18.9980
1034
+ 2.9431 19.0342
1035
+ 2.9719 19.1378
1036
+ 3.0008 19.2963
1037
+ 3.0297 19.4936
1038
+ 3.0586 19.7133
1039
+ 3.0874 19.9434
1040
+ 3.1163 20.1726
1041
+ 3.1452 20.3919
1042
+ 3.1740 20.6059
1043
+ 3.2029 20.8026
1044
+ 3.2318 20.9835
1045
+ 3.2606 21.1476
1046
+ 3.2895 21.2964
1047
+ 3.3184 21.4302
1048
+ 3.3472 21.5475
1049
+ 3.3761 21.6535
1050
+ 3.4050 21.7476
1051
+ 3.4338 21.8316
1052
+ 3.4627 21.9048
1053
+ 3.4916 21.9690
1054
+ 3.5204 22.0251
1055
+ 3.5493 22.0736
1056
+ 3.5782 22.1153
1057
+ 3.6070 22.1506
1058
+ 3.6359 22.1799
1059
+ 3.6648 22.2054
1060
+ 3.6936 22.2233
1061
+ 3.7225 22.2359
1062
+ 3.7514 22.2436
1063
+ 3.7802 22.2452
1064
+
1065
+ 0.0000 26.6730
1066
+ 0.0333 26.6818
1067
+ 0.0667 26.7065
1068
+ 0.1000 26.7413
1069
+ 0.1333 26.7769
1070
+ 0.1667 26.7995
1071
+ 0.2000 26.7921
1072
+ 0.2333 26.7344
1073
+ 0.2667 26.6062
1074
+ 0.3000 26.3920
1075
+ 0.3333 26.0868
1076
+ 0.3667 25.6979
1077
+ 0.4000 25.2422
1078
+ 0.4333 24.7406
1079
+ 0.4667 24.4876
1080
+ 0.5000 25.0018
1081
+ 0.5333 25.5118
1082
+ 0.5667 26.0152
1083
+ 0.6000 26.5095
1084
+ 0.6333 26.9889
1085
+ 0.6667 27.4508
1086
+ 0.7000 27.8995
1087
+ 0.7333 28.3231
1088
+ 0.7667 28.7189
1089
+ 0.8000 29.0810
1090
+ 0.8333 29.4032
1091
+ 0.8667 29.6790
1092
+ 0.9000 29.9021
1093
+ 0.9333 30.0669
1094
+ 0.9667 30.1678
1095
+ 1.0000 30.1935
1096
+ 1.0167 30.1970
1097
+ 1.0333 30.1823
1098
+ 1.0500 30.1575
1099
+ 1.0667 30.1226
1100
+ 1.0833 30.0773
1101
+ 1.1000 30.0210
1102
+ 1.1167 29.9537
1103
+ 1.1333 29.8747
1104
+ 1.1500 29.7837
1105
+ 1.1667 29.6798
1106
+ 1.1833 29.5633
1107
+ 1.2000 29.4334
1108
+ 1.2167 29.2930
1109
+ 1.2333 29.1356
1110
+ 1.2500 28.9659
1111
+ 1.2667 28.7798
1112
+ 1.2833 28.5816
1113
+ 1.3000 28.3708
1114
+ 1.3167 28.1478
1115
+ 1.3333 27.9166
1116
+ 1.3500 27.6714
1117
+ 1.3667 27.4179
1118
+ 1.3833 27.1599
1119
+ 1.4000 26.8982
1120
+ 1.4167 26.6365
1121
+ 1.4333 26.3804
1122
+ 1.4500 26.1391
1123
+ 1.4667 25.9284
1124
+ 1.4833 25.7763
1125
+ 1.5000 25.7198
1126
+ 1.5118 25.7500
1127
+ 1.5236 25.7882
1128
+ 1.5354 25.8843
1129
+ 1.5471 26.0108
1130
+ 1.5589 26.1533
1131
+ 1.5707 26.3071
1132
+ 1.5825 26.4671
1133
+ 1.5943 26.6308
1134
+ 1.6061 26.7961
1135
+ 1.6179 26.9616
1136
+ 1.6296 27.1258
1137
+ 1.6414 27.2887
1138
+ 1.6532 27.4476
1139
+ 1.6650 27.6030
1140
+ 1.6768 27.7543
1141
+ 1.6886 27.8990
1142
+ 1.7003 28.0386
1143
+ 1.7121 28.1715
1144
+ 1.7239 28.2969
1145
+ 1.7357 28.4177
1146
+ 1.7475 28.5262
1147
+ 1.7593 28.6254
1148
+ 1.7711 28.7146
1149
+ 1.7828 28.7933
1150
+ 1.7946 28.8608
1151
+ 1.8064 28.9167
1152
+ 1.8182 28.9607
1153
+ 1.8300 28.9923
1154
+ 1.8418 29.0137
1155
+ 1.8536 29.0227
1156
+ 1.8889 28.8295
1157
+ 1.9243 28.6364
1158
+ 1.9596 28.4436
1159
+ 1.9950 28.2602
1160
+ 2.0303 28.0738
1161
+ 2.0657 27.8982
1162
+ 2.1010 27.7254
1163
+ 2.1364 27.5671
1164
+ 2.1718 27.4257
1165
+ 2.2071 27.3006
1166
+ 2.2425 27.1955
1167
+ 2.2778 27.1193
1168
+ 2.3132 27.0673
1169
+ 2.3485 27.0429
1170
+ 2.3839 27.0444
1171
+ 2.4192 27.0649
1172
+ 2.4546 27.0966
1173
+ 2.4899 27.1300
1174
+ 2.5253 27.1549
1175
+ 2.5607 27.1612
1176
+ 2.5960 27.1419
1177
+ 2.6314 27.1001
1178
+ 2.6667 27.0400
1179
+ 2.7021 26.9684
1180
+ 2.7374 26.8931
1181
+ 2.7728 26.8216
1182
+ 2.8081 26.7600
1183
+ 2.8435 26.7126
1184
+ 2.8789 26.6831
1185
+ 2.9142 26.6730
1186
+ 2.9431 26.6797
1187
+ 2.9719 26.6999
1188
+ 3.0008 26.7336
1189
+ 3.0297 26.7807
1190
+ 3.0586 26.8410
1191
+ 3.0874 26.9145
1192
+ 3.1163 27.0004
1193
+ 3.1452 27.0984
1194
+ 3.1740 27.2076
1195
+ 3.2029 27.3268
1196
+ 3.2318 27.4545
1197
+ 3.2606 27.5889
1198
+ 3.2895 27.7275
1199
+ 3.3184 27.8694
1200
+ 3.3472 28.0062
1201
+ 3.3761 28.1405
1202
+ 3.4050 28.2726
1203
+ 3.4338 28.4007
1204
+ 3.4627 28.5201
1205
+ 3.4916 28.6290
1206
+ 3.5204 28.7263
1207
+ 3.5493 28.8110
1208
+ 3.5782 28.8816
1209
+ 3.6070 28.9412
1210
+ 3.6359 28.9892
1211
+ 3.6648 29.0324
1212
+ 3.6936 29.0600
1213
+ 3.7225 29.0788
1214
+ 3.7514 29.0898
1215
+ 3.7802 29.0910
1216
+