Equation of State Sub-Library: Version 0.910
Public Member Functions | Data Fields | Static Public Attributes
stos_eos Class Reference

The Shen et al. supernova EOS. More...

#include <gen_sn_eos.h>

Inheritance diagram for stos_eos:
gen_sn_eos

Detailed Description

This class is experimental.

Note:
O2scl Does not contain the EOS, only provides some code to manipulate it. This class is designed to be used with the file which was originally called eos.tab and now referred to as eos1.tab and stored e.g. at http://user.numazu-ct.ac.jp/~sumi/eos/.

In order to force the EOS to a uniform grid, linear interpolation is used to recast the variation in baryon density, choosing the grid in baryon density to be the same as the section in the table with T=0.1 MeV and $ Y_p = 0.1 $ for all temperature and proton fraction points.

Also, the original EOS is tabulated for constant proton fraction, and this O2scl interface assumes that the electron fraction is equal to the proton fraction. Currently, this is a problem only at higher densities where muons might appear.

The data for gen_sn_eos::E, gen_sn_eos::F, gen_sn_eos::S, and gen_sn_eos::P is not stored in the table but can be computed with gen_sn_eos::compute_eg().

See also the documentation at gen_sn_eos.

See Shen98 and Shen98b .

Note:
Thanks to Matthias Hempel for providing the correct temperature grid.
Idea for Future:
Add the T=0 and Ye=0 data to this class

Definition at line 642 of file gen_sn_eos.h.

Public Member Functions

virtual void load (std::string fname)
 Load table from filename fname.
virtual void load (std::string fname, size_t mode)
 Load table from filename fname.
virtual void beta_eq_T0 (size_t i, double &nb, double &E_beta, double &P_beta, double &Ye_beta, double &Z_beta, double &A_beta)
 Compute properties of matter in beta equilibrium at zero temperature at a baryon density grid point.

Data Fields

tensor_grid3log_rho
 Logarithm of baryon number density in $ \mathrm{g}/\mathrm{cm}^3 $.
tensor_grid3nB
 Baryon number density in $ \mathrm{fm}^{-3} $.
tensor_grid3log_Y
 Logarithm of proton fraction.
tensor_grid3Yp
 Proton fraction.
tensor_grid3M_star
 Nucleon effective mass in MeV.
tensor_grid3quark_frac
 Fraction of quark matter.

Static Public Attributes

static const size_t orig_mode = 0
static const size_t quark_mode = 1

Member Function Documentation

virtual void stos_eos::beta_eq_T0 ( size_t  i,
double &  nb,
double &  E_beta,
double &  P_beta,
double &  Ye_beta,
double &  Z_beta,
double &  A_beta 
) [inline, virtual]

This EOS table doesn't have T=0 results, so we extrapolate from the two low-temperature grid points.

Implements gen_sn_eos.

Definition at line 687 of file gen_sn_eos.h.


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.