Template Struct IdealEOS

Struct Documentation

template<typename Real>
struct IdealEOS

Ideal gas equation of state.

Public Functions

inline explicit IdealEOS(const Config &config)

Construct the EOS from the configuration file.

inline explicit IdealEOS(Real gm)

Construct the EOS from the specific heat ratio (gamma)

template<typename Backend>
inline void gas_pressure(Backend btag, mhd::FieldsView<const Real> qq, Array3DView<Real> pr) const

Compute gas pressure from primitive MHD fields.

Note

The signature must not be changed as it is called inside mhd::MHD.

template<typename Backend>
inline void sound_speed(Backend btag, mhd::FieldsView<const Real> qq, Array3DView<Real> cs) const

Compute speed of sound from primitive MHD fields.

Note

The signature must not be changed as it is called inside mhd::MHD.

Public Members

Real gm

Ratio of specific heats (gamma)