![]() |
Equation of State Sub-Library: Version 0.910
|
Equation of state for nuclei in statistical equilibrium. More...
#include <nse_eos.h>
This class computes the composition of matter in nuclear statistical equilibrium. The chemical potential of a nucleus X with proton number and neutron number
is given by
where and
are the neutron and proton chemical potentials and
is the binding energy of the nucleus.
The baryon number density and electron fraction are then given by
where is the number density which is determined from the chemical potential above.
This implicitly assumes that the nuclei are non-interacting.
Public Member Functions | |
int | calc_mu (double mun, double mup, double T, double &nb, double &Ye, thermo &th, nuclear_dist &nd) |
Calculate the equation of state as a function of the chemical potentials. | |
int | calc_density (double nb, double Ye, double T, double &mun, double &mup, thermo &th, nuclear_dist &nd) |
Calculate the equation of state as a function of the densities. | |
int | set_mroot (mroot< mm_funct<> > &rp) |
Set the solver for use in computing the chemical potentials. | |
Data Fields | |
gsl_mroot_hybrids< mm_funct<> > | def_root |
Default solver. |
int nse_eos::calc_mu | ( | double | mun, |
double | mup, | ||
double | T, | ||
double & | nb, | ||
double & | Ye, | ||
thermo & | th, | ||
nuclear_dist & | nd | ||
) |
Given mun
, mup
and T
, this computes the composition (the individual densities are stored in the distribution nd
) the baryon number density nb
, and the electron fraction Ye
.
This function does not use the solver.
int nse_eos::calc_density | ( | double | nb, |
double | Ye, | ||
double | T, | ||
double & | mun, | ||
double & | mup, | ||
thermo & | th, | ||
nuclear_dist & | nd | ||
) |
Given the baryon number density nb
, and the electron fraction Ye
and the temperature T
, this computes the composition (the individual densities are stored in the distribution nd
) and the chemical potentials are given in mun
and mup
.
This function uses the solver to self-consistently compute the chemical potentials.
Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).