Skip to content

XA_Planck_Photon_Flux

Brian W. Mulligan edited this page Oct 22, 2016 · 3 revisions

double XA_Planck_Photon_Flux(const double & i_dWavelength_cm, const void * i_lpvTemperature_K)

Computes the specific photon flux of a Planck blackbody by:

N = 2 pi c / (lambda^4 (e^(hc /(k T)) - 1))

where c = speed of light, lambda = wavelength, h = Planck constant, and k = Boltzmann constant. N is is units of [cm^-1 s^-1].

Parameters

  • i_dWavelength_cm (double): wavelength in cm at which to evaluate the Planck function
  • i_lpvTemperature_K (void * -> double): temperature in Kelvin at which to evaluate the Planck function. Note that the data must be in double format, but is passed as a void pointer to the data. This is intended to simplify usage by the integration functions in xmath.

Output

  • (double): specific photon flux in [cm^-1 s^-1].

Fault response

None