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

The Buchdahl EOS for the TOV solver. More...

#include <tov_eos.h>

Inheritance diagram for tov_buchdahl_eos:
tov_eos

Detailed Description

Given the eos

\[ \rho = 12 \sqrt{p_{*} P}- 5 P \]

the TOV equation has an analytical solution

\[ R=(1-\beta) \sqrt{\frac{\pi}{288 p_{*} G (1-2 \beta)}} \]

where $ \beta = GM/R $.

The central pressure and energy density are

\[ P_c = 36 p_{*} \beta^2 \]

\[ {\rho}_c = 72 p_{*} \beta (1-5 \beta/2) \]

Physical solutions are obtained only for $ P< 25 p_{*}/144 $ and $ \beta<1/6 $ .

Based on Lattimer01.

Idea for Future:
Figure out what to do with the buchfun() function

Definition at line 363 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 Pstar
 The parameter with units of pressure in units of solar masses per km cubed (default value $ 3.2 \times 10^{-5} $ )

Member Function Documentation

virtual int tov_buchdahl_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 384 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.