Author Topic: Reusing same electrodes:  (Read 7377 times)

0 Members and 1 Guest are viewing this topic.

Offline Sarvesh Agarwal

  • Heavy QuantumATK user
  • ***
  • Posts: 60
  • Country: in
  • Reputation: 0
    • View Profile
Reusing same electrodes:
« on: July 16, 2012, 14:02 »
Hi,
    I am doing the tutorial " Reuse the same electrode for many different calculations " (http://www.quantumwise.com/publications/tutorials/mini-tutorials) I have created succesully the (left_electrode.nc) and (right_electrode.nc), however when I am using (device.py) for simulation , it is not bypassing the electrode calculation. I am attaching the script , if anyone can correct the code.

Offline Nordland

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 812
  • Reputation: 18
    • View Profile
Re: Reusing same electrodes:
« Reply #1 on: July 16, 2012, 15:46 »
I just confirmed that the functionality works, but in your case I can't see what the problem is,
but I have an idea what might be the problem.

Are you sure that the first configuration is your file has a self-consistent calculation on it?
Try using the [1] instead of [0] on the two first lines.
« Last Edit: July 17, 2012, 11:06 by Anders Blom »

Offline Sarvesh Agarwal

  • Heavy QuantumATK user
  • ***
  • Posts: 60
  • Country: in
  • Reputation: 0
    • View Profile
Re: Reusing same electrodes:
« Reply #2 on: July 17, 2012, 06:46 »
Thanks for reply.I am attaching two file , Plz comment on them
1.  (electrode_left_right.py)
2.(Au_Benzene_AU_IV.py)the full calculation as we normally do with some representative central region. I have used this one to create my (device.py) and (electrode_left_right.py)

Offline Nordland

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 812
  • Reputation: 18
    • View Profile
Re: Reusing same electrodes:
« Reply #3 on: July 17, 2012, 08:17 »
Did you forget to attach them?

Offline Anders Blom

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 5418
  • Country: dk
  • Reputation: 89
    • View Profile
    • QuantumATK at Synopsys
Re: Reusing same electrodes:
« Reply #4 on: July 17, 2012, 11:06 »
I corrected a formatting issue with Nordland's post (if you want [0], or [i], you need to wrap it in [nobbc]...[/nobbc] tags, because these tags have their own meaning in BB code).

I also think his suggestion is the correct one. When a device script is generated in VNL, it saves both the non-selfconsistent state (i.e. just the geometry) and the full calculation, when completed, into the NetCDF file. So, you will actually have 2 DeviceConfigurations in the file, and using [0] picks up the first one, the non-selfconsistent one, so you should use [1]. At least that's easy to try, if you still have problems let us know.
« Last Edit: July 17, 2012, 11:08 by Anders Blom »

Offline Sarvesh Agarwal

  • Heavy QuantumATK user
  • ***
  • Posts: 60
  • Country: in
  • Reputation: 0
    • View Profile
Re: Reusing same electrodes:
« Reply #5 on: July 17, 2012, 11:56 »
Sorry, I forgot to attach scripts.
I have tried [1] in first two lines instead
  • , however got the error attached.

Now, I have attached
1.  (electrode_left_right.py)
2.(Au_Benzene_AU_IV.py)the full calculation as we normally do with some representative central region. I have used this one to create my (device.py) and (electrode_left_right.py)
3.Error.png, when tried [1] instead
  • .


Offline Nordland

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 812
  • Reputation: 18
    • View Profile
Re: Reusing same electrodes:
« Reply #6 on: July 17, 2012, 13:29 »
I have modified your script to reuse the electrodes.


Offline Sarvesh Agarwal

  • Heavy QuantumATK user
  • ***
  • Posts: 60
  • Country: in
  • Reputation: 0
    • View Profile
Re: Reusing same electrodes:
« Reply #7 on: July 17, 2012, 14:12 »
Thank you very much for the reply