Author Topic: About the voltage sweep script(ivcurves.py)  (Read 5578 times)

0 Members and 1 Guest are viewing this topic.

Offline gny1988

  • Regular QuantumATK user
  • **
  • Posts: 8
  • Reputation: 0
    • View Profile
About the voltage sweep script(ivcurves.py)
« on: March 11, 2010, 10:58 »
I used the script from http://quantumwise.com/forum/index.php?topic=19.0 to calculate current under a series of voltages. As it said, I put the file ivcurve.py to C:\Program Files\QuantumWise\Virtual NanoLab 2008.10.0\atk\lib\site-packages. But when I calculate current by vnl-2008.10, it said:
Traceback (most recent call last):
  File "c:/docume~1/admini~1/locals~1/temp/tmplq3kcg.nl", line 439, in ?
    ivcurve.runIVcurve (
NameError: name 'ivcurve' is not defined
Terminated Abnormally

Could you help me?

Offline Anders Blom

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 5576
  • Country: dk
  • Reputation: 96
    • View Profile
    • QuantumATK at Synopsys
Re: About the voltage sweep script(ivcurves.py)
« Reply #1 on: March 11, 2010, 17:56 »
Although in general I wouldn't recommend running such a time-consuming calculation from within VNL (I would export the script, and run it from the command line, ideally on Linux, and in parallel! :) ), your problem should be easy to solve.

(Changing my previous reply...)

My suspicion is you have left out the line "import ivcurve", or else it would complain that it cannot find this module, but it cannot find the name "ivcurve", which means it was never imported.
« Last Edit: March 11, 2010, 18:55 by Anders Blom »

Offline gny1988

  • Regular QuantumATK user
  • **
  • Posts: 8
  • Reputation: 0
    • View Profile
Re: About the voltage sweep script(ivcurves.py)
« Reply #2 on: March 12, 2010, 03:10 »
Thank you. That's the problem.

Offline gny1988

  • Regular QuantumATK user
  • **
  • Posts: 8
  • Reputation: 0
    • View Profile
Re: About the voltage sweep script(ivcurves.py)
« Reply #3 on: March 12, 2010, 12:30 »
Another error. Please help me.
  File "c:/docume~1/admini~1/locals~1/temp/tmptugyki.nl", line 447, in ?
    current_number_of_points = 100
  File "C:\Program Files\QuantumWise\Virtual NanoLab 2008.10.0\atk\lib\site-packages\ivcurve.py", line 66, in runIVcurve
    initial_calculation = scf
ATKError: bad allocation
Terminated Abnormally

Offline Anders Blom

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 5576
  • Country: dk
  • Reputation: 96
    • View Profile
    • QuantumATK at Synopsys
Re: About the voltage sweep script(ivcurves.py)
« Reply #4 on: March 12, 2010, 12:37 »
Out of memory

Offline gny1988

  • Regular QuantumATK user
  • **
  • Posts: 8
  • Reputation: 0
    • View Profile
Re: About the voltage sweep script(ivcurves.py)
« Reply #5 on: March 14, 2010, 12:09 »
My memory is 3G. Is that still enough. Can I change the script to limit the memory?

Offline zh

  • Supreme QuantumATK Wizard
  • *****
  • Posts: 1141
  • Reputation: 24
    • View Profile
Re: About the voltage sweep script(ivcurves.py)
« Reply #6 on: March 14, 2010, 13:50 »
Since the size of the system under study is fixed, the required  memory can be reduced by lowering the calculation accuracy, e.g., smaller cutoff for grid, smaller k-point grid, and so on.
« Last Edit: March 14, 2010, 13:52 by zh »