Author Topic: Restore scf result  (Read 4662 times)

0 Members and 1 Guest are viewing this topic.

Offline leslie

  • Regular QuantumATK user
  • **
  • Posts: 17
  • Country: us
  • Reputation: 1
    • View Profile
Restore scf result
« on: May 23, 2011, 18:21 »
Dear all,

I would like to know, in ATK11.2,  how to restore a self-consistent calculation result for further two-probe transport properties calculation given that I already have an  .nc file after scf run for the device system?
 
I have just switch to version 11.2 and find it is quite different from 08.10. In 08.10, we have a function named restoreSelfConsistentCalculation(). What is its equivalence in 11.2?

I would appreciate it if one example is provided together...

Many thanks.
leslie

Offline leslie

  • Regular QuantumATK user
  • **
  • Posts: 17
  • Country: us
  • Reputation: 1
    • View Profile
Re: Restore scf result
« Reply #1 on: May 23, 2011, 18:27 »
By 'example' I mean a full script which restores an old scf result for a two-probe system and then calculates its transport property.

Offline Anders Blom

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 5575
  • Country: dk
  • Reputation: 96
    • View Profile
    • QuantumATK at Synopsys
Re: Restore scf result
« Reply #2 on: May 23, 2011, 23:25 »
The equivalent function in 11.2 is nlread(), although it's much more versatile than before. Here's a simple example:
Code: python
scf = nlread("file.nc",DeviceConfiguration)[0]
T = TransmissionSpectrum(scf, energies = ...)
nlprint(T)
print T.current()
There are a couple of ways to use nlread(), check out the manual. For instance, if the NC file contains more than one configuration (an I-V scan, say), you should make sure to pick the right one from the list (nlread() always returns a list, even if only one matching object is found in the file), e.g. by using the "object_id" which can be inspected in VNL. If you want to set up the corresponding script in VNL, use the "Analysis from file" option in the Scripter.

Offline leslie

  • Regular QuantumATK user
  • **
  • Posts: 17
  • Country: us
  • Reputation: 1
    • View Profile
Re: Restore scf result
« Reply #3 on: May 24, 2011, 02:27 »
Thanks, Anders. So we do not need to set the initial spin if it is already set before scf run, right? By nlread the .nc file after scf, the initial spin will be loaded ?

Offline Anders Blom

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 5575
  • Country: dk
  • Reputation: 96
    • View Profile
    • QuantumATK at Synopsys
Re: Restore scf result
« Reply #4 on: May 24, 2011, 09:28 »
The initial spin is only used to start the calculation. When loading the NC file you read in not the initial spin but the final spin (that which was determined self-consistently during the calculation), which is what you want :)