QuantumWise Forum
September 10, 2010, 18:23 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: 7 July: New major version released: ATK 10.8
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: About the voltage sweep script(ivcurves.py)  (Read 274 times)
gny1988
Newbie
*

Reputation: +0/-0
Offline Offline

Posts: 8


View Profile
« 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?
Logged
Anders Blom
QuantumWise Staff
Wizard
*****

Reputation: +12/-0
Offline Offline

Posts: 1038



View Profile WWW
« 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! Smiley ), 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 » Logged
gny1988
Newbie
*

Reputation: +0/-0
Offline Offline

Posts: 8


View Profile
« Reply #2 on: March 12, 2010, 03:10 »

Thank you. That's the problem.
Logged
gny1988
Newbie
*

Reputation: +0/-0
Offline Offline

Posts: 8


View Profile
« 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
Logged
Anders Blom
QuantumWise Staff
Wizard
*****

Reputation: +12/-0
Offline Offline

Posts: 1038



View Profile WWW
« Reply #4 on: March 12, 2010, 12:37 »

Out of memory
Logged
gny1988
Newbie
*

Reputation: +0/-0
Offline Offline

Posts: 8


View Profile
« 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?
Logged
zh
QuantumWise Support
Wizard
*****

Reputation: +5/-0
Offline Offline

Posts: 260


View Profile
« 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 » Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!