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"; }
63 extern thermo operator+(
const thermo &left,
const thermo &right);
67 extern thermo operator-(
const thermo &left,
const thermo &right);
101 part(
double mass=0.0,
double dof=0.0);
106 virtual void init(
double mass,
double dof);
130 virtual const char *
type() {
return "part"; }
136 extern thermo operator+(
const thermo &left,
const part &right);
140 extern thermo operator-(
const thermo &left,
const part &right);
142 #ifndef DOXYGEN_NO_O2NS
double nu
Effective chemical potential.
virtual const char * type()
Return string denoting type ("part")
double en
Entropy density.
part(double mass=0.0, double dof=0.0)
Make a particle of mass mass and degeneracy dof.
virtual void init(double mass, double dof)
Set the mass mass and degeneracy dof.
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)
virtual void anti(part &ap)
Make ap an anti-particle with the same mass and degeneracy.
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)