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_tl< fp_t >

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.

Public Member Functions

 nucleus (const nucleus &p)
 Copy constructor.
 
nucleusoperator= (const nucleus &p)
 Copy construction with operator=()
 
- Public Member Functions inherited from o2scl::part_tl< fp_t >
 part_tl (const part_tl &p)
 Copy constructor.
 
part_tloperator= (const part_tl &p)
 Copy construction with operator=()
 
 part_tl (fp_t mass=0.0, fp_t dof=0.0)
 Make a particle of mass mass and degeneracy dof.
 
virtual void init (fp_t mass, fp_t dof)
 Set the mass mass and degeneracy dof.
 
virtual void anti (part_tl &ax)
 Make ap an anti-particle with the same mass and degeneracy. More...
 
virtual const char * type ()
 Return string denoting type ("part_tl")
 

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_tl< fp_t >
fp_t g
 Degeneracy (e.g. spin and color if applicable)
 
fp_t m
 Mass.
 
fp_t n
 Number density.
 
fp_t ed
 Energy density.
 
fp_t pr
 Pressure.
 
fp_t mu
 Chemical potential.
 
fp_t en
 Entropy density.
 
fp_t ms
 Effective mass (Dirac unless otherwise specified)
 
fp_t 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)
 

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).