![]() |
Shamrock 2025.10.0
Astrophysical Code
|
Fermi Gas EoS. More...
#include <shamphys/include/shamphys/eos.hpp>
Static Public Member Functions | |
| static constexpr PressureAndCs< T > | pressure_and_soundspeed (T mu_e, T rho) |
| EOS_Fermi::pressure_and_soundspeed Returns pressure and sound speed from the given value of density in the Fermi gas equation of state. | |
Fermi Gas EoS.
mu_e is the mean molecular weight
Sound speed:
\[ c_s = \sqrt{\frac{8\alpha\beta}{3\mu_e^{\frac13}\rho^{\frac23}}\frac{\tilde{p}_F^4}{\sqrt{1+\tilde{p}_F^2}}} \]
where:
\begin{eqnarray*} \tilde{p}_F &=& \frac{1}{\mu_e^{\frac13}}\alpha \rho^{1/3} \\ \alpha &=& \frac{1}{m_{\mathrm{e}} c}h\left(\frac{3}{8\pi m_{\mathrm{p}}}\right)^{\frac13} \\ \beta &=& \frac{\pi m_\mathrm{e}^4c^5}{3h^3} \end{eqnarray*}
Pressure:
\[ P = \beta \left[\tilde{p}_F\sqrt{\tilde{p}_F^2+1}(2\tilde{p}_F^2-3)+3\operatorname{arcsinh}(\tilde{p}_F)\right] \]
|
inlinestaticconstexpr |
EOS_Fermi::pressure_and_soundspeed Returns pressure and sound speed from the given value of density in the Fermi gas equation of state.
| mu_e | Mean molecular weight |
| rho | Density in SI unit |