Kariba
Loading...
Searching...
No Matches
kariba::ShSDisk Class Reference

Class Shakura-Sunyeav disk, inherited from Radiation.hpp. More...

#include <ShSDisk.hpp>

Inheritance diagram for kariba::ShSDisk:
kariba::Radiation

Public Member Functions

 ShSDisk (size_t size=50)
 
virtual double hdisk () const
 
virtual double tin () const
 
virtual double rin () const
 
virtual double lum () const
 
virtual void disk_spectrum ()
 
virtual void cover_disk (double f)
 
virtual double total_luminosity ()
 
virtual void set_mbh (double M)
 
virtual void set_rin (double R)
 Note: for disk r is inner radius, z is the outer radius, both are input in cm.
 
virtual void set_rout (double R)
 
virtual void set_luminosity (double L)
 
virtual void set_tin_k (double T)
 
virtual void set_tin_kev (double T)
 
virtual void test ()
 
- Public Member Functions inherited from kariba::Radiation
 Radiation (size_t size)
 
virtual const std::vector< double > & get_energy () const
 
virtual const std::vector< double > & get_nphot () const
 
virtual const std::vector< double > & get_energy_obs () const
 
virtual const std::vector< double > & get_nphot_obs () const
 
virtual size_t get_size () const
 
virtual double get_volume () const
 
virtual double integrated_luminosity (double numin, double numax)
 
virtual void set_beaming (double theta, double speed, double doppler)
 Methods to set viewing angle, beaming and geometry of emission region.
 
virtual void set_inclination (double theta)
 
virtual void set_geometry (const std::string &geom, double l1, double l2)
 
virtual void set_geometry (const std::string &geom, double l1)
 
virtual void set_counterjet (bool flag)
 Method to include a counterjet in cyclosycnchrotron/Compton classes.
 
virtual void test_arrays ()
 Simple method to check arrays; only meant for debugging.
 

Protected Attributes

double Tin
 Disk temperature at R=Rin in Kev.
 
double Mbh
 
double Rg
 Black hole mass in solar masses.
 
double Ldisk
 Disk luminosity in Eddington units.
 
double Hratio
 
- Protected Attributes inherited from kariba::Radiation
std::vector< double > en_phot
 array of photon energies
 
std::vector< double > num_phot
 array of number of photons in units of erg/s/Hz
 
std::vector< double > en_phot_obs
 same as above but in observer frame
 
std::vector< double > num_phot_obs
 same as above but in observer frame
 
double r
 
double z
 Dimensions of emitting region.
 
double vol
 Volume of emitting region.
 
double beta
 speed of the emitting region
 
double dopfac
 
double angle
 Viewing angle/Doppler factor of emitting region.
 
double dopnum
 Doppler boosting exponent, depends on geometry.
 
bool counterjet
 boolean switch if user wants to include counterjet emission
 
std::string geometry
 string to track geometry of emitting region
 

Friends

double disk_int (double nu, void *p)
 

Detailed Description

Class Shakura-Sunyeav disk, inherited from Radiation.hpp.

Constructor & Destructor Documentation

◆ ShSDisk()

kariba::ShSDisk::ShSDisk ( size_t  size = 50)

Constructor for the disk. No input parameters because the sized of the arrays is set automatically, and every other property needs to be handled by the setters below

Member Function Documentation

◆ cover_disk()

void kariba::ShSDisk::cover_disk ( double  f)
virtual

this method removes a fraction f from the observed disk luminosity, assuming that it was absorbed and reprocessed into some other unspecified radiative mechanism

◆ disk_spectrum()

void kariba::ShSDisk::disk_spectrum ( )
virtual

◆ hdisk()

virtual double kariba::ShSDisk::hdisk ( ) const
inlinevirtual

◆ lum()

virtual double kariba::ShSDisk::lum ( ) const
inlinevirtual

◆ rin()

virtual double kariba::ShSDisk::rin ( ) const
inlinevirtual

◆ set_luminosity()

void kariba::ShSDisk::set_luminosity ( double  L)
virtual

NOTE: the constant factor to go between inner temperature Tin and disk lunminosity Ldisk is 2 because the model uses the zero torque inner boundary condition, Kubota et al. 1998, hence the factor 2 rather than 4pi when converting between luminosity and temperature

◆ set_mbh()

void kariba::ShSDisk::set_mbh ( double  M)
virtual

◆ set_rin()

void kariba::ShSDisk::set_rin ( double  R)
virtual

Note: for disk r is inner radius, z is the outer radius, both are input in cm.

◆ set_rout()

void kariba::ShSDisk::set_rout ( double  R)
virtual

◆ set_tin_k()

void kariba::ShSDisk::set_tin_k ( double  T)
virtual

◆ set_tin_kev()

void kariba::ShSDisk::set_tin_kev ( double  T)
virtual

◆ test()

void kariba::ShSDisk::test ( )
virtual

◆ tin()

virtual double kariba::ShSDisk::tin ( ) const
inlinevirtual

◆ total_luminosity()

double kariba::ShSDisk::total_luminosity ( )
virtual

Simple integration method to integrate num_phot_obs and get the total luminosity of the disk

Friends And Related Symbol Documentation

◆ disk_int

double disk_int ( double  nu,
void *  p 
)
friend

return SD spectrum over a given radius, frequency to be integrated over radius

Member Data Documentation

◆ Hratio

double kariba::ShSDisk::Hratio
protected

Disk aspect ratio; TODO test with constant hbb or with hbb varying with disk size. Also test with just one Comptonization zone, and with one up to hbb(Rin) and another up to the end of the nozzle

◆ Ldisk

double kariba::ShSDisk::Ldisk
protected

Disk luminosity in Eddington units.

◆ Mbh

double kariba::ShSDisk::Mbh
protected

◆ Rg

double kariba::ShSDisk::Rg
protected

Black hole mass in solar masses.

◆ Tin

double kariba::ShSDisk::Tin
protected

Disk temperature at R=Rin in Kev.


The documentation for this class was generated from the following files: