23 #ifndef O2SCL_REL_FERMION_H
24 #define O2SCL_REL_FERMION_H
34 #include <o2scl/constants.h>
35 #include <o2scl/mroot.h>
36 #include <o2scl/inte.h>
37 #include <o2scl/root_cern.h>
38 #include <o2scl/inte_qagiu_gsl.h>
39 #include <o2scl/inte_qag_gsl.h>
40 #include <o2scl/fermion_eff.h>
41 #include <o2scl/shared_ptr.h>
43 #ifndef DOXYGEN_NO_O2NS
303 virtual const char *
type() {
return "fermion_rel"; }
307 #ifndef DOXYGEN_INTERNAL
337 #ifndef DOXYGEN_NO_O2NS
double upper_limit_fac
The factor for the degenerate upper limits (default 20)
bool err_nonconv
If true, call the error handler when convergence fails (default true)
double deg_entropy_fac
A factor for the degenerate entropy integration (default 30)
double exp_limit
The limit for exponentials to ensure integrals are finite (default 200)
double min_psi
The smallest value of for which integration is used.
virtual void pair_mu(fermion &f, double temper)
Calculate properties with antiparticles as function of chemical potential.
Fermion with finite-temperature thermodynamics [abstract base].
virtual const char * type()
Return string denoting type ("fermion_rel")
o2_shared_ptr< inte<> >::type dit
The degenerate integrator.
o2_shared_ptr< root<> >::type density_root
The solver for calc_density()
double entropy_fun(double u, fermion &f, double T)
The integrand for the entropy density for non-degenerate fermions.
fermion unc
Storage for the uncertainty.
double deg_limit
The critical degeneracy at which to switch integration techniques (default 2)
Equation of state for a relativistic fermion.
virtual int nu_from_n(fermion &f, double temper)
Calculate effective chemical potential from density.
double deg_density_fun(double u, fermion &f, double T)
The integrand for the density for degenerate fermions.
double solve_fun(double x, fermion &f, double T)
Solve for the chemical potential given the density.
double deg_entropy_fun(double u, fermion &f, double T)
The integrand for the entropy density for degenerate fermions.
double energy_fun(double u, fermion &f, double T)
The integrand for the energy density for non-degenerate fermions.
virtual int calc_density(fermion &f, double temper)
Calculate properties as function of density.
double pair_fun(double x, fermion &f, double T)
Solve for the chemical potential given the density with antiparticles.
fermion_rel()
Create a fermion with mass m and degeneracy g.
virtual void calc_mu(fermion &f, double temper)
Calculate properties as function of chemical potential.
double deg_energy_fun(double u, fermion &f, double T)
The integrand for the energy density for degenerate fermions.
virtual int pair_density(fermion &f, double temper)
Calculate properties with antiparticles as function of density.
double density_fun(double u, fermion &f, double T)
The integrand for the density for non-degenerate fermions.
o2_shared_ptr< inte<> >::type nit
The non-degenerate integrator.