GyotoSphericalAccretion.h
Go to the documentation of this file.
/*
Copyright 2021 Frederic Vincent, 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 __GyotoSphericalAccretion_H_
#define __GyotoSphericalAccretion_H_
#include <iostream>
#include <fstream>
#include <iomanip>
namespace Gyoto{
namespace Astrobj { class SphericalAccretion; }
}
#include <GyotoStandardAstrobj.h>
#include <GyotoKappaDistributionSynchrotronSpectrum.h>
#include <GyotoThermalSynchrotronSpectrum.h>
class Gyoto::Astrobj::SphericalAccretion
: public Astrobj::Standard,
public Hook::Listener
{
friend class Gyoto::SmartPointer<Gyoto::Astrobj::SphericalAccretion>;
private:
SmartPointer<Spectrum::ThermalSynchrotron> spectrumThermalSynch_;
bool use_selfabsorption_;
double sphericalAccretionInnerRadius_;
double numberDensityAtInnerRadius_cgs_;
double densitySlope_;
double temperatureAtInnerRadius_;
double temperatureSlope_;
double magnetizationParameter_;
// Constructors - Destructor
// -------------------------
public:
GYOTO_OBJECT;
GYOTO_OBJECT_THREAD_SAFETY;
SphericalAccretion();
SphericalAccretion(const SphericalAccretion& ) ;
virtual SphericalAccretion* clone () const;
virtual ~SphericalAccretion() ;
// Accessors
// ---------
public:
void useSelfAbsorption(bool abs) ;
bool useSelfAbsorption() const;
void sphericalAccretionInnerRadius(double hh);
double sphericalAccretionInnerRadius() const;
double numberDensityAtInnerRadius() const;
double numberDensityAtInnerRadius(std::string const &unit) const;
void numberDensityAtInnerRadius(double ne);
void numberDensityAtInnerRadius(double dens, std::string const &unit);
void densitySlope(double ss);
double densitySlope()const;
void temperatureAtInnerRadius(double tt);
double temperatureAtInnerRadius()const;
void temperatureSlope(double ss);
double temperatureSlope()const;
void magnetizationParameter(double rr);
double magnetizationParameter()const;
public:
using Generic::metric;
virtual void metric(SmartPointer<Metric::Generic>);
virtual double operator()(double const coord[4]) ;
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 ;
virtual void getVelocity(double const pos[4], double vel[4]) ;
};
#endif
GyotoKappaDistributionSynchrotronSpectrum.h
Powerlaw synchrotron spectrum.
GYOTO_OBJECT
#define GYOTO_OBJECT
Declare class::properties and class::getProperties().
Definition GyotoObject.h:84
GyotoStandardAstrobj.h
Astronomical objects defined bya a potential/distance.
GyotoThermalSynchrotronSpectrum.h
Thermal synchrotron spectrum.
Gyoto::Astrobj::Generic::metric
virtual SmartPointer< Metric::Generic > metric() const
Get the Metric gg_.
Gyoto::Astrobj::SphericalAccretion
A spherically-symmetric accretion flow radially falling onto the central object.
Definition GyotoSphericalAccretion.h:60
Gyoto::Astrobj::SphericalAccretion::temperatureSlope_
double temperatureSlope_
electron temperature \propto z^temperatureSlope_
Definition GyotoSphericalAccretion.h:69
Gyoto::Astrobj::SphericalAccretion::clone
virtual SphericalAccretion * clone() const
Cloner.
Gyoto::Astrobj::SphericalAccretion::radiativeQ
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
Gyoto::Astrobj::SphericalAccretion::magnetizationParameter_
double magnetizationParameter_
Pmagn/(ne mp c2).
Definition GyotoSphericalAccretion.h:70
Gyoto::Astrobj::SphericalAccretion::numberDensityAtInnerRadius_cgs_
double numberDensityAtInnerRadius_cgs_
electron nb density at inner radius (cgs)
Definition GyotoSphericalAccretion.h:66
Gyoto::Astrobj::SphericalAccretion::SphericalAccretion
SphericalAccretion()
Standard constructor.
Gyoto::Astrobj::SphericalAccretion::getVelocity
virtual void getVelocity(double const pos[4], double vel[4])
Fluid velocity field.
Gyoto::Astrobj::SphericalAccretion::densitySlope_
double densitySlope_
electron density \propto r^{-densitySlope_}
Definition GyotoSphericalAccretion.h:67
Gyoto::Astrobj::SphericalAccretion::use_selfabsorption_
bool use_selfabsorption_
True if selfabs is used in radiative transfer.
Definition GyotoSphericalAccretion.h:64
Gyoto::Astrobj::SphericalAccretion::sphericalAccretionInnerRadius_
double sphericalAccretionInnerRadius_
Inner radius of flow in M units.
Definition GyotoSphericalAccretion.h:65
Gyoto::Astrobj::SphericalAccretion::temperatureAtInnerRadius_
double temperatureAtInnerRadius_
electron temperature at inner radius (K)
Definition GyotoSphericalAccretion.h:68
Gyoto::Astrobj::SphericalAccretion::metric
virtual void metric(SmartPointer< Metric::Generic >)
Set the Metric gg_.
Gyoto::Astrobj::Standard
Astronomical objects defined bya a potential/distance.
Definition GyotoStandardAstrobj.h:87
Gyoto::Hook::Listener
I might listen to a Teller.
Definition GyotoHooks.h:64
Gyoto::SmartPointer
Pointers performing reference counting.
Definition GyotoSmartPointer.h:135
Gyoto::Astrobj
Access to astronomical objects.
Definition GyotoAstrobj.h:49
Gyoto
Namespace for the Gyoto library.
Definition GyotoAstrobj.h:44