02 November 2015 17 9K Report

Hello. I am a beginner in this field.

I want to calculate thermoelectric properties with BoltzTraP. I've finished setup of BoltzTraP and ASE and I've run examples. But I have a problem with changing VASP outputs to BoltzTraP inputs using python code that is supported from the developers. Please check the problem below. 

[vasp2bolt]

1 from ase import io

2 from ase.lattice.spacegroup import Spacegroup

3 import vasp2boltz

4

5 ao = io.read('POSCAR')

6

7 sg = Spacegroup(225)

8 ao.info = {'spacegroup': sg, 'unit_cell': 'conventional'}

9

10 foundnelect = False

11 try:

12 for line in open('OUTCAR', 'r'):

13 if 'NELECT' in line:

14 nelect = float(line.split()[2])

15 foundnelect = True

16 except:

17 pass

18 if not foundnelect:

19 print 'Number of electrons not found. Please set the number manually in hte.intrans.'

20 nelect = 1.0

21

22 bs = vasp2boltz.get_vasp_bandstructure()

23 vasp2boltz.write_bandstructure_boltztrap(bs)

24 vasp2boltz.write_structure_boltztrap(ao)

25 vasp2boltz.write_intrans_boltztrap(n_electrons = nelect)

-------------------------------------------------------------------------------------------------

-------------------------------------------------------------------------------------------------

[error message]

***************

None

Traceback (most recent call last):

File "pbte64.py", line 31, in

vasp2boltz.write_structure_boltztrap(ao)

File "/home/cgr/pbte64/BT/vasp2boltz.py", line 166, in write_structure_boltztrap

krot=get_kspace_operations(ao)

File "/home/cgr/pbte64/BT/vasp2boltz.py", line 289, in get_kspace_operations

if ('spacegroup' in ao.info) and (ao.info['spacegroup']!=None):

File "/APP/python/lib/python2.7/site-packages/ase/lattice/spacegroup/spacegroup.py", line 189, in __cmp__

if self.no > other.no:

AttributeError: 'NoneType' object has no attribute 'no'

-------------------------------------------------------------------------------------------------

-------------------------------------------------------------------------------------------------

I know it's a computational problem. But here is the only website that I can ask online.

I would be grateful if someone helps me. Thank you :)

More Garam Choi's questions See All
Similar questions and discussions