A EOS base class for the TOV solver. More...
#include <eos_tov.h>
Public Member Functions | |
virtual void | get_eden (double P, double &e, double &nb)=0 |
Given the pressure, produce the energy and number densities. More... | |
virtual void | get_aux (double P, size_t &np, std::vector< double > &auxp) |
Given the pressure, produce all the remaining quantities. More... | |
virtual void | 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. | |
void | check_nb (double &avg_abs_dev, double &max_abs_dev) |
Check that the baryon density is consistent with the EOS. | |
Data Fields | |
int | verbose |
Control for output (default 1) | |
Protected Attributes | |
bool | baryon_column |
Set to true if the baryon density is provided in the EOS (default false) | |
Friends | |
class | tov_solve |
|
inlinevirtual |
The argument P
should always be in .
Reimplemented in o2scl::eos_tov_interp, o2scl::eos_tov_linear, and o2scl::eos_tov_buchdahl.
|
pure virtual |
The arguments P
and e
should always be in . The argument for
nb
should be in .
If baryon_column is false, then nb
is unmodified.
Implemented in o2scl::eos_tov_interp, o2scl::eos_tov_linear, o2scl::eos_tov_polytrope, and o2scl::eos_tov_buchdahl.
Documentation generated with Doxygen. Provided under the
GNU Free Documentation License (see License Information).
Hosted at
.