Particles and Nuclei Sub-Library: Version 0.910
Public Member Functions | Data Fields
part Class Reference

Particle base class. More...

#include <part.h>

Inheritance diagram for part:
boson fermion nucleus part_deriv quark fermion_deriv

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 92 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:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Friends

Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).

Get Object-oriented Scientific Computing
Lib at SourceForge.net. Fast, secure and Free Open Source software
downloads.