Author Topic: How to calculate the "charge transfer" with variuos gate voltage  (Read 1668 times)

0 Members and 1 Guest are viewing this topic.

Offline J.g_johnson

  • Heavy QuantumATK user
  • ***
  • Posts: 35
  • Country: cn
  • Reputation: 0
    • View Profile
Hi,
   In the tutorial of "Graphene Junction Device", it shows how to calculate the conductance for different gate potentials at 300K.
http://quantumwise.com/documents/tutorials/latest/GrapheneDevice/index.html/chap.gatepotential.html

#make list of relevant temperatures
temperature_list=numpy.linspace(300,300,1)*Kelvin
#make list of relevant gate voltages
gate_voltage_list=numpy.linspace(-2.0,2.0,17)*Volt
#make list to hold the conductance calculations
conductance_list=numpy.zeros(len(gate_voltage_list)*len(temperature_list))
conductance_list=conductance_list.reshape(len(gate_voltage_list),
                                          len(temperature_list))

#specify the filename for the netcdf data file
filename="gatescan-6-6.nc"
#loop through the gate voltages
for n in range(len(gate_voltage_list)):   
    transmission_spectrum=nlread(filename,
                                 object_id="trans"+str(gate_voltage_list[n]))[0]
    #loop through the temperature list
    for i in range(len(temperature_list)):
        conductance_list[n,i]=transmission_spectrum.conductance(
            electrode_temperatures=(temperature_list,temperature_list))

#plot the conductance as function of gatevoltage
import pylab
pylab.figure()
# make curve for each temperature
for i in range(len(temperature_list)):
    pylab.semilogy(gate_voltage_list,conductance_list[:,i])
pylab.xlabel("Gate Voltage (V)")
pylab.ylabel("Conductance (S)")
pylab.show()


So if i want to calculate the Charge Transfer with gate voltage from(-2,2)V at 300K, how can i modify the script, or how to wirte a new script.