All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
nucleus.h
Go to the documentation of this file.
1 /*
2  -------------------------------------------------------------------
3 
4  Copyright (C) 2006-2014, Andrew W. Steiner
5 
6  This file is part of O2scl.
7 
8  O2scl is free software; you can redistribute it and/or modify
9  it under the terms of the GNU General Public License as published by
10  the Free Software Foundation; either version 3 of the License, or
11  (at your option) any later version.
12 
13  O2scl is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  GNU General Public License for more details.
17 
18  You should have received a copy of the GNU General Public License
19  along with O2scl. If not, see <http://www.gnu.org/licenses/>.
20 
21  -------------------------------------------------------------------
22 */
23 #ifndef O2SCL_NUCLEUS_H
24 #define O2SCL_NUCLEUS_H
25 
26 /** \file nucleus.h
27  \brief File defining \ref o2scl::nucleus
28 */
29 
30 #include <o2scl/part.h>
31 
32 #ifndef DOXYGEN_NO_O2NS
33 namespace o2scl {
34 #endif
35 
36  /** \brief A simple nucleus class
37 
38  The variable part::m is typically used for the mass of the
39  nucleus with no electrons.
40 
41  The binding energy of the nucleus (\ref be) is typically defined
42  as the mass of the nucleus (without the electrons or their
43  binding energy) minus Z times the mass of the proton minus N
44  times the mass of the neutron.
45 
46  The mass excess (\ref mex) is defined as the mass of the nucleus
47  including the electron contribution (but not including the
48  electron binding energy) minus A times the mass of the atomic
49  mass unit.
50 
51  The variable \ref part::inc_rest_mass is set to \c false by
52  default, to insure that energies and chemical potentials do not
53  include the rest mass. This is typically appropriate for nuclei.
54  */
55  class nucleus : public part {
56 
57  public:
58 
59  nucleus();
60 
61  /// Proton number
62  int Z;
63 
64  /// Neutron number
65  int N;
66 
67  /// Baryon number
68  int A;
69 
70  /// Mass excess (typically in \f$ \mathrm{fm}^{-1} \f$)
71  double mex;
72 
73  /** \brief Binding energy with a minus sign for bound nuclei
74  (typically in \f$ \mathrm{fm}^{-1} \f$)
75  */
76  double be;
77 
78  };
79 
80 #ifndef DOXYGEN_NO_O2NS
81 }
82 #endif
83 
84 #endif
int A
Baryon number.
Definition: nucleus.h:68
int Z
Proton number.
Definition: nucleus.h:62
Particle base class.
Definition: part.h:71
double mex
Mass excess (typically in )
Definition: nucleus.h:71
double be
Binding energy with a minus sign for bound nuclei (typically in )
Definition: nucleus.h:76
A simple nucleus class.
Definition: nucleus.h:55
int N
Neutron number.
Definition: nucleus.h:65

Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).
Hosted at Get Object-oriented Scientific Computing
Lib at SourceForge.net. Fast, secure and Free Open Source software
downloads..