QuantumATK Forum

QuantumATK => General Questions and Answers => Topic started by: iamddba on August 25, 2009, 05:52

Title: two "0" values in the calculation result of MPSH energy spectrum. Why?
Post by: iamddba on August 25, 2009, 05:52
hello, fellows! this is my first post here:)
A problem. After I performed the calculation of MPSH energy spectrum under a specify bias in my probe system, I found there are two "0 eV" values in the export result.  what is the reason? and what it means ???
thanks in advance!
Title: Re: two "0" values in the calculation result of MPSH energy spectrum. Why?
Post by: zh on August 25, 2009, 09:14
These two levels may be degenerated.
Title: Re: two "0" values in the calculation result of MPSH energy spectrum. Why?
Post by: Anders Blom on August 25, 2009, 09:24
Welcome to the ATK community!

Sometimes when you select certain "Analysis" quantities in the NanoLanguage Scripter, the script produced by VNL will print some information to the log, which you perhaps did not anticipate. If you post the script and the output we can have a quick look. You can remove the geometry and any other confidential information, if needed.
Title: Re: two "0" values in the calculation result of MPSH energy spectrum. Why?
Post by: iamddba on August 25, 2009, 13:13
Thank you two, zh and Blom.
In fact, I have calculated that system under varied biases, only 0.2V-result has two "0 eV" levels, and the others have no "0" output. I know there may be degenerated levels and they are existent in all my results. Therefore, I think the little problem shouldn't attribute to the script or the configuration. I just can't know the meaning of the two "0" values. 
Title: Re: two "0" values in the calculation result of MPSH energy spectrum. Why?
Post by: Anders Blom on August 25, 2009, 13:26
Right, no, I don't think there is anything wrong with the script or so. It's just not clear to me exactly how this "0 eV" appears. Is it an eigenvalue of the MPSH spectrum? How does it look, exactly, in the output log?
Title: Re: two "0" values in the calculation result of MPSH energy spectrum. Why?
Post by: iamddba on August 25, 2009, 15:37
Right, no, I don't think there is anything wrong with the script or so. It's just not clear to me exactly how this "0 eV" appears. Is it an eigenvalue of the MPSH spectrum? How does it look, exactly, in the output log?

hi, Blom, I am glad that you give me reply rapidly.
Attached is the result part of the output file.  "0 eV" is an eigenvalue and there are two. Are they all degenerated with fermi level?
thanks
Title: Re: two "0" values in the calculation result of MPSH energy spectrum. Why?
Post by: Anders Blom on August 25, 2009, 15:44
I see nothing wrong here. You happen to have two molecular levels that coincide with the average Fermi level, but if there were more decimals I'm sure you would not have 0.000000000 eV but perhaps 0.0043 eV or so. They might not even be degenerate, but only so to within 2 decimals.

To print the spectrum with more decimals (nlPrint doesn't do a supergood job there...), replace the line

Code
if processIsMaster(): nlPrint(projected_hamiltonian_energy_spectrum)

by

Code
if processIsMaster(): 
    print "# MPSH Spectrum (eV)"
    print "# -----------------------------------------------------------------------------"
    for E in projected_hamiltonian_energy_spectrum.energies():
        print E.inUnitsOf(eV)
Title: Re: two "0" values in the calculation result of MPSH energy spectrum. Why?
Post by: iamddba on August 25, 2009, 15:54
I see. Thank you very much! :) :)
Title: Re: two "0" values in the calculation result of MPSH energy spectrum. Why?
Post by: zhangguangping on October 2, 2010, 15:30
I see nothing wrong here. You happen to have two molecular levels that coincide with the average Fermi level, but if there were more decimals I'm sure you would not have 0.000000000 eV but perhaps 0.0043 eV or so. They might not even be degenerate, but only so to within 2 decimals.

To print the spectrum with more decimals (nlPrint doesn't do a supergood job there...), replace the line

Code
if processIsMaster(): nlPrint(projected_hamiltonian_energy_spectrum)

by

Code
if processIsMaster(): 
    print "# MPSH Spectrum (eV)"
    print "# -----------------------------------------------------------------------------"
    for E in projected_hamiltonian_energy_spectrum.energies():
        print E.inUnitsOf(eV)

Dear Anders Blom ,
If I want to output the transmission_spectrum to the output file,and have some more decimals.How should I change the following command,except using the script in the forum to extract from the VNL file.
if processIsMaster(): nlPrint(transmission_spectrum)
if processIsMaster(): file.addToSample(transmission_spectrum, 'twoprobe_configuration', 'Transmission Spectrum')

Thank you in advance.I am not familiar with python.
Title: Re: two "0" values in the calculation result of MPSH energy spectrum. Why?
Post by: Anders Blom on October 2, 2010, 16:32
See http://quantumwise.com/forum/index.php?topic=103.0
Title: Re: two "0" values in the calculation result of MPSH energy spectrum. Why?
Post by: zhangguangping on October 3, 2010, 02:02
See http://quantumwise.com/forum/index.php?topic=103.0
Thank you so much.