tov_eos Class Reference

#include <tov_eos.h>

Inheritance diagram for tov_eos:

tov_buchdahl_eos tov_interp_eos tov_polytrope_eos

Detailed Description

A EOS base class for the TOV solver.

Definition at line 54 of file tov_eos.h.


Public Member Functions

virtual int get_eden (double P, double &e, double &nb)
 Given the pressure, produce the energy and number densities.
virtual int get_aux (double P, size_t &np, ovector_view &auxp)
 Given the pressure, produce all the remaining quantities.
virtual int get_names (size_t &np, std::vector< std::string > &pnames)
 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).

Member Function Documentation

virtual int get_eden ( double  P,
double &  e,
double &  nb 
) [inline, virtual]

Given the pressure, produce the energy and number densities.

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

Reimplemented in tov_interp_eos, tov_buchdahl_eos, and tov_polytrope_eos.

Definition at line 74 of file tov_eos.h.


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