Public Member Functions | Public Attributes | Protected Attributes | List of all members
o2scl::eos_tov Class Referenceabstract

A EOS base class for the TOV solver. More...

#include <eos_tov.h>

Inheritance diagram for o2scl::eos_tov:
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 > o2scl::eos_nstar_rot_interp o2scl::eos_nstar_rot_C o2scl::eos_nstar_rot_L

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

Detailed Description

Definition at line 47 of file eos_tov.h.

Member Function Documentation

◆ ed_nb_from_pr()

virtual void o2scl::eos_tov::ed_nb_from_pr ( double  pr,
double &  ed,
double &  nb 
)
pure virtual

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.

Implemented in o2scl::eos_tov_interp, o2scl::eos_tov_vectors< vec_t >, o2scl::eos_tov_linear, o2scl::eos_nstar_rot_interp, o2scl::eos_tov_polytrope, and o2scl::eos_tov_buchdahl.


The documentation for this class was generated from the following file:

Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).