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

Adiabatic equation of state. More...

#include <shamphys/include/shamphys/eos.hpp>

Static Public Member Functions

static constexpr T pressure (T gamma, T rho, T u)
 
static constexpr T soundspeed (T gamma, T rho, T u)
 
static constexpr T cs_from_p (T gamma, T rho, T P)
 

Detailed Description

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

Adiabatic equation of state.

Pressure: \( P = (\gamma - 1) \rho u \)

Sound speed: \( c_s = \sqrt{\frac{\gamma P}{\rho}} \)

Definition at line 45 of file eos.hpp.

Member Function Documentation

◆ cs_from_p()

template<class T >
static constexpr T shamphys::EOS_Adiabatic< T >::cs_from_p ( gamma,
rho,
P 
)
inlinestaticconstexpr

Definition at line 53 of file eos.hpp.

◆ pressure()

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

Definition at line 47 of file eos.hpp.

◆ soundspeed()

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

Definition at line 49 of file eos.hpp.


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