|
Kariba
|
#include <Particles.hpp>
Public Member Functions | |
| 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 | 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 |
Template class for particle distributions This class contains members and methods that are used for thermal, non-thermal and mixed distributions
| kariba::Particles::Particles | ( | size_t | size | ) |
| double kariba::Particles::av_gamma | ( | ) |
| double kariba::Particles::av_gammasq | ( | ) |
| double kariba::Particles::av_p | ( | ) |
| double kariba::Particles::av_psq | ( | ) |
| double kariba::Particles::count_particles | ( | ) |
Simple numerical integrals /w trapeze method.
| double kariba::Particles::count_particles_energy | ( | ) |
| void kariba::Particles::gdens_differentiate | ( | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| void kariba::Particles::initialize_gdens | ( | ) |
Methods to set up energy space number density, as a function of momentum space number density
| void kariba::Particles::initialize_pdens | ( | ) |
Same as above but the other way around.
| void kariba::Particles::set_mass | ( | double | m | ) |
| void kariba::Particles::test_arrays | ( | ) |
simple method to check arrays; only meant for debugging
|
protected |
array of particle kinetic energies for each momentum
|
protected |
array of number density per unit volume, per unit gamma
|
protected |
array with differential of number density for radiation calculation
|
protected |
particle mass in grams
|
protected |
same as above but in keV, using electrons as "reference"
|
protected |
array of number density per unit volume, per unit momentum
|
protected |
array of particle momenta