hfb_mass Class Reference

HFB Mass formula. More...

#include <nuclear_mass.h>

Inheritance diagram for hfb_mass:

nuclear_mass_disc nuclear_mass nuclear_mass_info

Detailed Description

HFB Mass formula.

Definition at line 1019 of file nuclear_mass.h.


Public Member Functions

 hfb_mass (size_t model=14)
 Create a new mass formula object using the specified model number.
virtual bool is_included (int Z, int N)
 Return false if the mass formula does not include specified nucleus.
virtual double mass_excess (int Z, int N)
 Given Z and N, return the mass excess in MeV.
hfb_mass_entry get_ZN (int l_Z, int l_N)
 Get the entry for the specified proton and neutron number.
bool is_loaded ()
 Verify that the constructor properly loaded the table.
double blank ()
 The value which corresponds to a blank entry.
virtual const char * type ()
 Return the type, "hfb_mass".

Data Fields

int n
 The number of table entries.
hfb_mass_entrymass
 The array containing the table.

Protected Attributes

bool loaded
 True if the table was successfully loaded.
int last
 The last table index for caching.

Constructor & Destructor Documentation

hfb_mass ( size_t  model = 14  ) 

Create a new mass formula object using the specified model number.

Valid values of model at present are 2, 8, and 14, corresponding to the HFB2 (Goriely02), HFB8 (Samyn04), and HFB14 (Goriely07). If a number other than these three is given, the error handler is called.


Member Function Documentation

hfb_mass_entry get_ZN ( int  l_Z,
int  l_N 
)

Get the entry for the specified proton and neutron number.

This method searches the table using a cached binary search algorithm. It is assumed that the table is sorted first by proton number and then by neutron number.


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

Documentation generated with Doxygen and provided under the GNU Free Documentation License. See License Information for details.

Project hosting provided by SourceForge.net Logo, O2scl Sourceforge Project Page