Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
shamphys::EOS_Fermi< T > Struct Template Reference

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.
 

Detailed Description

template<class T>
struct shamphys::EOS_Fermi< T >

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] \]

Definition at line 196 of file eos.hpp.

Member Function Documentation

◆ pressure_and_soundspeed()

template<class T >
static constexpr PressureAndCs< T > shamphys::EOS_Fermi< T >::pressure_and_soundspeed ( mu_e,
rho 
)
inlinestaticconstexpr

EOS_Fermi::pressure_and_soundspeed Returns pressure and sound speed from the given value of density in the Fermi gas equation of state.

Parameters
mu_eMean molecular weight
rhoDensity in SI unit

Definition at line 205 of file eos.hpp.


The documentation for this struct was generated from the following file: