Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
o2scl::boson_rel Class Reference

Equation of state for a relativistic boson. More...

#include <boson_rel.h>

Public Member Functions

 boson_rel ()
 Create a boson with mass m and degeneracy g.
 
virtual void calc_mu (boson &b, double temper)
 Calculate properties as function of chemical potential.
 
virtual void calc_density (boson &b, double temper)
 Calculate properties as function of density.
 
virtual void pair_mu (boson &b, double temper)
 Calculate properties with antiparticles as function of chemical potential.
 
virtual void pair_density (boson &b, double temper)
 Calculate properties with antiparticles as function of density.
 
virtual void nu_from_n (boson &b, double temper)
 Calculate effective chemical potential from density.
 
void set_inte (inte<> &l_nit, inte<> &l_dit)
 Set degenerate and nondegenerate integrators.
 
void set_density_root (root<> &rp)
 Set the solver for use in calculating the chemical potential from the density.
 
virtual const char * type ()
 Return string denoting type ("boson_rel")
 

Public Attributes

root_cern def_density_root
 The default solver for calc_density().
 
inte_qagiu_gsl def_nit
 Default nondegenerate integrator.
 
inte_qag_gsl def_dit
 Default degenerate integrator.
 

Protected Member Functions

double density_fun (double u, boson &b, double T)
 Non-degenerate density integral.
 
double energy_fun (double u, boson &b, double T)
 Non-degenerate energy density integral.
 
double entropy_fun (double u, boson &b, double T)
 Non-degenerate entropy integral.
 
double deg_density_fun (double u, boson &b, double T)
 Degenerate density integral.
 
double deg_energy_fun (double u, boson &b, double T)
 Degenerate energy density integral.
 
double deg_entropy_fun (double u, boson &b, double T)
 Degenerate entropy integral.
 
double solve_fun (double x, boson &b, double T)
 Solve for the density in calc_density()
 

Protected Attributes

intenit
 The non-degenerate integrator.
 
intedit
 The degenerate integrator.
 
rootdensity_root
 The solver for calc_density()
 

Detailed Description

Todo:
Testing not completely finished.

Definition at line 52 of file boson_rel.h.


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

Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).