Available EOS¶
Classical Ideal Gas¶
This EOS serves mainly as a toy model useful for debugging. It is given by
The adiabatic exponent \(\Gamma = 1 + 1/n\) with \(n>0\) is a free parameter. The pressure is independent of electron fraction, which is a dummy variable for this EOS. The validity range is given by
where \(\rho_\mathrm{max}\) and \(\epsilon_\mathrm{max}\) are free parameters specified by the user.
The adiabatic soundspeed is given by
In case that \(\Gamma > 2\), the following restriction is automatically applied in order to ensure subluminal speed of sound and dominant energy condition.
For the classical ideal gas law, \(T \propto \epsilon\), and zero temperature implies zero pressure. However, this law breaks down near zero temperature since it leads to a divergence of the entropy. One can avoid this by using a different relation for the temperature, which is however not unique. Consequently, our implementation of this EOS does not provide temperature and specific entropy.
Note
Since the pressure is zero at zero temperature, a classical ideal gas is not useful for neutron stars and such. One could keep \(P (\rho,\epsilon,Y_e)\) but redefine temperature to avoid zero pressure, emulating a degeneracy pressure. Since the adiabatic curves for Eq. (1) are given by polytropes, \(P\) and \(\epsilon\) at zero temperature would follow a polytrope as well. The resulting EOS is what is usually called ideal gas in numerical relativity. To get such an EOS, use the Hybrid EOS with a polytrope as cold EOS. The difference is simply the lower bound for \(\epsilon\), which becomes a strictly positive function of density.
Hybrid EOS¶
This EOS is based on an barotropic EOS for zero temperature together with a simple analytic prescription for thermal contributions.
where \(P_c(\rho)\) and \(\epsilon_c(\rho)\) defines the zero-temperature EOS. The pressure is independent of electron fraction, which is a dummy variable for this EOS. The validity range is given by
where \(\rho_\mathrm{max}\) and \(\epsilon_\mathrm{max}\) are free parameters specified by the user.
Since the thermal contribution in (2) is an ad-hoc prescription not derived from any nuclear physics model, temperature and entropy are not uniquely defined (although one can construct both by prescribing a functional dependence of entropy and energy at fixed density). In this version of the library, temperature and entropy are not implemented.