Author Topic: Contour plot of the C component of the linear response current density  (Read 8118 times)

0 Members and 1 Guest are viewing this topic.

Offline ruyam

  • Heavy QuantumATK user
  • ***
  • Posts: 60
  • Country: in
  • Reputation: 0
    • View Profile
Dear Anders Sir,

In your paper on Nickel Graphene interface, there is contour plot(Fig-4) with the caption as the subject. I was wondering how to get that contour plot in ATK?
PFA the fig for reference.
 

Offline ruyam

  • Heavy QuantumATK user
  • ***
  • Posts: 60
  • Country: in
  • Reputation: 0
    • View Profile
Dear QW Staff,

Pls Reply !

Offline kstokbro

  • Supreme QuantumATK Wizard
  • *****
  • Posts: 392
  • Reputation: 13
    • View Profile
    • QuantumWise
Please find attached the script we used

Offline ruyam

  • Heavy QuantumATK user
  • ***
  • Posts: 60
  • Country: in
  • Reputation: 0
    • View Profile
1). In the file "cd_side.py" attached above by Dr. Stokbro, I would like to understand what does the following line in the code means:
Code
cd_xz = numpy.apply_over_axes(numpy.sum, cd[2,:,:,:] ,[2]).flatten()
Actually, when I run the program for my structure, I get the following error: NL.ComputerScienceUtilities.Exceptions.NLValueError: Only 3 indices can be specified.

Offline ruyam

  • Heavy QuantumATK user
  • ***
  • Posts: 60
  • Country: in
  • Reputation: 0
    • View Profile
Dear QW staff,

Pls reply!

Offline Umberto Martinez

  • Supreme QuantumATK Wizard
  • *****
  • Posts: 479
  • Country: dk
  • Reputation: 26
    • View Profile
Please use the example scripts reported in the reference manual for the Current Density analysis:
http://www.quantumwise.com/documents/manuals/latest/ReferenceManual/index.html/ref.currentdensity.html
In particular, see the second example usage.

the python line you indicate will sum over the Y axis your current density data points.
see http://docs.scipy.org/doc/numpy/reference/generated/numpy.apply_over_axes.html
as the error says cd has only three indices.
« Last Edit: March 3, 2015, 15:31 by Umberto Martinez »

Offline ruyam

  • Heavy QuantumATK user
  • ***
  • Posts: 60
  • Country: in
  • Reputation: 0
    • View Profile
Dear QW Staff,

In the current density contour plot, in the metal region if we see for the same metal atom, current density is red coloured(positive) as well as blue coloured(negative). What does this signify or what am I failing to see?

Offline sathyajit

  • Heavy QuantumATK user
  • ***
  • Posts: 31
  • Country: in
  • Reputation: 0
    • View Profile
Hi,

I am using the scripts attached here and have obtained the png file.
Can you please help me interpret the reason why the red regions and blue regions are alternating ? (positive and negative current densities)

Regards
Sathyajit

Offline Jess Wellendorff

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 933
  • Country: dk
  • Reputation: 29
    • View Profile
Im very sorry, but detailed discussions of specific scientific results are usually out of the scope of this forum.

Offline sathyajit

  • Heavy QuantumATK user
  • ***
  • Posts: 31
  • Country: in
  • Reputation: 0
    • View Profile
Hi,

I wanted to know what is the significance of spectral weight in the definition given at
http://www.quantumwise.com/documents/manuals/latest/ReferenceManual/index.html/ref.currentdensity.html

Also what do you mean by
"positive weight corresponds to calculating right to left going modes (positive current), while a negative weight corresponds to calculating left to right going modes (negative current)."

I am not able to understand what you mean by positive current and negative current w.r.t. the plot given in the post.


Offline sathyajit

  • Heavy QuantumATK user
  • ***
  • Posts: 31
  • Country: in
  • Reputation: 0
    • View Profile
Pls reply...

Offline Jess Wellendorff

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 933
  • Country: dk
  • Reputation: 29
    • View Profile
The spectral weight is defined as the difference between the right and left electrode Fermi functions. At zero bias between the electrodes, there is no current. However, we would still like to be able to calculate electronic properties such as transmission spectra etc. Using the option "energy_weights = Right," allows you to do this. "Right" means that you only consider left-to-right going modes (positive current", while "Left" means the opposite.

Offline asanchez

  • Heavy QuantumATK user
  • ***
  • Posts: 42
  • Country: ie
  • Reputation: 1
    • View Profile
There seems to be a contradiction.

Jess: you're saying that "energy_weights = Right" considers states going "TO" the right. The documentation states:

"Left/Right gives an energy independent weight of 1, for current carrying states from Left/Right."

So that would mean energy_weights = Right would be states coming "FROM" the right?

Am I interpreting something the wrong way? Which one's the way it works in the code?

PS. Maybe "Right" means electrons coming FROM the right (i.e. current flow TO the right)?
« Last Edit: October 6, 2015, 17:01 by asanchez »

Offline Jess Wellendorff

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 933
  • Country: dk
  • Reputation: 29
    • View Profile
Let me try to reformulate:
- positive current means electron modes propagating from right to left in the device.
- "energy_weights"=Right gives a positive weight (+1) --> only right to left going modes are considered (positive current).
- "energy_weights"=Left gives a negative weight (-1)  --> only left to right going modes are considered (negative current).