part Class Reference

Particle base class. More...

#include <part.h>

Inheritance diagram for part:

boson classical fermion eff_boson rel_boson nucleus sn_classical fermion_T nonrel_fermion_zerot eff_fermion nonrel_fermion quark rel_fermion sn_fermion sn_nr_fermion eff_quark eff_quark

Detailed Description

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 94 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 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
 True if the particle is non-interacting (default true).

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