Public Member Functions | Protected Attributes | List of all members
o2scl::eos_cs2_poly Class Reference

An EOS based on a polynomial speed of sound. More...

#include <eos_cs2_poly.h>

Detailed Description

Based on Constantinou17 .

This class constructs an EOS based on a speed of sound of the form

\[ c_s^2 = a_1 + \frac{a_2 n_B^{a_3}}{1+a_4 n_B^{a_3}} \]

where $ n_B $ is the baryon number density .

The EOS requires a hypergeometric function which only converges under specific conditions on the parameters.

Definition at line 50 of file eos_cs2_poly.h.

Public Member Functions

void fix_params (double nb0, double cs20, double nb1, double cs21, double a3, double a4)
 Fix $ a_1 $ and $ a_2 $ based on fitting to the sound speed at two different densities.
 
void fix_integ_consts (double nb1, double mu1, double nb2, double ed2)
 Fix the integration constants by specifying the chemical potential at some baryon density and the energy density at another baryon density.
 
double cs2_from_nb (double nb)
 Return the squared sound speed given the baryon density in $ \mathrm{fm}^{-3} $.
 
double mu_from_nb (double nb)
 Return the chemical potential in $ \mathrm{fm}^{-1} $, including the rest mass, given the baryon density in $ \mathrm{fm}^{-3} $.
 
double ed_from_nb (double nb)
 Return the energy density in $ \mathrm{fm}^{-4} $, including the rest mass energy density, given the baryon density in $ \mathrm{fm}^{-3} $.
 
double pr_from_nb (double nb)
 Return the pressure in $ \mathrm{fm}^{-4} $ given the baryon density in $ \mathrm{fm}^{-3} $.
 

Protected Attributes

double a1i
 First speed of sound parameter.
 
double a2i
 Second speed of sound parameter.
 
double a3i
 Third speed of sound parameter.
 
double a4i
 Fourth speed of sound parameter.
 
double C1
 Chemical potential integration constant.
 
double C2
 Energy density integration constant.
 

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