23 #ifndef O2SCL_DZ_MASS_H
24 #define O2SCL_DZ_MASS_H
30 #include <boost/numeric/ublas/vector.hpp>
31 #include <boost/numeric/ublas/matrix.hpp>
33 #include <o2scl/nucmass.h>
34 #include <o2scl/tensor.h>
36 #ifndef DOXYGEN_NO_O2NS
73 virtual const char *
type() {
return "nucmass_dz_table"; }
78 #ifndef DOXYGEN_INTERNAL
132 #ifndef DOXYGEN_INTERNAL
198 virtual const char *
type() {
return "nucmass_dz_fit"; }
201 virtual int fit_fun(
size_t nv,
const ubvector &x);
204 virtual int guess_fun(
size_t nv, ubvector &x);
290 #ifndef DOXYGEN_INTERNAL
299 ubvector dyda, fyda, fyd0, onps, oei, dei, op2, ym, op1;
318 virtual const char *
type() {
return "nucmass_dz_fit_33"; }
321 virtual int fit_fun(
size_t nv,
const ubvector &x);
324 virtual int guess_fun(
size_t nv, ubvector &x);
355 #ifndef DOXYGEN_NO_O2NS
virtual int fit_fun(size_t nv, const ubvector &x)
Fix parameters from an array for fitting.
int get_nentries()
Return number of entries.
bool is_loaded()
Verify that the constructor properly loaded the table.
virtual bool is_included(int Z, int N)
Return false if the mass formula does not include specified nucleus.
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.
virtual double mass_excess_d(double Z, double N)
Given Z and N, return the mass excess in MeV.
virtual bool is_included(int Z, int N)
Return false if the mass formula does not include specified nucleus.
nucmass_dz_table(std::string model="96", bool external=false)
Create a new mass formula object.
int n
The total number of entries.
virtual const char * type()
Return the type, "nucmass_dz_table".
Duflo-Zuker mass formula from tables.
table data
Table containing the data.
virtual double binding_energy_d(double Z, double N)
Return the binding energy in MeV.
virtual int guess_fun(size_t nv, ubvector &x)
Fill array with guess from present values for fitting.
virtual double mass_excess(int Z, int N)
Given Z and N, return the mass excess in MeV.
std::string reference
The reference for the original data.
A nuclear mass formula for dense matter.
virtual double mass_excess(int Z, int N)
Given Z and N, return the mass excess in MeV.
The 10-parameter Duflo-Zuker mass formula.
virtual const char * type()
Return the type, "nucmass_dz_fit_33".
Tabulated nuclear masses [abstract base].
The 33-parameter Duflo-Zuker mass formula.
virtual double binding_energy_d(double Z, double N)
Return the binding energy in MeV.
virtual double binding_energy(int Z, int N)
Return the binding energy in MeV.
virtual double mass_excess_d(double Z, double N)
Given Z and N, return the mass excess in MeV.
int last
The last table index for caching.
virtual int guess_fun(size_t nv, ubvector &x)
Fill array with guess from present values for fitting.
virtual const char * type()
Return the type, "nucmass_dz_fit".
virtual int fit_fun(size_t nv, const ubvector &x)
Fix parameters from an array for fitting.
virtual double binding_energy(int Z, int N)
Return the binding energy in MeV.