Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Jahanzaib

Pages: 1 [2] 3 4 ... 9
16
General Questions and Answers / Re: Pdos code
« on: December 10, 2024, 00:20 »
Dr. Blom, Thank you for the reply.

I have already mentioned my question in previous request. The code I shared, provides the separate DOS for Tin and Hydrogen, but I am interested in obtaining the combined DOS for both Tin and Hydrogen, as shown in the pictures. If you look at the pictures, I have selected only the edge Tin and Hydrogen atoms.

17
General Questions and Answers / Pdos code
« on: December 9, 2024, 03:04 »
Dear Expert,
I am working with a code that generates the PDOS for Hydrogen and Tin separately. However, I am interested in obtaining a combined PDOS, as shown in the attached picture . I have attached pics - Any suggestion please

The code is:
 #plot the spectra using pylab
 import pylab
 import matplotlib.pyplot as plt

 # read DOS object from file
 dos = nlread('/home/dos.hdf5', DensityOfStates)[0]

 # Get the actual energy values from the DOS object
 energies = dos.energies()

 # Calculate the DOS spectrum with spin up
 dos_Up = dos.evaluate(projection_list=ProjectionList(atoms=[96,97,98,99,100,101,126,127,128,129,130,131], elements=[Tin], angular_momenta=[1]), spin=Spin.Up)
 dos_Up1 = dos.evaluate(projection_list=ProjectionList(atoms=[60,61,62,63,64,65,138,139,140,141,142,143], elements=[Hydrogen], angular_momenta=[0]), spin=Spin.Up)

 # Calculate the DOS spectrum with spin down
 dos_Down = dos.evaluate(projection_list=ProjectionList(atoms=[96,97,98,99,100,101,126,127,128,129,130,131], elements=[Tin], angular_momenta=[1]), spin=Spin.Down)
 dos_Down1 = dos.evaluate(projection_list=ProjectionList(atoms=[60,61,62,63,64,65,138,139,140,141,142,143], elements=[Hydrogen], angular_momenta=[0]), spin=Spin.Down)
 # Plot the spectra using pylab
 import pylab
 pylab.figure(figsize=(5, 10))
 pylab.plot(dos_Up.inUnitsOf(eV**-1), energies.inUnitsOf(eV), color='darkblue', label='Spin Up')
 pylab.plot(dos_Down.inUnitsOf(eV**-1), energies.inUnitsOf(eV), color='darkblue', linestyle='--', label='Spin Down')
 pylab.plot(dos_Up1.inUnitsOf(eV**-1), energies.inUnitsOf(eV), color='darkblue', label='Spin Up')
 pylab.plot(dos_Down1.inUnitsOf(eV**-1), energies.inUnitsOf(eV), color='darkblue', linestyle='--', label='Spin Down')

 # Add a dotted line at E-EF=0
 pylab.axhline(y=0, linestyle='dotted', color='gray')

 pylab.xlim(0,15)
 pylab.ylim(-2,2)

 # Save the figure as a high-resolution PNG image
 #plt.savefig('Fe-PDOS.png', dpi=300, bbox_inches='tight')

 # Add the legend in the upper right corner
 pylab.legend(loc='upper right')

 pylab.xlabel("PDOS (1/eV)")
 pylab.ylabel("E-E$_{f}$/eV")
 pylab.legend()
 pylab.show()

18
The FatBandstructure is used to visualize the contribution of different orbitals to the band structure of a bulk system. For Transmission Spectra analysis, what features or tools does QuantumATK support to facilitate comparison with Transmission Spectra results? Need suggestion please

19
General Questions and Answers / Re: Current or current density
« on: November 12, 2024, 19:57 »
The formula deals with the total current through a quantum device, where electrons are treated as wave-like entities confined to specific channels. Unlike classical transport where current density is a meaningful quantity distributed over a cross-sectional area, the concept is less useful in a quantum regime where the focus is on transmission through discrete energy levels.

For more clear concept, wait for response of @Dr Blom.

20
General Questions and Answers / Re: Band Structure
« on: November 11, 2024, 23:47 »
I am using this code to extract BS, but I got error i tried to fix but its not done. The error is (ValueError: x and y must have same first dimension, but have shapes (21,) and (2, 21, 3395))

from NanoLanguage import *
import pylab as P

# Parameters
ncfile = '/u/jem/wolf6252/N-P/With-hyd/Fe/BS/BS.hdf5'
plotfile = 'plot.png'
ymin = -0.5
ymax = 0.5
# Colors for each band structure (add more if you have more than 4 band structures in the file)
colors = ['r','b','g','m']

bandstructures = nlread(ncfile, Bandstructure)

for i,bs in enumerate(bandstructures):
     P.plot(bs._axisGUI(), bs.evaluate(), colors)

