23 #ifndef O2SCL_FERMION_DERIV_NR_H 24 #define O2SCL_FERMION_DERIV_NR_H 34 #include <o2scl/constants.h> 35 #include <o2scl/root_cern.h> 37 #include <o2scl/part_deriv.h> 39 #ifndef DOXYGEN_NO_O2NS 281 virtual const char *
type() {
return "fermion_deriv_nr"; };
285 #ifndef DOXYGEN_INTERNAL 302 #ifndef DOXYGEN_NO_O2NS
virtual int nu_from_n(fermion_deriv &f, double temper)
Calculate effective chemical potential from density.
virtual int calc_density(fermion_deriv &f, double temper)
Calculate properties as function of density.
A fermion with derivative information.
double flimit
The limit for the Fermi functions (default 20.0)
Compute properties of a fermion including derivatives [abstract base].
bool guess_from_nu
If true, use the present value of the chemical potential as a guess for the new chemical potential...
virtual const char * type()
Return string denoting type ("fermion_deriv_nr")
fermion_deriv unc
Storage for the most recently calculated uncertainties.
Equation of state for a nonrelativistic fermion.
root_cern def_density_root
The default solver for npen_density() and pair_density()
root * density_root
Solver to compute chemical potential from density.
double pair_fun(double x, fermion_deriv &f, double T)
Function to compute chemical potential from density when antiparticles are included.
virtual int calc_mu(fermion_deriv &f, double temper)
Calculate properties as function of chemical potential.
double solve_fun(double x, fermion_deriv &f, double T)
Function to compute chemical potential from density.
virtual int pair_mu(fermion_deriv &f, double temper)
Calculate properties with antiparticles as function of chemical potential.
virtual int pair_density(fermion_deriv &f, double temper)
Calculate properties with antiparticles as function of density.
fermion_deriv_nr()
Create a fermion with mass m and degeneracy g.
void set_density_root(root<> &rp)
Set the solver for use in calculating the chemical potential from the density.