![]() |
Equation of State Sub-Library: Version 0.910
|
A EOS base class for the TOV solver. More...
#include <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 ![]() |
virtual int tov_eos::get_eden | ( | double | P, |
double & | e, | ||
double & | nb | ||
) | [pure virtual] |
The arguments P
and e
should always be in .
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 .
Reimplemented in tov_polytrope_eos, tov_buchdahl_eos, and tov_interp_eos.
Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).