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

A EOS base class for the TOV solver. More...

#include <tov_eos.h>

Inheritance diagram for tov_eos:
tov_buchdahl_eos tov_eos_fast tov_interp_eos tov_polytrope_eos

Detailed Description

Todo:
Fix read_table_file and maybe set_low_density_eos().

Definition at line 53 of file tov_eos.h.

Public Member Functions

virtual int get_eden (double P, double &e, double &nb)=0
 Given the pressure, produce the energy and number densities.
virtual int get_aux (double P, size_t &np, ovector_base &auxp)
 Given the pressure, produce all the remaining quantities.
virtual int get_names_units (size_t &np, std::vector< std::string > &pnames, std::vector< std::string > &punits)
 Fill a list with strings for the names of the remaining quanities.

Data Fields

int verbose
 Control for output (default 1)
bool baryon_column
 Set to true if the baryon density is provided in the EOS (default false)

Protected Attributes

double mev_kg
 To convert MeV to kilograms.
double mev_per_fm3_msun_km3
 To convert $ MeV/fm{^3} $ to solar masses per cubic kilometer.

Member Function Documentation

virtual int tov_eos::get_eden ( double  P,
double &  e,
double &  nb 
) [pure virtual]

The arguments P and e should always be in $ M_{\odot}/\mathrm{km}^3 $ .

If the baryon density is not specified, it should be set to zero or baryon_column should be set to false.

Implemented in tov_polytrope_eos, tov_buchdahl_eos, tov_interp_eos, and tov_eos_fast.

virtual int tov_eos::get_aux ( double  P,
size_t &  np,
ovector_base auxp 
) [inline, virtual]

The argument P should always be in $ M_{\odot}/\mathrm{km}^3 $ .

Reimplemented in tov_polytrope_eos, tov_buchdahl_eos, and tov_interp_eos.

Definition at line 93 of file tov_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.