Author Topic: gate voltage sweep  (Read 2207 times)

0 Members and 1 Guest are viewing this topic.

Offline Dipankar Saha

  • Supreme QuantumATK Wizard
  • *****
  • Posts: 516
  • Country: in
  • Reputation: 5
    • View Profile
gate voltage sweep
« 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





Offline Jess Wellendorff

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 933
  • Country: dk
  • Reputation: 29
    • View Profile
Re: gate voltage sweep
« Reply #1 on: May 18, 2016, 09:12 »
Can we see the full script?

Offline Daniele Stradi

  • Supreme QuantumATK Wizard
  • *****
  • Posts: 286
  • Country: dk
  • Reputation: 3
    • View Profile
Re: gate voltage sweep
« Reply #2 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.

Offline Dipankar Saha

  • Supreme QuantumATK Wizard
  • *****
  • Posts: 516
  • Country: in
  • Reputation: 5
    • View Profile
Re: gate voltage sweep
« Reply #3 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