Thank you, Professor Anders Blom, I want to use the initial state of 0.1V gate (source and drain is 0.65V) to calculate 0.5V-0.6V gate voltage (source and drain is 0.65V)
Here is the scripts:
# -*- coding: utf-8 -*-
# -------------------------------------------------------------
# Two-probe Configuration
# -------------------------------------------------------------
# -------------------------------------------------------------
# Left Electrode
# -------------------------------------------------------------
...
# -------------------------------------------------------------
# Right Electrode
# -------------------------------------------------------------
....
# -------------------------------------------------------------
# Central Region
# -------------------------------------------------------------
....
# -------------------------------------------------------------
# Calculator
# -------------------------------------------------------------
#----------------------------------------
# Basis Set
#----------------------------------------
.....
#----------------------------------------
# Numerical Accuracy Settings
#----------------------------------------
....
#----------------------------------------
# Poisson Solver Settings
#----------------------------------------
......
#----------------------------------------
# Contour Integral Settings
#----------------------------------------
.....
#----------------------------------------
# Electrode Calculators
#----------------------------------------
......
#----------------------------------------
# Device Calculator
#----------------------------------------
......
# -------------------------------------------------------------
# IV Characteristics
# -------------------------------------------------------------
# Kpoint sampling
kpoint_grid = MonkhorstPackGrid(
na=32,
)
iv_characteristics = IVCharacteristics(
configuration=device_configuration,
filename='Device_MoS2_0.5_0.6.hdf5',
object_id='MoS2_0.5_0.6_IV_',
gate_regions=[0, 1],
energies=numpy.linspace(-2, 2, 401)*eV,
kpoints=kpoint_grid,
self_energy_calculator=RecursionSelfEnergy(),
energy_zero_parameter=AverageFermiLevel,
infinitesimal=1e-06*eV,
log_filename_prefix='MoS2_0.5_0.6_IV_',
number_of_processes_per_task=None,
enforce_zero_transmission_in_band_gap=False,
source_electrode=Left
)
old_calculation = iv_characteristics.configuration(
0.1* Volt,
0.65* Volt)
iv_characteristics.setCalculator(
numpy.linspace(0.5, 0.6, 2)*Volt,
0.65*Volt,
calculator,
old_calculation)
iv_characteristics.update()
********************************************
the script doesn't work, the the error message is as follows:
Traceback (most recent call last):
File "Device_MoS2_0.5_0.6.py", line 503, in <module>
iv_characteristics.setCalculator(
File "zipdir/NL/Study/IVCharacteristics.py", line 800, in setCalculator
NL.ComputerScienceUtilities.Exceptions.NLValueError: Gate-source voltage [0.5 0.6] V not found in IVCharacteristics.
i can't understand the error message, 0.5 and 0.6 gate-source voltage is what i want to calculate, what' mean of "not found 0.5 and 0.6V"?
please help me, thank you