Nonrelativistic fermion class. More...
#include <fermion_nonrel.h>
The effective mass computed by this class and stored in part_tl::ms is the Landau mass, not the Dirac mass, as computed by o2scl::fermion_rel_tl .
This class works with both true and false values for either part_tl::non_interacting or part_tl::inc_rest_mass.
Pressure is computed with
and entropy density with
These relations can be verified with an integration by parts. See, e.g. Callen85 pg. 403 or Landau80 pg. 164.
The functions pair_density() and pair_mu() have not been implemented and just call the error handler.
Definition at line 88 of file fermion_nonrel.h.
Public Member Functions | |
fermion_nonrel_tl () | |
Create a nonrelativistic fermion with mass 'm' and degeneracy 'g'. | |
virtual void | calc_mu_zerot (fermion &f) |
Zero temperature fermions. | |
virtual void | calc_density_zerot (fermion &f) |
Zero temperature fermions. | |
virtual void | calc_mu (fermion &f, fp_t temper) |
Calculate properties as function of chemical potential. | |
virtual int | calc_density (fermion &f, fp_t temper) |
Calculate properties as function of density. More... | |
virtual void | pair_mu (fermion &f, fp_t temper) |
Compute thermodynamics with antiparticles at fixed chemical potential (unimplemented) | |
virtual int | pair_density (fermion &f, fp_t temper) |
Compute thermodynamics with antiparticles at fixed density (unimplemented) | |
virtual void | nu_from_n (fermion &f, fp_t temper) |
Calculate effective chemical potential from density. | |
void | set_density_root (root<> &rp) |
Set the solver for use in calculating the chemical potential from the density. | |
virtual const char * | type () |
Return string denoting type ("fermion_nonrel") | |
fp_t | solve_fun (fp_t x, fp_t nog, fp_t msT) |
Function to compute chemical potential from density. More... | |
![]() | |
bool | calc_mu_ndeg_tlate (fermion_t &f, double temper, double prec, bool inc_antip) |
Calculate thermodynamic properties from the chemical potential using a nondegenerate expansion. | |
bool | calc_mu_deg_tlate (fermion_t &f, double temper, double prec) |
Calculate thermodynamic properties from the chemical potential using a degenerate expansion. | |
virtual bool | calc_mu_ndeg (fermion &f, double temper, double prec=1.0e-18, bool inc_antip=false) |
Non-degenerate expansion for fermions. More... | |
virtual bool | calc_mu_deg (fermion &f, double temper, double prec=1.0e-18) |
Degenerate expansion for fermions. More... | |
virtual void | calc_mu (fermion &f, double temper)=0 |
Calculate properties as function of chemical potential. | |
virtual int | calc_density (fermion &f, double temper)=0 |
Calculate properties as function of density. More... | |
virtual void | pair_mu (fermion &f, double temper)=0 |
Calculate properties with antiparticles as function of chemical potential. | |
virtual int | pair_density (fermion &f, double temper)=0 |
Calculate properties with antiparticles as function of density. More... | |
virtual void | massless_calc_mu (fermion &f, double temper) |
Finite temperature massless fermions. | |
virtual void | massless_calc_density (fermion &f, double temper) |
Finite temperature massless fermions. | |
virtual void | massless_pair_mu (fermion &f, double temper) |
Finite temperature massless fermions and antifermions. | |
virtual void | massless_pair_density (fermion &f, double temper) |
Finite temperature massless fermions and antifermions. More... | |
void | set_massless_root (root<> &rp) |
Set the solver for use in massless_calc_density() | |
void | ndeg_terms (size_t j, double tt, double xx, double m, bool inc_rest_mass, bool inc_antip, double &pterm, double &nterm, double &enterm) |
Compute a term in the nondegenerate expansion. | |
![]() | |
void | kf_from_density (fermion_tl< double > &f) |
Calculate the Fermi momentum from the density. More... | |
void | energy_density_zerot (fermion_tl< double > &f) |
Energy density at T=0 from o2scl::fermion_tl::kf and o2scl::part_tl::ms. More... | |
void | pressure_zerot (fermion_tl< double > &f) |
Pressure at T=0 from o2scl::fermion_tl::kf and o2scl::part_tl::ms. More... | |
Public Attributes | |
inte_t | integ |
Object for Fermi-Dirac integrals. | |
root_cern | def_density_root |
The default solver for calc_density(). | |
![]() | |
root_cern | def_massless_root |
The default solver for massless_calc_density() More... | |
Protected Attributes | |
root * | density_root |
Solver to compute chemical potential from density. | |
![]() | |
root * | massless_root |
A pointer to the solver for massless fermions. | |
![]() | |
double | pi |
Desc. | |
double | pi2 |
Desc. | |
Private Member Functions | |
fermion_nonrel_tl (const fermion_nonrel_tl &) | |
fermion_nonrel_tl & | operator= (const fermion_nonrel_tl &) |
Additional Inherited Members | |
![]() | |
double | massless_solve_fun (double x, fermion &f, double temper) |
Solve for the chemical potential for massless fermions. | |
|
inlinevirtual |
If the density is zero, this function just sets part::mu, part::nu, part::ed, part::pr, and part::en to zero and returns without calling the error handler (even though at zero density and finite temperature, the chemical potentials formally are equal to ).
Definition at line 222 of file fermion_nonrel.h.
|
inline |
Variable nog
is the target baryon density divided by the spin degeneracy, and msT
is the effective mass times the temperature.
Definition at line 416 of file fermion_nonrel.h.
Documentation generated with Doxygen. Provided under the
GNU Free Documentation License (see License Information).