![]() |
Shamrock 2025.10.0
Astrophysical Code
|
Barotropic equation of state, isothermal at low density and adiabatic at high density (e.g. the optically thin to optically thick transition in protostellar collapse). More...
#include <shamphys/include/shamphys/eos.hpp>
Static Public Member Functions | |
| static constexpr T | adiab_ratio (T rho, T rho0, T gamma0) |
| \( (\rho/\rho_0)^{\gamma_0 - 1} \), ratio of the adiabatic to isothermal pressure | |
| static constexpr T | pressure (T cs0, T rho0, T gamma0, T rho) |
| static constexpr T | soundspeed (T cs0, T rho0, T gamma0, T rho) |
Barotropic equation of state, isothermal at low density and adiabatic at high density (e.g. the optically thin to optically thick transition in protostellar collapse).
Pressure: \( P = c_{s,0}^2 \rho \left[1 + \left(\frac{\rho}{\rho_0}\right)^{\gamma_0-1} \right] \)
Sound speed: \( c_s = \sqrt{\frac{dP}{d\rho}} = c_{s,0} \sqrt{1 + \gamma_0 \left(\frac{\rho}{\rho_0}\right)^{\gamma_0-1}} \)
For \( \gamma_0 = 5/3 \) this is the equation of state of e.g. Commercon et al (2008), eq. 3. The same form is used by shammath::FluidStateBarotropic.
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |