23 #ifndef O2SCL_NONREL_FERMION_H 24 #define O2SCL_NONREL_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> 40 #include <o2scl/fermion.h> 42 #ifndef DOXYGEN_NO_O2NS 116 O2SCL_ERR2(
"Function fermion_nonrel::pair_mu() not ",
122 O2SCL_ERR2(
"Function fermion_nonrel::pair_density() not ",
142 virtual const char *
type() {
return "fermion_nonrel"; }
146 #ifndef DOXYGEN_NO_O2NS 157 double solve_fun(
double x,
double nog,
double msT);
168 #ifndef DOXYGEN_NO_O2NS virtual void calc_mu_zerot(fermion &f)
Zero temperature fermions.
virtual int calc_density(fermion &f, double temper)
Calculate properties as function of density.
root * density_root
Solver to compute chemical potential from density.
virtual void pair_mu(fermion &f, double temper)
Calculate properties with antiparticles as function of chemical potential.
double solve_fun(double x, double nog, double msT)
Function to compute chemical potential from density.
Fermion with finite-temperature thermodynamics [abstract base].
virtual void calc_density_zerot(fermion &f)
Zero temperature fermions.
root_cern def_density_root
The default solver for calc_density().
virtual int pair_density(fermion &f, double temper)
Calculate properties with antiparticles as function of density.
virtual void nu_from_n(fermion &f, double temper)
Calculate effective chemical potential from density.
#define O2SCL_ERR2(d, d2, n)
virtual void calc_mu(fermion &f, double temper)
Calculate properties as function of chemical potential.
fermion_nonrel()
Create a nonrelativistic fermion with mass 'm' and degeneracy 'g'.
virtual const char * type()
Return string denoting type ("fermion_nonrel")
void set_density_root(root<> &rp)
Set the solver for use in calculating the chemical potential from the density.
Nonrelativistic fermion class.