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

KTUY Mass formula.

#include <nuclear_mass.h>

Inheritance diagram for ktuy_mass:
nuclear_mass_disc nuclear_mass nuclear_mass_info

Detailed Description

Definition at line 1208 of file nuclear_mass.h.

Public Member Functions

 ktuy_mass (std::string model="05", bool external=false)
 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.
ktuy_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.
virtual const char * type ()
 Return the type, "ktuy_mass".
int get_nentries ()
 Return number of entries.

Protected Attributes

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

Member Function Documentation

ktuy_mass_entry ktuy_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.


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.