#include <tov_eos.h>
Given the eos
the TOV equation has an analytical solution
where .
The central pressure and energy density are
Physical solutions are obtained only for and
.
(Lattimer & Prakash, 2001)
Definition at line 321 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 ![]() |
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 from tov_eos.
Documentation generated with Doxygen and provided under the GNU Free Documentation License. See License Information for details.
Project hosting provided by
,
O2scl Sourceforge Project Page