12 #ifndef CT_PDSS_WATER_H
13 #define CT_PDSS_WATER_H
21 class WaterPropsIAPWS;
101 const std::string& inputFile,
const std::string&
id =
"");
115 const XML_Node& phaseRef,
bool spInstalled);
140 virtual doublereal
cp_mole()
const;
141 virtual doublereal
cv_mole()
const;
143 virtual doublereal
density()
const;
157 doublereal
pref_safe(doublereal temp)
const;
162 virtual doublereal
cp_R_ref()
const;
169 virtual doublereal
pressure()
const;
172 virtual void setState_TP(doublereal temp, doublereal pres);
173 virtual void setState_TR(doublereal temp, doublereal rho);
252 const std::string& inputFile,
const std::string&
id);
277 const XML_Node& phaseNode,
const std::string&
id);
virtual doublereal cp_mole() const
Return the molar const pressure heat capacity in units of J kmol-1 K-1.
virtual doublereal entropy_R_ref() const
Return the molar entropy divided by R at reference pressure.
virtual doublereal thermalExpansionCoeff() const
Return the volumetric thermal expansion coefficient. Units: 1/K.
doublereal m_dens
State of the system - density.
WaterPropsIAPWS * m_sub
Pointer to the WaterPropsIAPWS object, which does the actual calculations for the real equation of st...
PDSS_Water & operator=(const PDSS_Water &b)
Assignment operator.
void setDensity(doublereal dens)
Set the density of the water phase.
Class for calculating the equation of state of water.
virtual doublereal critTemperature() const
critical temperature
Class XML_Node is a tree-based representation of the contents of an XML file.
This file contains definitions of terms that are used in internal routines and are unlikely to need m...
virtual doublereal dthermalExpansionCoeffdT() const
Return the derivative of the volumetric thermal expansion coefficient. Units: 1/K2.
void constructSet()
Internal routine that initializes the underlying water model.
virtual doublereal density() const
Return the standard state density at standard state.
virtual void initThermoXML(const XML_Node &phaseNode, const std::string &id)
Initialization routine for the PDSS object based on the phaseNode.
void constructPDSSXML(VPStandardStateTP *vptp_ptr, int spindex, const XML_Node &phaseNode, const std::string &id)
Initialization of a PDSS object using an xml tree.
virtual doublereal critPressure() const
critical pressure
virtual doublereal molarVolume_ref() const
Return the molar volume at reference pressure.
virtual doublereal enthalpy_mole() const
Return the molar enthalpy in units of J kmol-1.
void constructPDSSFile(VPStandardStateTP *vptp_ptr, int spindex, const std::string &inputFile, const std::string &id)
Initialization of a PDSS object using an input XML file.
doublereal pref_safe(doublereal temp) const
Returns a reference pressure value that can be safely calculated by the underlying real equation of s...
virtual doublereal gibbs_RT_ref() const
Return the molar gibbs free energy divided by RT at reference pressure.
Declarations for the virtual base class PDSS (pressure dependent standard state) which handles calcul...
bool m_verbose
Verbose flag - used?
The WaterProps class is used to house several approximation routines for properties of water...
virtual void setState_TP(doublereal temp, doublereal pres)
Set the internal temperature and pressure.
WaterPropsIAPWS * getWater()
Get a pointer to a changeable WaterPropsIAPWS object.
Class for the liquid water pressure dependent standard state.
virtual doublereal satPressure(doublereal t)
saturation pressure
WaterProps * getWaterProps()
Get a pointer to a changeable WaterPropsIAPWS object.
virtual doublereal enthalpy_RT_ref() const
Return the molar enthalpy divided by RT at reference pressure.
virtual doublereal pressure() const
Returns the pressure (Pa)
virtual doublereal intEnergy_mole() const
Return the molar internal Energy in units of J kmol-1.
virtual PDSS * duplMyselfAsPDSS() const
Duplication routine for objects which inherit from PDSS.
virtual doublereal gibbs_mole() const
Return the molar Gibbs free energy in units of J kmol-1.
virtual void initThermo()
Initialization routine for all of the shallow pointers.
This is a filter class for ThermoPhase that implements some prepatory steps for efficiently handling ...
virtual doublereal cv_mole() const
Return the molar const volume heat capacity in units of J kmol-1 K-1.
virtual void setState_TR(doublereal temp, doublereal rho)
Set the internal temperature and density.
int m_iState
state of the fluid
virtual void setTemperature(doublereal temp)
Set the internal temperature.
virtual doublereal molarVolume() const
Return the molar volume at standard state.
virtual doublereal critDensity() const
critical density
doublereal SW_Offset
Offset constant used to obtain consistency with NIST convention.
Header file for a derived class of ThermoPhase that handles variable pressure standard state methods ...
Virtual base class for a species with a pressure dependent standard state.
virtual ~PDSS_Water()
Destructor.
virtual doublereal isothermalCompressibility() const
Returns the isothermal compressibility. Units: 1/Pa.
WaterProps * m_waterProps
Pointer to the WaterProps object.
virtual void setPressure(doublereal pres)
Sets the pressure in the object.
bool m_allowGasPhase
Since this phase represents a liquid phase, it's an error to return a gas-phase answer.
doublereal EW_Offset
Offset constants used to obtain consistency with the NIST database.
virtual doublereal cp_R_ref() const
Return the molar heat capacity divided by R at reference pressure.
virtual doublereal entropy_mole() const
Return the molar entropy in units of J kmol-1 K-1.
PDSS_Water()
Bare constructor.