![]() |
Particles and Nuclei Sub-Library: Version 0.910
|
KTUY Mass formula.
#include <nuclear_mass.h>
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_entry * | mass |
The array containing the mass data of length ame::n. | |
int | last |
The last table index for caching. |
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.
Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).