|
mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]
|
The blackbody spectral energy distribution in the mx::astro::astroSpectrum form.
You specify the temperature, and optionally the radius and distance of the blackbody.
| units | specifies the units of the spectrum |
| freq | if true, then the blackbody is calcuated as a frequency distribution. If false (default), it is a wavelength distribution. |
Definition at line 37 of file blackbody.hpp.
#include <astro/blackbody.hpp>
Public Types | |
| typedef units::realT | realT |
| The real floating point type used for calculations. | |
Public Member Functions | |
| blackbody () | |
| Default c'tor. | |
| blackbody (realT T, realT R=0, realT d=0) | |
| Constructor used to initialize parameters. | |
| void | setParameters (realT T, realT R, realT d) |
| Set the parameters of the blackbody. | |
Public Attributes | |
| realT | _temperature |
| The temperature of the blackbody. Default value is the effective temperature of the Sun. | |
| realT | _radius |
| The optional radius of the blackbody. | |
| realT | _distance |
| The optional distance to the blackbody. | |
| std::vector< realT > | _spectrum |
| The calculated spectral energy distribution. | |
| typedef units::realT mx::astro::blackbody< units, freq >::realT |
The real floating point type used for calculations.
Definition at line 39 of file blackbody.hpp.
|
inline |
Default c'tor.
Definition at line 48 of file blackbody.hpp.
References mx::astro::blackbody< units, freq >::_distance, mx::astro::blackbody< units, freq >::_radius, and mx::astro::blackbody< units, freq >::_temperature.
|
inline |
Constructor used to initialize parameters.
| [in] | T | The effective temperature of the blackbody. Units as specified by the units template-parameter. |
| [in] | R | [optional] The radius of the blackbody. Units as specified by the units template-parameter. |
| [in] | d | [optional] The distance to the blackbody. Units as specified by the units template-parameter. |
Definition at line 56 of file blackbody.hpp.
References mx::astro::blackbody< units, freq >::setParameters().
|
inline |
Set the parameters of the blackbody.
| [in] | T | The effective temperature of the blackbody. Units as specified by the units template-parameter. |
| [in] | R | The radius of the blackbody. Units as specified by the units template-parameter. |
| [in] | d | The distance to the blackbody. Units as specified by the units template-parameter. |
Definition at line 69 of file blackbody.hpp.
References mx::astro::blackbody< units, freq >::_distance, mx::astro::blackbody< units, freq >::_radius, and mx::astro::blackbody< units, freq >::_temperature.
Referenced by mx::astro::blackbody< units, freq >::blackbody().
| realT mx::astro::blackbody< units, freq >::_distance |
The optional distance to the blackbody.
Definition at line 43 of file blackbody.hpp.
Referenced by mx::astro::blackbody< units, freq >::blackbody(), and mx::astro::blackbody< units, freq >::setParameters().
| realT mx::astro::blackbody< units, freq >::_radius |
The optional radius of the blackbody.
Definition at line 42 of file blackbody.hpp.
Referenced by mx::astro::blackbody< units, freq >::blackbody(), and mx::astro::blackbody< units, freq >::setParameters().
| std::vector<realT> mx::astro::blackbody< units, freq >::_spectrum |
The calculated spectral energy distribution.
Definition at line 45 of file blackbody.hpp.
| realT mx::astro::blackbody< units, freq >::_temperature |
The temperature of the blackbody. Default value is the effective temperature of the Sun.
Definition at line 41 of file blackbody.hpp.
Referenced by mx::astro::blackbody< units, freq >::blackbody(), and mx::astro::blackbody< units, freq >::setParameters().