SAMBA-ilum 1.0.0.508__tar.gz → 1.0.0.510__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/PKG-INFO +3 -2
- samba_ilum-1.0.0.510/README.md +4 -0
- {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/SAMBA_ilum.egg-info/PKG-INFO +3 -2
- samba_ilum-1.0.0.510/samba_ilum/__init__.py +5 -0
- {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/__main__.py +31 -34
- {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/BZ_2D.py +15 -14
- {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/HeteroStructure_Generator.py +69 -69
- samba_ilum-1.0.0.510/samba_ilum/src/INPUTS/SAMBA_HeteroStructure.input +62 -0
- samba_ilum-1.0.0.510/samba_ilum/src/INPUTS/SAMBA_WorkFlow.input +82 -0
- {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/_info_pseudo.py +2 -2
- {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/a-scan.py +12 -12
- {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/a-scan_analysis.py +17 -17
- {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/bader_poscar.py +3 -2
- {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/bader_update.py +1 -1
- {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/cell_check.py +50 -41
- {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/charge_transfer.py +17 -17
- {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/contcar_update.py +6 -6
- {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/data-base_json.py +56 -57
- {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/data-base_union.py +5 -3
- {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/energy_scan.py +3 -3
- {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/hubbard_correction.py +1 -1
- {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/job.py +13 -13
- {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/kpoints.py +1 -1
- {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/lattice_plot3d.py +1 -1
- {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/make_files.py +1 -1
- {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/output.py +1 -1
- {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/potcar.py +1 -1
- {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/vdW_DF.py +1 -1
- {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/xy-scan.py +1 -1
- {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/xy-scan_analysis.py +1 -1
- {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/xyz-scan.py +1 -1
- {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/xyz-scan_analysis.py +1 -1
- {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/z-scan.py +1 -1
- {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/z-scan_analysis.py +1 -1
- {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/setup.py +1 -1
- samba_ilum-1.0.0.508/README.md +0 -3
- samba_ilum-1.0.0.508/samba_ilum/__init__.py +0 -5
- samba_ilum-1.0.0.508/samba_ilum/src/INPUTS/SAMBA_HeteroStructure.input +0 -63
- samba_ilum-1.0.0.508/samba_ilum/src/INPUTS/SAMBA_WorkFlow.input +0 -82
- {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/LICENSE.txt +0 -0
- {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/SAMBA_ilum.egg-info/SOURCES.txt +0 -0
- {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/SAMBA_ilum.egg-info/dependency_links.txt +0 -0
- {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/SAMBA_ilum.egg-info/entry_points.txt +0 -0
- {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/SAMBA_ilum.egg-info/requires.txt +0 -0
- {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/SAMBA_ilum.egg-info/top_level.txt +0 -0
- {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/INPUTS/INCAR_a-scan +0 -0
- {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/INPUTS/INCAR_bader +0 -0
- {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/INPUTS/INCAR_bader.SO +0 -0
- {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/INPUTS/INCAR_bands +0 -0
- {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/INPUTS/INCAR_bands.SO +0 -0
- {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/INPUTS/INCAR_dos +0 -0
- {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/INPUTS/INCAR_dos.SO +0 -0
- {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/INPUTS/INCAR_relax +0 -0
- {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/INPUTS/INCAR_scf +0 -0
- {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/INPUTS/INCAR_scf.SO +0 -0
- {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/INPUTS/INCAR_xy-scan +0 -0
- {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/INPUTS/INCAR_xyz-scan +0 -0
- {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/INPUTS/INCAR_z-scan +0 -0
- {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/INPUTS/inputs_VASProcar/input.vasprocar.bands +0 -0
- {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/INPUTS/inputs_VASProcar/input.vasprocar.chgcar +0 -0
- {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/INPUTS/inputs_VASProcar/input.vasprocar.dos +0 -0
- {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/INPUTS/inputs_VASProcar/input.vasprocar.location +0 -0
- {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/INPUTS/inputs_VASProcar/input.vasprocar.locpot +0 -0
- {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/INPUTS/inputs_VASProcar/input.vasprocar.orbitals +0 -0
- {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/INPUTS/inputs_VASProcar/input.vasprocar.spin +0 -0
- {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/INPUTS/vdw_kernel.bindat +0 -0
- {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/bader +0 -0
- {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/chgsum.pl +0 -0
- {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: SAMBA_ilum
|
|
3
|
-
Version: 1.0.0.
|
|
3
|
+
Version: 1.0.0.510
|
|
4
4
|
Summary: ...
|
|
5
5
|
Author: Augusto de Lelis Araujo
|
|
6
6
|
Author-email: augusto-lelis@outlook.com
|
|
@@ -17,6 +17,7 @@ Requires-Dist: numpy
|
|
|
17
17
|
Requires-Dist: uuid
|
|
18
18
|
Requires-Dist: vasprocar
|
|
19
19
|
|
|
20
|
-
#
|
|
20
|
+
# SAMBA\_ilum Copyright (C) 2025 - Closed source
|
|
21
21
|
|
|
22
22
|
...
|
|
23
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: SAMBA_ilum
|
|
3
|
-
Version: 1.0.0.
|
|
3
|
+
Version: 1.0.0.510
|
|
4
4
|
Summary: ...
|
|
5
5
|
Author: Augusto de Lelis Araujo
|
|
6
6
|
Author-email: augusto-lelis@outlook.com
|
|
@@ -17,6 +17,7 @@ Requires-Dist: numpy
|
|
|
17
17
|
Requires-Dist: uuid
|
|
18
18
|
Requires-Dist: vasprocar
|
|
19
19
|
|
|
20
|
-
#
|
|
20
|
+
# SAMBA\_ilum Copyright (C) 2025 - Closed source
|
|
21
21
|
|
|
22
22
|
...
|
|
23
|
+
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# SAMBA_ilum Copyright (C)
|
|
1
|
+
# SAMBA_ilum Copyright (C) 2025 - Closed source
|
|
2
2
|
|
|
3
3
|
import numpy as np
|
|
4
4
|
import subprocess
|
|
@@ -16,11 +16,11 @@ dir_samba = os.path.dirname(os.path.realpath(__file__))
|
|
|
16
16
|
print(f'{dir_samba}')
|
|
17
17
|
#--------------------
|
|
18
18
|
|
|
19
|
-
version = '1.0.0.
|
|
19
|
+
version = '1.0.0.510'
|
|
20
20
|
|
|
21
21
|
print(" ")
|
|
22
22
|
print("=============================================================")
|
|
23
|
-
print(f'SAMBA_ilum v{version} Copyright (C)
|
|
23
|
+
print(f'SAMBA_ilum v{version} Copyright (C) 2025 --------------------')
|
|
24
24
|
print("Closed source: Adalberto Fazzio's research group (Ilum|CNPEM)")
|
|
25
25
|
print("Author: Augusto de Lelis Araujo -----------------------------")
|
|
26
26
|
print("=============================================================")
|
|
@@ -75,14 +75,14 @@ if (run_input == 'yes'):
|
|
|
75
75
|
|
|
76
76
|
if(run_input == 'not'):
|
|
77
77
|
print("######################################################################")
|
|
78
|
-
print("#
|
|
78
|
+
print("# What do you want to run? ? =========================================")
|
|
79
79
|
print("# ====================================================================")
|
|
80
|
-
print("# [0]
|
|
80
|
+
print("# [0] Generate SAMBA execution inputs ")
|
|
81
81
|
print("# --------------------------------------------------------------------")
|
|
82
|
-
print("# [1]
|
|
82
|
+
print("# [1] Heterostructure Generator ")
|
|
83
83
|
print("# [2] WorkFlow: High Throughput DFT (inputs + job) ")
|
|
84
84
|
print("# --------------------------------------------------------------------")
|
|
85
|
-
print("# [3]
|
|
85
|
+
print("# [3] Customize internal WorkFlow inputs (INPUTS folder) ")
|
|
86
86
|
print("######################################################################")
|
|
87
87
|
tarefa = input(" "); tarefa = int(tarefa)
|
|
88
88
|
print(" ")
|
|
@@ -104,11 +104,10 @@ if (tarefa == 1):
|
|
|
104
104
|
#------------------------------------------------------------------------------------------------------
|
|
105
105
|
print(" ")
|
|
106
106
|
print("==============================================================")
|
|
107
|
-
print("
|
|
108
|
-
print("Arquivo SAMBA_HeteroStructure.input gerado !!! ===============")
|
|
107
|
+
print("Generated SAMBA_HeteroStructure.input file !!! ===============")
|
|
109
108
|
print("--------------------------------------------------------------")
|
|
110
|
-
print("Configure
|
|
111
|
-
print("
|
|
109
|
+
print("Configure the SAMBA_HeteroStructure.input file and run the ---")
|
|
110
|
+
print(" code again ---")
|
|
112
111
|
print("==============================================================")
|
|
113
112
|
print(" ")
|
|
114
113
|
#--------------------------------------------------------
|
|
@@ -121,20 +120,20 @@ if (tarefa == 1):
|
|
|
121
120
|
#------------------------------------------------------------
|
|
122
121
|
|
|
123
122
|
|
|
124
|
-
|
|
125
|
-
#
|
|
126
|
-
#
|
|
127
|
-
|
|
123
|
+
#======================================================
|
|
124
|
+
# Checking the structure of POSCAR files, regarding the
|
|
125
|
+
# rotation angle in relation to the z-axis ============
|
|
126
|
+
#======================================================
|
|
128
127
|
exec(open(dir_codes + '/cell_check.py').read())
|
|
129
|
-
|
|
128
|
+
#======================================================
|
|
130
129
|
|
|
131
130
|
|
|
132
131
|
if (loop_ht == 1):
|
|
133
132
|
#--------------
|
|
134
133
|
n_Lattice = 2
|
|
135
|
-
|
|
136
|
-
#
|
|
137
|
-
|
|
134
|
+
#--------------------------------------------------------------------------
|
|
135
|
+
# Checking for existence of non-empty file 'check_list_loop.txt' ----------
|
|
136
|
+
#--------------------------------------------------------------------------
|
|
138
137
|
temp_check = 0
|
|
139
138
|
#-------------
|
|
140
139
|
check_list_dir = dir_files + '/check_list_loop.txt'
|
|
@@ -159,13 +158,13 @@ if (tarefa == 1):
|
|
|
159
158
|
bilayer_materials.append((material1, material2))
|
|
160
159
|
#-------------------------------------------------------
|
|
161
160
|
vistos = set()
|
|
162
|
-
new_bilayer_materials = [] #
|
|
161
|
+
new_bilayer_materials = [] # List to store unique elements
|
|
163
162
|
for elemento in bilayer_materials:
|
|
164
|
-
elem_ordenado = tuple(sorted(elemento)) #
|
|
163
|
+
elem_ordenado = tuple(sorted(elemento)) # Sorts the elements (ignoring permutations)
|
|
165
164
|
if elem_ordenado not in vistos:
|
|
166
|
-
new_bilayer_materials.append(elemento) #
|
|
165
|
+
new_bilayer_materials.append(elemento) # Adding elements that do not have permutations
|
|
167
166
|
vistos.add(elem_ordenado)
|
|
168
|
-
bilayer_materials = new_bilayer_materials #
|
|
167
|
+
bilayer_materials = new_bilayer_materials # Saving the new list with the permutations removed
|
|
169
168
|
#-------------------------------------------------------
|
|
170
169
|
for loop in range(len(bilayer_materials)):
|
|
171
170
|
Lattice1 = bilayer_materials[loop][0]
|
|
@@ -182,9 +181,9 @@ if (tarefa == 1):
|
|
|
182
181
|
#---------------------------------------------------------------------------------------------------------------------------------
|
|
183
182
|
|
|
184
183
|
if ( temp_check == 0 or (temp_check == 1 and run == 1) ):
|
|
185
|
-
|
|
186
|
-
#
|
|
187
|
-
|
|
184
|
+
#------------------------------------------------------------------
|
|
185
|
+
# Heterostructure loop check_list ---------------------------------
|
|
186
|
+
#------------------------------------------------------------------
|
|
188
187
|
nloop += +1
|
|
189
188
|
if (nloop >= 0 and nloop < 10): nloop2 = '000' + str(nloop)
|
|
190
189
|
if (nloop >= 10 and nloop < 100): nloop2 = '00' + str(nloop)
|
|
@@ -223,11 +222,9 @@ if (tarefa == 2):
|
|
|
223
222
|
#----------------------------------------------------------------------------------------
|
|
224
223
|
print(" ")
|
|
225
224
|
print("==============================================================")
|
|
226
|
-
print("
|
|
227
|
-
print("Arquivo SAMBA_WorkFlow.input gerado !!! ======================")
|
|
225
|
+
print("SAMBA_WorkFlow.input file generated !!! ======================")
|
|
228
226
|
print("--------------------------------------------------------------")
|
|
229
|
-
print("Configure
|
|
230
|
-
print(" novamente --")
|
|
227
|
+
print("Configure the SAMBA_WorkFlow.input file and run the code again")
|
|
231
228
|
print("==============================================================")
|
|
232
229
|
print(" ")
|
|
233
230
|
#--------------------------------------------------------
|
|
@@ -253,9 +250,9 @@ if (tarefa == 2):
|
|
|
253
250
|
0 == 0
|
|
254
251
|
else:
|
|
255
252
|
print('')
|
|
256
|
-
print('
|
|
257
|
-
print('
|
|
258
|
-
print('
|
|
253
|
+
print('Warning: -----------------------------------------')
|
|
254
|
+
print('Missing POTCAR folder and POTCAR_[ion] files -----')
|
|
255
|
+
print('Enter and then press [ENTER] to continue ---------')
|
|
259
256
|
print('--------------------------------------------------')
|
|
260
257
|
confirmacao = input (" "); confirmacao = str(confirmacao)
|
|
261
258
|
#------------------------------------
|
|
@@ -288,6 +285,6 @@ if (tarefa == 3): shutil.copytree(dir_codes + '/INPUTS', dir_files + '/WorkFlow
|
|
|
288
285
|
|
|
289
286
|
print(" ")
|
|
290
287
|
print("=============")
|
|
291
|
-
print("
|
|
288
|
+
print("Completed ===")
|
|
292
289
|
print("=============")
|
|
293
290
|
print(" ")
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
# SAMBA_ilum Copyright (C) 2025 - Closed source
|
|
2
|
+
|
|
2
3
|
import numpy as np
|
|
3
4
|
import sys
|
|
4
5
|
import os
|
|
@@ -13,7 +14,7 @@ from scipy.spatial import Voronoi
|
|
|
13
14
|
|
|
14
15
|
|
|
15
16
|
#============================================================
|
|
16
|
-
#
|
|
17
|
+
# Extracting the k-path used in the Band Structure plot =====
|
|
17
18
|
#============================================================
|
|
18
19
|
kpoints_file = []
|
|
19
20
|
kpath = []
|
|
@@ -57,8 +58,8 @@ for i in range(len(kpoints_file)):
|
|
|
57
58
|
line[3] = line[3].replace('!', '').replace('#1', 'Gamma').replace('#', '')
|
|
58
59
|
kpath.append([float(line[0]), float(line[1]), float(line[2]), str(line[3])])
|
|
59
60
|
#-----------------------------------------------------------------------------------------
|
|
60
|
-
#
|
|
61
|
-
|
|
61
|
+
# Removing adjacent and repeated elements from the k-path list
|
|
62
|
+
#-------------------------------------------------------------
|
|
62
63
|
i = 0
|
|
63
64
|
while i < (len(kpath) -1):
|
|
64
65
|
if kpath[i] == kpath[i +1]: del kpath[i +1]
|
|
@@ -72,9 +73,9 @@ for sublista in kpath:
|
|
|
72
73
|
|
|
73
74
|
|
|
74
75
|
|
|
75
|
-
|
|
76
|
-
#
|
|
77
|
-
|
|
76
|
+
#====================================================================
|
|
77
|
+
# Extracting information about the Direct and Reciprocal lattices ===
|
|
78
|
+
#====================================================================
|
|
78
79
|
contcar = open(dir_kpath + '/CONTCAR', "r")
|
|
79
80
|
VTemp = contcar.readline().split()
|
|
80
81
|
n_materials = len(VTemp[1].replace('+', ' ').split())
|
|
@@ -107,20 +108,20 @@ B2 = [B2x*ft, B2y*ft]
|
|
|
107
108
|
|
|
108
109
|
|
|
109
110
|
|
|
110
|
-
|
|
111
|
-
#
|
|
112
|
-
|
|
111
|
+
#==============================================================
|
|
112
|
+
# 2D plot of the 1st Brillouin Zone ===========================
|
|
113
|
+
#==============================================================
|
|
113
114
|
fig, ax = plt.subplots()
|
|
114
115
|
#-----------------------
|
|
115
116
|
|
|
116
117
|
#-------------------------------------------------------------
|
|
117
|
-
#
|
|
118
|
+
# Constructing the 2D BZ using Voronoi (Supercell S) ---------
|
|
118
119
|
#-------------------------------------------------------------
|
|
119
|
-
nx, ny = 6, 6 #
|
|
120
|
+
nx, ny = 6, 6 # Number of points in the grid
|
|
120
121
|
points = np.dot(np.mgrid[-nx:nx+1, -ny:ny+1].reshape(2, -1).T, np.array([B1, B2]))
|
|
121
122
|
vor = Voronoi(points)
|
|
122
|
-
|
|
123
|
-
#
|
|
123
|
+
#-------------------------------
|
|
124
|
+
# Plotting the 2D Brillouin zone
|
|
124
125
|
#--------------------------------
|
|
125
126
|
for simplex in vor.ridge_vertices:
|
|
126
127
|
simplex = np.asarray(simplex)
|