QuantumATK Forum

QuantumATK => General Questions and Answers => Topic started by: Sabyasachi Sen on August 28, 2012, 19:34

Title: how to know current of both spin channels in vnl analyzer
Post by: Sabyasachi Sen on August 28, 2012, 19:34
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
Title: Re: how to know current of both spin channels in vnl analyzer
Post by: Anders Blom 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).