A EOS base class for the TOV solver. More...
#include <eos_tov.h>
Public Member Functions | |
| bool | has_baryons () |
| Return true if a baryon density is available. | |
| void | check_nb (double &avg_abs_dev, double &max_abs_dev) |
Check that the baryon density is consistent with the . | |
| virtual double | ed_from_pr (double pr)=0 |
| From the pressure, return the energy density. | |
| virtual double | pr_from_ed (double ed)=0 |
| From the energy density, return the pressure. | |
| virtual double | nb_from_ed (double ed)=0 |
| From the energy density, return the baryon density. | |
| virtual double | nb_from_pr (double pr)=0 |
| From the pressure, return the baryon density. | |
| virtual double | ed_from_nb (double nb)=0 |
| From the baryon density, return the energy density. | |
| virtual double | pr_from_nb (double nb)=0 |
| From the baryon density, return the pressure. | |
| virtual void | ed_nb_from_pr (double pr, double &ed, double &nb)=0 |
| Given the pressure, produce the energy and number densities. More... | |
Public Attributes | |
| 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) | |
|
pure virtual |
The arguments pr and ed 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_vectors< vec_t >, o2scl::eos_tov_linear, o2scl::eos_tov_polytrope, o2scl::eos_nstar_rot_interp, and o2scl::eos_tov_buchdahl.
Documentation generated with Doxygen. Provided under the
GNU Free Documentation License (see License Information).