part Class Reference

#include <part.h>

Inheritance diagram for part:

boson fermion classical deriv_boson eff_boson rel_boson classical deriv_fermion eff_fermion nonrel_fermion quark rel_fermion

Detailed Description

Particle base class.

Calculate the properties of particles from their chemical potential (calc_mu() and pair_mu()) or from the density (calc_density() and pair_density()).

When non-interacting is false, the thermodynamic integrals need both a value of "mu" and "nu". "nu" is an effective chemical potential which appears in the argument of the exponential of the Fermi-function.

Keep in mind, that the pair functions use anti(), which assumes that nu -> -nu and mu -> -mu for the anti-particles, which might not be true for interacting particles. When non-interacting is true, then "ms" is set equal to "m", and "nu" is set equal to "mu", everywhere.

The "density" functions use the value of nu (or mu when non_interacting is true) for an initial guess. Zero is very likely a bad guess, but these functions will not warn you about this.

Definition at line 100 of file part.h.


Public Member Functions

 part (double m=0.0, double g=0.0)
 make a particle of mass m and degeneracy g.
virtual int init (double m, double g)
 Set the mass m and degeneracy g.
virtual int calc_mu (const double temper)
 Calculate properties as function of chemical potential.
virtual int calc_density (const double temper)
 Calculate properties as function of density.
virtual int pair_mu (const double temper)
 Calculate properties with antiparticles as function of chemical potential.
virtual int pair_density (const double temper)
 Calculate properties with antiparticles as function of density.
virtual int anti (part &ax)
 Make an anti-particle.
virtual const char * type ()
 Return string denoting type ("part").

Data Fields

double g
 degeneracy
double m
 mass
double n
 density
double ed
 energy density
double pr
 pressure
double mu
 chemical potential
double en
 entropy
double ms
 effective mass (Dirac unless otherwise specified)
double nu
 effective chemical potential
bool inc_rest_mass
 derivative of energy with respect to effective mass
bool non_interacting
 When this is true, nu and ms are set equal to mu and m by calc_mu(), etc.. (default true).
std::string name
 The name usually defaults to the class name.

The documentation for this class was generated from the following file:

Documentation generated with Doxygen and provided under the GNU Free Documentation License. See License Information for details.

Project hosting provided by SourceForge.net Logo, O2scl Sourceforge Project Page