Class Blackbody

Inheritance Relationships

Base Type

Class Documentation

class Blackbody : public StellarSource

Implements a blackbody spectrum.

This class implements the spectrum of a blackbody of a certain Temperature.

\[ \fbox{ \begin{tikzpicture} \begin{axis}[domain=300E-9:4000E-9, samples=100] \addplot[color=red]{2.0 *6.62606896E-34* 2.9979E8 * 2.9979E8 / (x^5)*1./(exp(6.62606896E-34*2.997E8/(x*1.3806504E-23*3500))-1)}; \end{axis} \end{tikzpicture} } \]
See

{Blackbody::get_spectral_density()}

Public Functions

Blackbody(double T, double magnitude, double telescope_area)

Constructor

Parameters
  • T – Temperature [K]

  • magnitude – visual magnitude

  • telescope_area – telescope light collecting area [m^2]

double planck(const double &T, const double &wavelength)

Planck function for spectral density of a blackbody with Temperature T

Parameters
  • T – Temperature [K]

  • wavelength – wavelength [m]

Returns

spectral density

virtual double get_spectral_density(double wavelength)

spectral density of a blackbody

\[ s(\lambda) = \frac{2hc^2}{\lambda^5}\frac{1}{\exp{\frac{hc}{\lambda k_B T}}-1} \]

Parameters

wavelength – wavelength [micro meters]

Returns

spectral density of a blackbody at given wavelength [micro Watt] / ([micro meter] * [meter]^2 )