Gyoto
GyotoSphericalAccretion.h
Go to the documentation of this file.
1
12/*
13 Copyright 2021 Frederic Vincent, Thibaut Paumard
14
15 This file is part of Gyoto.
16
17 Gyoto is free software: you can redistribute it and/or modify
18 it under the terms of the GNU General Public License as published by
19 the Free Software Foundation, either version 3 of the License, or
20 (at your option) any later version.
21
22 Gyoto is distributed in the hope that it will be useful,
23 but WITHOUT ANY WARRANTY; without even the implied warranty of
24 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 GNU General Public License for more details.
26
27 You should have received a copy of the GNU General Public License
28 along with Gyoto. If not, see <http://www.gnu.org/licenses/>.
29 */
30
31#ifndef __GyotoSphericalAccretion_H_
32#define __GyotoSphericalAccretion_H_
33
34#include <iostream>
35#include <fstream>
36#include <iomanip>
37
38namespace Gyoto{
39 namespace Astrobj { class SphericalAccretion; }
40}
41
45
58: public Astrobj::Standard,
59 public Hook::Listener
60{
62 private:
63 SmartPointer<Spectrum::ThermalSynchrotron> spectrumThermalSynch_;
71
72 // Constructors - Destructor
73 // -------------------------
74 public:
77
79
80 SphericalAccretion(const SphericalAccretion& ) ;
81 virtual SphericalAccretion* clone () const;
82
83 virtual ~SphericalAccretion() ;
84
85 // Accessors
86 // ---------
87 public:
88 void useSelfAbsorption(bool abs) ;
89 bool useSelfAbsorption() const;
90 void sphericalAccretionInnerRadius(double hh);
91 double sphericalAccretionInnerRadius() const;
92 double numberDensityAtInnerRadius() const;
93 double numberDensityAtInnerRadius(std::string const &unit) const;
94 void numberDensityAtInnerRadius(double ne);
95 void numberDensityAtInnerRadius(double dens, std::string const &unit);
96 void densitySlope(double ss);
97 double densitySlope()const;
98 void temperatureAtInnerRadius(double tt);
99 double temperatureAtInnerRadius()const;
100 void temperatureSlope(double ss);
101 double temperatureSlope()const;
102 void magnetizationParameter(double rr);
103 double magnetizationParameter()const;
104
105 public:
106 using Generic::metric;
107 virtual void metric(SmartPointer<Metric::Generic>);
108
109 virtual double operator()(double const coord[4]) ;
110
111 virtual void radiativeQ(double Inu[], double Taunu[],
112 double const nu_em[], size_t nbnu,
113 double dsem, state_t const &coord_ph,
114 double const coord_obj[8]=NULL) const ;
115 virtual void getVelocity(double const pos[4], double vel[4]) ;
116
117};
118
119#endif
Powerlaw synchrotron spectrum.
#define GYOTO_OBJECT_THREAD_SAFETY
Declare virtual bool isThreadSafe() const.
Definition GyotoObject.h:99
#define GYOTO_OBJECT
Declare class::properties and class::getProperties()
Definition GyotoObject.h:84
Astronomical objects defined bya a potential/distance.
Thermal synchrotron spectrum.
virtual SmartPointer< Metric::Generic > metric() const
Get the Metric gg_.
A spherically-symmetric accretion flow radially falling onto the central object.
Definition GyotoSphericalAccretion.h:60
double temperatureSlope_
electron temperature \propto z^temperatureSlope_
Definition GyotoSphericalAccretion.h:69
virtual SphericalAccretion * 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 magnetizationParameter_
Pmagn/(ne mp c2)
Definition GyotoSphericalAccretion.h:70
virtual SmartPointer< Metric::Generic > metric() const
Get the Metric gg_.
double numberDensityAtInnerRadius_cgs_
electron nb density at inner radius (cgs)
Definition GyotoSphericalAccretion.h:66
virtual void getVelocity(double const pos[4], double vel[4])
Fluid velocity field.
double densitySlope_
electron density \propto r^{-densitySlope_}
Definition GyotoSphericalAccretion.h:67
bool use_selfabsorption_
True if selfabs is used in radiative transfer.
Definition GyotoSphericalAccretion.h:64
double sphericalAccretionInnerRadius_
Inner radius of flow in M units.
Definition GyotoSphericalAccretion.h:65
double temperatureAtInnerRadius_
electron temperature at inner radius (K)
Definition GyotoSphericalAccretion.h:68
Astronomical objects defined bya a potential/distance.
Definition GyotoStandardAstrobj.h:87
I might listen to a Teller.
Definition GyotoHooks.h:64
Pointers performing reference counting.
Definition GyotoSmartPointer.h:135
Namespace for the Gyoto library.
Definition GyotoAstrobj.h:44