tabulated_eos Class Reference

#include <tabulated_eos.h>

Inheritance diagram for tabulated_eos:

hadronic_eos eos

Detailed Description

EOS from a table.

This assumes a symmetry energy which depends quadratically on the isospin asymmetry in order to construct an EOS from a table of baryon density and energy per baryon for both nuclear and pure neutron matter.

Note: If using a tabulated EOS to compute derivatives (like the compressibility which effectively requires a second derivative), it is important to tabulated the EOS precisely enough to ensure that the derivatives are accurate. In the case of ensuring that the compressibility at saturation density is well reproduced, I have needed the EOS to be specified with at least 6 digits of precision on a grid at least as small as 0.002 $ \mathrm{fm}^{-3} $.

Definition at line 53 of file tabulated_eos.h.


Public Member Functions

 tabulated_eos ()
virtual ~tabulated_eos ()
int free_table ()
virtual int calc_e (fermion &ne, fermion &pr, thermo &th)
 Equation of state as a function of density.
template<class vec_t>
int set_eos (size_t n, vec_t &rho, vec_t &Enuc, vec_t &Eneut)
 Set the EOS through vectors specifying the densities and energies.
template<class vec_t>
int set_eos (size_t n_nuc, vec_t &rho_nuc, vec_t &E_nuc, size_t n_neut, vec_t &rho_neut, vec_t &E_neut)
 Set the EOS through vectors specifying the densities and energies.
tableget_nuc_table ()
 Return the internal table.
tableget_neut_table ()
 Return the internal table.
int read_file (std::string fname, std::string rho_str, std::string nuc_str, std::string neut_str)
 Set the EOS by specifying a file containing a table object.

Protected Attributes

bool table_alloc
 True if the table has been allocated.
bool one_table
 If true, then tnuc and tneut point to the same table.
The EOS tables
tabletnuc
tabletneut
Strings for the column names
std::string srho_nuc
std::string srho_neut
std::string snuc
std::string sneut

The documentation for this class was generated from the following file:

Documentation generated with Doxygen and provided under the GNU Free Documentation License. See License Information for details.

Project hosting provided by SourceForge.net Logo, O2scl Sourceforge Project Page