23 #ifndef O2SCL_BOSON_EFF_H 24 #define O2SCL_BOSON_EFF_H 35 #include <boost/numeric/ublas/vector.hpp> 36 #include <boost/numeric/ublas/matrix.hpp> 38 #include <o2scl/constants.h> 39 #include <o2scl/funct.h> 40 #include <o2scl/mm_funct.h> 41 #include <o2scl/root.h> 42 #include <o2scl/mroot.h> 43 #include <o2scl/inte.h> 44 #include <o2scl/root_cern.h> 45 #include <o2scl/mroot_hybrids.h> 47 #include <o2scl/boson.h> 49 #ifndef DOXYGEN_NO_O2NS 160 virtual const char *
type() {
return "boson_eff"; }
162 #ifndef DOXYGEN_INTERNAL 187 int density_fun(
size_t nv,
const ubvector &x, ubvector &y,
197 #ifndef DOXYGEN_NO_O2NS void set_density_mroot(mroot<> &rp)
Set the solver for use in calculating the chemical potential from the density.
root_cern def_psi_root
The default solver for .
void set_psi_root(root<> &rp)
Set the solver for use in calculating .
boson_eff()
Create a boson with mass m and degeneracy g.
mroot * density_mroot
The solver for calc_density()
static const int cf_bosejel21
A set of coefficients from Johns96.
double parma
The parameter, .
virtual void pair_mu(boson &b, double temper)
Calculate thermodynamic properties with antiparticles as function of chemical potential.
int pair_density_fun(size_t nv, const ubvector &x, ubvector &y, boson &b, double T)
Fix density for pair_density()
static const int cf_bosejel34cons
The set of coefficients from Johns96 which retains better thermodynamic consistency.
int load_coefficients(int ctype)
Load coefficients for finite-temperature approximation.
virtual void calc_mu(boson &b, double temper)
Calculate thermodynamic properties as function of chemical potential.
int sizem
The number of coefficient rows.
ubmatrix Pmnb
The coefficients.
mroot_hybrids def_density_mroot
The default solver for calc_density() and pair_density()
root * psi_root
The solver to compute from .
int density_fun(size_t nv, const ubvector &x, ubvector &y, boson &b, double T)
Fix density for calc_density()
double fix_density
Temporary storage.
virtual void pair_density(boson &b, double temper)
Calculate thermodynamic properties with antiparticles as function of density.
virtual void calc_density(boson &b, double temper)
Calculate thermodynamic properties as function of density.
static const int cf_bosejel34
A set of coefficients from Johns96 (default)
Boson class from fitting method.
static const int cf_bosejel22
A set of coefficients from Johns96.
virtual const char * type()
Return string denoting type ("boson_eff")
double solve_fun(double x, double psi)
The function which solves for from .
int sizen
The number of coefficient columns.