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.
Files changed (69) hide show
  1. {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/PKG-INFO +3 -2
  2. samba_ilum-1.0.0.510/README.md +4 -0
  3. {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/SAMBA_ilum.egg-info/PKG-INFO +3 -2
  4. samba_ilum-1.0.0.510/samba_ilum/__init__.py +5 -0
  5. {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/__main__.py +31 -34
  6. {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/BZ_2D.py +15 -14
  7. {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/HeteroStructure_Generator.py +69 -69
  8. samba_ilum-1.0.0.510/samba_ilum/src/INPUTS/SAMBA_HeteroStructure.input +62 -0
  9. samba_ilum-1.0.0.510/samba_ilum/src/INPUTS/SAMBA_WorkFlow.input +82 -0
  10. {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/_info_pseudo.py +2 -2
  11. {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/a-scan.py +12 -12
  12. {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/a-scan_analysis.py +17 -17
  13. {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/bader_poscar.py +3 -2
  14. {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/bader_update.py +1 -1
  15. {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/cell_check.py +50 -41
  16. {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/charge_transfer.py +17 -17
  17. {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/contcar_update.py +6 -6
  18. {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/data-base_json.py +56 -57
  19. {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/data-base_union.py +5 -3
  20. {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/energy_scan.py +3 -3
  21. {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/hubbard_correction.py +1 -1
  22. {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/job.py +13 -13
  23. {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/kpoints.py +1 -1
  24. {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/lattice_plot3d.py +1 -1
  25. {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/make_files.py +1 -1
  26. {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/output.py +1 -1
  27. {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/potcar.py +1 -1
  28. {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/vdW_DF.py +1 -1
  29. {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/xy-scan.py +1 -1
  30. {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/xy-scan_analysis.py +1 -1
  31. {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/xyz-scan.py +1 -1
  32. {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/xyz-scan_analysis.py +1 -1
  33. {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/z-scan.py +1 -1
  34. {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/z-scan_analysis.py +1 -1
  35. {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/setup.py +1 -1
  36. samba_ilum-1.0.0.508/README.md +0 -3
  37. samba_ilum-1.0.0.508/samba_ilum/__init__.py +0 -5
  38. samba_ilum-1.0.0.508/samba_ilum/src/INPUTS/SAMBA_HeteroStructure.input +0 -63
  39. samba_ilum-1.0.0.508/samba_ilum/src/INPUTS/SAMBA_WorkFlow.input +0 -82
  40. {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/LICENSE.txt +0 -0
  41. {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/SAMBA_ilum.egg-info/SOURCES.txt +0 -0
  42. {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/SAMBA_ilum.egg-info/dependency_links.txt +0 -0
  43. {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/SAMBA_ilum.egg-info/entry_points.txt +0 -0
  44. {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/SAMBA_ilum.egg-info/requires.txt +0 -0
  45. {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/SAMBA_ilum.egg-info/top_level.txt +0 -0
  46. {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/INPUTS/INCAR_a-scan +0 -0
  47. {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/INPUTS/INCAR_bader +0 -0
  48. {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/INPUTS/INCAR_bader.SO +0 -0
  49. {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/INPUTS/INCAR_bands +0 -0
  50. {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/INPUTS/INCAR_bands.SO +0 -0
  51. {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/INPUTS/INCAR_dos +0 -0
  52. {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/INPUTS/INCAR_dos.SO +0 -0
  53. {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/INPUTS/INCAR_relax +0 -0
  54. {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/INPUTS/INCAR_scf +0 -0
  55. {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/INPUTS/INCAR_scf.SO +0 -0
  56. {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/INPUTS/INCAR_xy-scan +0 -0
  57. {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/INPUTS/INCAR_xyz-scan +0 -0
  58. {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/INPUTS/INCAR_z-scan +0 -0
  59. {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/INPUTS/inputs_VASProcar/input.vasprocar.bands +0 -0
  60. {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/INPUTS/inputs_VASProcar/input.vasprocar.chgcar +0 -0
  61. {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/INPUTS/inputs_VASProcar/input.vasprocar.dos +0 -0
  62. {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/INPUTS/inputs_VASProcar/input.vasprocar.location +0 -0
  63. {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/INPUTS/inputs_VASProcar/input.vasprocar.locpot +0 -0
  64. {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/INPUTS/inputs_VASProcar/input.vasprocar.orbitals +0 -0
  65. {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/INPUTS/inputs_VASProcar/input.vasprocar.spin +0 -0
  66. {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/INPUTS/vdw_kernel.bindat +0 -0
  67. {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/bader +0 -0
  68. {samba_ilum-1.0.0.508 → samba_ilum-1.0.0.510}/samba_ilum/src/chgsum.pl +0 -0
  69. {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.508
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
- # SAMBA_ilum Copyright (C) 2024 - Closed source
20
+ # SAMBA\_ilum Copyright (C) 2025 - Closed source
21
21
 
22
22
  ...
23
+
@@ -0,0 +1,4 @@
1
+ # SAMBA\_ilum Copyright (C) 2025 - Closed source
2
+
3
+ ...
4
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: SAMBA_ilum
3
- Version: 1.0.0.508
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
- # SAMBA_ilum Copyright (C) 2024 - Closed source
20
+ # SAMBA\_ilum Copyright (C) 2025 - Closed source
21
21
 
22
22
  ...
23
+
@@ -0,0 +1,5 @@
1
+ # SAMBA_ilum Copyright (C) 2025 - Closed source
2
+
3
+
4
+
5
+
@@ -1,4 +1,4 @@
1
- # SAMBA_ilum Copyright (C) 2024 - Closed source
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.508'
19
+ version = '1.0.0.510'
20
20
 
21
21
  print(" ")
22
22
  print("=============================================================")
23
- print(f'SAMBA_ilum v{version} Copyright (C) 2024 --------------------')
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("# O que deseja executar ? ============================================")
78
+ print("# What do you want to run? ? =========================================")
79
79
  print("# ====================================================================")
80
- print("# [0] Gerar inputs de execução do SAMBA ")
80
+ print("# [0] Generate SAMBA execution inputs ")
81
81
  print("# --------------------------------------------------------------------")
82
- print("# [1] Gerador de Heteroestruturas ")
82
+ print("# [1] Heterostructure Generator ")
83
83
  print("# [2] WorkFlow: High Throughput DFT (inputs + job) ")
84
84
  print("# --------------------------------------------------------------------")
85
- print("# [3] Personalizar inputs internos do WorkFlow (pasta INPUTS) ")
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("Arquivo SAMBA_HeteroStructure.input ==========================")
108
- print("Arquivo SAMBA_HeteroStructure.input gerado !!! ===============")
107
+ print("Generated SAMBA_HeteroStructure.input file !!! ===============")
109
108
  print("--------------------------------------------------------------")
110
- print("Configure o arquivo SAMBA_HeteroStructure.input e execute o --")
111
- print(" código novamente --")
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
- # Checagem da estrutura dos arquivos POSCAR, com relação
126
- # ao ângulo de rotação em relação ao eixo-z ============
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
- # Verificando a existência do arquivo 'check_list_loop.txt' não vazio ----------
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 = [] # Lista para armazenar os elementos únicos
161
+ new_bilayer_materials = [] # List to store unique elements
163
162
  for elemento in bilayer_materials:
164
- elem_ordenado = tuple(sorted(elemento)) # Ordena os elementos (ignorando as permutações)
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) # Adicionando os elementos que não possuem permutações
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 # Salvando a nova lista coma as permutações removidas
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
- # Chek_List do loop das Heteroestrutura ---------------------------------
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("Arquivo SAMBA_WorkFlow.input =================================")
227
- print("Arquivo SAMBA_WorkFlow.input gerado !!! ======================")
225
+ print("SAMBA_WorkFlow.input file generated !!! ======================")
228
226
  print("--------------------------------------------------------------")
229
- print("Configure o arquivo SAMBA_WorkFlow.input e execute o código --")
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('Atenção: -----------------------------------------')
257
- print('Pasta POTCAR e arquivos POTCAR_[ion] ausentes ---')
258
- print('Insira e depois aperte [ENTER] para prosseguir ---')
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("Concluido ===")
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
- # Extraindo o k-path usado no plot da Estrutura de Bandas ===
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
- # Removendo elementos adjacentes e repetidos da lista kpath
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
- # Extraindo informações sobre as redes Direta e Recíproca ===
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
- # Plot 2D da Zona de Brillouin ===========================
112
- #============================================================
111
+ #==============================================================
112
+ # 2D plot of the 1st Brillouin Zone ===========================
113
+ #==============================================================
113
114
  fig, ax = plt.subplots()
114
115
  #-----------------------
115
116
 
116
117
  #-------------------------------------------------------------
117
- # Construindo a BZ 2D usando Voronoi (Supercélula S) ---------
118
+ # Constructing the 2D BZ using Voronoi (Supercell S) ---------
118
119
  #-------------------------------------------------------------
119
- nx, ny = 6, 6 # Número de pontos na grade
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
- # Plotando a zona de Brillouin 2D
123
+ #-------------------------------
124
+ # Plotting the 2D Brillouin zone
124
125
  #--------------------------------
125
126
  for simplex in vor.ridge_vertices:
126
127
  simplex = np.asarray(simplex)