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.);
46 "covolume b", b_,
"The maximum compressibility constant");
49 this->add_parameter(
"reference specific internal energy",
51 "The reference specific internal energy");
55 "reference pressure", pinf_,
"The reference pressure p infinity");
58 ParameterAcceptor::parse_parameters_call_back.connect([
this] {
71 double pressure(
double rho,
double e)
const final
73 return (gamma_ - 1.) * rho * (e - q_) / (1. - b_ * rho) -
86 const auto numerator = (p + gamma_ * pinf_) * (1. - b_ * rho);
87 const auto denominator = rho * (gamma_ - 1.);
88 return q_ + numerator / denominator;
99 return (e - q_ - pinf_ * (1. / rho - b_)) / cv_;
111 const auto covolume = 1. - b_ * rho;
113 (rho * (e - q_) - pinf_ * covolume) / (covolume * covolume * rho);
114 radicand *= gamma_ * (gamma_ - 1.);
115 return std::sqrt(radicand);
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 interpolation_pinfty_
double speed_of_sound(double rho, double e) const final
NobleAbelStiffenedGas(const std::string &subsection)
double temperature(double rho, double e) const final
double pressure(double rho, double e) const final
double specific_internal_energy(double rho, double p) const final