Author Topic: how to know current of both spin channels in vnl analyzer  (Read 2313 times)

0 Members and 1 Guest are viewing this topic.

Offline Sabyasachi Sen

  • Heavy QuantumATK user
  • ***
  • Posts: 52
  • Country: in
  • Reputation: 0
    • View Profile
When the analyzer window of vnl is used to estimate the current (I-V) of a spin polarized calculation we are getting only one value of current. Kindly highlight me how could I get the numeric value of spin polarized current of both spin channels in a spin polarized twoprobe run.

Sabyasachi Sen

Offline Anders Blom

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 5429
  • Country: dk
  • Reputation: 89
    • View Profile
    • QuantumATK at Synopsys
Re: how to know current of both spin channels in vnl analyzer
« Reply #1 on: August 28, 2012, 21:15 »
A simple script like this will do the trick:
Code: python
transmission = nlread("file.nc",TransmissionSpectrum)[0]
transmission.current(spin=Spin.Up)
transmission.current(spin=Spin.Down)
Copy/paste this into the Editor, replace "file.nc" with the real name (incl. path) of your NC file containing the transmission spectrum, and send to the Job Manager, and the spin currents will be printed in the log window. If the NC file contains more than one transmission spectrum, you can use
Code: python
transmission = nlread("file.nc", object_id="gID002")[0]
to select the precise one you want (check the object IDs in the Result Browser by selecting the NC file in the main VNL window).