QuantumATK Forum

QuantumATK => General Questions and Answers => Topic started by: Dipankar Saha on May 18, 2016, 07:59

Title: gate voltage sweep
Post by: Dipankar Saha on May 18, 2016, 07:59
Hi,
I had to provide a gate voltage sweep from -1 V to +1 V    (with VDS =1 Volt) ....
If I write_
gate_voltage_list=numpy.arange(-1.0,1.0,0.2)*Volt ...., it calculates within the range of -1.5 to 0.5 V .

Why so?

Regards_
Dipankar




Title: Re: gate voltage sweep
Post by: Jess Wellendorff on May 18, 2016, 09:12
Can we see the full script?
Title: Re: gate voltage sweep
Post by: Daniele Stradi on May 18, 2016, 09:13
Dear Dipankar,
there must be some error in your script. Using the script:

for i in numpy.arange(-1.0,1.0,0.2):
    print i

I get as expected:

stradi@stradi:Desktop$ atkpython test.py
# ---------------------------------------------------------------- #
# This time-limited pre-release version will expire on 2016-08-10. #
# ---------------------------------------------------------------- #
+------------------------------------------------------------------------------+
|                                                                              |
| Atomistix ToolKit 2016.dev [Build 5a2e684]                                   |
|                                                                              |
+------------------------------------------------------------------------------+
-1.0
-0.8
-0.6
-0.4
-0.2
-2.22044604925e-16
0.2
0.4
0.6
0.8

Timing:                          Total     Per Step        %

--------------------------------------------------------------------------------

Loading Modules + MPI   :       1.24 s       1.24 s      99.95% |=============|
--------------------------------------------------------------------------------
Total                   :       1.24 s

I also suggest to use numpy.linspace instead of numpy.arange, since the former also includes the endpoints.
Title: Re: gate voltage sweep
Post by: Dipankar Saha on May 18, 2016, 11:57
Okay.... let me try with the "numpy.linspace"   / Though I have already sent you the i/p (*.py)  files ....

Thanks a lot.... :)

Regards_
Dipankar