SAMBA-ilum 1.0.0.483__tar.gz → 1.0.0.484__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 (67) hide show
  1. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/PKG-INFO +1 -1
  2. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/SAMBA_ilum.egg-info/PKG-INFO +1 -1
  3. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/samba_ilum/__main__.py +1 -1
  4. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/samba_ilum/src/HeteroStructure_Generator.py +52 -23
  5. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/setup.py +1 -1
  6. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/LICENSE.txt +0 -0
  7. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/README.md +0 -0
  8. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/SAMBA_ilum.egg-info/SOURCES.txt +0 -0
  9. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/SAMBA_ilum.egg-info/dependency_links.txt +0 -0
  10. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/SAMBA_ilum.egg-info/entry_points.txt +0 -0
  11. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/SAMBA_ilum.egg-info/requires.txt +0 -0
  12. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/SAMBA_ilum.egg-info/top_level.txt +0 -0
  13. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/samba_ilum/__init__.py +0 -0
  14. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/samba_ilum/src/BZ_2D.py +0 -0
  15. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/samba_ilum/src/HeteroStructure_Generator_OLD_1.py +0 -0
  16. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/samba_ilum/src/HeteroStructure_Generator_OLD_2.py +0 -0
  17. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/samba_ilum/src/INPUTS/INCAR_a-scan +0 -0
  18. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/samba_ilum/src/INPUTS/INCAR_bader +0 -0
  19. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/samba_ilum/src/INPUTS/INCAR_bader.SO +0 -0
  20. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/samba_ilum/src/INPUTS/INCAR_bands +0 -0
  21. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/samba_ilum/src/INPUTS/INCAR_bands.SO +0 -0
  22. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/samba_ilum/src/INPUTS/INCAR_dos +0 -0
  23. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/samba_ilum/src/INPUTS/INCAR_dos.SO +0 -0
  24. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/samba_ilum/src/INPUTS/INCAR_relax +0 -0
  25. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/samba_ilum/src/INPUTS/INCAR_scf +0 -0
  26. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/samba_ilum/src/INPUTS/INCAR_scf.SO +0 -0
  27. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/samba_ilum/src/INPUTS/INCAR_xy-scan +0 -0
  28. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/samba_ilum/src/INPUTS/INCAR_xyz-scan +0 -0
  29. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/samba_ilum/src/INPUTS/INCAR_z-scan +0 -0
  30. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/samba_ilum/src/INPUTS/SAMBA_HeteroStructure.input +0 -0
  31. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/samba_ilum/src/INPUTS/SAMBA_WorkFlow.input +0 -0
  32. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/samba_ilum/src/INPUTS/inputs_VASProcar/input.vasprocar.bands +0 -0
  33. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/samba_ilum/src/INPUTS/inputs_VASProcar/input.vasprocar.chgcar +0 -0
  34. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/samba_ilum/src/INPUTS/inputs_VASProcar/input.vasprocar.dos +0 -0
  35. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/samba_ilum/src/INPUTS/inputs_VASProcar/input.vasprocar.location +0 -0
  36. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/samba_ilum/src/INPUTS/inputs_VASProcar/input.vasprocar.locpot +0 -0
  37. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/samba_ilum/src/INPUTS/inputs_VASProcar/input.vasprocar.orbitals +0 -0
  38. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/samba_ilum/src/INPUTS/inputs_VASProcar/input.vasprocar.spin +0 -0
  39. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/samba_ilum/src/INPUTS/vdw_kernel.bindat +0 -0
  40. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/samba_ilum/src/_info_pseudo.py +0 -0
  41. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/samba_ilum/src/a-scan.py +0 -0
  42. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/samba_ilum/src/a-scan_analysis.py +0 -0
  43. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/samba_ilum/src/bader +0 -0
  44. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/samba_ilum/src/bader_poscar.py +0 -0
  45. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/samba_ilum/src/bader_update.py +0 -0
  46. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/samba_ilum/src/charge_transfer.py +0 -0
  47. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/samba_ilum/src/chgsum.pl +0 -0
  48. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/samba_ilum/src/contcar_update.py +0 -0
  49. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/samba_ilum/src/data-base_json.py +0 -0
  50. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/samba_ilum/src/data-base_union.py +0 -0
  51. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/samba_ilum/src/energy_scan.py +0 -0
  52. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/samba_ilum/src/hubbard_correction.py +0 -0
  53. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/samba_ilum/src/job.py +0 -0
  54. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/samba_ilum/src/kpoints.py +0 -0
  55. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/samba_ilum/src/lattice_plot3d.py +0 -0
  56. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/samba_ilum/src/make_files.py +0 -0
  57. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/samba_ilum/src/output.py +0 -0
  58. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/samba_ilum/src/potcar.py +0 -0
  59. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/samba_ilum/src/rotation_axis_check.py +0 -0
  60. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/samba_ilum/src/vdW_DF.py +0 -0
  61. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/samba_ilum/src/xy-scan.py +0 -0
  62. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/samba_ilum/src/xy-scan_analysis.py +0 -0
  63. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/samba_ilum/src/xyz-scan.py +0 -0
  64. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/samba_ilum/src/xyz-scan_analysis.py +0 -0
  65. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/samba_ilum/src/z-scan.py +0 -0
  66. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/samba_ilum/src/z-scan_analysis.py +0 -0
  67. {samba_ilum-1.0.0.483 → samba_ilum-1.0.0.484}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: SAMBA_ilum
