17ConstCpPoly::ConstCpPoly()
18 : SpeciesThermoInterpType(0.0, std::numeric_limits<double>::infinity(), 0.0)
28ConstCpPoly::ConstCpPoly(
double tlow,
double thigh,
double pref,
29 const double* coeffs) :
47 doublereal* s_R)
const
50 doublereal logt = log(t);
51 doublereal rt = 1.0/t;
60 doublereal* s_R)
const
62 doublereal logt = log(temp);
63 doublereal rt = 1.0/temp;
70 doublereal& tlow, doublereal& thigh,
72 doublereal*
const coeffs)
const
87 thermo[
"model"] =
"constant-cp";
89 thermo[
"T0"].setQuantity(
m_t0,
"K");
108 doublereal delH = Hf298New - hnow;
Headers for the SpeciesThermoInterpType object that employs a constant heat capacity assumption (see ...
A map of string keys to values whose type can vary at runtime.
virtual void resetHf298()
Restore the original heat of formation for this species.
void setParameters(double t0, double h0, double s0, double cp0)
doublereal m_s0_R
Dimensionless value of the entropy at t0.
virtual void modifyOneHf298(const size_t k, const doublereal Hf298New)
Modify the value of the 298 K Heat of Formation of one species in the phase (J kmol-1)
virtual doublereal reportHf298(doublereal *const h298=0) const
Report the 298 K Heat of Formation of the standard state of one species (J kmol-1)
virtual void getParameters(AnyMap &thermo) const
Store the parameters of the species thermo object such that an identical species thermo object could ...
doublereal m_logt0
log of the t0 value
void updatePropertiesTemp(const doublereal temp, doublereal *cp_R, doublereal *h_RT, doublereal *s_R) const
Compute the reference-state property of one species.
double m_h0_R_orig
Original value of h0_R, restored by calling resetHf298()
doublereal m_cp0_R
Dimensionless value of the heat capacity.
void reportParameters(size_t &n, int &type, doublereal &tlow, doublereal &thigh, doublereal &pref, doublereal *const coeffs) const
This utility function returns the type of parameterization and all of the parameters for the species.
void updateProperties(const doublereal *tt, doublereal *cp_R, doublereal *h_RT, doublereal *s_R) const
Update the properties for this species, given a temperature polynomial.
doublereal m_h0_R
dimensionless value of the enthaply at t0
doublereal m_t0
Base temperature.
Abstract Base class for the thermodynamic manager for an individual species' reference state.
virtual void getParameters(AnyMap &thermo) const
Store the parameters of the species thermo object such that an identical species thermo object could ...
doublereal m_lowT
lowest valid temperature
doublereal m_highT
Highest valid temperature.
doublereal m_Pref
Reference state pressure.
Namespace for the Cantera kernel.
const double GasConstant
Universal Gas Constant [J/kmol/K].
#define CONSTANT_CP
Constant Cp.