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

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)
 

Detailed Description

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

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.

Definition at line 87 of file eos.hpp.

Member Function Documentation

◆ pressure()

template<class T >
static constexpr T shamphys::EOS_LocallyIsothermal< T >::pressure ( cs0sq,
Rsq,
mq,
rho 
)
inlinestaticconstexpr

Definition at line 93 of file eos.hpp.

◆ pressure_from_cs()

template<class T >
static constexpr T shamphys::EOS_LocallyIsothermal< T >::pressure_from_cs ( cs0sq,
rho 
)
inlinestaticconstexpr

Definition at line 97 of file eos.hpp.

◆ soundspeed_sq()

template<class T >
static constexpr T shamphys::EOS_LocallyIsothermal< T >::soundspeed_sq ( cs0sq,
Rsq,
mq 
)
inlinestaticconstexpr

Definition at line 89 of file eos.hpp.


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