# Set x-ticks = the symmetry points
kticks = [ tick[0] for tick in bs._ticksGUI() ]
ticklabels = [ tick[1].replace('Γ','$\Gamma$') for tick in bs._ticksGUI() ]
P.xticks(kticks,ticklabels)

P.grid(kticks)
P.ylim(ymin,ymax)

P.savefig(plotfile)

21
General Questions and Answers / Re: Band Structure
« on: November 11, 2024, 15:58 »
Many thanks Habib, I am able to change the color.
I have my code to extract DOS, PDOS but I am also interested to refine my code for BS, So I can make my plot more better.

22
General Questions and Answers / Re: Band Structure
« on: November 10, 2024, 01:41 »
Hello Expert
Is there a way to change the colors for spin up and down bands in the given figure below? I have checked and tried and I haven't find anything to change color. Please see the attached pictures.

Im previous discussion, I was interested to extract BS using python code?

23
General Questions and Answers / Re: Band Structure
« on: November 1, 2024, 04:12 »
Actually I saw your code in the previous discussion where you mentioned to extract BS using python code. The code is given below:
So, I am interested for my sytem, but it doesnot given what I saw in GUI. I already knew how to combine both BS and DOS in GUI, but i think using python code, both looks more better for publication ;D ;D

from NanoLanguage import *

# -----------------------------------------------
# Parameters
# -----------------------------------------------
max_band = 100
min_band = 0
min_energy = -20
max_energy = 10
show_grid = True
title = 'Gold FCC'

# Read the bandstructure from a file.
bs = nlread('bandstructure.nc', Bandstructure)[0]

# Read the data in.
data = bs.evaluate()

# Setup the axises.
axixes = bs._axisGUI()
ticks = bs._ticksGUI()
loc = [ t[0] for t in ticks]
label = [ t[1] for t in ticks]
for i in range(len(label)):
    if len(label) != 1:
        label = r'$\Gamma$'

# Slice the data.
sliced_data = data[:,min_band:max_band]

import pylab
pylab.figure()
pylab.plot(axixes, sliced_data, 'k-')
pylab.plot(axixes, numpy.array(axixes)*0.0, 'k--')
pylab.xlabel('K')
pylab.ylabel(r'$\epsilon_i$ / eV')
pylab.xticks( loc, label)
pylab.ylim(min_energy, max_energy)
pylab.grid(show_grid)
pylab.title(title)
pylab.show()


24
General Questions and Answers / Re: Band Structure
« on: October 31, 2024, 00:53 »
Thank you so much. Is there a way to extract BS using python code?

25
General Questions and Answers / Band Structure
« on: October 30, 2024, 15:41 »
Dear Expert,

I have attached my band structure plot, and I would like to recreate this plot using "atkpython." Is there a way to extract the necessary information using a script?

Additionally, I already have a script for the density of states of the same system, and I was wondering if it would be possible to plot both BS and DOS side by side.

Thank you!

26
You can extract alot of information
1) Spin-Dependent Conductance
2) Spin Polarization of the Current
3) Transmission Pathways
4) Magnetoresistance etc

Detail for transmission spectrum is (https://docs.quantumatk.com/manual/Types/TransmissionSpectrum/TransmissionSpectrum.html). There are alot of tutorial in quantumatk website, use keyword "transmission" to see the relavant tutorials.

27
General Questions and Answers / Re: DOS vs TS
« on: October 8, 2024, 21:49 »
Thank you Dr Blom.

The reason for using only a few k-points for the TS calculation in my case is that I have a very long stanene nanoribbon, which generally requires only a few k-points. In some cases, I observed a bigger peak in the DOS, but when I examined the transmission spectrum (TS) at zero bias for the same system, that peak was not present. To my understanding, the transmission function T(E), which can be considered a density of states (DOS) weighted by the probability of electron transfer from the device region to the left or right electrodes.

I think if I increase the number of k-points in the B direction only in stanene nanoribbon, I might observe similar peaks. For a 1D system like this, I assume that increasing k-points in the B direction should be fine??

28
General Questions and Answers / DOS vs TS
« on: October 5, 2024, 04:01 »
Dear Expert
I have attached photo for my system where I have shown you DOS and TS. In DOS, there are some peak on the fermi level but in TS its not? I dont understand this? Is a way to make TS peaks smooter like DOS attached in pics or is there a way to add broadening in TS? I want TS peak a bit smoother.

Thank you

29
General Questions and Answers / Re: Brodening in LCAO calculator
« on: September 24, 2024, 14:39 »
A follow up question on that:
I have a long stanene nanoribbon, and I am optimizing iron-tin cluster on it. My system is large in C direction so I need only few k-points, may be 1 k-point in C direction. So, I needs large broadening value?

This is what I understand from the discussion

30
General Questions and Answers / Re: Brodening in LCAO calculator
« on: September 23, 2024, 13:15 »
The default broadening value of 1000 K typically refers to the temperature used to define the width of the electronic states in energy calculations.

Pages: 1 [2] 3 4 ... 9