#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.
Definition at line 62 of file nse_eos.h.
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< solve_parms, mm_funct< solve_parms > > &rp) |
Set the solver for use in computing the chemical potentials. | |
Data Fields | |
gsl_mroot_hybrids< solve_parms, mm_funct< solve_parms > > | def_root |
Default solver. |
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.
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.
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.
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.
Documentation generated with Doxygen and provided under the GNU Free Documentation License. See License Information for details.
Project hosting provided by
,
O2scl Sourceforge Project Page