Gyoto
GyotoThickDisk.h
Go to the documentation of this file.
1 
13 /*
14  Copyright 2019 Frederic Vincent, Thibaut Paumard
15 
16  This file is part of Gyoto.
17 
18  Gyoto is free software: you can redistribute it and/or modify
19  it under the terms of the GNU General Public License as published by
20  the Free Software Foundation, either version 3 of the License, or
21  (at your option) any later version.
22 
23  Gyoto is distributed in the hope that it will be useful,
24  but WITHOUT ANY WARRANTY; without even the implied warranty of
25  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26  GNU General Public License for more details.
27 
28  You should have received a copy of the GNU General Public License
29  along with Gyoto. If not, see <http://www.gnu.org/licenses/>.
30  */
31 
32 #ifndef __GyotoThickDisk_H_
33 #define __GyotoThickDisk_H_
34 
35 #include <iostream>
36 #include <fstream>
37 #include <iomanip>
38 
39 namespace Gyoto{
40  namespace Astrobj { class ThickDisk; }
41 }
42 
43 #include <GyotoStandardAstrobj.h>
46 
60 : public Astrobj::Standard,
61  public Hook::Listener
62 {
64  private:
65  SmartPointer<Spectrum::ThermalSynchrotron> spectrumThermalSynch_;
70  double beta_veloparam_;
74  double densitySlope_;
76 
77  // Constructors - Destructor
78  // -------------------------
79  public:
82 
83  ThickDisk();
84 
85  ThickDisk(const ThickDisk& ) ;
86  virtual ThickDisk* clone () const;
87 
88  virtual ~ThickDisk() ;
89 
90  // Accessors
91  // ---------
92  public:
93  void thickDiskInnerRadius(double hh);
94  double thickDiskInnerRadius() const;
95  void thickDiskZGaussianSigma(double sig);
96  double thickDiskZGaussianSigma() const;
97  void useSelfAbsorption(bool abs) ;
98  bool useSelfAbsorption() const;
99  void veloParam(std::vector<double> const &v);
100  std::vector<double> veloParam() const;
101  double numberDensityAtInnerRadius() const;
102  double numberDensityAtInnerRadius(std::string const &unit) const;
103  void numberDensityAtInnerRadius(double ne);
104  void numberDensityAtInnerRadius(double dens, std::string const &unit);
105  void temperatureAtInnerRadius(double tt);
106  double temperatureAtInnerRadius()const;
107  void temperatureSlope(double ss);
108  double temperatureSlope()const;
109  void densitySlope(double ss);
110  double densitySlope()const;
111  void magnetizationParameter(double rr);
112  double magnetizationParameter()const;
113 
114  public:
115  using Generic::metric;
116  virtual void metric(SmartPointer<Metric::Generic>);
117 
118  virtual double operator()(double const coord[4]) ;
119 
120  virtual void radiativeQ(double Inu[], double Taunu[],
121  double const nu_em[], size_t nbnu,
122  double dsem, state_t const &coord_ph,
123  double const coord_obj[8]=NULL) const ;
124  virtual void getVelocity(double const pos[4], double vel[4]) ;
125 
126 };
127 
128 #endif
double temperatureAtInnerRadius_
electron temperature at inner radius (K)
Definition: GyotoThickDisk.h:72
double densitySlope_
electron density r^{-densitySlope_}
Definition: GyotoThickDisk.h:74
A thick accretion disk described by its inner radius and the fwhm of the Gaussian factor affecting th...
Definition: GyotoThickDisk.h:59
#define GYOTO_OBJECT
Declare class::properties and class::getProperties()
Definition: GyotoObject.h:84
double alpha_veloparam_
alpha such that u^r = u^r_circ + (1-alpha)*(u^r_rad - u^r_circ)
Definition: GyotoThickDisk.h:69
virtual ThickDisk * clone() const
Cloner.
virtual void radiativeQ(double Inu[], double Taunu[], double const nu_em[], size_t nbnu, double dsem, state_t const &coord_ph, double const coord_obj[8]=NULL) const
emission and transmission together
double thickDiskZGaussianSigma_
Stdev of the Gaussian modulating the density along z in units of cylindrical radius.
Definition: GyotoThickDisk.h:67
double temperatureSlope_
electron temperature r^{-temperatureSlope_}
Definition: GyotoThickDisk.h:73
Thermal synchrotron spectrum.
#define GYOTO_OBJECT_THREAD_SAFETY
Declare virtual bool isThreadSafe() const.
Definition: GyotoObject.h:99
Astronomical objects defined bya a potential/distance.
double beta_veloparam_
beta such that Omega = Omega_circ + (1-beta)*(Omega_rad - Omega_circ)
Definition: GyotoThickDisk.h:70
virtual void getVelocity(double const pos[4], double vel[4])
Fluid velocity field.
double magnetizationParameter_
Pmagn/(ne mp c2)
Definition: GyotoThickDisk.h:75
Namespace for the Gyoto library.
Definition: GyotoAstrobj.h:43
Pointers performing reference counting.
Definition: GyotoProperty.h:45
I might listen to a Teller.
Definition: GyotoHooks.h:64
virtual SmartPointer< Metric::Generic > metric() const
Get the Metric gg_.
bool use_selfabsorption_
True if selfabs is used in radiative transfer.
Definition: GyotoThickDisk.h:68
Astronomical objects defined bya a potential/distance.
Definition: GyotoStandardAstrobj.h:84
double thickDiskInnerRadius_
Inner disk radius in M units.
Definition: GyotoThickDisk.h:66
Powerlaw synchrotron spectrum.
double numberDensityAtInnerRadius_cgs_
electron nb density at inner radius (cgs)
Definition: GyotoThickDisk.h:71