Dear all,
I am trying to calculate the electronic band structures of few-layer materials. However, I have encountered an error like this for several times:
/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pymatgen/symmetry/kpath.py:179: UserWarning: The input structure does not match the expected standard primitive! The path can be incorrect. Use at your own risk.
warn(
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.9/bin/abiopen.py", line 347, in <module>
sys.exit(main())
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/monty/functools.py", line 405, in wrapper
sys.exit(main())
File "/Library/Frameworks/Python.framework/Versions/3.9/bin/abiopen.py", line 219, in main
abifile = abilab.abiopen(options.filepath)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/abipy/abilab.py", line 288, in abiopen
return cls.from_file(filepath)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/abipy/electrons/gsr.py", line 50, in from_file
return cls(filepath)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/abipy/electrons/gsr.py", line 57, in __init__
self._ebands = r.read_ebands()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/abipy/electrons/ebands.py", line 3566, in read_ebands
kpoints=self.read_kpoints(),
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/abipy/core/kpoints.py", line 1732, in read_kpoints
kpoint.set_name(structure.findname_in_hsym_stars(kpoint))
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/abipy/core/structure.py", line 1185, in findname_in_hsym_stars
for star in self.hsym_stars:
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/monty/functools.py", line 238, in __get__
value = self.__func(inst)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/abipy/core/structure.py", line 1152, in hsym_stars
return [kpoint.compute_star(self.abi_spacegroup.fm_symmops) for kpoint in self.hsym_kpoints]
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/monty/functools.py", line 238, in __get__
value = self.__func(inst)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/abipy/core/structure.py", line 1105, in hsym_kpoints
name2frac_coords = self.hsym_kpath.kpath["kpoints"]
TypeError: 'NoneType' object is not subscriptable
Sometimes, this error didnât show up (1,3,6,9âŚlayers) and it gave me nice band structures. Other times, this error showed up (2,4,5,7,8âŚlayers) and I have no clue how to solve it since I only changed the number of atoms in the unit cell and the thickness of vacuum. How can I solve this problem? Thank you.
I couldnât find the way to attach my input file. So I copy paste it here. Some of variables are set to lower value to quickly check whether the error occurs again.
ndtset 2
#Dataset 1 : GS calculation
kptopt1 1 # Use symmetry and treat only inequivalent points
ngkpt1 5 5 1 #5 5 1
nshiftk1 1
shiftk1
0.5 0.5 0.5
occopt1 4 # Marzari smearing
tsmear1 0.05
prtden1 1
tolvrs1 1.0d-10
#Dataset 2: Band structure calculation from Dataset 1.
iscf2 -2
getden2 1
kptopt2 -4
tolwfr2 1.0d-8
ndivsm2 16 #16
kptbounds2 # Extrema of the k-path.
0.5 0.0 0.0 #X
0.0 0.0 0.0 #Gamma
0.0 0.5 0.0 #Y
0.5 0.5 0.0 #M
0.5 0.0 0.0 #X
#Definition of the planewave basis set
ecut 15.0 #Definition of the plane wave basis set
#pawecutg 10.0
##Definition of the SCF procedure
nband 30
nstep 50
#Te lattice structure
ntypat 1
znucl 52
natom 3
typat 12*1
acell 5.93 4.45 7.9394 Angstrom #3.854
rprim 1.0 0.0 0.0 #x
0.0 1.0 0.0 #y
0.0 0.0 1.0 #z
#Atomic positions
xcart #0.53
#0.0 0.3686 0.23728
#1/3 0.76272 0.5
#2/3 0.3686 0.76271
#0.0 1.6402 0.9144
#1.9766 3.3941 1.927
#3.9533 1.6402 2.9394
#0.0 3.8652 4.7684
#1.9766 1.1691 5.781
#3.9533 3.8652 6.7934
#0.0 1.6402 8.6224
#1.9766 3.3941 9.635
#3.9533 1.6402 10.6474
#0.0 3.8652 12.4764
#1.9766 1.1691 13.489
#3.9533 3.8652 14.5014
0.0 3.0947 1.7252
3.7294 6.4039 3.6358
7.459 3.0947 5.546
0.0 7.2928 8.9969
3.7294 2.2058 10.9075
7.459 7.2928 12.8177
0.0 3.0947 16.2686
3.7294 6.4039 18.1792
7.459 3.0947 20.0894
0.0 7.2928 23.5403
3.7294 2.2058 25.4509
7.459 7.2928 27.3611
chksymtnons 0
#Pseudo potentials
pp_dirpath "$ABI_PSPDIR"
pseudos "PseudosHGH_pwteter/52te.6.hgh"