Author Topic: plot two or more optical spectrum  (Read 4316 times)

0 Members and 1 Guest are viewing this topic.

Offline mbjavan

  • Regular QuantumATK user
  • **
  • Posts: 9
  • Reputation: -1
    • View Profile
plot two or more optical spectrum
« on: May 30, 2012, 10:01 »
please help me to plot  optical spectrums, calculated and saved in some *.nc files at a single figure.
I need a script  :-\

Offline zh

  • Supreme QuantumATK Wizard
  • *****
  • Posts: 1141
  • Reputation: 24
    • View Profile

Offline marmotte

  • Heavy QuantumATK user
  • ***
  • Posts: 63
  • Country: sa
  • Reputation: 0
    • View Profile
Re: plot two or more optical spectrum
« Reply #2 on: September 24, 2012, 11:32 »
Dear ATK team,

I'm trying to get the absorption for my system. I've already calculated the dielectric constants and it is OK. My problem is when I apply the script of : http://www.quantumwise.com/documents/tutorials/latest/SiliconOptical/index.html/chap.Si.Band.html#sect1.running.si, I have RuntimeWarning: divide by zero encountered in divide.

I guess I have to change values in this script and this values must be extracted from optical spectrum. Could you please tell me what is the meaning

of the values in red, I mean what the corresponding values in the dielectric constant spectrum

ax.axis([180,1000,2.2,6.4])
ax.set_ylabel(r"$n$", size=16)
ax.tick_params(axis='x', labelbottom=False, labeltop=True)
ax = pylab.subplot(212)
ax.plot(l,alpha,'r')
ax.axis([180,1000,0,0.24])


Thx

Offline Anders Blom

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 5576
  • Country: dk
  • Reputation: 96
    • View Profile
    • QuantumATK at Synopsys
Re: plot two or more optical spectrum
« Reply #3 on: September 24, 2012, 12:23 »
Where is the warning? Probably from the line dividing by energy. If so, it's not so critical, it just means you have a zero energy.

180 and 1000 are wavelengths, computed from the energies on the line commented as "# Calculate the wavelength" and 2.2 and 6.4 and the other ones are needed because axis() take a 4-element list (xmin, xmax, ymin, ymax).

Offline marmotte

  • Heavy QuantumATK user
  • ***
  • Posts: 63
  • Country: sa
  • Reputation: 0
    • View Profile
Re: plot two or more optical spectrum
« Reply #4 on: September 24, 2012, 13:05 »
Dear Anders,

Actually it is critical because I can't have the absorption ! how we can avoid the problem. all the optical properties are extracted from dielectric constant and this later is correct. I mean how to avoid this problem.

Best regards,

Offline marmotte

  • Heavy QuantumATK user
  • ***
  • Posts: 63
  • Country: sa
  • Reputation: 0
    • View Profile
Re: plot two or more optical spectrum
« Reply #5 on: September 24, 2012, 13:29 »
Dear Ander,

Now it's working, please avoid my last post.

best