Author Topic: Convergence test for electrodes  (Read 3305 times)

0 Members and 1 Guest are viewing this topic.

Offline Jahanzaib

  • QuantumATK Guru
  • ****
  • Posts: 103
  • Country: gb
  • Reputation: 3
    • View Profile
Convergence test for electrodes
« on: August 8, 2023, 02:15 »
Dear Administration,
I am interested in doing convergences test and followed the following link: https://docs.quantumatk.com/tutorials/atk_transport_calculations/atk_transport_calculations.html.

I got error:
NameError: name 'lattice' is not defined

I am not sure about the role of pair potential? Can any one look into my script and suggest me changing?


Offline Anders Blom

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 5574
  • Country: dk
  • Reputation: 96
    • View Profile
    • QuantumATK at Synopsys
Re: Convergence test for electrodes
« Reply #1 on: August 8, 2023, 19:13 »
Where did you get input.py from? It is indeed missing the definition of the lattice, it just has elements and atom positions, which is not enough. So if you copy/pasted from the tutorial scripts, you just missed some lines. Take a look at the mesh_loop.py script for instance, which does a convergence test on one parameter already

Offline Jahanzaib

  • QuantumATK Guru
  • ****
  • Posts: 103
  • Country: gb
  • Reputation: 3
    • View Profile
Re: Convergence test for electrodes
« Reply #2 on: August 9, 2023, 14:08 »
I solve the problem, added the lattice in it - but I am using LCAO calculator and I copied the basis set from DFTB Directory (usr/local/QuantumATK-S-2021.06-SP2/share/basissets/LCAO/) but still got the error
> 55 basis_set = DFTBDirectory('/home/hartree/jem/wolf6252/usr/local/QuantumATK-S-2021.06-SP2/share/basissets/LCAO/')
     56
     57 #----------------------------------------

/usr/local/QuantumATK-S-2021.06-SP2/lib/python38.zip/NL/Calculators/SemiEmpirical/SlaterKosterCalculator/Parameters/SlaterKosterDirectory.pyc in __init__(self, path)

/usr/local/QuantumATK-S-2021.06-SP2/lib/python38.zip/NL/Calculators/SemiEmpirical/SlaterKosterCalculator/Parameters/SlaterKosterDirectory.pyc in __init__(self, path)

/usr/local/QuantumATK-S-2021.06-SP2/lib/python38.zip/NL/ComputerScienceUtilities/FileUtilities.pyc in checkDirectory(directory, parameter_name, base_path, length_limit)

NLValueError: The parameter '' must be a string to an existing directory.
The directory /home/hartree/jem/wolf6252/usr/local/QuantumATK-S-2021.06-SP2/share/basissets/LCAO/ was not found.


I have tin nanoribbons. I think it might be the issue of pathway.
« Last Edit: August 9, 2023, 23:37 by Jahanzaib »

Offline Anders Blom

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 5574
  • Country: dk
  • Reputation: 96
    • View Profile
    • QuantumATK at Synopsys
Re: Convergence test for electrodes
« Reply #3 on: August 10, 2023, 23:51 »
Sorry, I don't understand what you are trying to do with this. DFTB and LCAO are two completely different methods, you cannot mix them like this...