Class eos_tov_vectors (o2scl)¶
-
template<class
vec_t
>
classo2scl
::
eos_tov_vectors
: public o2scl::eos_tov¶ Provide an EOS for TOV solvers based on interpolation of user-supplied vectors.
Basic EOS functions
-
double
ed_from_pr
(double pr)¶ From the pressure, return the energy density.
-
double
pr_from_ed
(double ed)¶ From the energy density, return the pressure.
-
double
nb_from_ed
(double ed)¶ From the energy density, return the baryon density.
-
double
nb_from_pr
(double pr)¶ From the pressure, return the baryon density.
-
double
ed_from_nb
(double nb)¶ From the baryon density, return the energy density.
-
double
pr_from_nb
(double nb)¶ From the baryon density, return the pressure.
-
void
ed_nb_from_pr
(double pr, double &ed, double &nb)¶ Given the pressure, produce the energy and number densities.
The arguments
pr
anded
should always be in \( M_{\odot}/\mathrm{km}^3 \) . The argument fornb
should be in \( \mathrm{fm}^{-3} \) .If baryon_column is false, then
nb
is unmodified.
EOS storage
Interpolators
Public Functions
-
void
read_vectors_swap
(size_t user_n, vec_t &user_ed, vec_t &user_pr, vec_t &user_nb)¶ Read the EOS from a set of equal length vectors for energy density, pressure, and baryon density.
In this version, the user-specified vectors are swapped with internal storage.
-
void
read_vectors_swap
(size_t user_n, vec_t &user_ed, vec_t &user_pr)¶ Read the EOS from a pair of equal length vectors for energy density and pressure.
In this version, the user-specified vectors are swapped with internal storage.
-
double