A class to manipulate the G. Shen et al. EOS. More...
#include <eos_sn.h>
Public Member Functions | |
virtual void | load (std::string fname, size_t mode) |
Load table from filename fname with mode mode . | |
![]() | |
void | check_composition (double &max1, double &max2) |
Check the table composition entries. | |
void | check_free_energy (double &avg) |
Test the free energy and store results in tm . More... | |
virtual void | beta_eq_sfixed (double nB, double entr, double &Ye, double &T) |
Compute properties of matter in beta equilibrium at fixed entropy per baryon. More... | |
virtual void | beta_eq_Tfixed (double nB, double T, double &Ye) |
Compute the electron fraction for beta-equilibrium at fixed density and temperature temperature. More... | |
bool | is_loaded () |
Return true if data has been loaded. | |
void | free () |
Free allocated memory. | |
bool | data_with_leptons () |
Return true if data with lepton information has been loaded. | |
bool | data_baryons_only () |
Return true if data with only baryon information has been loaded. | |
virtual void | load (std::string fname) |
virtual void | output (std::string fname) |
void | set_interp_type (size_t interp_type) |
Set the interpolation type of all the o2scl::tensor_grid3 objects to type interp_type . More... | |
virtual void | compute_eg () |
Compute the electron and photon contribution for the full grid. More... | |
virtual double | check_eg () |
Check electrons and photons. More... | |
Public Attributes | |
bool | check_grid |
If true, check the grid after load() (default true) | |
Additional data included in this EOS | |
tensor_grid3 & | T |
Temperature in MeV. | |
tensor_grid3 & | Yp |
Proton fraction. | |
tensor_grid3 & | nB |
Baryon number density in ![]() | |
tensor_grid3 & | mue |
Electron chemical potential in MeV. | |
tensor_grid3 & | M_star |
Nucleon effective mass (Dirac) in MeV. | |
![]() | |
int | verbose |
Verbosity parameter (default 1) | |
std::vector< std::string > | oth_names |
Labels for the extra data sets included in current EOS. | |
std::vector< std::string > | oth_units |
Units for the extra data sets included in current EOS. | |
tensor_grid3 | F |
Total free energy per baryon in MeV (without baryon rest masses but including electron rest mass) More... | |
tensor_grid3 | Fint |
Free energy per baryon without lepton and photon contributions in MeV. More... | |
tensor_grid3 | E |
Total internal energy per baryon in MeV (without baryon rest masses but including electron rest mass) More... | |
tensor_grid3 | Eint |
Internal energy per baryon without lepton and photon contributions in MeV. More... | |
tensor_grid3 | P |
Total pressure in ![]() | |
tensor_grid3 | Pint |
Pressure without lepton and photon contributions in ![]() | |
tensor_grid3 | S |
Total entropy per baryon. | |
tensor_grid3 | Sint |
Entry per baryon without lepton and photon contributions. | |
tensor_grid3 | mun |
Neutron chemical potential in MeV. More... | |
tensor_grid3 | mup |
Proton chemical potential in MeV. More... | |
tensor_grid3 | Z |
Proton number. | |
tensor_grid3 | A |
Mass number. | |
tensor_grid3 | Xn |
Neutron baryon fraction. | |
tensor_grid3 | Xp |
Proton baryon fraction. | |
tensor_grid3 | Xalpha |
Alpha particle baryon fraction. | |
tensor_grid3 | Xnuclei |
Heavy nuclei baryon fraction. | |
tensor_grid3 | other [30] |
Other data sets. | |
tensor_grid3 * | arr [n_base+30] |
List of pointers to data. | |
double | m_neut |
Neutron mass in ![]() | |
double | m_prot |
Proton mass in ![]() | |
size_t | n_nB |
Size of baryon density grid. | |
size_t | n_Ye |
Size of electron fraction grid. | |
size_t | n_T |
Size of temperature grid. | |
std::vector< double > | nB_grid |
Baryon density grid (in ![]() | |
std::vector< double > | Ye_grid |
Electron fraction grid. | |
std::vector< double > | T_grid |
Temperature grid (in ![]() | |
size_t | n_oth |
Number of additional data sets. | |
boson | photon |
Photon. | |
fermion | electron |
Electron. | |
fermion | muon |
Muon. | |
bool | include_muons |
If true, include muons. | |
fermion_rel | relf |
Relativistic fermion thermodynamics. | |
Static Public Attributes | |
Table modes | |
static const size_t | mode_17 =0 |
1.7 solar masses with leptons and photons | |
static const size_t | mode_21 =1 |
2.1 solar masses with leptons and photons | |
static const size_t | mode_17b =2 |
1.7 solar masses without leptons and photons | |
static const size_t | mode_21b =3 |
2.1 solar masses without leptons and photons | |
static const size_t | mode_NL3 =4 |
NL3 model with leptons and photons. | |
static const size_t | mode_NL3b =5 |
NL3 model with leptons and photons. | |
![]() | |
static const size_t | n_base =16 |
Number of base data sets. | |
Additional Inherited Members | |
![]() | |
typedef boost::numeric::ublas::vector< double > | ubvector |
typedef boost::numeric::ublas::matrix< double > | ubmatrix |
![]() | |
void | alloc () |
Allocate memory. | |
![]() | |
convert_units & | cu |
Unit conversion object (set automatically in constructor) | |
bool | loaded |
If true, a EOS table was successfully loaded (default false) | |
bool | with_leptons_loaded |
True if thermodynamics with leptons has been loaded. | |
bool | baryons_only_loaded |
True if baryon-only thermodynamics has been loaded. | |
This class is experimental.
See also the documentation at eos_sn_base and the Finite-temperature Equation of State Tables section of the User's guide.
The free energy per baryon neutron and proton chemical potentials are relative to a nucleon mass of 939 MeV. The values of o2scl::eos_sn_base::m_neut and o2scl::eos_sn_base::m_prot are set to 939 MeV accordingly. The electron chemical potential still includes its rest mass. All quantites are stored as in the original table, except that the values in o2scl::eos_sn_base::E or o2scl::eos_sn_base::Eint are computed directly from the thermodynamic identity.
See Shen11.
Documentation generated with Doxygen. Provided under the
GNU Free Documentation License (see License Information).