vasprocar 1.1.19.98__tar.gz → 1.1.19.99__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.

Potentially problematic release.


This version of vasprocar might be problematic. Click here for more details.

Files changed (118) hide show
  1. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/PKG-INFO +1 -1
  2. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/setup.py +1 -1
  3. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/__main__.py +9 -8
  4. vasprocar-1.1.19.99/vasprocar/src/inputs/input.vasprocar.spin_video +256 -0
  5. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/inputs/inputs.py +1 -1
  6. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/inputs/inputs_files.py +10 -0
  7. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/spin_texture_contour_video.py +66 -54
  8. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar.egg-info/PKG-INFO +1 -1
  9. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar.egg-info/SOURCES.txt +1 -0
  10. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/LICENSE.txt +0 -0
  11. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/README.md +0 -0
  12. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/setup.cfg +0 -0
  13. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/__init__.py +0 -0
  14. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/_QE/_info.py +0 -0
  15. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/_QE/_info_b.py +0 -0
  16. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/_QE/_label.py +0 -0
  17. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/_QE/_nscf.py +0 -0
  18. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/_QE/_var_kpoints.py +0 -0
  19. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/_QE/angular_momentum_plot/plot_projecao_angular_momentum.py +0 -0
  20. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/_QE/angular_momentum_plot/plot_projecao_angular_momentum_grace.py +0 -0
  21. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/_QE/contribuicao.py +0 -0
  22. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/_QE/dos_pdos_ldos.py +0 -0
  23. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/_QE/dos_plot/Grace/plot_dos_pdos_ldos.py +0 -0
  24. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/_QE/dos_plot/Grace/plot_dos_pdos_ldos_[polarizado].py +0 -0
  25. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/_QE/dos_plot/Grace/plot_dos_pdos_ldos_[polarizado_delta].py +0 -0
  26. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/_QE/dos_plot/plot_dos_pdos_ldos.py +0 -0
  27. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/_QE/dos_plot/plot_dos_pdos_ldos_[polarizado].py +0 -0
  28. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/_QE/kpoints_2D_3D.py +0 -0
  29. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/_QE/projecao_angular_momentum.py +0 -0
  30. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/_VASP/_info.py +0 -0
  31. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/_VASP/_info_b.py +0 -0
  32. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/_VASP/_label.py +0 -0
  33. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/_VASP/_nscf.py +0 -0
  34. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/_VASP/_var_kpoints.py +0 -0
  35. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/_VASP/chgcar.py +0 -0
  36. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/_VASP/contcar_info.py +0 -0
  37. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/_VASP/contribuicao.py +0 -0
  38. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/_VASP/dielectric_function.py +0 -0
  39. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/_VASP/dos_pdos_ldos.py +0 -0
  40. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/_VASP/dos_pdos_ldos_[polarizado].py +0 -0
  41. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/_VASP/kpoints_2D_3D.py +0 -0
  42. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/_VASP/parchg.py +0 -0
  43. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/_VASP/poscar_replace.py +0 -0
  44. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/_VASP/postar_combination.py +0 -0
  45. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/_VASP/potencial.py +0 -0
  46. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/_VASP/wave_function.py +0 -0
  47. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/_dft.py +0 -0
  48. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/_dft2kp.py +0 -0
  49. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/_loop.py +0 -0
  50. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/_settings.py +0 -0
  51. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/_update.py +0 -0
  52. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/bandas_2D.py +0 -0
  53. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/bandas_3D.py +0 -0
  54. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/bandas_4D.py +0 -0
  55. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/correction_file.py +0 -0
  56. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/etc/BibTeX.dat +0 -0
  57. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/etc/DOI.png +0 -0
  58. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/etc/Greek_alphabet.jpg +0 -0
  59. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/fermi_surface.py +0 -0
  60. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/inputs/input.vasprocar.bands +0 -0
  61. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/inputs/input.vasprocar.chgcar +0 -0
  62. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/inputs/input.vasprocar.dos +0 -0
  63. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/inputs/input.vasprocar.location +0 -0
  64. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/inputs/input.vasprocar.locpot +0 -0
  65. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/inputs/input.vasprocar.orbitals +0 -0
  66. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/inputs/input.vasprocar.spin +0 -0
  67. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/level_countour.py +0 -0
  68. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/orbital_texture.py +0 -0
  69. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/orbital_texture_vector.py +0 -0
  70. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/plot/Grace/plot_bandas_2D.py +0 -0
  71. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/plot/Grace/plot_chgcar.py +0 -0
  72. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/plot/Grace/plot_dielectric_function.py +0 -0
  73. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/plot/Grace/plot_dos_pdos_ldos.py +0 -0
  74. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/plot/Grace/plot_dos_pdos_ldos_[polarizado].py +0 -0
  75. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/plot/Grace/plot_dos_pdos_ldos_[polarizado_delta].py +0 -0
  76. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/plot/Grace/plot_parchg.py +0 -0
  77. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/plot/Grace/plot_potencial.py +0 -0
  78. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/plot/Grace/plot_projecao_localizacao.py +0 -0
  79. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/plot/Grace/plot_projecao_orbitais.py +0 -0
  80. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/plot/Grace/plot_projecao_psi.py +0 -0
  81. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/plot/Grace/plot_projecao_spin.py +0 -0
  82. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/plot/Grace/plot_wave_function.py +0 -0
  83. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/plot/_plot_settings.py +0 -0
  84. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/plot/plot_bandas_2D.py +0 -0
  85. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/plot/plot_bandas_3D_matplotlib.py +0 -0
  86. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/plot/plot_bandas_3D_plotly.py +0 -0
  87. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/plot/plot_bandas_4D_plotly.py +0 -0
  88. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/plot/plot_chgcar.py +0 -0
  89. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/plot/plot_dielectric_function.py +0 -0
  90. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/plot/plot_dos_pdos_ldos.py +0 -0
  91. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/plot/plot_dos_pdos_ldos_[polarizado].py +0 -0
  92. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/plot/plot_fermi_surface.py +0 -0
  93. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/plot/plot_level_countour.py +0 -0
  94. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/plot/plot_orbital_texture.py +0 -0
  95. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/plot/plot_orbital_texture_vector.py +0 -0
  96. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/plot/plot_parchg.py +0 -0
  97. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/plot/plot_potencial.py +0 -0
  98. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/plot/plot_projecao_localizacao.py +0 -0
  99. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/plot/plot_projecao_orbitais.py +0 -0
  100. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/plot/plot_projecao_psi.py +0 -0
  101. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/plot/plot_projecao_spin.py +0 -0
  102. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/plot/plot_spin_texture_2D.py +0 -0
  103. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/plot/plot_spin_texture_3D.py +0 -0
  104. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/plot/plot_spin_texture_4D.py +0 -0
  105. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/plot/plot_spin_texture_4D_[iso].py +0 -0
  106. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/plot/plot_spin_texture_contour.py +0 -0
  107. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/plot/plot_spin_texture_contour_video.py +0 -0
  108. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/plot/plot_wave_function.py +0 -0
  109. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/projecao_localizacao.py +0 -0
  110. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/projecao_orbitais.py +0 -0
  111. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/projecao_psi.py +0 -0
  112. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/projecao_spin.py +0 -0
  113. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/spin_texture.py +0 -0
  114. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar/src/spin_texture_contour.py +0 -0
  115. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar.egg-info/dependency_links.txt +0 -0
  116. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar.egg-info/entry_points.txt +0 -0
  117. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar.egg-info/requires.txt +0 -0
  118. {vasprocar-1.1.19.98 → vasprocar-1.1.19.99}/vasprocar.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vasprocar
