i have been trying to calculate the above problem using the below script but when i try it only gives me positive bias but no negative how should i set my script to bet the negative bias
#----------------------------------------
# Device Calculator
#----------------------------------------
calculator = DeviceLCAOCalculator(
basis_set=basis_set,
electrode_calculators=
[left_electrode_calculator, right_electrode_calculator],
)
nlsave('liliB-IV.nc', device_configuration)
for bias in numpy.linspace(0.,3.,16)*Volt:
device_configuration.setCalculator(
calculator(electrode_voltages=(0.5*bias,-0.5*bias)),
initial_state=device_configuration
)
device_configuration.update()
# -------------------------------------------------------------
# Transmission spectrum
# -------------------------------------------------------------
transmission_spectrum = TransmissionSpectrum(
configuration=device_configuration,
energies=numpy.linspace(-3,3,100)*eV,
kpoints=MonkhorstPackGrid(1,1),
energy_zero_parameter=AverageFermiLevel,
infinitesimal=1e-06*eV,
self_energy_calculator=KrylovSelfEnergy(),
)
nlsave('liliB-IV.nc', transmission_spectrum, object_id="transmission %s" % bias)
nlprint(transmission_spectrum)