A simple nucleus class. More...
#include <nucleus.h>
The variable part::m is typically used for the mass of the nucleus with no electrons.
The binding energy of the nucleus (be) is typically defined as the mass of the nucleus (without the electrons or their binding energy) minus Z times the mass of the proton minus N times the mass of the neutron.
The mass excess (mex) is defined as the mass of the nucleus including the electron contribution (but not including the electron binding energy) minus A times the mass of the atomic mass unit.
The variable part::inc_rest_mass is set to false
by default, to insure that energies and chemical potentials do not include the rest mass. This is typically appropriate for nuclei.
Public Member Functions | |
nucleus (const nucleus &p) | |
Copy constructor. | |
nucleus & | operator= (const nucleus &p) |
Copy construction with operator=() | |
![]() | |
part (const part &p) | |
Copy constructor. | |
part & | operator= (const part &p) |
Copy construction with operator=() | |
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 . | |
virtual void | anti (part &ap) |
Make ap an anti-particle with the same mass and degeneracy. More... | |
virtual const char * | type () |
Return string denoting type ("part") | |
Public Attributes | |
int | Z |
Proton number. | |
int | N |
Neutron number. | |
int | A |
Baryon number. | |
double | mex |
Mass excess (typically in ![]() | |
double | be |
Binding energy with a minus sign for bound nuclei (typically in ![]() | |
![]() | |
double | g |
Degeneracy (e.g. spin and color if applicable) | |
double | m |
Mass. | |
double | n |
Number density. | |
double | ed |
Energy density. | |
double | pr |
Pressure. | |
double | mu |
Chemical potential. | |
double | en |
Entropy density. | |
double | ms |
Effective mass (Dirac unless otherwise specified) | |
double | nu |
Effective chemical potential. | |
bool | inc_rest_mass |
If true, include the mass in the energy density and chemical potential (default true) | |
bool | non_interacting |
True if the particle is non-interacting (default true) | |
Documentation generated with Doxygen. Provided under the
GNU Free Documentation License (see License Information).