15 const double GasConstant = 8314.3;
25 "To be removed after Cantera 2.3.");
26 setParameters(1.0, 1.0, 1.0);
27 m_name =
"Redlich-Kwong";
31 void setParameters(
double Tc,
double Pc,
double MolWt) {
37 m_a = 0.42748*GasConstant*GasConstant*m_tcrit*m_tcrit*sqrt(m_tcrit)/m_pcrit;
38 m_b = 0.08664*GasConstant*m_tcrit/m_pcrit;
58 return 0.3592725*GasConstant*T/(m_mw*m_pcrit);
85 double m_tcrit, m_pcrit, m_mw, m_a, m_b;
double MolWt()
Molecular weight [kg/kmol].
void warn_deprecated(const std::string &method, const std::string &extra)
Print a warning indicating that method is deprecated.
double up()
Internal energy of a single-phase state.
This file contains definitions for utility functions and text for modules, inputfiles, logs, textlogs, (see Input File Handling, Diagnostic Output, and Writing messages to the screen).
double Vcrit()
Critical specific volume [m^3/kg].
double Psat()
Saturation pressure, Pa.
double Pcrit()
Critical pressure [Pa].
double Tmax()
Maximum temperature for which the equation of state is valid.
double sp()
Entropy of a single-phase state.
double Tcrit()
Critical temperature [K].
double Tmin()
Minimum temperature for which the equation of state is valid.