![]() |
Equation of State Sub-Library: Version 0.910
|
Compute the APR EOS with a Gibbs construction and the mass versus radius curve [Example class]. More...
In succession, calculates nuclear matter, neutron matter, and then neutron star matter with Maxwell and Gibbs constructions.
We could use the more accurate masses in <o2scl/constants.h> here, but APR appears to have been designed to be used with m_n = m_p = 939 MeV.
Definition at line 55 of file ex_apr_eos.cpp.
Public Member Functions | |
void | run () |
Main driver, computing the APR EOS and the associated M vs. R curve. | |
Protected Member Functions | |
int | maxwell_fig7 (size_t nv, const ovector_base &x, ovector_base &y) |
Function for the Maxwell construction in Fig. 7. | |
int | mixedmaxwell (size_t nv, const ovector_base &x, ovector_base &y) |
Maxwell construction of the nuclear matter mixed phase. | |
int | fig7fun (size_t nv, const ovector_base &x, ovector_base &y) |
Function to construct Fig. 7. | |
int | nstar (size_t nv, const ovector_base &x, ovector_base &y) |
Solve for neutron star matter (low-density phase) | |
int | nstar2 (size_t nv, const ovector_base &x, ovector_base &y) |
Solve for neutron star matter (high-density phase) | |
int | nstarmixed (size_t nv, const ovector_base &x, ovector_base &y) |
Solve for neutron star matter (mixed phase) | |
void | store_data () |
Write a line of data to the table. | |
int | nucmixed (size_t nv, const ovector_base &x, ovector_base &y) |
Solve for nuclear matter (mixed phase) | |
int | neutmixed (size_t nv, const ovector_base &x, ovector_base &y) |
Solve for neutron matter (mixed phase) | |
int | nucleimat (size_t nv, const ovector_base &ex, ovector_base &ey) |
Solve for phase transition to nuclei. | |
int | nucleimat_pdrip (size_t nv, const ovector_base &ex, ovector_base &ey) |
Solve for phase transition to nuclei with a proton drip. | |
Protected Attributes | |
fermion | n |
Neutron for low-density phase. | |
fermion | p |
Proton for low-density phase. | |
fermion | n2 |
Neutron for high-density phase. | |
fermion | p2 |
Proton for high-density phase. | |
fermion_zerot | fzt |
Compute zero-temperature thermodynamics. | |
fermion | e |
Electron for low-density phase. | |
fermion | mu |
Muon for low-density phase. | |
fermion | e2 |
Electron for high-density phase. | |
fermion | mu2 |
Muon for high-density phase. | |
thermo | hb |
Baryon thermodynamics for low-density phase. | |
thermo | l |
Leptonic thermodynamics for low-density phase. | |
thermo | hb2 |
Baryon thermodynamics for high-density phase. | |
thermo | tot |
Total thermodynamics. | |
thermo | l2 |
Leptonic thermodynamics for high-density phase. | |
gsl_mroot_hybrids | nd |
Solver. | |
gsl_mroot_hybrids | nd2 |
Solver. | |
gsl_mroot_hybrids | sat_solver |
Solver for saturation properties. | |
double | nb |
Baryon density. | |
double | chi |
Volume fraction of low-density phase. | |
double | mub |
Baryon chemical potential. | |
double | muq |
Charge chemical potential. | |
double | f7x |
Proton fraction for Fig. 7. | |
int | choice |
Choice of model from APR. | |
apr_eos | ap |
Base APR EOS. | |
table_units | at |
Table for output. | |
cern_deriv< funct > | cd |
Derivative object. | |
hdf_file | hf |
HDF file for output. | |
Phase specification | |
int | phase |
static const int | low_phase = 1 |
static const int | mixed_phase = 2 |
static const int | high_phase = 3 |
void ex_apr_eos::run | ( | ) | [inline] |
Compute matter at densities below the maxwell construction
Definition at line 575 of file ex_apr_eos.cpp.
Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).