An EOS based on a polynomial speed of sound. More...
#include <eos_cs2_poly.h>
Based on Constantinou17 .
This class constructs an EOS based on a speed of sound of the form
where
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 and 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 . | |
| double | mu_from_nb (double nb) |
Return the chemical potential in , including the rest mass, given the baryon density in . | |
| double | ed_from_nb (double nb) |
Return the energy density in , including the rest mass energy density, given the baryon density in . | |
| double | pr_from_nb (double nb) |
Return the pressure in given the baryon density in . | |
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. | |
Documentation generated with Doxygen. Provided under the
GNU Free Documentation License (see License Information).