Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
shammodels::basegodunov::CoolingConfig< Tvec >::InstantBarotropic Struct Reference

Instantaneous cooling onto a barotrope (RAMSES-like). More...

#include <shammodels/ramses/include/shammodels/ramses/config/CoolingConfig.hpp>

Public Member Functions

shammath::FluidStateBarotropic< Tvec > get_barotrope () const

Public Attributes

Tscal rho0
Tscal cs0
Tscal gamma0 = 5. / 3.

Detailed Description

template<class Tvec>
struct shammodels::basegodunov::CoolingConfig< Tvec >::InstantBarotropic

Instantaneous cooling onto a barotrope (RAMSES-like).

At the end of each timestep, before the CFL condition, the internal energy of every cell is overwritten by \( P_{\rm baro}(\rho) / (\gamma - 1) \), where \( \gamma \) is the adiabatic index of the equation of state and \( P_{\rm baro} \) the pressure of get_barotrope() (isothermal with sound speed cs0 below rho0, adiabatic with index gamma0 above), see shammath::FluidStateBarotropic.

Definition at line 49 of file CoolingConfig.hpp.

Member Function Documentation

◆ get_barotrope()

template<class Tvec>
shammath::FluidStateBarotropic< Tvec > shammodels::basegodunov::CoolingConfig< Tvec >::InstantBarotropic::get_barotrope ( ) const
inline

Definition at line 54 of file CoolingConfig.hpp.

Member Data Documentation

◆ cs0

template<class Tvec>
Tscal shammodels::basegodunov::CoolingConfig< Tvec >::InstantBarotropic::cs0

Definition at line 51 of file CoolingConfig.hpp.

◆ gamma0

template<class Tvec>
Tscal shammodels::basegodunov::CoolingConfig< Tvec >::InstantBarotropic::gamma0 = 5. / 3.

Definition at line 52 of file CoolingConfig.hpp.

◆ rho0

template<class Tvec>
Tscal shammodels::basegodunov::CoolingConfig< Tvec >::InstantBarotropic::rho0

Definition at line 50 of file CoolingConfig.hpp.


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