Template Struct IdealEOS

Struct Documentation

template<typename Real>
struct IdealEOS

Ideal gas equation of state.

This class needs to be trivially copyable for device transfer.

Public Functions

inline explicit IdealEOS(const Config &config)

Constructor.

Parameters:

gm_ – Ratio of specific heats (gamma)

inline Real roeitopr(Real ro, Real ei) const noexcept

Compute gas pressure from mass density and specific internal energy.

inline Real roprtoei(Real ro, Real pr) const noexcept

Compute specific internal energy from mass density and gas pressure.

Public Members

Real gm

Ratio of specific heats (gamma)