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

Class black body photons, inherited from Radiation.hh. More...

#include <BBody.hpp>

Inheritance diagram for kariba::BBody:
kariba::Radiation

Public Member Functions

 BBody (size_t size=40)
 
void set_temp_kev (double T)
 Methods to set BB quantities.
 
void set_temp_k (double T)
 
void set_temp_hz (double nu)
 
void set_lum (double L)
 
void bb_spectrum ()
 Method to set BB spectrum.
 
double temp_kev () const
 
double temp_k () const
 
double temp_hz () const
 
double lum () const
 
double norm () const
 
double Urad (double d) const
 
void test ()
 
- Public Member Functions inherited from kariba::Radiation
 Radiation (size_t size)
 
const std::vector< double > & get_energy () const
 
const std::vector< double > & get_nphot () const
 
const std::vector< double > & get_energy_obs () const
 
const std::vector< double > & get_nphot_obs () const
 
size_t get_size () const
 
double get_volume () const
 
double integrated_luminosity (double numin, double numax)
 
void set_beaming (double theta, double speed, double doppler)
 Methods to set viewing angle, beaming and geometry of emission region.
 
void set_inclination (double theta)
 
void set_geometry (const std::string &geom, double l1, double l2)
 
void set_geometry (const std::string &geom, double l1)
 
void set_counterjet (bool flag)
 Method to include a counterjet in cyclosycnchrotron/Compton classes.
 
void test_arrays ()
 Simple method to check arrays; only meant for debugging.
 

Protected Attributes

double Tbb
 
double Lbb
 
double normbb
 
- 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
 

Detailed Description

Class black body photons, inherited from Radiation.hh.

Constructor & Destructor Documentation

◆ BBody()

kariba::BBody::BBody ( size_t  size = 40)

Member Function Documentation

◆ bb_spectrum()

void kariba::BBody::bb_spectrum ( )

Method to set BB spectrum.

◆ lum()

double kariba::BBody::lum ( ) const

◆ norm()

double kariba::BBody::norm ( ) const

◆ set_lum()

void kariba::BBody::set_lum ( double  L)

◆ set_temp_hz()

void kariba::BBody::set_temp_hz ( double  nu)

◆ set_temp_k()

void kariba::BBody::set_temp_k ( double  T)

◆ set_temp_kev()

void kariba::BBody::set_temp_kev ( double  T)

Methods to set BB quantities.

◆ temp_hz()

double kariba::BBody::temp_hz ( ) const

◆ temp_k()

double kariba::BBody::temp_k ( ) const

◆ temp_kev()

double kariba::BBody::temp_kev ( ) const

Methods to return BB temperature, luminosity, energy density at a given distance d (or for a given radius d of the source)

◆ test()

void kariba::BBody::test ( )

◆ Urad()

double kariba::BBody::Urad ( double  d) const

Member Data Documentation

◆ Lbb

double kariba::BBody::Lbb
protected

◆ normbb

double kariba::BBody::normbb
protected

◆ Tbb

double kariba::BBody::Tbb
protected

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