GyotoThermalBremsstrahlungSpectrum.h
Go to the documentation of this file.
/*
Copyright 2014 Frederic Vincent, Thibaut Paumard
This file is part of Gyoto.
Gyoto is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Gyoto is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Gyoto. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __GyotoThermalBremsstrahlungSpectrum_H_
#define __GyotoThermalBremsstrahlungSpectrum_H_
#include "GyotoSpectrum.h"
#include <GyotoBlackBodySpectrum.h>
namespace Gyoto {
namespace Spectrum {
class ThermalBremsstrahlung;
}
}
class Gyoto::Spectrum::ThermalBremsstrahlung : public Gyoto::Spectrum::Generic {
friend class Gyoto::SmartPointer<Gyoto::Spectrum::ThermalBremsstrahlung>;
protected:
SmartPointer<Spectrum::BlackBody> spectrumBB_;
double T_;
double Tm1_;
double Tm05_;
double numberdensityCGS_;
public:
GYOTO_OBJECT;
ThermalBremsstrahlung();
ThermalBremsstrahlung(const ThermalBremsstrahlung &);
virtual ThermalBremsstrahlung * clone() const;
using Gyoto::Spectrum::Generic::operator();
virtual double operator()(double nu) const;
#ifndef GYOTO_SWIGIMPORTED
virtual double operator()(double nu,double ,double ds) const;
#endif
// NB: the second argument, opacity in the Spectrum API
// is useless here
double temperature() const;
void temperature(double tt);
double numberdensityCGS() const;
void numberdensityCGS(double rho);
double jnuCGS(double nu) const;
double alphanuCGS(double nu) const;
void radiativeQ(double jnu[], // output
double alphanu[], // output
double const nu_ems[],
size_t nbnu
);
};
#endif
GyotoBlackBodySpectrum.h
I_nu(nu, T) = cst_*2*h*nu^3/c^2/(exp(h*nu/k*T)-1.);.
GYOTO_OBJECT
#define GYOTO_OBJECT
Declare class::properties and class::getProperties().
Definition GyotoObject.h:84
GyotoSpectrum.h
Spectrum of a simple object (e.g. Star).
Gyoto::SmartPointer
Pointers performing reference counting.
Definition GyotoSmartPointer.h:135
Gyoto::Spectrum::Generic
Spectrum emitted by an Astrobj.
Definition GyotoSpectrum.h:137
Gyoto::Spectrum::ThermalBremsstrahlung
Thermal brems spectrum.
Definition GyotoThermalBremsstrahlungSpectrum.h:49
Gyoto::Spectrum::ThermalBremsstrahlung::Tm1_
double Tm1_
1/T
Definition GyotoThermalBremsstrahlungSpectrum.h:54
Gyoto::Spectrum::ThermalBremsstrahlung::jnuCGS
double jnuCGS(double nu) const
Gyoto::Spectrum::ThermalBremsstrahlung::numberdensityCGS_
double numberdensityCGS_
Number density in CGS UNITS (careful).
Definition GyotoThermalBremsstrahlungSpectrum.h:56
Gyoto::Spectrum::ThermalBremsstrahlung::clone
virtual ThermalBremsstrahlung * clone() const
Cloner.
Gyoto::Spectrum::ThermalBremsstrahlung::alphanuCGS
double alphanuCGS(double nu) const
Gyoto::Spectrum::ThermalBremsstrahlung::radiativeQ
void radiativeQ(double jnu[], double alphanu[], double const nu_ems[], size_t nbnu)
Gyoto::Spectrum::ThermalBremsstrahlung::Tm05_
double Tm05_
1/sqrt(T)
Definition GyotoThermalBremsstrahlungSpectrum.h:55
Gyoto::Spectrum::ThermalBremsstrahlung::T_
double T_
Temperature.
Definition GyotoThermalBremsstrahlungSpectrum.h:53
Gyoto::Spectrum::ThermalBremsstrahlung::spectrumBB_
SmartPointer< Spectrum::BlackBody > spectrumBB_
blackbody emission
Definition GyotoThermalBremsstrahlungSpectrum.h:52
Gyoto::Spectrum
Spectrum of a simple object (e.g. a Gyoto::Astrobj::Star).
Definition GyotoBlackBodySpectrum.h:35
Gyoto
Namespace for the Gyoto library.
Definition GyotoAstrobj.h:44