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

Standard polytropic EOS $ p = K \rho^{1+1/n} $. More...

#include <tov_eos.h>

Inheritance diagram for tov_polytrope_eos:
tov_eos

Detailed Description

Any units are permissible, but if this is to be used with tov_solve, then the units of $ K $ must be consistent with the units set in tov_solve::set_units().

Definition at line 426 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_base &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

double K
 Coefficient (default 1.0)
double n
 Index (default 3.0)

Member Function Documentation

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

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

Implements tov_eos.

Definition at line 449 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.