3
- Version: 1.0.0.483
3
+ Version: 1.0.0.484
4
4
  Summary: ...
5
5
  Author: Augusto de Lelis Araujo
6
6
  Author-email: augusto-lelis@outlook.com
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: SAMBA_ilum
3
- Version: 1.0.0.483
3
+ Version: 1.0.0.484
4
4
  Summary: ...
5
5
  Author: Augusto de Lelis Araujo
6
6
  Author-email: augusto-lelis@outlook.com
@@ -16,7 +16,7 @@ dir_samba = os.path.dirname(os.path.realpath(__file__))
16
16
  print(f'{dir_samba}')
17
17
  #--------------------
18
18
 
19
- version = '1.0.0.483'
19
+ version = '1.0.0.484'
20
20
 
21
21
  print(" ")
22
22
  print("=============================================================")
@@ -1034,47 +1034,76 @@ if (n_test == 1):
1034
1034
  # Definir a matriz de transformação
1035
1035
  T = np.linalg.inv(np.array([a, b, c]).T)
1036
1036
  #---------------------------------------------
1037
+
1038
+
1039
+ #-------------------------------------------------------------------------
1040
+ # Obtenção das coordenadas do átomo mais próximo da nova origem ----------
1041
+ #-------------------------------------------------------------------------
1037
1042
  poscar1 = open(diret + 'POSCAR_Supercell_' + label + '_cartesian.vasp', "r")
1038
- poscar2 = open(diret + 'Coord_Supercell_' + label + '.dat', "r")
1039
- poscar_new = open(temp_dir + '/temp_' + str(j+1) + '.vasp', "w")
1040
- #---------------------------------------------
1041
- VTemp = poscar1.readline()
1042
- poscar_new.write(f'{VTemp}')
1043
- VTemp = poscar1.readline()
1044
- poscar_new.write(f'{VTemp}')
1043
+ #-----------------
1044
+ for i in range(2): VTemp = poscar1.readline()
1045
1045
  param = float(VTemp)
1046
- #---------------------------------------------
1047
- VTemp = poscar1.readline().split(); A = [float(VTemp[0])*param, float(VTemp[1])*param, float(VTemp[2])*param]
1048
- VTemp = poscar1.readline().split(); B = [float(VTemp[0])*param, float(VTemp[1])*param, float(VTemp[2])*param]
1049
- VTemp = poscar1.readline().split(); C = [float(VTemp[0])*param, float(VTemp[1])*param, float(VTemp[2])*param]
1050
- #----------------------------------------------------------------------
1051
- # Obtenção das coordenadas da nova origem do sistema de coordenadas ---
1052
- #----------------------------------------------------------------------
1046
+ #-------------------
1047
+ for i in range(3):
1048
+ VTemp = poscar1.readline().split(); A = [float(VTemp[0])*param, float(VTemp[1])*param]
1049
+ VTemp = poscar1.readline().split(); B = [float(VTemp[0])*param, float(VTemp[1])*param]
1050
+ VTemp = poscar1.readline().split()
1051
+ #----------------------------------------------------
1052
+ for i in range(2): VTemp = poscar1.readline().split()
1053
+ passo = 0
1054
+ for i in range(len(VTemp)): passo += int(VTemp[i])
1055
+ VTemp = poscar1.readline()
1056
+ #-------------------------
1053
1057
  if (orig == 0):
