10 double cp_low, h_low, s_low;
11 double cp_high, h_high, s_high;
13 &h_low - offset, &s_low - offset);
15 &h_high - offset, &s_high - offset);
17 double delta = cp_low - cp_high;
18 if (fabs(delta/(fabs(cp_low)+1.0E-4)) > 0.001) {
19 writelog(
"\n\n**** WARNING ****\nFor species "+name+
20 ", discontinuity in cp/R detected at Tmid = "
22 writelog(
"\tValue computed using low-temperature polynomial: "
24 writelog(
"\tValue computed using high-temperature polynomial: "
29 delta = h_low - h_high;
30 if (fabs(delta/(fabs(h_low)+cp_low*
m_midT)) > 0.001) {
31 writelog(
"\n\n**** WARNING ****\nFor species "+name+
32 ", discontinuity in h/RT detected at Tmid = "
34 writelog(
"\tValue computed using low-temperature polynomial: "
36 writelog(
"\tValue computed using high-temperature polynomial: "
41 delta = s_low - s_high;
42 if (fabs(delta/(fabs(s_low)+cp_low)) > 0.001) {
43 writelog(
"\n\n**** WARNING ****\nFor species "+name+
44 ", discontinuity in s/R detected at Tmid = "
46 writelog(
"\tValue computed using low-temperature polynomial: "
48 writelog(
"\tValue computed using high-temperature polynomial: "
void validate(const std::string &name)
Check for problems with the parameterization, and generate warnings or throw and exception if any are...
virtual size_t speciesIndex() const
Returns an integer representing the species index.
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).
std::string fp2str(const double x, const std::string &fmt)
Convert a double into a c++ string.
NasaPoly1 mnp_high
NasaPoly1 object for the high temperature region.
virtual void updatePropertiesTemp(const doublereal temp, doublereal *cp_R, doublereal *h_RT, doublereal *s_R) const
Compute the reference-state property of one species.
doublereal m_midT
Midrange temperature.
Contains declarations for string manipulation functions within Cantera.
void writelog(const std::string &msg)
Write a message to the screen.
Header for a single-species standard state object derived from SpeciesThermoInterpType based on the N...
NasaPoly1 mnp_low
NasaPoly1 object for the low temperature region.