GyotoBlackBodySpectrum.h
Go to the documentation of this file.
/*
Copyright 2011 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 __GyotoBlackBodySpectrum_H_
#define __GyotoBlackBodySpectrum_H_
#include "GyotoSpectrum.h"
namespace Gyoto {
namespace Spectrum {
class BlackBody;
}
}
class Gyoto::Spectrum::BlackBody : public Gyoto::Spectrum::Generic {
friend class Gyoto::SmartPointer<Gyoto::Spectrum::BlackBody>;
protected:
double T_;
double cst_;
double Tm1_;
double colorcor_;
double colorcorm4_;
public:
GYOTO_OBJECT;
BlackBody();
BlackBody(double T, double scaling=1.);
virtual BlackBody * clone() const;
double temperature() const;
void temperature(double);
double scaling() const;
void scaling(double);
double colorCorrection() const;
void colorCorrection(double);
using Gyoto::Spectrum::Generic::operator();
virtual double operator()(double nu) const;
};
#endif
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::BlackBody
Black Body.
Definition GyotoBlackBodySpectrum.h:55
Gyoto::Spectrum::BlackBody::colorcorm4_
double colorcorm4_
colorcor_ to power -4.
Definition GyotoBlackBodySpectrum.h:62
Gyoto::Spectrum::BlackBody::T_
double T_
Temperature (K).
Definition GyotoBlackBodySpectrum.h:58
Gyoto::Spectrum::BlackBody::clone
virtual BlackBody * clone() const
Cloner.
Gyoto::Spectrum::BlackBody::temperature
double temperature() const
Get constant.
Gyoto::Spectrum::BlackBody::cst_
double cst_
Scaling constant.
Definition GyotoBlackBodySpectrum.h:59
Gyoto::Spectrum::BlackBody::Tm1_
double Tm1_
1./T_;
Definition GyotoBlackBodySpectrum.h:60
Gyoto::Spectrum::BlackBody::colorCorrection
double colorCorrection() const
Get color correction.
Gyoto::Spectrum::BlackBody::scaling
double scaling() const
Get exponent.
Gyoto::Spectrum::BlackBody::colorcor_
double colorcor_
Color-correction factor, see def in Suleimanov et al., A&A 527 A139 (2011), Eq. 23.
Definition GyotoBlackBodySpectrum.h:61
Gyoto::Spectrum::Generic
Spectrum emitted by an Astrobj.
Definition GyotoSpectrum.h:137
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