43 double cp_mole()
const override;
45 double density()
const override;
51 double refPressure()
const {
65 void setState_TP(
double temp,
double pres)
override;
85 void setS0(
double s0);
89 void set_a(
double* a);
93 void set_c(
double* c);
129 double ag(
const double temp,
const int ifunc = 0)
const;
142 double bg(
const double temp,
const int ifunc = 0)
const;
157 double g(
const double temp,
const double pres,
const int ifunc = 0)
const;
172 double f(
const double temp,
const double pres,
const int ifunc = 0)
const;
184 double gstar(
const double temp,
const double pres,
const int ifunc = 0)
const;
198 double LookupGe(
const string& elemName);
Declarations for the virtual base class PDSS (pressure dependent standard state) which handles calcul...
Header for a class used to house several approximation routines for properties of water.
A map of string keys to values whose type can vary at runtime.
Class for pressure dependent standard states corresponding to ionic solutes in electrolyte water.
void setOmega(double omega)
Set omega [J/kmol].
double molarVolume() const override
Return the molar volume at standard state.
static int s_InputInconsistencyErrorExit
Static variable determining error exiting.
double m_Y_pr_tr
y = dZdT = 1/(esp*esp) desp/dT at 298.15 and 1 bar
double m_a4
Input a4 coefficient (cal K gmol-1)
void setParent(VPStandardStateTP *phase, size_t k) override
Set the parent VPStandardStateTP object of this PDSS object.
double enthalpy_mole() const override
Return the molar enthalpy in units of J kmol-1.
unique_ptr< WaterProps > m_waterProps
Pointer to the water property calculator.
double deltaS() const
Main routine that actually calculates the entropy difference between the reference state at Tr,...
double f(const double temp, const double pres, const int ifunc=0) const
Difference function f appearing in the formulation.
size_t m_spindex
Index of this species within the parent phase.
double m_densWaterSS
density of standard-state water. internal temporary variable
double LookupGe(const string &elemName)
Function to look up Element Free Energies.
double gibbs_RT_ref() const override
Return the molar Gibbs free energy divided by RT at reference pressure.
VPStandardStateTP * m_tp
Parent VPStandardStateTP (ThermoPhase) object.
double m_Entrop_tr_pr
Input value of S_j at Tr and Pr (cal gmol-1 K-1)
double m_deltaG_formation_tr_pr
Input value of deltaG of Formation at Tr and Pr (cal gmol-1)
void setDeltaG0(double dg0)
Set Gibbs free energy of formation at Pr, Tr [J/kmol].
void initThermo() override
Initialization routine.
double m_a3
Input a3 coefficient (cal K gmol-1 bar-1)
double gstar(const double temp, const double pres, const int ifunc=0) const
Evaluate the Gstar value appearing in the HKFT formulation.
double m_charge_j
Charge of the ion.
PDSS_HKFT()
Default Constructor.
double entropy_R_ref() const override
Return the molar entropy divided by R at reference pressure.
double deltaG() const
Main routine that actually calculates the Gibbs free energy difference between the reference state at...
double enthalpy_RT_ref() const override
Return the molar enthalpy divided by RT at reference pressure.
void setS0(double s0)
Set entropy of formation at Pr, Tr [J/kmol/K].
double bg(const double temp, const int ifunc=0) const
Internal formula for the calculation of b_g()
void getParameters(AnyMap &eosNode) const override
Store the parameters needed to reconstruct a copy of this PDSS object.
double m_c2
Input c2 coefficient (cal K gmol-1)
double m_presR_bar
Reference pressure is 1 atm in units of bar= 1.0132.
void set_a(double *a)
Set "a" coefficients (array of 4 elements).
double intEnergy_mole() const override
Return the molar internal Energy in units of J kmol-1.
double m_domega_jdT_prtr
small value that is not quite zero
double entropy_mole() const override
Return the molar entropy in units of J kmol-1 K-1.
double m_omega_pr_tr
Input omega_pr_tr coefficient(cal gmol-1)
double g(const double temp, const double pres, const int ifunc=0) const
function g appearing in the formulation
void setState_TP(double temp, double pres) override
Set the internal temperature and pressure.
double m_Z_pr_tr
Z = -1 / relEpsilon at 298.15 and 1 bar.
void convertDGFormation()
Translate a Gibbs free energy of formation value to a NIST-based Chemical potential.
double cp_mole() const override
Return the molar const pressure heat capacity in units of J kmol-1 K-1.
double m_deltaH_formation_tr_pr
Input value of deltaH of Formation at Tr and Pr (cal gmol-1)
double m_a1
Input a1 coefficient (cal gmol-1 bar-1)
double ag(const double temp, const int ifunc=0) const
Internal formula for the calculation of a_g()
double density() const override
Return the standard state density at standard state.
double gibbs_mole() const override
Return the molar Gibbs free energy in units of J kmol-1.
double m_c1
Input c1 coefficient (cal gmol-1 K-1)
double molarVolume_ref() const override
Return the molar volume at reference pressure.
PDSS_Water * m_waterSS
Water standard state calculator.
double m_Mu0_tr_pr
Value of the Absolute Gibbs Free Energy NIST scale at T_r and P_r.
void set_c(double *c)
Set "c" coefficients (array of 2 elements).
double m_a2
Input a2 coefficient (cal gmol-1)
void setDeltaH0(double dh0)
Set enthalpy of formation at Pr, Tr [J/kmol].
double cp_R_ref() const override
Return the molar heat capacity divided by R at reference pressure.
Base class for PDSS classes which compute molar properties directly.
Class for the liquid water pressure dependent standard state.
double m_p0
Reference state pressure of the species.
This is a filter class for ThermoPhase that implements some preparatory steps for efficiently handlin...
const double OneAtm
One atmosphere [Pa].
Namespace for the Cantera kernel.