Home > atmlab > physics > planck.m

planck

PURPOSE ^

PLANCK Planck function

SYNOPSIS ^

function BT = planck(f, T)

DESCRIPTION ^

 PLANCK  Planck function

 Calculates the Planck function (blackbody radiation) for given frequency 
 and temperature.
 

 FORMAT   BT = planck(f,T)

 OUT       BT = Blackbody radiation.
 IN       f  = frequency
          T  = Temperature in [K].

 See also: i2planckTb

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

DOWNLOAD ^

planck.m

SOURCE CODE ^

0001 % PLANCK  Planck function
0002 %
0003 % Calculates the Planck function (blackbody radiation) for given frequency
0004 % and temperature.
0005 %
0006 %
0007 % FORMAT   BT = planck(f,T)
0008 %
0009 % OUT       BT = Blackbody radiation.
0010 % IN       f  = frequency
0011 %          T  = Temperature in [K].
0012 %
0013 % See also: i2planckTb
0014 
0015 % 2003-10-10 Created by Claudia Emde
0016 
0017 function BT = planck(f, T)
0018 
0019 planck = constants('PLANCK_CONST');
0020 boltzmann = constants('BOLTZMANN_CONST');
0021 speed_light = constants('SPEED_OF_LIGHT');
0022 
0023 a = 2 * planck / speed_light^2;
0024 b = planck / boltzmann;
0025   
0026 BT =  a * f.^3 ./ ( exp( b*f./T ) - 1 );
0027 
0028 end

Generated on Mon 15-Sep-2014 13:31:28 by m2html © 2005