Gyoto
GyotoThinDiskPL.h
Go to the documentation of this file.
1 
8 /*
9  Copyright 2012-2016 Frederic Vincent, Thibaut Paumard
10 
11  This file is part of Gyoto.
12 
13  Gyoto is free software: you can redistribute it and/or modify
14  it under the terms of the GNU General Public License as published by
15  the Free Software Foundation, either version 3 of the License, or
16  (at your option) any later version.
17 
18  Gyoto is distributed in the hope that it will be useful,
19  but WITHOUT ANY WARRANTY; without even the implied warranty of
20  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  GNU General Public License for more details.
22 
23  You should have received a copy of the GNU General Public License
24  along with Gyoto. If not, see <http://www.gnu.org/licenses/>.
25  */
26 
27 #ifndef __GyotoThinDiskPL_H_
28 #define __GyotoThinDiskPL_H_
29 
30 #include <iostream>
31 #include <fstream>
32 #include <iomanip>
33 
34 namespace Gyoto{
35  namespace Astrobj { class ThinDiskPL; }
36 }
37 
38 //#include <GyotoMetric.h>
39 #include <GyotoThinDisk.h>
40 #include <GyotoBlackBodySpectrum.h>
41 
56  friend class Gyoto::SmartPointer<Gyoto::Astrobj::ThinDiskPL>;
57  private:
58  double PLSlope_;
59  double PLRho_;
60  double PLRadRef_;
61  protected:
62  SmartPointer<Spectrum::BlackBody> spectrumBB_;
63 
64  // Constructors - Destructor
65  // -------------------------
66  public:
69 
70  ThinDiskPL();
71 
72  ThinDiskPL(const ThinDiskPL& ) ;
73  virtual ThinDiskPL* clone () const;
74 
75  virtual ~ThinDiskPL() ;
76 
77  // Accessors
78  // ---------
79  public:
80  void PLSlope(double);
81  double PLSlope()const;
82  void PLRho(double);
83  double PLRho()const;
84  void PLRadRef(double);
85  double PLRadRef()const;
86 
87  public:
88  using ThinDisk::emission;
89  virtual double emission(double nu_em, double dsem,
90  double c_ph[8],double c_obj[8]=NULL) const;
91 
92  private:
96  double emissionBB(double nu, double co[8]) const;
97 
98 };
99 
100 #endif
#define GYOTO_OBJECT
Declare class::properties and class::getProperties()
Definition: GyotoObject.h:84
double emissionBB(double nu, double co[8]) const
emission() helper
#define GYOTO_OBJECT_THREAD_SAFETY
Declare virtual bool isThreadSafe() const.
Definition: GyotoObject.h:99
Geometrically thin disk with black-body emission.
Definition: GyotoThinDiskPL.h:55
double PLSlope_
Power law index.
Definition: GyotoThinDiskPL.h:58
virtual double emission(double nu_em, double dsem, double coord_ph[8], double coord_obj[8]=NULL) const
Specific intensity Iν
virtual ThinDiskPL * clone() const
Cloner.
Geometrically thin disks and rings.
Definition: GyotoThinDisk.h:68
double PLRadRef_
Reference radius.
Definition: GyotoThinDiskPL.h:60
Geometrically thin disks and rings.
Namespace for the Gyoto library.
Definition: GyotoAstrobj.h:43
Pointers performing reference counting.
Definition: GyotoProperty.h:45
double PLRho_
Reference density.
Definition: GyotoThinDiskPL.h:59
I_nu(nu, T) = cst_*2*h*nu^3/c^2/(exp(h*nu/k*T)-1.);.
virtual double emission(double nu_em, double dsem, double c_ph[8], double c_obj[8]=NULL) const
Specific intensity Iν
SmartPointer< Spectrum::BlackBody > spectrumBB_
disk black body
Definition: GyotoThinDiskPL.h:62