00001 /* 00002 ------------------------------------------------------------------- 00003 00004 Copyright (C) 2006, 2007, Andrew W. Steiner 00005 00006 This file is part of O2scl. 00007 00008 O2scl is free software; you can redistribute it and/or modify 00009 it under the terms of the GNU General Public License as published by 00010 the Free Software Foundation; either version 3 of the License, or 00011 (at your option) any later version. 00012 00013 O2scl is distributed in the hope that it will be useful, 00014 but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 GNU General Public License for more details. 00017 00018 You should have received a copy of the GNU General Public License 00019 along with O2scl. If not, see <http://www.gnu.org/licenses/>. 00020 00021 ------------------------------------------------------------------- 00022 */ 00023 #ifndef O2SCL_NUCLEUS_H 00024 #define O2SCL_NUCLEUS_H 00025 00026 #include <o2scl/classical.h> 00027 00028 #ifndef DOXYGENP 00029 namespace o2scl { 00030 #endif 00031 00032 /** 00033 \brief A simple nucleus class 00034 00035 The variable part::m is typically used for the mass of the 00036 nucleus with no electrons. 00037 00038 The binding energy of the nucleus is typically defined as the 00039 mass of the nucleus (without the electrons) minus Z times the mass 00040 of the proton minus N times the mass of the neutron. 00041 00042 The mass excess is defined as the mass of the nucleus including 00043 the electron contribution minus a times the mass of the 00044 atomic mass unit. 00045 00046 */ 00047 class nucleus : public classical { 00048 public: 00049 nucleus() { 00050 inc_rest_mass=false; 00051 } 00052 00053 /// Proton number 00054 int Z; 00055 /// Neutron number 00056 int N; 00057 /// Atomic number 00058 int A; 00059 /// Mass excess 00060 double mex; 00061 /// Binding energy (with a minus sign for bound nuclei) 00062 double be; 00063 }; 00064 00065 #ifndef DOXYGENP 00066 } 00067 #endif 00068 00069 #endif