File:Blackbody spectra.png

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Blackbody_spectra.png (730 × 572 pixels, file size: 87 KB, MIME type: image/png)

Captions

Captions

Add a one-line explanation of what this file represents

Python codes

[edit]
import numpy as np, pylab as pl

Nfreq, NT = 2000, 6
Tstart, Tgap = 3000, 1000 # K
Tend = Tstart + (Tgap * NT)
T = np.arange(Tstart, Tend, Tgap)
f = np.arange(0, Nfreq)
nu = f*1e12 # Hz
c = 299792458. # m/s
h = 6.62606957e-34 # J/s
k = 1.3806488e-23 # J/K
e = np.zeros( (NT, Nfreq) )
B = np.zeros( (NT, Nfreq) )
for i in range(NT):
        e[i,:] = np.exp((h*nu[:])/(k*T[i]))
        B[i,:]=((2*h*nu[:]**3)/c**2)*(1/(e[i,:]-1))
        pl.plot(f,B[i,:],label='%s K'%(T[i]))
        pl.hold(True)
        leg = pl.legend(loc='upper right', fancybox=True)
        leg.get_frame().set_alpha(0.5)
pl.title('Blackbody radiation', fontsize=17)
pl.xlabel('Frequency [THz]', fontsize=17)
pl.ylabel('Intensity [$W m^{-2} sr^{-1} Hz^{-1}$]', fontsize=17)
pl.savefig('Blackbody_spectra.png', bbox_inches='tight', transparent=True)
pl.show()

Summary

[edit]
Description
English: Blackbody spectra for 6 different temperatures
Date
Source Own work
 
This plot was created with Matplotlib.
Author Muhammad

Licensing

[edit]
I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current11:01, 28 November 2013Thumbnail for version as of 11:01, 28 November 2013730 × 572 (87 KB)Muhammad (talk | contribs){{self|cc-by-sa-3.0}}
00:08, 22 December 2012Thumbnail for version as of 00:08, 22 December 2012800 × 600 (62 KB)Muhammad (talk | contribs)User created page with UploadWizard

There are no pages that use this file.

Metadata