Class boson_rel_tl (o2scl)

O2scl : Class List

template<class be_inte_t = bessel_K_exp_integ_gsl, class fp_t = double>
class boson_rel_tl : public o2scl::boson_thermo_tl<bessel_K_exp_integ_gsl, double>

Equation of state for a relativistic boson.

Todo

  • In class boson_rel: Testing not completely finished.

Public Functions

inline boson_rel_tl()

Create a boson with mass m and degeneracy g.

inline virtual ~boson_rel_tl()
inline virtual void calc_mu(boson_tl<fp_t> &b, fp_t temper)

Calculate properties as function of chemical potential.

inline virtual void calc_density(boson_tl<fp_t> &b, fp_t temper)

Calculate properties as function of density.

inline virtual void calc_max_density(boson &b, fp_t temper)

Calculate the maximum density as a function of temperature.

inline virtual void pair_mu(boson_tl<fp_t> &b, fp_t temper)

Calculate properties with antiparticles as function of chemical potential.

inline virtual void pair_density(boson_tl<fp_t> &b, fp_t temper)

Calculate properties with antiparticles as function of density.

inline virtual void nu_from_n(boson &b, fp_t temper)

Calculate effective chemical potential from density.

inline void set_inte(inte<> &l_nit, inte<> &l_dit)

Set degenerate and nondegenerate integrators.

inline void set_density_mroot(mroot<> &rp)

Set the solver for use in calculating the chemical potential from the density.

inline virtual const char *type()

Return string denoting type (“boson_rel”)

Public Members

fp_t pi2

Internal value of pi squared for convenience.

mroot_hybrids def_density_mroot

The default solver for calc_density().

inte_qagiu_gsl def_nit

Default nondegenerate integrator.

inte_qag_gsl def_dit

Default degenerate integrator.

bool verify_ti

If true, verify the thermodynamic identity.

int verbose

Verbosity parameter.

bool use_expansions

Verbosity parameter.

fp_t deg_limit
fp_t upper_limit_fac

Protected Functions

inline fp_t density_fun(fp_t u, boson &b, fp_t T)

Non-degenerate density integral.

inline fp_t energy_fun(fp_t u, boson &b, fp_t T)

Non-degenerate energy density integral.

inline fp_t entropy_fun(fp_t u, boson &b, fp_t T)

Non-degenerate entropy integral.

inline fp_t deg_density_fun(fp_t k, boson_tl<fp_t> &b, fp_t T)

Degenerate density integral.

inline fp_t deg_energy_fun(fp_t k, boson_tl<fp_t> &b, fp_t T)

Degenerate energy density integral.

inline fp_t deg_entropy_fun(fp_t k, boson_tl<fp_t> &b, fp_t T)

Degenerate entropy integral.

inline int solve_fun(size_t nv, const ubvector &x, ubvector &y, fp_t density, boson_tl<fp_t> &b, fp_t T)

Solve for the density in calc_density()

inline int pair_density_fun(size_t nv, const ubvector &x, ubvector &y, fp_t density, boson_tl<fp_t> &b, fp_t T)

Solve for the density in pair_density()

Protected Attributes

inte *nit

The non-degenerate integrator.

inte *dit

The degenerate integrator.

mroot *density_mroot

The solver for calc_density()