Class eos_tov (o2scl)

O2scl_eos : Class List

class o2scl::eos_tov

A EOS base class for the TOV solver.

Subclassed by o2scl::eos_nstar_rot, o2scl::eos_tov_buchdahl, o2scl::eos_tov_interp, o2scl::eos_tov_linear, o2scl::eos_tov_polytrope, o2scl::eos_tov_vectors< vec_t >

Public Functions

eos_tov()
~eos_tov()
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 \( P(\varepsilon) \).

double ed_from_pr(double pr) = 0

From the pressure, return the energy density.

double pr_from_ed(double ed) = 0

From the energy density, return the pressure.

double nb_from_ed(double ed) = 0

From the energy density, return the baryon density.

double nb_from_pr(double pr) = 0

From the pressure, return the baryon density.

double ed_from_nb(double nb) = 0

From the baryon density, return the energy density.

double pr_from_nb(double nb) = 0

From the baryon density, return the pressure.

void ed_nb_from_pr(double pr, double &ed, double &nb) = 0

Given the pressure, produce the energy and number densities.

The arguments pr and ed should always be in \( M_{\odot}/\mathrm{km}^3 \) . The argument for nb should be in \( \mathrm{fm}^{-3} \) .

If baryon_column is false, then nb is unmodified.

Public Members

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)