WaterSSTP.cpp Source File#
WaterSSTP.cpp
Go to the documentation of this file.
Headers for the factory class that can create known ThermoPhase objects (see Thermodynamic Properties...
Declares a ThermoPhase class consisting of pure water (see Thermodynamic Properties and class WaterSS...
Base class for exceptions thrown by Cantera classes.
Definition ctexceptions.h:66
size_t elementIndex(const string &name) const
Return the index of element named 'name'.
Definition Phase.cpp:55
virtual void setDensity(const double density_)
Set the internally stored density (kg/m^3) of the phase.
Definition Phase.cpp:586
virtual void setTemperature(double temp)
Set the internally stored temperature of the phase (K).
Definition Phase.h:623
void setMolecularWeight(const int k, const double mw)
Set the molecular weight of a single species to a given value.
Definition Phase.cpp:895
double enthalpy_mole() const override
Molar enthalpy. Units: J/kmol.
Definition SingleSpeciesTP.cpp:20
double entropy_mole() const override
Molar entropy. Units: J/kmol/K.
Definition SingleSpeciesTP.cpp:34
double RT() const
Return the Gas Constant multiplied by the current temperature.
Definition ThermoPhase.h:1062
virtual void initThermo()
Initialize the ThermoPhase object after all species have been set up.
Definition ThermoPhase.cpp:1016
void initThermoFile(const string &inputFile, const string &id)
Initialize a ThermoPhase object using an input file.
Definition ThermoPhase.cpp:995
double coeffThermExp() const
Returns the coefficient of thermal expansion.
Definition WaterPropsIAPWS.cpp:234
double density(double temperature, double pressure, int phase=-1, double rhoguess=-1.0)
Calculates the density given the temperature and the pressure, and a guess at the density.
Definition WaterPropsIAPWS.cpp:54
double pressure() const
Calculates the pressure (Pascals), given the current value of the temperature and density.
Definition WaterPropsIAPWS.cpp:46
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 Pcrit() const
Returns the critical pressure of water (22.064E6 Pa)
Definition WaterPropsIAPWS.h:378
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 Tcrit() const
Returns the critical temperature of water (Kelvin)
Definition WaterPropsIAPWS.h:370
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
void setState_TD(double temperature, double rho)
Set the internal state of the object wrt temperature and density.
Definition WaterPropsIAPWS.cpp:548
int phaseState(bool checkState=false) const
Returns the Phase State flag for the current state of the object.
Definition WaterPropsIAPWS.cpp:333
double enthalpy_mass() const
Get the enthalpy (J/kg) at the current temperature and density.
Definition WaterPropsIAPWS.cpp:559
void setDensity(const double dens) override
Set the density of the phase.
Definition WaterSSTP.cpp:320
double thermalExpansionCoeff() const override
Return the volumetric thermal expansion coefficient. Units: 1/K.
Definition WaterSSTP.cpp:272
WaterPropsIAPWS m_sub
WaterPropsIAPWS that calculates the real properties of water.
Definition WaterSSTP.h:192
bool m_ready
Boolean is true if object has been properly initialized for calculation.
Definition WaterSSTP.h:220
double SW_Offset
Offset constant used to obtain consistency with NIST convention.
Definition WaterSSTP.h:217
void getEntropy_R(double *sr) const override
Get the array of nondimensional Entropy functions for the standard state species at the current T and...
Definition WaterSSTP.cpp:98
void getGibbs_ref(double *g) const override
Returns the vector of the Gibbs function of the reference state at the current temperature of the sol...
Definition WaterSSTP.cpp:170
WaterSSTP(const string &inputFile="", const string &id="")
Full constructor for a water phase.
Definition WaterSSTP.cpp:16
void getCp_R(double *cpr) const override
Get the nondimensional Heat Capacities at constant pressure for the species standard states at the cu...
Definition WaterSSTP.cpp:121
void initThermo() override
Initialize the ThermoPhase object after all species have been set up.
Definition WaterSSTP.cpp:28
void setPressure(double p) override
Set the internally stored pressure (Pa) at constant temperature and composition.
Definition WaterSSTP.cpp:243
void getStandardVolumes_ref(double *vol) const override
Get the molar volumes of the species reference states at the current T and P_ref of the solution.
Definition WaterSSTP.cpp:220
double vaporFraction() const override
Return the fraction of vapor at the current conditions.
Definition WaterSSTP.cpp:334
double dthermalExpansionCoeffdT() const
Return the derivative of the volumetric thermal expansion coefficient.
Definition WaterSSTP.cpp:277
double cv_mole() const override
Molar heat capacity at constant volume. Units: J/kmol/K.
Definition WaterSSTP.cpp:126
double EW_Offset
Offset constants used to obtain consistency with the NIST database.
Definition WaterSSTP.h:210
void getEnthalpy_RT(double *hrt) const override
Get the nondimensional Enthalpy functions for the species at their standard states at the current T a...
Definition WaterSSTP.cpp:88
void getEntropy_R_ref(double *er) const override
Returns the vector of nondimensional entropies of the reference state at the current temperature of t...
Definition WaterSSTP.cpp:178
void setTemperature(const double temp) override
Set the temperature of the phase.
Definition WaterSSTP.cpp:309
double isothermalCompressibility() const override
Returns the isothermal compressibility. Units: 1/Pa.
Definition WaterSSTP.cpp:267
void getGibbs_RT(double *grt) const override
Get the nondimensional Gibbs functions for the species in their standard states at the current T and ...
Definition WaterSSTP.cpp:103
void getStandardChemPotentials(double *gss) const override
Get the array of chemical potentials at unit activity for the species at their standard states at the...
Definition WaterSSTP.cpp:112
void getCp_R_ref(double *cprt) const override
Returns the vector of nondimensional constant pressure heat capacities of the reference state at the ...
Definition WaterSSTP.cpp:200
void getIntEnergy_RT(double *urt) const override
Returns the vector of nondimensional Internal Energies of the standard state species at the current T...
Definition WaterSSTP.cpp:93
bool m_allowGasPhase
Since this phase represents a liquid (or supercritical) phase, it is an error to return a gas-phase a...
Definition WaterSSTP.h:228
void getGibbs_RT_ref(double *grt) const override
Returns the vector of nondimensional Gibbs Free Energies of the reference state at the current temper...
Definition WaterSSTP.cpp:150
string phaseOfMatter() const override
String indicating the mechanical phase of the matter in this Phase.
Definition WaterSSTP.cpp:21
void getEnthalpy_RT_ref(double *hrt) const override
Returns the vector of nondimensional enthalpies of the reference state at the current temperature of ...
Definition WaterSSTP.cpp:131
double satPressure(double t) override
Return the saturation pressure given the temperature.
Definition WaterSSTP.cpp:326
Contains declarations for string manipulation functions within Cantera.
Generated by