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

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)
 

Detailed Description

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

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} \)

Definition at line 66 of file eos.hpp.

Member Function Documentation

◆ polytropic_index()

template<class T >
static constexpr T shamphys::EOS_Polytropic< T >::polytropic_index ( n)
inlinestaticconstexpr

Definition at line 74 of file eos.hpp.

◆ pressure()

template<class T >
static constexpr T shamphys::EOS_Polytropic< T >::pressure ( gamma,
K,
rho 
)
inlinestaticconstexpr

Definition at line 68 of file eos.hpp.

◆ soundspeed()

template<class T >
static constexpr T shamphys::EOS_Polytropic< T >::soundspeed ( gamma,
K,
rho 
)
inlinestaticconstexpr

Definition at line 70 of file eos.hpp.


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