Cantera 2.6.0
Public Member Functions | Private Member Functions | List of all members
water Class Reference

Pure species representation of water. More...

#include <Water.h>

Inheritance diagram for water:
[legend]
Collaboration diagram for water:
[legend]

Public Member Functions

double MolWt ()
 Molecular weight [kg/kmol]. More...
 
double Tcrit ()
 Critical temperature [K]. More...
 
double Pcrit ()
 Critical pressure [Pa]. More...
 
double Vcrit ()
 Critical specific volume [m^3/kg]. More...
 
double Tmin ()
 Minimum temperature for which the equation of state is valid. More...
 
double Tmax ()
 Maximum temperature for which the equation of state is valid. More...
 
double Pp ()
 
double up ()
 Internal energy of a single-phase state. More...
 
double sp ()
 Entropy of a single-phase state. More...
 
double Psat ()
 Saturation pressure, Pa. More...
 
double dPsatdT ()
 
- Public Member Functions inherited from Substance
void setStdState (double h0=0.0, double s0=0.0, double t0=298.15, double p0=1.01325e5)
 
double hp ()
 Enthaply of a single-phase state. More...
 
double gp ()
 Gibbs function of a single-phase state. More...
 
double prop (propertyFlag::type ijob)
 
void set_TPp (double t0, double p0)
 set T and P More...
 
void Set (PropertyPair::type XY, double x0, double y0)
 Function to set or change the state for a property pair XY where x0 is the value of first property and y0 is the value of the second property. More...
 
const char * name ()
 Name of the substance. More...
 
const char * formula ()
 Chemical formula for the substance. More...
 
double P ()
 Pressure [Pa]. More...
 
double Temp ()
 Temperature [K]. More...
 
double v ()
 Specific volume [m^3/kg]. More...
 
double u ()
 Internal energy [J/kg]. More...
 
double h ()
 Enthalpy [J/kg]. More...
 
double s ()
 Entropy [J/kg/K]. More...
 
double f ()
 Helmholtz function [J/kg]. More...
 
double g ()
 Gibbs function [J/kg]. More...
 
virtual double cv ()
 Specific heat at constant volume [J/kg/K]. More...
 
virtual double cp ()
 Specific heat at constant pressure [J/kg/K]. More...
 
virtual double thermalExpansionCoeff ()
 
virtual double isothermalCompressibility ()
 
double Ps ()
 
virtual double dPsdT ()
 The derivative of the saturation pressure with respect to temperature. More...
 
double Tsat (double p)
 Saturation temperature at pressure p. More...
 
double x ()
 Vapor mass fraction. More...
 
int TwoPhase (bool strict=false)
 Returns 1 if the current state is a liquid/vapor mixture, 0 otherwise. More...
 

Private Member Functions

double ldens ()
 
double C (int i)
 
double Cprime (int i)
 
double I (int i)
 
double H (int i)
 

Additional Inherited Members

- Protected Member Functions inherited from Substance
virtual int ideal ()
 
double vp ()
 
int Lever (int itp, double sat, double val, propertyFlag::type ifunc)
 Uses the lever rule to set state in the dome. More...
 
void update_sat ()
 Update saturated liquid and vapor densities and saturation pressure. More...
 
- Protected Attributes inherited from Substance
double T
 
double Rho
 
double Tslast
 
double Rhf
 
double Rhv
 
double Pst
 
double m_energy_offset
 
double m_entropy_offset
 
std::string m_name
 
std::string m_formula
 

Detailed Description

Pure species representation of water.

Values and functions are from "Thermodynamic Properties in SI" by W.C. Reynolds

Definition at line 15 of file Water.h.

Constructor & Destructor Documentation

◆ water()

water ( )
inline

Definition at line 18 of file Water.h.

Member Function Documentation

◆ MolWt()

double MolWt ( )
virtual

Molecular weight [kg/kmol].

Implements Substance.

Definition at line 209 of file Water.cpp.

◆ Tcrit()

double Tcrit ( )
virtual

Critical temperature [K].

Implements Substance.

Definition at line 189 of file Water.cpp.

◆ Pcrit()

double Pcrit ( )
virtual

Critical pressure [Pa].

Implements Substance.

Definition at line 193 of file Water.cpp.

◆ Vcrit()

double Vcrit ( )
virtual

Critical specific volume [m^3/kg].

Implements Substance.

Definition at line 197 of file Water.cpp.

◆ Tmin()

double Tmin ( )
virtual

Minimum temperature for which the equation of state is valid.

Implements Substance.

Definition at line 201 of file Water.cpp.

◆ Tmax()

double Tmax ( )
virtual

Maximum temperature for which the equation of state is valid.

Implements Substance.

Definition at line 205 of file Water.cpp.

◆ Pp()

double Pp ( )
virtual

Implements Substance.

Definition at line 152 of file Water.cpp.

◆ up()

double up ( )
virtual

Internal energy of a single-phase state.

Implements Substance.

Definition at line 122 of file Water.cpp.

◆ sp()

double sp ( )
virtual

Entropy of a single-phase state.

Implements Substance.

Definition at line 136 of file Water.cpp.

◆ Psat()

double Psat ( )
virtual

Saturation pressure, Pa.

Implements Substance.

Definition at line 161 of file Water.cpp.

◆ ldens()

double ldens ( )
privatevirtual

Implements Substance.

Definition at line 175 of file Water.cpp.

◆ C()

double C ( int  i)
private

Definition at line 76 of file Water.cpp.

◆ Cprime()

double Cprime ( int  i)
private

Definition at line 82 of file Water.cpp.

◆ I()

double I ( int  i)
private

Definition at line 90 of file Water.cpp.

◆ H()

double H ( int  i)
private

Definition at line 105 of file Water.cpp.


The documentation for this class was generated from the following files: