Author Topic: current-gate voltage curves  (Read 2906 times)

0 Members and 1 Guest are viewing this topic.

Offline beauyy

  • Heavy QuantumATK user
  • ***
  • Posts: 53
  • Country: cn
  • Reputation: 0
    • View Profile
current-gate voltage curves
« on: December 21, 2014, 08:40 »
Dear sir, I have used the script to draw the current-gate voltage curve from the transmission at different gate voltage and bias voltage = 0 V. But there is no curve shown in the figure after a long period of calculation. What is wrong with the script?
Script:
#make list of relevant gate voltages
gate_voltage_list=numpy.linspace(-1.0,1.0,11)*Volt
#make list to hold the current calculations
current_list=numpy.zeros(len(gate_voltage_list))
current_list=current_list.reshape(len(gate_voltage_list))
                                         
#specify the filename for the netcdf data file
filename="F:/MoS2/MoS2/VD=0.5V/gatescan-MoS2-0V-2.nc"
#loop through the gate voltages
for n in range(len(gate_voltage_list)):   
    transmission_spectrum=nlread('F:/MoS2/MoS2/VD=0.5V/gatescan-MoS2-0V-2.nc',
                                 object_id="trans"+str(gate_voltage_list[n]))[0]
   
#plot the current as function of gatevoltage
import pylab
pylab.figure()
pylab.xlabel("Gate Voltage (V)")
pylab.ylabel("Current (A)")
pylab.show()

Offline beauyy

  • Heavy QuantumATK user
  • ***
  • Posts: 53
  • Country: cn
  • Reputation: 0
    • View Profile
Re: current-gate voltage curves
« Reply #1 on: December 21, 2014, 10:32 »
I have found the error in the script. You needn't answer this question.