3
- Version: 1.1.19.98
3
+ Version: 1.1.19.99
4
4
  Summary: VASProcar is an open-source package written in the Python 3 programming language, which aims to provide an intuitive tool for the post-processing of the output files produced by the DFT VASP/QE codes, through an interactive user interface.
5
5
  Home-page: https://doi.org/10.5281/zenodo.6343960
6
6
  Download-URL: https://doi.org/10.5281/zenodo.6343960
@@ -6,7 +6,7 @@ from typing import Optional
6
6
 
7
7
  setup(
8
8
  name = "vasprocar",
9
- version = "1.1.19.98",
9
+ version = "1.1.19.99",
10
10
  entry_points={'console_scripts': ['vasprocar = vasprocar:main']},
11
11
  description = "VASProcar is an open-source package written in the Python 3 programming language, which aims to provide an intuitive tool for the post-processing of the output files produced by the DFT VASP/QE codes, through an interactive user interface.",
12
12
  author = "Augusto de Lelis Araujo and Renan da Paixao Maciel",
@@ -14,7 +14,7 @@ dir_vasprocar = os.path.dirname(os.path.realpath(__file__))
14
14
  print(f'{dir_vasprocar}')
15
15
  #------------------------
16
16
 
17
- version = '1.1.19.98'
17
+ version = '1.1.19.99'
18
18
  VASProcar_name = 'VASProcar version ' + version
19
19
 
20
20
  url_1 = 'https://pypi.org/project/vasprocar'
@@ -138,13 +138,14 @@ if (len(inputs) > 0):
138
138
  #---------------------------------------------------------------------------
139
139
  exec(open(dir_files + '/inputs/' + 'input.vasprocar.' + inputs[inp]).read())
140
140
  #---------------------------------------------------------------------------
141
- if (inputs[inp] == 'bands'): opcao = -10
142
- if (inputs[inp] == 'spin'): opcao = -20
143
- if (inputs[inp] == 'orbitals'): opcao = -30
144
- if (inputs[inp] == 'dos'): opcao = -31
145
- if (inputs[inp] == 'location'): opcao = -32
146
- if (inputs[inp] == 'locpot'): opcao = -40
147
- if (inputs[inp] == 'chgcar'): opcao = -41
141
+ if (inputs[inp] == 'bands'): opcao = -10
142
+ if (inputs[inp] == 'spin'): opcao = -20
143
+ if (inputs[inp] == 'orbitals'): opcao = -30
144
+ if (inputs[inp] == 'dos'): opcao = -31
145
+ if (inputs[inp] == 'location'): opcao = -32
146
+ if (inputs[inp] == 'locpot'): opcao = -40
147
+ if (inputs[inp] == 'chgcar'): opcao = -41
148
+ if (inputs[inp] == 'spin_video'): opcao = -23
148
149
  #--------------------------------------------------------------------
149
150
  run = main_dir + '_settings.py'
150
151
  exec(open(run).read())
@@ -0,0 +1,256 @@
1
+ # VASProcar Copyright (C) 2023
2
+ # GNU GPL-3.0 license
3
+
4
+ ################################################################
5
+ # inform the DFT package: ======================================
6
+ # [0] VASP - Vienna Ab initio Simulation Package ===============
7
+ # [1] QE - Quantum Espresso ====================================
8
+ ################################################################
9
+ dft_package = 0
10
+
11
+ if (dft_package == 0): DFT = '_VASP/'
12
+ if (dft_package == 1): DFT = '_QE/'
13
+
14
+
15
+
16
+ ##############################################################
17
+ ## Which Spin component or vector should be analyzed? ===== ##
18
+ ##############################################################
19
+ # [1] Sx [2] Sy [3] Sz ============================ ##
20
+ # [4] SxSy [5] SxSz [6] SySz ========================== ##
21
+ ##############################################################
22
+ tipo_spin = 4
23
+
24
+
25
+
26
+ ##############################################################
27
+ # Which band do you want to analyze? =========================
28
+ ##############################################################
29
+ n_band = 1
30
+
31
+
32
+
33
+ #######################################################################
34
+ # Do you want to select over which orbitals the spin components =======
35
+ # (Sx|Sy|Sz) will be projected? =======================================
36
+ # [0] NOT
37
+ # [1] YES
38
+ #######################################################################
39
+ p_orb_spin = 0
40
+
41
+ if (p_orb_spin == 1):
42
+ Orb_spin = [0]*16
43
+ ##############################################################
44
+ # Ions and orbitals can be added in any order ----------------
45
+ # ============================================================
46
+ # Examples:
47
+ # orb_io = s p d
48
+ # orb_io = s p d f
49
+ # orb_io = s p d px py pz dxy dyz dz2 dxz dx2
50
+ # orb_io = s p d f px py pz dxy dyz dz2 dxz dx2 fyx2 fxyz fyz2 fzz2 fxz2 fzx2 fxx2
51
+ # ============================================================
52
+ # Enter the selected orbitals as in the examples below =======
53
+ # ------------------------------------------------------------
54
+ # Orbitals_Spin s
55
+ # Orbitals_Spin px py dxy fxyz
56
+ # Orbitals_Spin s p d f
57
+ ##############################################################
58
+ orb_io = 's p d'
59
+
60
+
61
+
62
+ ##############################################################
63
+ # with respect to energy, would you like? ====================
64
+ # [0] Use the default energy value from DFT output ===========
65
+ # [1] Shift the Fermi level to 0.0 eV =======================
66
+ ##############################################################
67
+ esc_fermi = 1
68
+
69
+
70
+
71
+ ##############################################################
72
+ # What is the number of Level Contours you want to obtain? ===
73
+ ##############################################################
74
+ n_contour = 9
75
+
76
+
77
+
78
+ ##############################################################
79
+ Regarding the energies of the Level Contours: ================
80
+ [0] Must be obtained automatically by code ===================
81
+ [1] Must sweep a certain range of energy =====================
82
+ [2] I want to specify each energy value manually =============
83
+ ##############################################################
84
+ tipo_contour = 1
85
+
86
+ if (tipo_contour == 1):
87
+ ##############################################################
88
+ # Choose the Energy range to be analyzed: ====================
89
+ # Type as in the examples below ==============================
90
+ # ------------------------------------------------------------
91
+ # Initial_energ Final_Energ: -4.5 6.9
92
+ # Initial_energ Final_Energ: 0.0 5.5
93
+ ##############################################################
94
+ energ_i = -2.0
95
+ energ_f = +2.0
96
+
97
+ if (tipo_contour == 2):
98
+ ##############################################################
99
+ # Enter Energy values as in the examples below ===============
100
+ # ------------------------------------------------------------
101
+ # Energies: -4.5 -2.0 -1.0 0.0 1.0 3.0 5.0
102
+ # Energies: 0.2 0.5 0.78 1.23 9.97
103
+ # ------------------------------------------------------------
104
+ # !!! important note !!! =====================================
105
+ # Always enter energy values in ascending order ==============
106
+ ##############################################################
107
+ levels_n = [-2.0, -1.5, -1.0, -0.5, 0.0, +0.5, +1.0, +1.5, +2.0]
108
+
109
+
110
+
111
+ ##############################################################
112
+ # What do you want to analyze? ===============================
113
+ # [0] Analyze all ions in the lattice ========================
114
+ # [1] Analyze selected Ions ==================================
115
+ ##############################################################
116
+ esc_ions = 0
117
+
118
+ if (esc_ions == 1):
119
+ #-------------------------
120
+ sim_nao = ["nao"]*(ni + 1)
121
+ #-------------------------
122
+
123
+ ##################################################################
124
+ # Choose the ions_ranges to be analyzed: =========================
125
+ # Type as in the examples below ==================================
126
+ # ----------------------------------------------------------------
127
+ # The order in which the ions are added does not change the result
128
+ # ----------------------------------------------------------------
129
+ # ions_ranges 1:5 3:9 11* 15:27
130
+ # ions_ranges 7:49 50:53
131
+ # ions_ranges 1* 3* 6:9
132
+ ##################################################################
133
+ ion_range = '1:1'
134
+
135
+
136
+
137
+ ################################################################
138
+ # Would you like to choose k-axis units?
139
+ # [1] (kx,ky,kz) 2pi/Param. (Param. in Angs.) ==================
140
+ # [2] (kx,ky,kz) 1/Angs. =======================================
141
+ # [3] (kx,ky,kz) 1/nm. =======================================
142
+ # [4] (k1,k2,k3) Fractional coord: K = k1*B1 + k2*B2 + k3*B3 ===
143
+ ################################################################
144
+ Dimensao = 4
145
+
146
+
147
+
148
+ ################################################################
149
+ # How many figures should appear per second (fps) in the video?
150
+ # tip 1: =======================================================
151
+ # Choose between 1 and 30 figures ==============================
152
+ # tip 2: =======================================================
153
+ # The greater the number of images and the greater the number of
154
+ # images per second (fps), the smoother the video.
155
+ ################################################################
156
+ n_fig = 20
157
+ #-----------
158
+ save_png = 1
159
+ save_pdf = 0
160
+ save_eps = 0
161
+ save_svg = 0
162
+
163
+
164
+
165
+ ###############################################################
166
+ # Choose the K-mesh grid (DxD) to be interpolated: ============
167
+ # Note: The k-mesh grid used in your DFT calculation can be
168
+ # used as a reference. You are free to increase/decrease
169
+ # the numberof kpoints to be interpolated.
170
+ # Hint: use 101 (unless more precision is required).
171
+ ###############################################################
172
+ n_d = 101
173
+
174
+
175
+
176
+ ##############################################################
177
+ # Enter [0] if you want to keep the density of Spin vectors.
178
+ # ============================================================
179
+ # If you want to reduce the density, enter an integer > 0, ---
180
+ # corresponding to the number of skipped Spin vectors --------
181
+ # interspersed along the path of the band contour. -----------
182
+ ##############################################################
183
+ pulo = 0
184
+
185
+
186
+
187
+ ##############################################################
188
+ # To keep the length of Spin vectors, Enter 1.0
189
+ # To increase the length, Enter a Positive value > 1.0
190
+ # To decrease the length, enter a Negative value < -1.0
191
+ # ============================================================
192
+ # These values correspond to how many times the length of the
193
+ # array will be multiplied (increased) or divided (decreased).
194
+ ##############################################################
195
+ fator = 1.0
196
+
197
+
198
+
199
+ ################################################################
200
+ # Enter the transparency value [0.0 to 1.0] to be applied to the
201
+ # Spin vectors, the lower the value the smoother the colors will
202
+ # be, the higher the more intense they will be. ----------------
203
+ ################################################################
204
+ transp = 1.0
205
+
206
+
207
+
208
+
209
+
210
+
211
+
212
+
213
+
214
+
215
+
216
+
217
+
218
+
219
+
220
+
221
+
222
+
223
+
224
+
225
+
226
+
227
+
228
+
229
+
230
+
231
+
232
+
233
+
234
+
235
+
236
+
237
+
238
+
239
+
240
+
241
+
242
+
243
+
244
+
245
+
246
+
247
+
248
+ # ==============================================================================================
249
+ # do not edit ### do not edit ### do not edit ### do not edit ### do not edit ### do not edit ##
250
+ # ==============================================================================================
251
+ esc_color = 0
252
+ esc_ions_tipo = 0
253
+ l_symmetry = 0
254
+ # ==============================================================================================
255
+ # do not edit ### do not edit ### do not edit ### do not edit ### do not edit ### do not edit ##
256
+ # ==============================================================================================
@@ -1,7 +1,7 @@
1
1
  # VASProcar Copyright (C) 2023
2
2
  # GNU GPL-3.0 license
3
3
 
4
- inputs_types = ['dos','locpot','chgcar','spin','orbitals','location','bands']
4
+ inputs_types = ['dos','locpot','chgcar','spin','orbitals','location','bands', 'spin_video']
5
5
  inputs = []
6
6
 
7
7
  # ------------------------------------------------------------------------------
@@ -26,6 +26,7 @@ print("# [4] Projection of the REGIONS (Location) ##")
26
26
  print("# [5] DOS ##")
27
27
  print("# [6] Electrostatic Potential in X,Y,Z direction ##")
28
28
  print("# [7] CHGCAR file analysis ##")
29
+ print("# [8] Spin Texture - Contour Video ##")
29
30
  print("#######################################################")
30
31
  tipo = input (" "); tipo = int(tipo)
31
32
  print(" ")
@@ -90,6 +91,15 @@ if (tipo == 7 or tipo == 0):
90
91
  destination = dir_files + '/inputs/input.vasprocar.chgcar'
91
92
  shutil.copyfile(source, destination)
92
93
 
94
+ if (tipo == 8 or tipo == 0):
95
+ try: f = open(dir_files + '/inputs/input.vasprocar.spin_video'); f.close(); os.remove(dir_files + '/inputs/input.vasprocar.spin_video')
96
+ except: 0 == 0
97
+ #------------------------------------------------------
98
+ source = main_dir + 'inputs/input.vasprocar.spin_video'
99
+ destination = dir_files + '/inputs/input.vasprocar.spin_video'
100
+ shutil.copyfile(source, destination)
101
+
102
+
93
103
  #-----------------------------------------------------------------
94
104
  print(" ")
95
105
  print("======================= Completed =======================")
@@ -53,22 +53,24 @@ if (soma_1 != 2 and soma_2 != 2):
53
53
  # Getting the input parameters ========================================
54
54
  #======================================================================
55
55
 
56
- print ("##############################################################")
57
- print ("## Which Spin component or vector should be analyzed? ===== ##")
58
- print ("##############################################################")
59
- print ("## [1] Sx [2] Sy [3] Sz =========================== ##")
60
- print ("## [4] SxSy [5] SxSz [6] SySz ========================= ##")
61
- print ("##############################################################")
62
- tipo_spin = input (" "); tipo_spin = int(tipo_spin)
63
- print (" ")
64
-
65
- print ("##############################################################")
66
- print ("Which band do you want to analyze? ===========================")
67
- print ("##############################################################")
68
- n_band = input (" "); n_band = int(n_band)
69
- print (" ")
56
+ if (len(inputs) == 0):
70
57
 
71
- if (escolha == -1):
58
+ print ("##############################################################")
59
+ print ("## Which Spin component or vector should be analyzed? ===== ##")
60
+ print ("##############################################################")
61
+ print ("## [1] Sx [2] Sy [3] Sz =========================== ##")
62
+ print ("## [4] SxSy [5] SxSz [6] SySz ========================= ##")
63
+ print ("##############################################################")
64
+ tipo_spin = input (" "); tipo_spin = int(tipo_spin)
65
+ print (" ")
66
+
67
+ print ("##############################################################")
68
+ print ("Which band do you want to analyze? ===========================")
69
+ print ("##############################################################")
70
+ n_band = input (" "); n_band = int(n_band)
71
+ print (" ")
72
+
73
+ if (escolha == -1 and len(inputs) == 0):
72
74
  print ("#######################################################################")
73
75
  print ("Do you want to select over which orbitals the spin components =========")
74
76
  print ("(Sx|Sy|Sz) will be projected? =========================================")
@@ -98,6 +100,7 @@ if (escolha == -1):
98
100
  orb_io = input ("Orbitals_Spin ").replace(':', ' ').replace('-', ' ').replace('*', ' *').split( )
99
101
  print (" ")
100
102
 
103
+ if ((escolha == -1 and p_orb_spin == 1) or len(inputs) != 0):
101
104
  for i in range(len(orb_io)):
102
105
  if (orb_io[i] == 's' or orb_io[i] == 'S'): Orb_spin[0] = 1
103
106
  if (orb_io[i] == 'p' or orb_io[i] == 'P'): Orb_spin[1] = 1; Orb_spin[2] = 1; Orb_spin[3] = 1
@@ -122,7 +125,7 @@ if (escolha == -1):
122
125
  if (orb_io[i] == 'fzx2' or orb_io[i] == 'Fzx2' or orb_io[i] == 'FZX2'): Orb_spin[14] = 1
123
126
  if (orb_io[i] == 'fxx2' or orb_io[i] == 'Fxx2' or orb_io[i] == 'FXX2'): Orb_spin[15] = 1
124
127
 
125
- if (escolha == -1):
128
+ if (escolha == -1 and len(inputs) == 0):
126
129
  print ("##############################################################")
127
130
  print ("with respect to energy, would you like? ======================")
128
131
  print ("[0] Use the default energy value from DFT output =============")
@@ -131,25 +134,27 @@ if (escolha == -1):
131
134
  esc_fermi = input (" "); esc_fermi = int(esc_fermi)
132
135
  print (" ")
133
136
 
134
- print ("##############################################################")
135
- print ("What is the number of Level Contours you want to obtain? =====")
136
- print ("##############################################################")
137
- n_contour = input (" "); n_contour = int(n_contour)
138
- print(" ")
137
+ if (len(inputs) == 0):
138
+ print ("##############################################################")
139
+ print ("What is the number of Level Contours you want to obtain? =====")
140
+ print ("##############################################################")
141
+ n_contour = input (" "); n_contour = int(n_contour)
142
+ print(" ")
139
143
 
140
144
  if (n_contour <= 0):
141
145
  n_contour = 1
142
146
 
143
- print ("##############################################################")
144
- print ("Regarding the energies of the Level Contours: ================")
145
- print ("[0] Must be obtained automatically by code ===================")
146
- print ("[1] Must sweep a certain range of energy =====================")
147
- print ("[2] I want to specify each energy value manually =============")
148
- print ("##############################################################")
149
- tipo_contour = input (" "); tipo_contour = int(tipo_contour)
150
- print(" ")
147
+ if (len(inputs) == 0):
148
+ print ("##############################################################")
149
+ print ("Regarding the energies of the Level Contours: ================")
150
+ print ("[0] Must be obtained automatically by code ===================")
151
+ print ("[1] Must sweep a certain range of energy =====================")
152
+ print ("[2] I want to specify each energy value manually =============")
153
+ print ("##############################################################")
154
+ tipo_contour = input (" "); tipo_contour = int(tipo_contour)
155
+ print(" ")
151
156
 
152
- if (tipo_contour == 1):
157
+ if (tipo_contour == 1 and len(inputs) == 0):
153
158
  print ("##############################################################")
154
159
  print ("Choose the Energy range to be analyzed: ===================== ")
155
160
  print ("Type as in the examples below =============================== ")
@@ -163,7 +168,7 @@ if (tipo_contour == 1):
163
168
  energ_f = float(energ_f)
164
169
  print (" ")
165
170
 
166
- if (tipo_contour == 2):
171
+ if (tipo_contour == 2 and len(inputs) == 0):
167
172
  #-------------------------
168
173
  levels_n = [0.0]*n_contour
169
174
  #-------------------------
@@ -184,8 +189,7 @@ if (tipo_contour == 2):
184
189
 
185
190
  #--------------------------------------------------------------------------
186
191
 
187
- if (escolha == -1):
188
-
192
+ if (escolha == -1 and len(inputs) == 0):
189
193
  print ("##############################################################")
190
194
  print ("What do you want to analyze? =================================")
191
195
  print ("[0] Analyze all ions in the lattice ==========================")
@@ -194,6 +198,8 @@ if (escolha == -1):
194
198
  esc_ions = input (" "); esc_ions = int(esc_ions)
195
199
  print (" ")
196
200
 
201
+ if (escolha == -1):
202
+ #------------------
197
203
  if (esc_ions == 1):
198
204
 
199
205
  #-------------------------
@@ -212,6 +218,9 @@ if (escolha == -1):
212
218
  print ("################################################################")
213
219
  ion_range = input ("ions_ranges ")
214
220
  print (" ")
221
+
222
+
223
+ if (escolha == -1 or len(inputs) != 0):
215
224
  #----------------------------------------------------------------------------------------
216
225
  selected_ions = ion_range.replace(':', ' ').replace('-', ' ').replace('*', ' *').split( )
217
226
  loop = int(len(selected_ions)/2)
@@ -237,7 +246,7 @@ if (escolha == -1):
237
246
 
238
247
  #-----------------------------------------------------------------------------
239
248
 
240
- if (soma_1 == 2 or soma_2 == 2):
249
+ if ((soma_1 == 2 or soma_2 == 2) and len(inputs) == 0):
241
250
  #----------------------------------
242
251
  if (soma_2 == 2 and escolha == -1):
243
252
  print ("##############################################################")
@@ -263,12 +272,14 @@ if (soma_1 == 2 or soma_2 == 2):
263
272
  if (soma_1 == 2 and soma_2 == 2 and escolha == 1):
264
273
  Dimensao = 4
265
274
  #----------------------------------
266
-
275
+
276
+ if ((soma_1 == 2 or soma_2 == 2) and len(inputs) != 0):
277
+ #-----------------
267
278
  if (Dimensao < 4):
268
279
  if (dk[3] == 1 and dk[4] == 1): Plano_k = 1 # kxky-plan
269
280
  if (dk[3] == 1 and dk[5] == 1): Plano_k = 2 # kxkz-plan
270
281
  if (dk[4] == 1 and dk[5] == 1): Plano_k = 3 # kykz-plan
271
-
282
+ #-----------------
272
283
  if (Dimensao == 4):
273
284
  if (dk[0] == 1 and dk[1] == 1): Plano_k = 1 # k1k2-plan
274
285
  if (dk[0] == 1 and dk[2] == 1): Plano_k = 2 # k1k3-plan
@@ -276,27 +287,28 @@ if (soma_1 == 2 or soma_2 == 2):
276
287
 
277
288
  #-----------------------------------------------------------------------------
278
289
 
279
- print ("##############################################################")
280
- print ("How many figures should appear per second (fps) in the video? ")
281
- print ("tip 1: =======================================================")
282
- print ("Choose between 1 and 30 figures ==============================")
283
- print ("tip 2: =======================================================")
284
- print ("The greater the number of images and the greater the number of")
285
- print ("images per second (fps), the smoother the video. ")
286
- print ("##############################################################")
287
- n_fig = input (" "); n_fig = int(n_fig)
288
- print (" ")
289
- #-------------------------
290
- if (n_fig <= 0): n_fig = 1
291
- #-------------------------
292
- save_png = 1
293
- save_pdf = 0
294
- save_eps = 0
295
- save_svg = 0
290
+ if (len(inputs) == 0):
291
+ print ("##############################################################")
292
+ print ("How many figures should appear per second (fps) in the video? ")
293
+ print ("tip 1: =======================================================")
294
+ print ("Choose between 1 and 30 figures ==============================")
295
+ print ("tip 2: =======================================================")
296
+ print ("The greater the number of images and the greater the number of")
297
+ print ("images per second (fps), the smoother the video. ")
298
+ print ("##############################################################")
299
+ n_fig = input (" "); n_fig = int(n_fig)
300
+ print (" ")
301
+ #-------------------------
302
+ if (n_fig <= 0): n_fig = 1
303
+ #-------------------------
304
+ save_png = 1
305
+ save_pdf = 0
306
+ save_eps = 0
307
+ save_svg = 0
296
308
 
297
309
  #-----------------------------------------------------------------------------
298
310
 
299
- if (escolha == -1):
311
+ if (escolha == -1 and len(inputs) == 0):
300
312
 
301
313
  print ("##############################################################")
302
314
  print ("Choose the K-mesh grid (DxD) to be interpolated: =============")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vasprocar
3
- Version: 1.1.19.98
3
+ Version: 1.1.19.99
4
4
  Summary: VASProcar is an open-source package written in the Python 3 programming language, which aims to provide an intuitive tool for the post-processing of the output files produced by the DFT VASP/QE codes, through an interactive user interface.
5
5
  Home-page: https://doi.org/10.5281/zenodo.6343960
6
6
  Download-URL: https://doi.org/10.5281/zenodo.6343960
@@ -73,6 +73,7 @@ vasprocar/src/inputs/input.vasprocar.location
73
73
  vasprocar/src/inputs/input.vasprocar.locpot
74
74
  vasprocar/src/inputs/input.vasprocar.orbitals
75
75
  vasprocar/src/inputs/input.vasprocar.spin
76
+ vasprocar/src/inputs/input.vasprocar.spin_video
76
77
  vasprocar/src/inputs/inputs.py
77
78
  vasprocar/src/inputs/inputs_files.py
78
79
  vasprocar/src/plot/_plot_settings.py
File without changes
File without changes
File without changes