Particles and Nuclei Sub-Library: Version 0.910
Public Member Functions | Protected Attributes
mnmsk_mass Class Reference

Mass formula from Moller, Nix, Myers, Swiatecki and Kratz. More...

#include <nuclear_mass.h>

Inheritance diagram for mnmsk_mass:
nuclear_mass_disc nuclear_mass nuclear_mass_info mnmsk_mass_exp

Detailed Description

This is based on the tables given in Moller95 and Moller97.

Note:
This class requires data stored in an HDF file and thus requires HDF support for normal usage.

The data containing an object of type moller_mass_entry for 8979 nuclei is automatically loaded by the constructor. If the file (nucmass/mnmsk.o2) is not found, then is_loaded() will return false and all calls to get_ZN() will return an object with N=Z=0.

There are several entries in the original table which are blank because they are in some way not known, measured, or computable. To distinguish these values from zero, blank entries have been replaced by the number 1.0e99. For convenience, this value is returned by blank().

Definition at line 816 of file nuclear_mass.h.

Public Member Functions

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.
mnmsk_mass_entry get_ZN (int l_Z, int l_N)
 Get the entry for the specified proton and neutron number.
double blank ()
 The value which corresponds to a blank entry.
double neither ()
 Neither beta+ or beta- is possible.
double beta_stable ()
 The value which corresponds to a blank entry.
double beta_plus_and_minus ()
 Both beta+ and beta- are possible.
double greater_100 ()
 The value is greater than 100.
double very_large ()
 The value is greater than $ 10^{20} $.
virtual const char * type ()
 Return the type, "mnmsk_mass".
int set_data (int n_mass, mnmsk_mass_entry *m, std::string ref)
 Set data.

Protected Attributes

int n
 The number of entries (about 3000).
std::string reference
 The reference for the original data.
mnmsk_mass_entrymass
 The array containing the mass data of length ame::n.
int last
 The last table index for caching.

Member Function Documentation

mnmsk_mass_entry mnmsk_mass::get_ZN ( int  l_Z,
int  l_N 
)

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.

int mnmsk_mass::set_data ( int  n_mass,
mnmsk_mass_entry m,
std::string  ref 
)

This function is used by the HDF I/O routines.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Friends

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

Get Object-oriented Scientific Computing
Lib at SourceForge.net. Fast, secure and Free Open Source software
downloads.