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

The Lattimer-Swesty supernova EOS. More...

#include <gen_sn_eos.h>

Inheritance diagram for ls_eos:
gen_sn_eos

Detailed Description

This class is experimental.

Note:
O2scl Does not contain the Lattimer-Swesty EOS, only provides some code to manipulate it. This class is designed to be used with the files ls.dat, sk1.dat, ska.dat and skm.dat as provided on Jim Lattimer's website, http://www.astro.sunysb.edu/lattimer/EOS/main.html .

Note that the tables on this website are different than what is generated from the LS Fortran code. See oo_eos to read O'Connor and Ott's tables generated from the LS Fortran code.

The four models are

Note:
In the original table, the full internal energy per baryon (data section 4 of 26) is apparently based on a rest mass of $ Y_e m_p + (1-Y_e) m_n $, while the baryon part of the internal energy per baryon (data section 13 of 26) is based on a rest mass of $ m_n $. This means that

\[ E - E_{\mathrm{int}} = E_{\mathrm{eg}} - Y_e (m_n - m_p) \]

where $ E_{\mathrm{eg}} $ is the energy per baryon of electrons and photons. In order to keep things consistent with the other EOS tables, when the EOS table is loaded, gen_sn_eos::Eint is rescaled to a rest mass of $ Y_e m_p + (1-Y_e) m_n $ .

See also the documentation at gen_sn_eos.

See Lattimer91 and Lattimer85.

Todo:
There are still a few points for which the electron/photon EOS seems to be off.

Definition at line 371 of file gen_sn_eos.h.

Public Member Functions

virtual void load (std::string fname)
 Load table from filename fname.
int check_eg (test_mgr &tm)
 Check electrons and photons.
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_grid3fill
 Filling factor for nuclei.
tensor_grid3nb_in
 Baryon number density inside nuclei in $ \mathrm{fm}^{-3} $.
tensor_grid3dPdn
 Derivative of pressure with respect to baryon density.
tensor_grid3dPdT
 Derivative of pressure with respect to temperature.
tensor_grid3dPdY
 Derivative of pressure with respect to electron fraction.
tensor_grid3dsdT
 Derivative of entropy with respect to temperature.
tensor_grid3dsdY
 Derivative of entropy with respect to electron fraction.
tensor_grid3Nskin
 Number of neutrons in skin.
tensor_grid3nb_out
 Baryon density outside nuclei in $ \mathrm{fm}^{-3} $.
tensor_grid3x_out
 Proton fraction outside nuclei.
tensor_grid3mu
 Out of whackness parameter, $ \mu_n-\mu_p-\mu_e+1.293~\mathrm{MeV} $, in MeV.

Member Function Documentation

int ls_eos::check_eg ( test_mgr tm)

This checks that the electron and photon thermodynamics generated by O2scl is consistent with the data in E, Eint, F, Fint, P, Pint, S, and Sint.

virtual void ls_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 432 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.