![]() |
Shamrock 2025.10.0
Astrophysical Code
|
Locally isothermal equation of state with radial dependence. More...
#include <shamphys/include/shamphys/eos.hpp>
Static Public Member Functions | |
| static constexpr T | soundspeed_sq (T cs0sq, T Rsq, T mq) |
| static constexpr T | pressure (T cs0sq, T Rsq, T mq, T rho) |
| static constexpr T | pressure_from_cs (T cs0sq, T rho) |
Locally isothermal equation of state with radial dependence.
Sound speed squared: \( c_s^2(R) = c_{s,0}^2 R^{2q} \)
Pressure: \( P = c_s^2(R) \rho = c_{s,0}^2 R^{2q} \rho \)
where \( R \) is the radial distance and \( q \) is the power-law index.
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |