29 #include <o2scl/constants.h> 30 #include <o2scl/inte.h> 31 #include <o2scl/funct.h> 32 #include <o2scl/mroot.h> 38 #ifndef DOXYGEN_NO_O2NS 57 const char *
type() {
return "thermo"; }
155 part(
double mass=0.0,
double dof=0.0);
160 virtual void init(
double mass,
double dof);
181 virtual void anti(
part &ap);
184 virtual const char *
type() {
return "part"; }
196 #ifndef DOXYGEN_NO_O2NS
thermo operator+(const thermo &left, const thermo &right)
Addition operator.
part(const part &p)
Copy constructor.
part & operator=(const part &p)
Copy construction with operator=()
thermo operator-(const thermo &left, const thermo &right)
Subtraction operator.
double nu
Effective chemical potential.
virtual const char * type()
Return string denoting type ("part")
thermo & operator=(const thermo &t)
Copy construction with operator=()
thermo(const thermo &t)
Copy constructor.
double en
Entropy density.
double mu
Chemical potential.
double ms
Effective mass (Dirac unless otherwise specified)
A class holding some useful thermodynamical variables (energy density, pressure, entropy density) ...
const char * type()
Return string denoting type ("thermo")
bool non_interacting
True if the particle is non-interacting (default true)
bool inc_rest_mass
If true, include the mass in the energy density and chemical potential (default true) ...
double g
Degeneracy (e.g. spin and color if applicable)