1054
- center_x = 0.5*A[0] + 0.5*B[0] + 0.5*C[0]
1055
- center_y = 0.5*A[1] + 0.5*B[1] + 0.5*C[1]
1058
+ center_x = 0.5*A[0] + 0.5*B[0]
1059
+ center_y = 0.5*A[1] + 0.5*B[1]
1056
1060
  if (orig == 1):
1057
1061
  center_x = 0.5*A[0]
1058
1062
  center_y = 0.5*A[1]
1063
+ #---------------------
1064
+ temp_d = 1000.0
1065
+ for i in range(passo):
1066
+ VTemp = poscar1.readline().split()
1067
+ #------------------------
1068
+ coord_x = float(VTemp[0])
1069
+ coord_y = float(VTemp[1])
1070
+ #------------------------
1071
+ dist = ((coord_x -center_x)**2 + (coord_y -center_y)**2)**(0.5)
1072
+ if (dist <= temp_d):
1073
+ temp_d = dist
1074
+ new_center_x = coord_x; new_center_y = coord_y
1075
+ #--------------
1076
+ poscar1.close()
1077
+ #--------------
1078
+
1079
+
1080
+ #---------------------------------------------------------------------------
1081
+ poscar1 = open(diret + 'POSCAR_Supercell_' + label + '_cartesian.vasp', "r")
1082
+ poscar2 = open(diret + 'Coord_Supercell_' + label + '.dat', "r")
1083
+ poscar_new = open(temp_dir + '/temp_' + str(j+1) + '.vasp', "w")
1059
1084
  #---------------------------------------------
1085
+ for i in range(2):
1086
+ VTemp = poscar1.readline()
1087
+ poscar_new.write(f'{VTemp}')
1088
+ #--------------------------------------------
1089
+ for i in range(3): VTemp = poscar1.readline()
1090
+ #--------------------------------------------
1060
1091
  poscar_new.write(f' {x1:>28,.21f} {y1:>28,.21f} {null:>28,.21f} \n')
1061
1092
  poscar_new.write(f' {x2:>28,.21f} {y2:>28,.21f} {null:>28,.21f} \n')
1062
1093
  poscar_new.write(f' {null:>28,.21f} {null:>28,.21f} {d:>28,.21f} \n')
1063
- #---------------------------------------------
1094
+ #--------------------------------------------------------------------
1064
1095
  VTemp = poscar1.readline()
1065
- poscar_new.write(f'{VTemp}') # poscar_new.write(f'{s_old}')
1066
- #---------------------------------------------
1096
+ poscar_new.write(f'{VTemp}')
1097
+ #---------------------------
1067
1098
  passo = 0
1068
1099
  VTemp = poscar1.readline().split()
1069
1100
  for i in range(len(VTemp)):
1070
1101
  passo += int(VTemp[i])
1071
-
1072
1102
  #--------------
1073
1103
  poscar1.close()
1074
1104
  #--------------
1075
1105
 
1076
1106
  #####################################################################
1077
-
1078
1107
  poscar_new.write(f'direct \n')
1079
1108
 
1080
1109
  #----------------------------------------------------------------------------------------------------
@@ -1083,8 +1112,8 @@ if (n_test == 1):
1083
1112
  #-------------------------------------------------------------------------------------------
1084
1113
  for i in range(passo):
1085
1114
  VTemp = poscar2.readline().split()
1086
- x = float(VTemp[0]) + center_x
1087
- y = float(VTemp[1]) + center_y
1115
+ x = float(VTemp[0]) + new_center_x
1116
+ y = float(VTemp[1]) + new_center_y
1088
1117
  z = float(VTemp[2])
1089
1118
  l = str(VTemp[4])
1090
1119
 
@@ -6,7 +6,7 @@ import json
6
6
 
7
7
  setup(
8
8
  name = "SAMBA_ilum",
9
- version = "1.0.0.483",
9
+ version = "1.0.0.484",
10
10
  entry_points={'console_scripts': ['samba_ilum = samba_ilum:main']},
11
11
  description = "...",
12
12
  author = "Augusto de Lelis Araujo",
File without changes
File without changes