12 namespace EquationOfStateLibrary
31 this->add_parameter(
"gamma", gamma_,
"The ratio of specific heats");
40 "gas constant R", R_,
"The specific gas constant R");
42 cv_ = R_ / (gamma_ - 1.);
51 double pressure(
double rho,
double e)
const final
53 return (gamma_ - 1.) * rho * e;
64 return p / (rho * (gamma_ - 1.));
86 return std::sqrt(gamma_ * (gamma_ - 1.) * e);
virtual double specific_internal_energy(double rho, double p) const =0
virtual double pressure(double rho, double e) const =0
virtual double speed_of_sound(double rho, double e) const =0
virtual double temperature(double rho, double e) const =0
double specific_internal_energy(double rho, double p) const final
double speed_of_sound(double, double e) const final
PolytropicGas(const std::string &subsection)
double temperature(double, double e) const final
double pressure(double rho, double e) const final