Author Topic: current for up and down spin channels at different bias from a single nc file  (Read 3760 times)

0 Members and 1 Guest are viewing this topic.

Offline Mausumi Chattopadhyaya

  • Regular QuantumATK user
  • **
  • Posts: 10
  • Country: in
  • Reputation: 0
    • View Profile
we have done  some current calculations where the bias was supplied in a loop and right now we are interested to extract the current contribution for the up and down spin channel separately at each bias. I know how to calculate this contribution from a single .nc file that contains the results for a particular bias. I would like to know how one could calculate the current contribution of the separate spin channels using a .nc file in a situation where the job has been submitted with a loop. Please note this .nc file contains all the relevant transmission spectra so in principle, one should able to make a script to evaluate  the spin polarized currents at the given range of bias from this single .nc file.


Offline kstokbro

  • Supreme QuantumATK Wizard
  • *****
  • Posts: 392
  • Reputation: 13
    • View Profile
    • QuantumWise
t_list = nlread('myfile.nc', TransmissionSpectrum)
for t in t_list:
     print t.bias(), t.current(spin=Spin.Up), t.current(spin=Spin.Down)
« Last Edit: December 23, 2012, 00:24 by kstokbro »

Offline Anders Blom

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 5565
  • Country: dk
  • Reputation: 93
    • View Profile
    • QuantumATK at Synopsys

Offline Rohit

  • New QuantumATK user
  • *
  • Posts: 3
  • Country: in
  • Reputation: 0
    • View Profile
I have done simulation to obtain IV curve for different bias points (0 to 2 V with step size 0.2). As I am working on a cluster , the simulation stopped in between at 0.8V (as in log file). Now I want to check IV curve upto this bias point but no IV object file is there in the nc file. Is there any solution how can I extract the IV curve upto 0.8V  from the .nc file and log file .....

Offline Umberto Martinez

  • Supreme QuantumATK Wizard
  • *****
  • Posts: 479
  • Country: dk
  • Reputation: 26
    • View Profile
If you have run the IVCurve analysis and you have set the SCF configurations file you can easily re-calculate the transmission spectra (unfortunately these are not saved before your calculation ends properly) and finally get the IV curve up to that point.
Check IVCurve http://quantumwise.com/publications/tutorials/item/820-ni-silicide-si-interfaces#h7-1-iv-curves
 and the section Post analysis of finite-bias calculations.

Offline Rohit

  • New QuantumATK user
  • *
  • Posts: 3
  • Country: in
  • Reputation: 0
    • View Profile
Thanks for the reply.........it solved my problem....... :)