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/fermion.h> 39 #ifndef DOXYGEN_NO_O2NS 293 std::shared_ptr<inte<> >
nit;
296 std::shared_ptr<inte<> >
dit;
302 virtual const char *
type() {
return "fermion_rel"; }
306 #ifndef DOXYGEN_INTERNAL 344 #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)
bool use_expansions
If true, use expansions for extreme conditions (default true)
double min_psi
The smallest value of for which integration is used.
std::shared_ptr< inte<> > nit
The non-degenerate integrator.
virtual void pair_mu(fermion &f, double temper)
Calculate properties with antiparticles as function of chemical potential.
Fermion with finite-temperature thermodynamics [abstract base].
double pair_fun(double x, fermion &f, double T, bool log_mode)
Solve for the chemical potential given the density with antiparticles.
virtual const char * type()
Return string denoting type ("fermion_rel")
std::shared_ptr< inte<> > dit
The degenerate integrator.
double entropy_fun(double u, fermion &f, double T)
The integrand for the entropy density for non-degenerate fermions.
std::shared_ptr< root<> > density_root
The solver for calc_density()
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.
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.