![]() |
Shamrock 2025.10.0
Astrophysical Code
|
Polytropic equation of state. More...
#include <shamphys/include/shamphys/eos.hpp>
Static Public Member Functions | |
| static constexpr T | pressure (T gamma, T K, T rho) |
| static constexpr T | soundspeed (T gamma, T K, T rho) |
| static constexpr T | polytropic_index (T n) |
Polytropic equation of state.
Pressure: \( P = K \rho^\gamma \)
Sound speed: \( c_s = \sqrt{\frac{\gamma P}{\rho}} = \sqrt{\gamma K \rho^{\gamma-1}} \)
Polytropic index: \( \gamma = 1 + \frac{1}{n} \)
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |