cantera/src/tpx/Water.h
Ray Speth fcf7edf694 Implement Sub::name and Sub::formula in the base class
Eliminates the need for redundant implementations in all the derived
classes. Also, make the return value a "const char*" to eliminate the dangerous
cast.
2014-04-14 18:36:32 +00:00

41 lines
702 B
C++

//! @file Water.h
#ifndef TPX_WATER_H
#define TPX_WATER_H
#include "cantera/tpx/Sub.h"
namespace tpx
{
//! Pure species representation of water. Values and functions are from
//! "Thermodynamic Properties in SI" by W.C. Reynolds
class water : public Substance
{
public:
water() {
m_name = "water";
m_formula = "H2O";
}
double MolWt();
double Tcrit();
double Pcrit();
double Vcrit();
double Tmin();
double Tmax();
double Pp();
double up();
double sp();
double Psat();
double dPsatdT();
private:
double ldens();
double C(int i);
double Cprime(int i);
double I(int i);
double H(int i);
};
}
#endif // ! WATER_H