Author Topic: MoS2 and Au  (Read 4276 times)

0 Members and 1 Guest are viewing this topic.

Offline dwh

  • Heavy QuantumATK user
  • ***
  • Posts: 30
  • Country: cn
  • Reputation: 0
    • View Profile
MoS2 and Au
« on: December 17, 2012, 12:52 »
Hello everyone ,how can I plot the Gaussian and tetrahedron spectrum within pylab for specific atoms of the periodic bulk systems? For example, I want to get the PDOS or 3sp orbit of S atom of  MoS2 and Au contact system, but I want to use the Gaussian and tetrahedron spectrum ways ,rather than using more k-points. could you give me a specific way? thanks
« Last Edit: December 17, 2012, 12:54 by dwh »

Offline zh

  • QuantumATK Support
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 1141
  • Reputation: 24
    • View Profile
Re: MoS2 and Au
« Reply #1 on: December 18, 2012, 11:41 »
In  principles, on has to use a sufficiently dense k-mesh in the DOS calculations in order to get smooth curves of DOS plot.

Offline dwh

  • Heavy QuantumATK user
  • ***
  • Posts: 30
  • Country: cn
  • Reputation: 0
    • View Profile
Re: MoS2 and Au
« Reply #2 on: December 19, 2012, 14:35 »
Thanks, I know that we usually use a sufficiently dense k-mesh in the DOS calculations, but I want to use the Gaussian and tetrahedron spectrum ways for specific atoms of the periodic bulk systems. I just want to know how can I do? please give me a way,thank you very much, I am looking forward to your reply

Offline zh

  • QuantumATK Support
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 1141
  • Reputation: 24
    • View Profile
Re: MoS2 and Au
« Reply #3 on: December 20, 2012, 01:10 »
The following webpage shows an example for the calculations of DOS using the Gaussian smearing method and the tetrahedron technique:
http://quantumwise.com/documents/manuals/latest/ReferenceManual/index.html/ref.densityofstates.html

Offline dwh

  • Heavy QuantumATK user
  • ***
  • Posts: 30
  • Country: cn
  • Reputation: 0
    • View Profile
Re: MoS2 and Au
« Reply #4 on: December 20, 2012, 01:40 »
Thanks, I know the links you give me,but I want to get the PDOS of S atom of  MoS2 and Au contact system by using the Gaussian and tetrahedron spectrum ways. Could you have a specific way?

Offline Anders Blom

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 5416
  • Country: dk
  • Reputation: 89
    • View Profile
    • QuantumATK at Synopsys
Re: MoS2 and Au
« Reply #5 on: December 21, 2012, 10:57 »
Once you have DensityOfStates object you can just ask it for the two types of spectra, with the relevant projection:
Code: python
dos = DensityOfStates(configuration, ...)
projection_list = ProjectionList(elements=Sulphur)
ts = dos.tetrahedronSpectrum(projection_list)
gs = dos.gaussianSpectrum(projection_list)
You may be interested in the projection on individual atoms, then use ProjectionList(atoms=[12]) etc where 12 is the atom index (starting at 0) of the atom to project on; you can project on more than one at the time. Tips on plotting are in the reference manual under the link above.

Offline dwh

  • Heavy QuantumATK user
  • ***
  • Posts: 30
  • Country: cn
  • Reputation: 0
    • View Profile
Re: MoS2 and Au
« Reply #6 on: December 21, 2012, 14:49 »
Thanks, could you give me a complete py file?

Offline Anders Blom

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 5416
  • Country: dk
  • Reputation: 89
    • View Profile
    • QuantumATK at Synopsys
Re: MoS2 and Au
« Reply #7 on: December 21, 2012, 22:43 »
I'm a bit hesitant to do that, because the details matter, and I don't want you to get the wrong results because of any assumption I'm forced to make. For instance, you need to consider the proper k-point sampling for your system. Also, I don't know precisely what you want in terms of projection. The above is almost a complete script, you just need the DOS part, which you can copy from a script made with the Script Generator, or if you already computed the DOS you can just nlread it from the NC file.


Offline dwh

  • Heavy QuantumATK user
  • ***
  • Posts: 30
  • Country: cn
  • Reputation: 0
    • View Profile
Re: MoS2 and Au
« Reply #8 on: December 22, 2012, 05:43 »
Thank you very much. my input and output files : g-oh.py, g-oh.log, g-oh.nc .  how can I add your code that you give me in the follow code:

# read DOS object from file
dos = nlread('g-oh.nc', DensityOfStates)[0]

# make list of energies
energies = numpy.arange(-14,5,0.01)*eV

# calculate the DOS spectrum with two different methods
dos_t = dos.tetrahedronSpectrum(energies)
dos_g = dos.gaussianSpectrum(energies, broadening = 0.2*eV)

#plot the spectra using pylab
import pylab
pylab.figure()
pylab.plot(energies.inUnitsOf(eV), dos_t.inUnitsOf(eV**-1))
pylab.plot(energies.inUnitsOf(eV), dos_g.inUnitsOf(eV**-1))
pylab.xlabel("Energy (eV)")
pylab.ylabel("DOS (1/eV)")
pylab.show()



In the script file, the Hydrogen and Oxygen atoms number: 33 and 32. I just want to get the PDOS of Hydrogen and Oxygen atoms by using  the Gaussian and tetrahedron spectrum ways.  I am very looking forward to your reply,Thanks .

Offline kstokbro

  • Supreme QuantumATK Wizard
  • *****
  • Posts: 392
  • Reputation: 13
    • View Profile
    • QuantumWise
Re: MoS2 and Au
« Reply #9 on: December 23, 2012, 00:29 »
try something like this:

projection_list = ProjectionList([32])
dos_t = dos.tetrahedronSpectrum(energies, projection_list = projection_list)

Offline dwh

  • Heavy QuantumATK user
  • ***
  • Posts: 30
  • Country: cn
  • Reputation: 0
    • View Profile
Re: MoS2 and Au
« Reply #10 on: December 23, 2012, 14:28 »
Thank you very very much, it was successful.And now, I want to calculate the S or P orbits PDOS of Hydrogen and Oxygen atoms by using  the Gaussian and tetrahedron spectrum ways.  , Could you give me the code?  I am very very looking forward to your reply,Thanks .

Offline kstokbro

  • Supreme QuantumATK Wizard
  • *****
  • Posts: 392
  • Reputation: 13
    • View Profile
    • QuantumWise
Re: MoS2 and Au
« Reply #11 on: December 23, 2012, 22:10 »
please check the manual:
http://www.quantumwise.com/documents/manuals/latest/ReferenceManual/index.html/ref.projectionlist.html
s- hydrogen is:
projection_list=ProjectionList(elements=[Hydrogen], angular_momenta = [ 0 ])
« Last Edit: December 23, 2012, 23:30 by Anders Blom »