Dear sir,
I am trying to calculate the voltage drop for Li-h2, following the tutorial given in link: http://www.quantumwise.com/documents/tutorials/latest/ATKTutorialDevice/index.html/chap.iv.html (http://www.quantumwise.com/documents/tutorials/latest/ATKTutorialDevice/index.html/chap.iv.html), I calculate the Transmission Spectrum and Electrostatic Difference Potential under 0V and 1V, but it always appears an index error: list index out of range (refers to voltage_drop = potential[1]-potential[0]). And then, I correct the .py as follows: firstly, I calculates the Transmission Spectrum and Electrostatic Difference Potential under 0V and saves in a.nc, then calculate them under 1V and saves in b.nc, finally I calculate the voltage drop using the following script:
# Read the configurations
configuration_list_a = nlread('a.nc', DeviceConfiguration)
configuration_list_b = nlread('b.nc', DeviceConfiguration)
#calculate the electrostatic potentials
potential_0V = ElectrostaticDifferencePotential(configuration_list_a[0])
potential_1V = ElectrostaticDifferencePotential(configuration_list_b[0])
# Calculate the voltage drop.
voltage_drop = potential_1V-potential_0V
# Save the voltage drop to voltage_drop.nc
nlsave('voltage_drop.nc', voltage_drop, object_id='drop1V')
I get the same contour plot, but the colorbar is different, mine is in a range of -0.041-0.0015, what’s wrong with me?