Particles and Nuclei Sub-Library: Version 0.910
Public Member Functions | Data Fields | Static Public Attributes | Protected Member Functions | Protected Attributes
eff_boson Class Reference

Boson class from fitting method. More...

#include <eff_boson.h>


Detailed Description

Todo:

Better documentation (see eff_fermion)

Remove the 'meth2' stuff

Remove static variables fix_density and stat_temper

Remove exit() calls

Definition at line 52 of file eff_boson.h.

Public Member Functions

 eff_boson ()
 Create a boson with mass m and degeneracy g.
int load_coefficients (int ctype)
 Load coefficients for finite-temperature approximation.
virtual void calc_mu (boson &b, double temper)
 Calculate thermodynamic properties as function of chemical potential.
virtual void calc_density (boson &b, double temper)
 Calculate thermodynamic properties as function of density.
virtual void pair_mu (boson &b, double temper)
 Calculate thermodynamic properties with antiparticles as function of chemical potential.
virtual void pair_density (boson &b, double temper)
 Calculate thermodynamic properties with antiparticles as function of density.
void set_psi_root (root< funct > &rp)
 Set the solver for use in calculating $ \psi $.
void set_density_mroot (mroot< mm_funct<> > &rp)
 Set the solver for use in calculating the chemical potential from the density.
void set_meth2_root (root< funct > &rp)
 Set the solver for use in calculating the chemical potential from the density (meth2=true)
virtual const char * type ()

Data Fields

gsl_mroot_hybrids< mm_funct<> > def_density_mroot
 The default solver for calc_density() and pair_density()
cern_mroot_root< functdef_psi_root
 The default solver for $ \psi $.
cern_mroot_root< functdef_meth2_root
 The default solver for calc_density() and pair_density()

Static Public Attributes

static const int cf_boselat3 = 1
 A set of coefficients from Jim Lattimer.
static const int cf_bosejel21 = 2
 A set of coefficients from Johns96.
static const int cf_bosejel22 = 3
 A set of coefficients from Johns96.
static const int cf_bosejel34 = 4
 A set of coefficients from Johns96.
static const int cf_bosejel34cons = 5
 The set of coefficients from Johns96 which retains better thermodynamic consistency.

Protected Member Functions

double solve_fun (double x, double &psi)
 The function which solves for $ h $ from $ \psi $.
int density_fun (size_t nv, const ovector_base &x, ovector_base &y)
 Fix density for calc_density()
int pair_density_fun (size_t nv, const ovector_base &x, ovector_base &y)
 Fix density for pair_density()

Protected Attributes

umatrix Pmnb
 The coefficients.
int sizem
 The number of coefficient rows.
int sizen
 The number of coefficient columns.
double parma
 The parameter, $ a $.
double fix_density
 Temporary storage.
bosonbp
 Desc.
double T
 Desc.
mroot< mm_funct<> > * density_mroot
 The solver for calc_density()
root< funct > * psi_root
 The solver to compute $ h $ from $ \psi $.
root< funct > * meth2_root
 The solver for calc_density()

Member Function Documentation

int eff_boson::load_coefficients ( int  ctype)

Presently acceptable values of fn are: boselat3 from Lattimer's notes bosejel21, bosejel22, bosejel34, and bosejel34cons from Johns96.


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.