QuantumATK Forum

QuantumATK => General Questions and Answers => Topic started by: ams_nanolab on March 7, 2016, 09:19

Title: Spectral current extract data
Post by: ams_nanolab on March 7, 2016, 09:19
Hi I want to plot spectral current data in different colors for different bias (form the I-V plot) , so I need to extract the data in multiple columns, but I can't get it in that format. Can you help how to extract the data so I have different data sets for each bias point?
Title: Re: Spectral current extract data
Post by: ams_nanolab on March 28, 2016, 11:38
Please reply.
Title: Re: Spectral current extract data
Post by: zh on March 28, 2016, 15:49
 Your question looks confused.

"The I-V plot" of a given device configuration is only one curve, i.e., Current versus bias voltage if no gate voltage is applied.

Please refer to here:
https://quantumwise.com/documents/tutorials/latest/ATKTutorialDevice/index.html/chap.iv.html
Title: Re: Spectral current extract data
Post by: ams_nanolab on April 4, 2016, 06:49
I-V is a singla plot. however if I check the additional plot options I get curves like dI/dV , spectral current and transmissions. It is those plots in spectral current I want to get the data of.
Title: Re: Spectral current extract data
Post by: Jess Wellendorff on April 4, 2016, 14:12
Attached is a very simple script for plotting the spectral currents from an IVCurve calculation. Should be easy to modify the color scheme according to your preferences.
Title: Re: Spectral current extract data
Post by: ams_nanolab on October 25, 2016, 23:08
How can this script be modified to consider only selected/ specified biases. I have bias 0 to 2 Volt in steps of 0.2 V but need spectral density upto only 1.0 V.
My python isn't very good so help will be appreciated.
Title: Re: Spectral current extract data
Post by: Jess Wellendorff on October 27, 2016, 08:15
One option is to make a list with the indices of the bias points you want to consider, and only plot data corresponding to those indices:

Code
indices = [0,1,4,7]
for i,bias,spectrum in zip(range(len(biases)),biases,transmission_spectra):
    if i in indices:
        x = spectrum.energies().inUnitsOf(eV)
        y = spectrum.spectralCurrent().inUnitsOf(Units.A/eV)
        pylab.plot(x, y*1.e3, label="%.1f V" % bias)
Title: Re: Spectral current extract data
Post by: ams_nanolab on October 29, 2016, 17:31
Thanks