Class eos_sn_oo (o2scl)

O2scl_eos : Class List

class o2scl::eos_sn_oo : public o2scl::eos_sn_base

The EOS tables from O’Connor and Ott.

This class reads the HDF5 EOS tables generated by E. O’Connor and C. Ott in OConnor10. The tables are available from

http://stellarcollapse.org/equationofstate

and are available under a creative commons attribution-noncommercial-share alike license. This code to read those tables is licensed (along with all code) under the GPLv3 license (with permission from Evan O’Connor).

The original README file from O’Connor and Ott’s EOSdriver code is available in the distribution in doc/o2scl/eos/extras/scollapse_README and is reproduced below

See also the documentation at eos_sn_base and the sneos_section section of the User’s guide.

Idea for Future:

Loading an EOS currently requires loading the HDF5 file and then copying it. This wouldn’t be necessary if the tensor had the same ordering as the indices in the original HDF5 file.

Additional data included in this EOS

tensor_grid3 &cs2

Speed of sound in cm^2/s^2.

tensor_grid3 &dedt

C_V in erg/g/K.

tensor_grid3 &dpderho

dpderho in dyn*g/cm^2/erg

tensor_grid3 &dpdrhoe

dpdrhoe in dyn cm^3/cm^2/g

tensor_grid3 &gamma

Gamma.

tensor_grid3 &mu_e

Electron chemical potential per baryon including rest mass.

tensor_grid3 &muhat

mun - mup

tensor_grid3 &munu

mue - mun + mup

tensor_grid3 &XHe3

Helion fraction.

tensor_grid3 &XLi4

Lithium-4 fraction.

tensor_grid3 &Xt

Triton fraction.

tensor_grid3 &Xd

Deuteron fraction.

std::vector<double> rho

The original mass density grid from the table in g/cm^3.

double energy_shift

Energy shift for table storage in erg/g.

Table modes

const size_t ls_mode = 0

Use the J. Lattimer et al. method for handling the chemical potentials.

const size_t stos_mode = 1

Use the H. Shen et al. method for handling the chemical potentials.

const size_t hfsl_mode = 2

Set for a Hempel et al. table with light nuclei.

const size_t sht_mode = 3

Set for a G. Shen et al. table.

void load(std::string fname, size_t mode)

Load table from filename fname with mode mode.

void load_auto(std::string model, std::string directory)

Desc.

Public Functions

eos_sn_oo()