All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Data Fields | Protected Attributes | Friends
o2scl::eos_tov Class Referenceabstract

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

Detailed Description

Definition at line 47 of file eos_tov.h.

#include <eos_tov.h>

Inheritance diagram for o2scl::eos_tov:
o2scl::eos_tov_buchdahl o2scl::eos_tov_interp o2scl::eos_tov_linear o2scl::eos_tov_polytrope

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
 

Member Function Documentation

virtual void o2scl::eos_tov::get_aux ( double  P,
size_t &  np,
std::vector< double > &  auxp 
)
inlinevirtual

The argument P should always be in $ M_{\odot}/\mathrm{km}^3 $ .

Reimplemented in o2scl::eos_tov_interp, o2scl::eos_tov_linear, and o2scl::eos_tov_buchdahl.

Definition at line 85 of file eos_tov.h.

virtual void o2scl::eos_tov::get_eden ( double  P,
double &  e,
double &  nb 
)
pure virtual

The arguments P and e 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_linear, 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).
Hosted at Get Object-oriented Scientific Computing
Lib at SourceForge.net. Fast, secure and Free Open Source software
downloads..