WaterPropsIAPWS.cpp Source File#
WaterPropsIAPWS.cpp
Go to the documentation of this file.
Headers for a class for calculating the equation of state of water from the IAPWS 1995 Formulation ba...
Base class for exceptions thrown by Cantera classes.
Definition ctexceptions.h:66
double coeffThermExp() const
Returns the coefficient of thermal expansion.
Definition WaterPropsIAPWS.cpp:234
double densSpinodalSteam() const
Return the value of the density at the water spinodal point (on the gas side) for the current tempera...
Definition WaterPropsIAPWS.cpp:461
void corr(double temperature, double pressure, double &densLiq, double &densGas, double &delGRT)
Utility routine in the calculation of the saturation pressure.
Definition WaterPropsIAPWS.cpp:242
double pressure() const
Calculates the pressure (Pascals), given the current value of the temperature and density.
Definition WaterPropsIAPWS.cpp:46
void corr1(double temperature, double pressure, double &densLiq, double &densGas, double &pcorr)
Utility routine in the calculation of the saturation pressure.
Definition WaterPropsIAPWS.cpp:266
double gibbs_mass() const
Get the Gibbs free energy (J/kg) at the current temperature and density.
Definition WaterPropsIAPWS.cpp:554
double isothermalCompressibility() const
Returns the coefficient of isothermal compressibility for the state of the object.
Definition WaterPropsIAPWS.cpp:215
double psat(double temperature, int waterState=WATER_LIQUID)
This function returns the saturation pressure given the temperature as an input parameter,...
Definition WaterPropsIAPWS.cpp:291
double cv_mass() const
Get the constant volume heat capacity (J/kg/K) at the current temperature and density.
Definition WaterPropsIAPWS.cpp:574
double entropy_mass() const
Get the entropy (J/kg/K) at the current temperature and density.
Definition WaterPropsIAPWS.cpp:569
double densSpinodalWater() const
Return the value of the density at the water spinodal point (on the liquid side) for the current temp...
Definition WaterPropsIAPWS.cpp:373
double cp_mass() const
Get the constant pressure heat capacity (J/kg/K) at the current temperature and density.
Definition WaterPropsIAPWS.cpp:579
double intEnergy_mass() const
Get the internal energy (J/kg) at the current temperature and density.
Definition WaterPropsIAPWS.cpp:564
double coeffPresExp() const
Returns the isochoric pressure derivative wrt temperature.
Definition WaterPropsIAPWS.cpp:229
void setState_TD(double temperature, double rho)
Set the internal state of the object wrt temperature and density.
Definition WaterPropsIAPWS.cpp:548
WaterPropsIAPWSphi m_phi
pointer to the underlying object that does the calculations.
Definition WaterPropsIAPWS.h:423
double density_const(double pressure, int phase=-1, double rhoguess=-1.0) const
Calculates the density given the temperature and the pressure, and a guess at the density,...
Definition WaterPropsIAPWS.cpp:114
void calcDim(double temperature, double rho)
Calculate the dimensionless temp and rho and store internally.
Definition WaterPropsIAPWS.cpp:29
int phaseState(bool checkState=false) const
Returns the Phase State flag for the current state of the object.
Definition WaterPropsIAPWS.cpp:333
double dpdrho() const
Returns the value of dp / drho at constant T for the state of the object.
Definition WaterPropsIAPWS.cpp:222
double psat_est(double temperature) const
This function returns an estimated value for the saturation pressure.
Definition WaterPropsIAPWS.cpp:177
double enthalpy_mass() const
Get the enthalpy (J/kg) at the current temperature and density.
Definition WaterPropsIAPWS.cpp:559
double gibbs_RT() const
Calculate the dimensionless Gibbs free energy.
Definition WaterPropsIAPWSphi.cpp:939
double cv_R() const
Calculate the dimensionless constant volume heat capacity, Cv/R.
Definition WaterPropsIAPWSphi.cpp:974
double intEnergy_RT() const
Calculate the dimensionless internal energy, u/RT.
Definition WaterPropsIAPWSphi.cpp:966
double enthalpy_RT() const
Calculate the dimensionless enthalpy, h/RT.
Definition WaterPropsIAPWSphi.cpp:946
double entropy_R() const
Calculate the dimensionless entropy, s/R.
Definition WaterPropsIAPWSphi.cpp:956
double phiR() const
Calculate Equation 6.6 for phiR, the residual part of the dimensionless Helmholtz free energy.
Definition WaterPropsIAPWSphi.cpp:394
double pressureM_rhoRT(double tau, double delta)
Calculate the dimensionless pressure at tau and delta;.
Definition WaterPropsIAPWSphi.cpp:520
double dimdpdrho(double tau, double delta)
Dimensionless derivative of p wrt rho at constant T.
Definition WaterPropsIAPWSphi.cpp:624
double dfind(double p_red, double tau, double deltaGuess)
This function computes the reduced density, given the reduced pressure and the reduced temperature,...
Definition WaterPropsIAPWSphi.cpp:864
double dimdpdT(double tau, double delta)
Dimensionless derivative of p wrt T at constant rho.
Definition WaterPropsIAPWSphi.cpp:632
double cp_R() const
Calculate the dimensionless constant pressure heat capacity, Cv/R.
Definition WaterPropsIAPWSphi.cpp:982
void tdpolycalc(double tau, double delta)
Calculates internal polynomials in tau and delta.
Definition WaterPropsIAPWSphi.cpp:361
Definitions for the classes that are thrown when Cantera experiences an error condition (also contain...
This file contains definitions for utility functions and text for modules, inputfiles and logging,...
const double Rho_c
Value of the Density at the critical point (kg m-3)
Definition WaterPropsIAPWS.cpp:25
Contains declarations for string manipulation functions within Cantera.
Generated by