Equation of State Sub-Library: Version 0.910
Public Member Functions | Protected Member Functions | Protected Attributes
tabulated_eos Class Reference

EOS from a table. More...

#include <tabulated_eos.h>

Inheritance diagram for tabulated_eos:
hadronic_eos_eden hadronic_eos eos

Detailed Description

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 52 of file tabulated_eos.h.

Public Member Functions

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.

Protected Member Functions

int free_table ()
 Free the table memory.

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:
 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.