Gyoto
GyotoBlackBodySpectrum.h
Go to the documentation of this file.
1
11/*
12 Copyright 2011 Thibaut Paumard
13
14 This file is part of Gyoto.
15
16 Gyoto is free software: you can redistribute it and/or modify
17 it under the terms of the GNU General Public License as published by
18 the Free Software Foundation, either version 3 of the License, or
19 (at your option) any later version.
20
21 Gyoto is distributed in the hope that it will be useful,
22 but WITHOUT ANY WARRANTY; without even the implied warranty of
23 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 GNU General Public License for more details.
25
26 You should have received a copy of the GNU General Public License
27 along with Gyoto. If not, see <http://www.gnu.org/licenses/>.
28 */
29
30#ifndef __GyotoBlackBodySpectrum_H_
31#define __GyotoBlackBodySpectrum_H_
32#include "GyotoSpectrum.h"
33
34namespace Gyoto {
35 namespace Spectrum {
36 class BlackBody;
37 }
38}
39
57 protected:
58 double T_;
59 double cst_;
60 double Tm1_;
61 double colorcor_;
62 double colorcorm4_;
63
64 public:
66
67 BlackBody();
68
72 BlackBody(double T, double scaling=1.);
73 virtual BlackBody * clone() const;
74
75 double temperature() const;
76 void temperature(double);
77 double scaling() const;
78 void scaling(double);
79 double colorCorrection() const;
80 void colorCorrection(double);
81
82 using Gyoto::Spectrum::Generic::operator();
83 virtual double operator()(double nu) const;
84
85};
86
87#endif
#define GYOTO_OBJECT
Declare class::properties and class::getProperties()
Definition: GyotoObject.h:84
Spectrum of a simple object (e.g. Star)
Pointers performing reference counting.
Definition: GyotoSmartPointer.h:135
Black Body.
Definition: GyotoBlackBodySpectrum.h:55
double colorcorm4_
colorcor_ to power -4.
Definition: GyotoBlackBodySpectrum.h:62
double T_
Temperature (K)
Definition: GyotoBlackBodySpectrum.h:58
virtual BlackBody * clone() const
Cloner.
double temperature() const
Get constant.
double cst_
Scaling constant.
Definition: GyotoBlackBodySpectrum.h:59
double Tm1_
1./T_;
Definition: GyotoBlackBodySpectrum.h:60
double colorCorrection() const
Get color correction.
double scaling() const
Get exponent.
double colorcor_
Color-correction factor, see def in Suleimanov et al., A&A 527 A139 (2011), Eq. 23.
Definition: GyotoBlackBodySpectrum.h:61
Spectrum emitted by an Astrobj.
Definition: GyotoSpectrum.h:137
Namespace for the Gyoto library.
Definition: GyotoAstrobj.h:43