Public Member Functions | Public Attributes | List of all members
o2scl::nucleus Class Reference

A simple nucleus class. More...

#include <nucleus.h>

Inheritance diagram for o2scl::nucleus:
o2scl::part

Public Member Functions

 nucleus (const nucleus &p)
 Copy constructor.
 
nucleusoperator= (const nucleus &p)
 Copy construction with operator=()
 
- Public Member Functions inherited from o2scl::part
 part (const part &p)
 Copy constructor.
 
partoperator= (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 $ \mathrm{fm}^{-1} $)
 
double be
 Binding energy with a minus sign for bound nuclei (typically in $ \mathrm{fm}^{-1} $)
 
- Public Attributes inherited from o2scl::part
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)
 

Detailed Description

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.

Definition at line 55 of file nucleus.h.


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

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