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

Linear EOS $ P = c_s^2 (\varepsilon-\varepsilon_0) $. More...

Detailed Description

Note
Experimental

Definition at line 381 of file eos_tov.h.

#include <eos_tov.h>

Inheritance diagram for o2scl::eos_tov_linear:
o2scl::eos_tov

Public Member Functions

void set_cs2_eps0 (double cs2_, double eps0_)
 Desc.
 
void set_baryon_density (double nb, double ed)
 Set the baryon density.
 
virtual void get_eden (double P, double &e, double &nb)
 Given the pressure, produce the energy and number densities.
 
virtual void get_aux (double P, size_t &np, std::vector< double > &auxp)
 Given the pressure, produce all the remaining quantities.
 
virtual void get_names (size_t &np, std::vector< std::string > &pnames)
 Fill a list with strings for the names of the remaining quanities.
 
- Public Member Functions inherited from o2scl::eos_tov
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.
 

Protected Attributes

double nb1
 The baryon density at ed1.
 
double ed1
 The energy density for which the baryon density is known.
 
double pr1
 The pressure at ed1.
 
double cs2
 Coefficient (default 1.0)
 
double eps0
 Index (default 0.0)
 
- Protected Attributes inherited from o2scl::eos_tov
bool baryon_column
 Set to true if the baryon density is provided in the EOS (default false)
 

Additional Inherited Members

- Data Fields inherited from o2scl::eos_tov
int verbose
 Control for output (default 1)
 

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..