Blackbody radiation model. More...
#include "cphot/rquantities.hpp"
Go to the source code of this file.
Functions | |
QSpectralFluxDensity | bb_flux_function (QLength lam, Number amp, QTemperature teff) |
Blackbody as a flux distribution as function of wavelength, temperature and amplitude. More... | |
double | bb_flux_function (double lam_nm, double amp, double teff_K) |
default units blackbody as a flux distribution as function of wavelength, temperature and amplitude. More... | |
Blackbody radiation model.
References:
Planck's law of black-body radiation states that
\begin{eqnarray*} f_{\lambda }(T) &=& a\,\cdot\,{\frac {2h\nu ^{3}}{c^{2}}}{\frac {1}{e^{h\nu /kT}-1}}\\ &=& a\,\cdot\,\frac{2hc^2}{\lambda^5}{\frac {1}{e^{hc /\lambda kT}-1}}, \end{eqnarray*}
where
Note that $a$ can alternatively links to the angular size $\theta$
\[ \theta = \sqrt{\frac{a}{\pi}} = \frac{R}{d} \]
where \(R\) is the radius, and \(d\) is the distance to the star.
Definition in file blackbody.hpp.
double bb_flux_function | ( | double | lam_nm, |
double | amp, | ||
double | teff_K | ||
) |
default units blackbody as a flux distribution as function of wavelength, temperature and amplitude.
lam | wavelength in nm |
amp | dimensionless normalization factor |
teff | temperature in Kelvins |
Definition at line 80 of file blackbody.hpp.
QSpectralFluxDensity bb_flux_function | ( | QLength | lam, |
Number | amp, | ||
QTemperature | teff | ||
) |
Blackbody as a flux distribution as function of wavelength, temperature and amplitude.
This function deals with unit conversions
lam | wavelength |
amp | dimensionless normalization factor |
teff | temperature |
Note that amp is alternatively represented as the angular size θ = R/d = sqrt(amp/pi)
Definition at line 52 of file blackbody.hpp.