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

Class for thermal particles. ndens is number density per unit momentum. More...

#include <Thermal.hpp>

Inheritance diagram for kariba::Thermal:
kariba::Particles

Public Member Functions

 Thermal (size_t size)
 Class constructor to initialize object.
 
void set_p ()
 Method to initialize momentum array a with default interval.
 
void set_ndens ()
 
void set_temp_kev (double T)
 
void set_norm (double n)
 
double K2 (double x)
 Evaluate Bessel function as in old agnjet.
 
void test ()
 simple method to check quantities.
 
- Public Member Functions inherited from kariba::Particles
 Particles (size_t size)
 
void set_mass (double m)
 
void initialize_gdens ()
 
void initialize_pdens ()
 Same as above but the other way around.
 
void gdens_differentiate ()
 
const std::vector< double > & get_p () const
 
const std::vector< double > & get_pdens () const
 
const std::vector< double > & get_gamma () const
 
const std::vector< double > & get_gdens () const
 
const std::vector< double > & get_gdens_diff () const
 
double count_particles ()
 Simple numerical integrals /w trapeze method.
 
double count_particles_energy ()
 
double av_p ()
 
double av_gamma ()
 
double av_psq ()
 
double av_gammasq ()
 
void test_arrays ()
 simple method to check arrays; only meant for debugging
 

Protected Attributes

double Temp
 
double thnorm
 
double theta
 
- Protected Attributes inherited from kariba::Particles
double mass_gr
 particle mass in grams
 
double mass_kev
 same as above but in keV, using electrons as "reference"
 
std::vector< double > p
 array of particle momenta
 
std::vector< double > ndens
 array of number density per unit volume, per unit momentum
 
std::vector< double > gamma
 array of particle kinetic energies for each momentum
 
std::vector< double > gdens
 array of number density per unit volume, per unit gamma
 
std::vector< double > gdens_diff
 

Detailed Description

Class for thermal particles. ndens is number density per unit momentum.

Constructor & Destructor Documentation

◆ Thermal()

kariba::Thermal::Thermal ( size_t  size)

Class constructor to initialize object.

Member Function Documentation

◆ K2()

double kariba::Thermal::K2 ( double  x)

Evaluate Bessel function as in old agnjet.

◆ set_ndens()

void kariba::Thermal::set_ndens ( )

Method to set differential electron number density from known temperature, normalization, and momentum array

◆ set_norm()

void kariba::Thermal::set_norm ( double  n)

◆ set_p()

void kariba::Thermal::set_p ( )

Method to initialize momentum array a with default interval.

◆ set_temp_kev()

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

methods to set the temperature and normalization. NOTE: temperature must be in ergs, no factor kb

◆ test()

void kariba::Thermal::test ( )

simple method to check quantities.

Member Data Documentation

◆ Temp

double kariba::Thermal::Temp
protected

◆ theta

double kariba::Thermal::theta
protected

◆ thnorm

double kariba::Thermal::thnorm
protected

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